Optimal. Leaf size=12 \[ -\frac {e^{\text {sech}^{-1}(a x)} x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(26\) vs. \(2(12)=24\).
time = 0.74, antiderivative size = 26, normalized size of antiderivative = 2.17, number of steps
used = 7, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {6857, 266,
6476, 1972, 75} \begin {gather*} -\frac {\sqrt {1-a x}}{a^2 \sqrt {\frac {1}{a x+1}}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 75
Rule 266
Rule 1972
Rule 6476
Rule 6857
Rubi steps
\begin {align*} \int \frac {x \left (-1+a e^{\text {sech}^{-1}(a x)} x\right )}{1-a^2 x^2} \, dx &=\int \left (\frac {x}{-1+a^2 x^2}-\frac {a e^{\text {sech}^{-1}(a x)} x^2}{-1+a^2 x^2}\right ) \, dx\\ &=-\left (a \int \frac {e^{\text {sech}^{-1}(a x)} x^2}{-1+a^2 x^2} \, dx\right )+\int \frac {x}{-1+a^2 x^2} \, dx\\ &=\frac {\log \left (1-a^2 x^2\right )}{2 a^2}+\int \frac {x \sqrt {\frac {1}{1+a x}}}{\sqrt {1-a x}} \, dx-\int \frac {x}{-1+a^2 x^2} \, dx\\ &=\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {x}{\sqrt {1-a x} \sqrt {1+a x}} \, dx\\ &=-\frac {\sqrt {1-a x}}{a^2 \sqrt {\frac {1}{1+a x}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(28\) vs. \(2(12)=24\).
time = 0.17, size = 28, normalized size = 2.33 \begin {gather*} -\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x)}{a^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 36, normalized size = 3.00
method | result | size |
gosper | \(-\frac {x \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{a}\) | \(36\) |
default | \(-\frac {x \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{a}\) | \(36\) |
risch | \(-\frac {x \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{a}\) | \(36\) |
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.51, size = 35, normalized size = 2.92 \begin {gather*} -\frac {x \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}}}{a} \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 {x^{2} \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}}}{a^{2} x^{2} - 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 = 2.96, size = 76, normalized size = 6.33 \begin {gather*} \frac {\ln \left (\frac {1}{x}\right )}{a^2}-\frac {\ln \left (a+\frac {1}{x}\right )}{2\,a^2}-\frac {\ln \left (\frac {1}{x}-a\right )}{2\,a^2}+\frac {\ln \left (a^2\,x^2-1\right )}{2\,a^2}-\frac {x\,\sqrt {\frac {1}{a\,x}-1}\,\sqrt {\frac {1}{a\,x}+1}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________