Optimal. Leaf size=72 \[ -\frac {a}{\left (1+\sqrt {\frac {1-a x}{1+a x}}\right )^2}+\frac {a}{1+\sqrt {\frac {1-a x}{1+a x}}}-a \tanh ^{-1}\left (\sqrt {\frac {1-a x}{1+a x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 72, 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, 78, 213}
\begin {gather*} \frac {a}{\sqrt {\frac {1-a x}{a x+1}}+1}-\frac {a}{\left (\sqrt {\frac {1-a x}{a x+1}}+1\right )^2}+a \left (-\tanh ^{-1}\left (\sqrt {\frac {1-a x}{a x+1}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 213
Rule 6472
Rubi steps
\begin {align*} \int \frac {e^{-\text {sech}^{-1}(a x)}}{x^2} \, dx &=\int \frac {1}{x^2 \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\\ &=(4 a) \text {Subst}\left (\int \frac {x}{(-1+x) (1+x)^3} \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\\ &=(4 a) \text {Subst}\left (\int \left (\frac {1}{2 (1+x)^3}-\frac {1}{4 (1+x)^2}+\frac {1}{4 \left (-1+x^2\right )}\right ) \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\\ &=-\frac {a}{\left (1+\sqrt {\frac {1-a x}{1+a x}}\right )^2}+\frac {a}{1+\sqrt {\frac {1-a x}{1+a x}}}+a \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {\frac {1-a x}{1+a x}}\right )\\ &=-\frac {a}{\left (1+\sqrt {\frac {1-a x}{1+a x}}\right )^2}+\frac {a}{1+\sqrt {\frac {1-a x}{1+a x}}}-a \tanh ^{-1}\left (\sqrt {\frac {1-a x}{1+a x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 92, normalized size = 1.28 \begin {gather*} \frac {1}{2} \left (-\frac {1}{a x^2}+\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a x^2}+a \log (x)-a \log \left (1+\sqrt {\frac {1-a x}{1+a x}}+a x \sqrt {\frac {1-a x}{1+a x}}\right )\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^{2}}\, 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.43, size = 128, normalized size = 1.78 \begin {gather*} -\frac {a^{2} x^{2} \log \left (a x \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}} + 1\right ) - a^{2} x^{2} \log \left (a x \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}} - 1\right ) - 2 \, a x \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}} + 2}{4 \, a x^{2}} \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^{2} \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}} + x}\, 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 = 12.05, size = 323, normalized size = 4.49 \begin {gather*} 2\,a\,\mathrm {atanh}\left (\frac {\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}}{\sqrt {\frac {1}{a\,x}+1}-1}\right )-a\,\mathrm {acosh}\left (\frac {1}{a\,x}\right )-\frac {1}{2\,a\,x^2}-\frac {a\,\left (\frac {14\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^3}+\frac {14\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^5}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^5}+\frac {2\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^7}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^7}+\frac {2\,\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}{\sqrt {\frac {1}{a\,x}+1}-1}\right )}{1+\frac {6\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^4}-\frac {4\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^6}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^6}+\frac {{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^8}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^8}-\frac {4\,{\left (\sqrt {\frac {1}{a\,x}-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {\frac {1}{a\,x}+1}-1\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________