Optimal. Leaf size=38 \[ -\frac {e^{\text {sech}^{-1}(a x)} x}{3 a^2}+\frac {x^2}{6 a}+\frac {1}{3} e^{\text {sech}^{-1}(a x)} x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 52, normalized size of antiderivative = 1.37, number of steps
used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {6470, 30, 75}
\begin {gather*} -\frac {\sqrt {1-a x}}{3 a^3 \sqrt {\frac {1}{a x+1}}}+\frac {1}{3} x^3 e^{\text {sech}^{-1}(a x)}+\frac {x^2}{6 a} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 30
Rule 75
Rule 6470
Rubi steps
\begin {align*} \int e^{\text {sech}^{-1}(a x)} x^2 \, dx &=\frac {1}{3} e^{\text {sech}^{-1}(a x)} x^3+\frac {\int x \, dx}{3 a}+\frac {\left (\sqrt {\frac {1}{1+a x}} \sqrt {1+a x}\right ) \int \frac {x}{\sqrt {1-a x} \sqrt {1+a x}} \, dx}{3 a}\\ &=\frac {x^2}{6 a}+\frac {1}{3} e^{\text {sech}^{-1}(a x)} x^3-\frac {\sqrt {1-a x}}{3 a^3 \sqrt {\frac {1}{1+a x}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 48, normalized size = 1.26 \begin {gather*} \frac {3 a^2 x^2+2 (-1+a x) \sqrt {\frac {1-a x}{1+a x}} (1+a x)^2}{6 a^3} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 54, normalized size = 1.42
method | result | size |
default | \(\frac {\sqrt {\frac {a x +1}{a x}}\, x \sqrt {-\frac {a x -1}{a x}}\, \left (a^{2} x^{2}-1\right )}{3 a^{2}}+\frac {x^{2}}{2 a}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 38, normalized size = 1.00 \begin {gather*} \frac {x^{2}}{2 \, a} + \frac {{\left (a^{2} x^{2} - 1\right )} \sqrt {a x + 1} \sqrt {-a x + 1}}{3 \, a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 54, normalized size = 1.42 \begin {gather*} \frac {3 \, a x^{2} + 2 \, {\left (a^{2} x^{3} - x\right )} \sqrt {\frac {a x + 1}{a x}} \sqrt {-\frac {a x - 1}{a x}}}{6 \, a^{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 x\, dx + \int a x^{2} \sqrt {-1 + \frac {1}{a x}} \sqrt {1 + \frac {1}{a x}}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.43, size = 55, normalized size = 1.45 \begin {gather*} \sqrt {\frac {1}{a\,x}-1}\,\left (\frac {x^3\,\sqrt {\frac {1}{a\,x}+1}}{3}-\frac {x\,\sqrt {\frac {1}{a\,x}+1}}{3\,a^2}\right )+\frac {x^2}{2\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________