Optimal. Leaf size=87 \[ -\frac {x^2 \sqrt {1-a^2 x^2}}{3 a^2}+\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}-\frac {(16-9 a x) \sqrt {1-a^2 x^2}}{24 a^4}-\frac {3 \text {ArcSin}(a x)}{8 a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6259, 847, 794,
222} \begin {gather*} -\frac {3 \text {ArcSin}(a x)}{8 a^4}-\frac {x^2 \sqrt {1-a^2 x^2}}{3 a^2}+\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}-\frac {(16-9 a x) \sqrt {1-a^2 x^2}}{24 a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 794
Rule 847
Rule 6259
Rubi steps
\begin {align*} \int e^{-\tanh ^{-1}(a x)} x^3 \, dx &=\int \frac {x^3 (1-a x)}{\sqrt {1-a^2 x^2}} \, dx\\ &=\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}-\frac {\int \frac {x^2 \left (3 a-4 a^2 x\right )}{\sqrt {1-a^2 x^2}} \, dx}{4 a^2}\\ &=-\frac {x^2 \sqrt {1-a^2 x^2}}{3 a^2}+\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}+\frac {\int \frac {x \left (8 a^2-9 a^3 x\right )}{\sqrt {1-a^2 x^2}} \, dx}{12 a^4}\\ &=-\frac {x^2 \sqrt {1-a^2 x^2}}{3 a^2}+\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}-\frac {(16-9 a x) \sqrt {1-a^2 x^2}}{24 a^4}-\frac {3 \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx}{8 a^3}\\ &=-\frac {x^2 \sqrt {1-a^2 x^2}}{3 a^2}+\frac {x^3 \sqrt {1-a^2 x^2}}{4 a}-\frac {(16-9 a x) \sqrt {1-a^2 x^2}}{24 a^4}-\frac {3 \sin ^{-1}(a x)}{8 a^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 51, normalized size = 0.59 \begin {gather*} \frac {\sqrt {1-a^2 x^2} \left (-16+9 a x-8 a^2 x^2+6 a^3 x^3\right )-9 \text {ArcSin}(a x)}{24 a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(203\) vs.
\(2(73)=146\).
time = 1.20, size = 204, normalized size = 2.34
method | result | size |
risch | \(-\frac {\left (6 a^{3} x^{3}-8 a^{2} x^{2}+9 a x -16\right ) \left (a^{2} x^{2}-1\right )}{24 a^{4} \sqrt {-a^{2} x^{2}+1}}-\frac {3 \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{8 a^{3} \sqrt {a^{2}}}\) | \(80\) |
default | \(\frac {-\frac {x \left (-a^{2} x^{2}+1\right )^{\frac {3}{2}}}{4 a^{2}}+\frac {\frac {x \sqrt {-a^{2} x^{2}+1}}{2}+\frac {\arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}}}{4 a^{2}}}{a}+\frac {\left (-a^{2} x^{2}+1\right )^{\frac {3}{2}}}{3 a^{4}}+\frac {\frac {x \sqrt {-a^{2} x^{2}+1}}{2}+\frac {\arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}}}{a^{3}}-\frac {\sqrt {-a^{2} \left (x +\frac {1}{a}\right )^{2}+2 a \left (x +\frac {1}{a}\right )}+\frac {a \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} \left (x +\frac {1}{a}\right )^{2}+2 a \left (x +\frac {1}{a}\right )}}\right )}{\sqrt {a^{2}}}}{a^{4}}\) | \(204\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 80, normalized size = 0.92 \begin {gather*} -\frac {{\left (-a^{2} x^{2} + 1\right )}^{\frac {3}{2}} x}{4 \, a^{3}} + \frac {5 \, \sqrt {-a^{2} x^{2} + 1} x}{8 \, a^{3}} + \frac {{\left (-a^{2} x^{2} + 1\right )}^{\frac {3}{2}}}{3 \, a^{4}} - \frac {3 \, \arcsin \left (a x\right )}{8 \, a^{4}} - \frac {\sqrt {-a^{2} x^{2} + 1}}{a^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 65, normalized size = 0.75 \begin {gather*} \frac {{\left (6 \, a^{3} x^{3} - 8 \, a^{2} x^{2} + 9 \, a x - 16\right )} \sqrt {-a^{2} x^{2} + 1} + 18 \, \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right )}{24 \, a^{4}} \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*} \int \frac {x^{3} \sqrt {- \left (a x - 1\right ) \left (a x + 1\right )}}{a x + 1}\, dx \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 = 0.81, size = 97, normalized size = 1.11 \begin {gather*} -\frac {3\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{8\,a^3\,\sqrt {-a^2}}-\frac {\sqrt {1-a^2\,x^2}\,\left (\frac {2}{3\,{\left (-a^2\right )}^{3/2}}-\frac {3\,x\,\sqrt {-a^2}}{8\,a^3}+\frac {a^2\,x^2}{3\,{\left (-a^2\right )}^{3/2}}+\frac {x^3\,{\left (-a^2\right )}^{3/2}}{4\,a^3}\right )}{\sqrt {-a^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________