Optimal. Leaf size=53 \[ \frac {1}{3} \sqrt {\frac {1-x^3}{1+x^3}} \left (1+x^3\right )-\frac {2}{3} \tan ^{-1}\left (\sqrt {\frac {1-x^3}{1+x^3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {1981, 1979,
294, 210} \begin {gather*} \frac {1}{3} \sqrt {\frac {1-x^3}{x^3+1}} \left (x^3+1\right )-\frac {2}{3} \text {ArcTan}\left (\sqrt {\frac {1-x^3}{x^3+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 294
Rule 1979
Rule 1981
Rubi steps
\begin {align*} \int x^2 \sqrt {\frac {1-x^3}{1+x^3}} \, dx &=-\left (\frac {4}{3} \text {Subst}\left (\int \frac {x^2}{\left (-1-x^2\right )^2} \, dx,x,\sqrt {\frac {1-x^3}{1+x^3}}\right )\right )\\ &=\frac {1}{3} \sqrt {\frac {1-x^3}{1+x^3}} \left (1+x^3\right )+\frac {2}{3} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,\sqrt {\frac {1-x^3}{1+x^3}}\right )\\ &=\frac {1}{3} \sqrt {\frac {1-x^3}{1+x^3}} \left (1+x^3\right )-\frac {2}{3} \tan ^{-1}\left (\sqrt {\frac {1-x^3}{1+x^3}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 85, normalized size = 1.60 \begin {gather*} \frac {\sqrt {\frac {1-x^3}{1+x^3}} \left (\sqrt {1-x^3} \left (1+x^3\right )-2 \sqrt {1+x^3} \tan ^{-1}\left (\frac {\sqrt {1-x^3}}{\sqrt {1+x^3}}\right )\right )}{3 \sqrt {1-x^3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 68, normalized size = 1.28
method | result | size |
risch | \(\frac {\left (x^{3}+1\right ) \sqrt {-\frac {x^{3}-1}{x^{3}+1}}}{3}-\frac {\arcsin \left (x^{3}\right ) \sqrt {-\frac {x^{3}-1}{x^{3}+1}}\, \sqrt {-\left (x^{3}-1\right ) \left (x^{3}+1\right )}}{3 \left (x^{3}-1\right )}\) | \(68\) |
trager | \(\left (\frac {x^{3}}{3}+\frac {1}{3}\right ) \sqrt {-\frac {x^{3}-1}{x^{3}+1}}+\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-\frac {x^{3}-1}{x^{3}+1}}\, x^{3}+x^{3}+\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-\frac {x^{3}-1}{x^{3}+1}}\right )}{3}\) | \(88\) |
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.35, size = 55, normalized size = 1.04 \begin {gather*} \frac {1}{3} \, {\left (x^{3} + 1\right )} \sqrt {-\frac {x^{3} - 1}{x^{3} + 1}} - \frac {2}{3} \, \arctan \left (\frac {{\left (x^{3} + 1\right )} \sqrt {-\frac {x^{3} - 1}{x^{3} + 1}} - 1}{x^{3}}\right ) \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 x^{2} \sqrt {- \frac {\left (x - 1\right ) \left (x^{2} + x + 1\right )}{x^{3} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.52, size = 22, normalized size = 0.42 \begin {gather*} \frac {1}{3} \, {\left (\sqrt {-x^{6} + 1} + \arcsin \left (x^{3}\right )\right )} \mathrm {sgn}\left (x^{3} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.67, size = 56, normalized size = 1.06 \begin {gather*} -\frac {2\,\mathrm {atan}\left (\sqrt {-\frac {x^3-1}{x^3+1}}\right )}{3}-\frac {2\,\sqrt {-\frac {x^3-1}{x^3+1}}}{\frac {3\,\left (x^3-1\right )}{x^3+1}-3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________