Optimal. Leaf size=32 \[ -\frac {\text {ArcSin}\left (\frac {x}{a}\right )}{x}-\frac {\tanh ^{-1}\left (\sqrt {1-\frac {x^2}{a^2}}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5373, 4723,
272, 65, 214} \begin {gather*} -\frac {\tanh ^{-1}\left (\sqrt {1-\frac {x^2}{a^2}}\right )}{a}-\frac {\text {ArcSin}\left (\frac {x}{a}\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 272
Rule 4723
Rule 5373
Rubi steps
\begin {align*} \int \frac {\csc ^{-1}\left (\frac {a}{x}\right )}{x^2} \, dx &=\int \frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x^2} \, dx\\ &=-\frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x}+\frac {\int \frac {1}{x \sqrt {1-\frac {x^2}{a^2}}} \, dx}{a}\\ &=-\frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x}+\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x}{a^2}}} \, dx,x,x^2\right )}{2 a}\\ &=-\frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x}-a \text {Subst}\left (\int \frac {1}{a^2-a^2 x^2} \, dx,x,\sqrt {1-\frac {x^2}{a^2}}\right )\\ &=-\frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x}-\frac {\tanh ^{-1}\left (\sqrt {1-\frac {x^2}{a^2}}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(93\) vs. \(2(32)=64\).
time = 0.10, size = 93, normalized size = 2.91 \begin {gather*} -\frac {\csc ^{-1}\left (\frac {a}{x}\right )}{x}-\frac {\sqrt {-1+\frac {a^2}{x^2}} x \left (-\log \left (1-\frac {a}{\sqrt {-1+\frac {a^2}{x^2}} x}\right )+\log \left (1+\frac {a}{\sqrt {-1+\frac {a^2}{x^2}} x}\right )\right )}{2 a^2 \sqrt {1-\frac {x^2}{a^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 42, normalized size = 1.31
method | result | size |
derivativedivides | \(-\frac {\frac {\mathrm {arccsc}\left (\frac {a}{x}\right ) a}{x}+\ln \left (\frac {a}{x}+\frac {a \sqrt {1-\frac {x^{2}}{a^{2}}}}{x}\right )}{a}\) | \(42\) |
default | \(-\frac {\frac {\mathrm {arccsc}\left (\frac {a}{x}\right ) a}{x}+\ln \left (\frac {a}{x}+\frac {a \sqrt {1-\frac {x^{2}}{a^{2}}}}{x}\right )}{a}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 52, normalized size = 1.62 \begin {gather*} -\frac {\frac {2 \, a \operatorname {arccsc}\left (\frac {a}{x}\right )}{x} + \log \left (\sqrt {-\frac {x^{2}}{a^{2}} + 1} + 1\right ) - \log \left (-\sqrt {-\frac {x^{2}}{a^{2}} + 1} + 1\right )}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 65 vs.
\(2 (30) = 60\).
time = 0.38, size = 65, normalized size = 2.03 \begin {gather*} -\frac {2 \, a \operatorname {arccsc}\left (\frac {a}{x}\right ) + x \log \left (x \sqrt {\frac {a^{2} - x^{2}}{x^{2}}} + a\right ) - x \log \left (x \sqrt {\frac {a^{2} - x^{2}}{x^{2}}} - a\right )}{2 \, a x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.39, size = 27, normalized size = 0.84 \begin {gather*} - \frac {\operatorname {acsc}{\left (\frac {a}{x} \right )}}{x} + \frac {\begin {cases} - \operatorname {acosh}{\left (\frac {a}{x} \right )} & \text {for}\: \left |{\frac {a^{2}}{x^{2}}}\right | > 1 \\i \operatorname {asin}{\left (\frac {a}{x} \right )} & \text {otherwise} \end {cases}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 61 vs.
\(2 (30) = 60\).
time = 0.45, size = 61, normalized size = 1.91 \begin {gather*} -\frac {a {\left (\frac {\log \left ({\left | a + \sqrt {a^{2} - x^{2}} \right |}\right )}{a} - \frac {\log \left ({\left | -a + \sqrt {a^{2} - x^{2}} \right |}\right )}{a}\right )}}{2 \, {\left | a \right |}} - \frac {\arcsin \left (\frac {x}{a}\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.59, size = 30, normalized size = 0.94 \begin {gather*} -\frac {\mathrm {asin}\left (\frac {x}{a}\right )}{x}-\frac {\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {x^2}{a^2}}}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________