Optimal. Leaf size=46 \[ -\frac {2}{1+\sqrt {\frac {1-a x}{1+a x}}}-2 \text {ArcTan}\left (\sqrt {\frac {1-a x}{1+a x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6472, 815, 209}
\begin {gather*} -2 \text {ArcTan}\left (\sqrt {\frac {1-a x}{a x+1}}\right )-\frac {2}{\sqrt {\frac {1-a x}{a x+1}}+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 815
Rule 6472
Rubi steps
\begin {align*} \int \frac {e^{-\text {sech}^{-1}(a x)}}{x} \, dx &=\int \frac {1}{x \left (\frac {1}{a x}+\sqrt {\frac {1-a x}{1+a x}}+\frac {\sqrt {\frac {1-a x}{1+a x}}}{a x}\right )} \, dx\\ &=-\left (4 \text {Subst}\left (\int \frac {x}{(1+x)^2 \left (1+x^2\right )} \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\right )\\ &=-\left (4 \text {Subst}\left (\int \left (-\frac {1}{2 (1+x)^2}+\frac {1}{2 \left (1+x^2\right )}\right ) \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\right )\\ &=-\frac {2}{1+\sqrt {\frac {1-a x}{1+a x}}}-2 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\\ &=-\frac {2}{1+\sqrt {\frac {1-a x}{1+a x}}}-2 \tan ^{-1}\left (\sqrt {\frac {1-a x}{1+a x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.03, size = 74, normalized size = 1.61 \begin {gather*} -\frac {1}{a x}+\left (1+\frac {1}{a x}\right ) \sqrt {\frac {1-a x}{1+a x}}+i \log \left (-2 i a x+2 \sqrt {\frac {1-a x}{1+a x}} (1+a x)\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right ) x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 76, normalized size = 1.65 \begin {gather*} \frac {a x \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}} - a x \arctan \left (\sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}}\right ) - 1}{a 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*} a \int \frac {1}{a x \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}} + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.85, size = 184, normalized size = 4.00 \begin {gather*} \ln \left (\frac {{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^2}+1\right )\,1{}\mathrm {i}-\ln \left (\frac {\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}}{\sqrt {\frac {1}{a\,x}+1}-1}\right )\,1{}\mathrm {i}-\frac {1}{a\,x}-\frac {{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^2\,8{}\mathrm {i}}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^2\,\left (1+\frac {{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^4}-\frac {2\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________