Optimal. Leaf size=35 \[ -\frac {e^{\text {sech}^{-1}(a x)}}{2 x}+a \tanh ^{-1}\left (\sqrt {\frac {1-a x}{1+a x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(99\) vs. \(2(35)=70\).
time = 0.03, antiderivative size = 99, normalized size of antiderivative = 2.83, number of steps
used = 6, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {6470, 30, 105,
12, 94, 214} \begin {gather*} \frac {\sqrt {1-a x}}{2 a x^2 \sqrt {\frac {1}{a x+1}}}+\frac {1}{2 a x^2}+\frac {1}{2} a \sqrt {\frac {1}{a x+1}} \sqrt {a x+1} \tanh ^{-1}\left (\sqrt {1-a x} \sqrt {a x+1}\right )-\frac {e^{\text {sech}^{-1}(a x)}}{x} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 12
Rule 30
Rule 94
Rule 105
Rule 214
Rule 6470
Rubi steps
\begin {align*} \int \frac {e^{\text {sech}^{-1}(a x)}}{x^2} \, dx &=-\frac {e^{\text {sech}^{-1}(a x)}}{x}-\frac {\int \frac {1}{x^3} \, dx}{a}-\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {1}{x^3 \sqrt {1-a x} \sqrt {1+a x}} \, dx}{a}\\ &=\frac {1}{2 a x^2}-\frac {e^{\text {sech}^{-1}(a x)}}{x}+\frac {\sqrt {1-a x}}{2 a x^2 \sqrt {\frac {1}{1+a x}}}-\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {a^2}{x \sqrt {1-a x} \sqrt {1+a x}} \, dx}{2 a}\\ &=\frac {1}{2 a x^2}-\frac {e^{\text {sech}^{-1}(a x)}}{x}+\frac {\sqrt {1-a x}}{2 a x^2 \sqrt {\frac {1}{1+a x}}}-\frac {1}{2} \left (a \sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {1}{x \sqrt {1-a x} \sqrt {1+a x}} \, dx\\ &=\frac {1}{2 a x^2}-\frac {e^{\text {sech}^{-1}(a x)}}{x}+\frac {\sqrt {1-a x}}{2 a x^2 \sqrt {\frac {1}{1+a x}}}+\frac {1}{2} \left (a^2 \sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \text {Subst}\left (\int \frac {1}{a-a x^2} \, dx,x,\sqrt {1-a x} \sqrt {1+a x}\right )\\ &=\frac {1}{2 a x^2}-\frac {e^{\text {sech}^{-1}(a x)}}{x}+\frac {\sqrt {1-a x}}{2 a x^2 \sqrt {\frac {1}{1+a x}}}+\frac {1}{2} a \sqrt {\frac {1}{1+a x}} \sqrt {1+a x} \tanh ^{-1}\left (\sqrt {1-a x} \sqrt {1+a x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(93\) vs. \(2(35)=70\).
time = 0.04, size = 93, normalized size = 2.66 \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 [A]
time = 0.03, size = 91, normalized size = 2.60
method | result | size |
default | \(\frac {\sqrt {\frac {a x +1}{a x}}\, \sqrt {-\frac {a x -1}{a x}}\, \left (a^{2} x^{2} \arctanh \left (\frac {1}{\sqrt {-a^{2} x^{2}+1}}\right )-\sqrt {-a^{2} x^{2}+1}\right )}{2 x \sqrt {-a^{2} x^{2}+1}}-\frac {1}{2 a \,x^{2}}\) | \(91\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 128 vs.
\(2 (56) = 112\).
time = 0.41, size = 128, normalized size = 3.66 \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*} \frac {\int \frac {1}{x^{3}}\, dx + \int \frac {a \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}}}{x^{2}}\, 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 = 1.84, size = 71, normalized size = 2.03 \begin {gather*} \frac {a\,\ln \left (\sqrt {\frac {1}{a\,x}-1}\,\sqrt {\frac {1}{a\,x}+1}+\frac {1}{a\,x}\right )}{2}-\frac {1}{2\,a\,x^2}-\frac {\sqrt {\frac {1}{a\,x}-1}\,\sqrt {\frac {1}{a\,x}+1}}{2\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________