Optimal. Leaf size=48 \[ -\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.02, antiderivative size = 64, normalized size of antiderivative = 1.33, 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 = {6469, 99, 12,
41, 222} \begin {gather*} -\sqrt {\frac {1}{a x+1}} \sqrt {a x+1} \text {ArcSin}(a x)-\frac {\sqrt {1-a x}}{a x \sqrt {\frac {1}{a x+1}}}-\frac {1}{a x} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 12
Rule 41
Rule 99
Rule 222
Rule 6469
Rubi steps
\begin {align*} \int \frac {e^{\text {sech}^{-1}(a x)}}{x} \, dx &=-\frac {1}{a x}+\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {\sqrt {1-a x} \sqrt {1+a x}}{x^2} \, dx}{a}\\ &=-\frac {1}{a x}-\frac {\sqrt {1-a x}}{a x \sqrt {\frac {1}{1+a x}}}-\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {a^2}{\sqrt {1-a x} \sqrt {1+a x}} \, dx}{a}\\ &=-\frac {1}{a x}-\frac {\sqrt {1-a x}}{a x \sqrt {\frac {1}{1+a x}}}-\left (a \sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {1}{\sqrt {1-a x} \sqrt {1+a x}} \, dx\\ &=-\frac {1}{a x}-\frac {\sqrt {1-a x}}{a x \sqrt {\frac {1}{1+a x}}}-\left (a \sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {1}{a x}-\frac {\sqrt {1-a x}}{a x \sqrt {\frac {1}{1+a x}}}-\sqrt {\frac {1}{1+a x}} \sqrt {1+a x} \sin ^{-1}(a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.04, size = 75, normalized size = 1.56 \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 [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.03, size = 92, normalized size = 1.92
method | result | size |
default | \(-\frac {\sqrt {\frac {a x +1}{a x}}\, \sqrt {-\frac {a x -1}{a x}}\, \left (\arctan \left (\frac {\mathrm {csgn}\left (a \right ) a x}{\sqrt {-a^{2} x^{2}+1}}\right ) a x +\mathrm {csgn}\left (a \right ) \sqrt {-a^{2} x^{2}+1}\right ) \mathrm {csgn}\left (a \right )}{\sqrt {-a^{2} x^{2}+1}}-\frac {1}{a x}\) | \(92\) |
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.40, size = 77, normalized size = 1.60 \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*} \frac {\int \frac {1}{x^{2}}\, dx + \int \frac {a \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}}}{x}\, dx}{a} \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.10, size = 184, normalized size = 3.83 \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]
________________________________________________________________________________________