Optimal. Leaf size=24 \[ a \sqrt {1-\frac {1}{a^2 x^2}}-a \csc ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {6304, 655, 222}
\begin {gather*} a \sqrt {1-\frac {1}{a^2 x^2}}-a \csc ^{-1}(a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 655
Rule 6304
Rubi steps
\begin {align*} \int \frac {e^{\coth ^{-1}(a x)}}{x^2} \, dx &=-\text {Subst}\left (\int \frac {1+\frac {x}{a}}{\sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )\\ &=a \sqrt {1-\frac {1}{a^2 x^2}}-\text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )\\ &=a \sqrt {1-\frac {1}{a^2 x^2}}-a \csc ^{-1}(a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 27, normalized size = 1.12 \begin {gather*} a \left (\sqrt {1-\frac {1}{a^2 x^2}}-\text {ArcSin}\left (\frac {1}{a x}\right )\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(219\) vs.
\(2(22)=44\).
time = 0.09, size = 220, normalized size = 9.17
method | result | size |
risch | \(\frac {a x -1}{x \sqrt {\frac {a x -1}{a x +1}}}-\frac {a \arctan \left (\frac {1}{\sqrt {a^{2} x^{2}-1}}\right ) \sqrt {\left (a x +1\right ) \left (a x -1\right )}}{\sqrt {\frac {a x -1}{a x +1}}\, \left (a x +1\right )}\) | \(76\) |
default | \(\frac {\left (a x -1\right ) \left (\sqrt {a^{2} x^{2}-1}\, \sqrt {a^{2}}\, a^{2} x^{2}+\sqrt {\left (a x +1\right ) \left (a x -1\right )}\, \sqrt {a^{2}}\, a x -\left (a^{2} x^{2}-1\right )^{\frac {3}{2}} \sqrt {a^{2}}-\sqrt {a^{2}}\, \sqrt {a^{2} x^{2}-1}\, a x -\ln \left (\frac {a^{2} x +\sqrt {a^{2} x^{2}-1}\, \sqrt {a^{2}}}{\sqrt {a^{2}}}\right ) a^{2} x -a x \sqrt {a^{2}}\, \arctan \left (\frac {1}{\sqrt {a^{2} x^{2}-1}}\right )+\ln \left (\frac {a^{2} x +\sqrt {a^{2}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}}{\sqrt {a^{2}}}\right ) a^{2} x \right )}{\sqrt {\frac {a x -1}{a x +1}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}\, x \sqrt {a^{2}}}\) | \(220\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs.
\(2 (22) = 44\).
time = 0.46, size = 53, normalized size = 2.21 \begin {gather*} 2 \, a {\left (\frac {\sqrt {\frac {a x - 1}{a x + 1}}}{\frac {a x - 1}{a x + 1} + 1} + \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right )\right )} \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. 46 vs.
\(2 (22) = 44\).
time = 0.35, size = 46, normalized size = 1.92 \begin {gather*} \frac {2 \, a x \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right ) + {\left (a x + 1\right )} \sqrt {\frac {a x - 1}{a x + 1}}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{2} \sqrt {\frac {a x - 1}{a x + 1}}}\, dx \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. 66 vs.
\(2 (22) = 44\).
time = 0.40, size = 66, normalized size = 2.75 \begin {gather*} \frac {2 \, a \arctan \left (-x {\left | a \right |} + \sqrt {a^{2} x^{2} - 1}\right )}{\mathrm {sgn}\left (a x + 1\right )} + \frac {2 \, {\left | a \right |}}{{\left ({\left (x {\left | a \right |} - \sqrt {a^{2} x^{2} - 1}\right )}^{2} + 1\right )} \mathrm {sgn}\left (a x + 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 55, normalized size = 2.29 \begin {gather*} 2\,a\,\mathrm {atan}\left (\sqrt {\frac {a\,x-1}{a\,x+1}}\right )+\frac {2\,a\,\sqrt {\frac {a\,x-1}{a\,x+1}}}{\frac {a\,x-1}{a\,x+1}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________