Optimal. Leaf size=20 \[ \csc ^{-1}(a x)+\tanh ^{-1}\left (\sqrt {1-\frac {1}{a^2 x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6304, 858, 222,
272, 65, 214} \begin {gather*} \tanh ^{-1}\left (\sqrt {1-\frac {1}{a^2 x^2}}\right )+\csc ^{-1}(a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 222
Rule 272
Rule 858
Rule 6304
Rubi steps
\begin {align*} \int \frac {e^{-\coth ^{-1}(a x)}}{x} \, dx &=-\text {Subst}\left (\int \frac {1-\frac {x}{a}}{x \sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {\text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )}{a}-\text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )\\ &=\csc ^{-1}(a x)-\frac {1}{2} \text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x}{a^2}}} \, dx,x,\frac {1}{x^2}\right )\\ &=\csc ^{-1}(a x)+a^2 \text {Subst}\left (\int \frac {1}{a^2-a^2 x^2} \, dx,x,\sqrt {1-\frac {1}{a^2 x^2}}\right )\\ &=\csc ^{-1}(a x)+\tanh ^{-1}\left (\sqrt {1-\frac {1}{a^2 x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 34, normalized size = 1.70 \begin {gather*} \text {ArcSin}\left (\frac {1}{a x}\right )+\log \left (x \left (1+\sqrt {\frac {-1+a^2 x^2}{a^2 x^2}}\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. \(132\) vs.
\(2(18)=36\).
time = 0.07, size = 133, normalized size = 6.65
method | result | size |
default | \(-\frac {\sqrt {\frac {a x -1}{a x +1}}\, \left (a x +1\right ) \left (\sqrt {a^{2}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}-a \ln \left (\frac {a^{2} x +\sqrt {a^{2}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}}{\sqrt {a^{2}}}\right )-\sqrt {a^{2} x^{2}-1}\, \sqrt {a^{2}}-\arctan \left (\frac {1}{\sqrt {a^{2} x^{2}-1}}\right ) \sqrt {a^{2}}\right )}{\sqrt {\left (a x +1\right ) \left (a x -1\right )}\, \sqrt {a^{2}}}\) | \(133\) |
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. 70 vs.
\(2 (18) = 36\).
time = 0.46, size = 70, normalized size = 3.50 \begin {gather*} -a {\left (\frac {2 \, \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right )}{a} - \frac {\log \left (\sqrt {\frac {a x - 1}{a x + 1}} + 1\right )}{a} + \frac {\log \left (\sqrt {\frac {a x - 1}{a x + 1}} - 1\right )}{a}\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. 57 vs.
\(2 (18) = 36\).
time = 0.35, size = 57, normalized size = 2.85 \begin {gather*} -2 \, \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right ) + \log \left (\sqrt {\frac {a x - 1}{a x + 1}} + 1\right ) - \log \left (\sqrt {\frac {a x - 1}{a x + 1}} - 1\right ) \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 {\sqrt {\frac {a x - 1}{a x + 1}}}{x}\, 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. 59 vs.
\(2 (18) = 36\).
time = 0.41, size = 59, normalized size = 2.95 \begin {gather*} -2 \, \arctan \left (-x {\left | a \right |} + \sqrt {a^{2} x^{2} - 1}\right ) \mathrm {sgn}\left (a x + 1\right ) - \frac {a \log \left ({\left | -x {\left | a \right |} + \sqrt {a^{2} x^{2} - 1} \right |}\right ) \mathrm {sgn}\left (a x + 1\right )}{{\left | a \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 37, normalized size = 1.85 \begin {gather*} 2\,\mathrm {atanh}\left (\sqrt {\frac {a\,x-1}{a\,x+1}}\right )-2\,\mathrm {atan}\left (\sqrt {\frac {a\,x-1}{a\,x+1}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________