Optimal. Leaf size=28 \[ -\frac {2 \tanh ^{-1}\left (\frac {\left (x^3+1\right )^{3/2}}{\sqrt {3} x^3}\right )}{3 \sqrt {3}} \]
________________________________________________________________________________________
Rubi [A] time = 0.38, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {6715, 2094, 207} \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\left (x^3+1\right )^{3/2}}{\sqrt {3} x^3}\right )}{3 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 2094
Rule 6715
Rubi steps
\begin {align*} \int \frac {x^2 \left (-2+x^3\right ) \sqrt {1+x^3}}{1+3 x^3+x^9} \, dx &=\frac {1}{3} \operatorname {Subst}\left (\int \frac {(-2+x) \sqrt {1+x}}{1+3 x+x^3} \, dx,x,x^3\right )\\ &=\frac {2}{3} \operatorname {Subst}\left (\int \frac {x^2 \left (-3+x^2\right )}{-3+6 x^2-3 x^4+x^6} \, dx,x,\sqrt {1+x^3}\right )\\ &=2 \operatorname {Subst}\left (\int \frac {1}{-3+9 x^2} \, dx,x,\frac {\left (1+x^3\right )^{3/2}}{3 x^3}\right )\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\left (1+x^3\right )^{3/2}}{\sqrt {3} x^3}\right )}{3 \sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 28, normalized size = 1.00 \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\left (x^3+1\right )^{3/2}}{\sqrt {3} x^3}\right )}{3 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.07, size = 28, normalized size = 1.00 \begin {gather*} -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {3} x^3}{\left (1+x^3\right )^{3/2}}\right )}{3 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 53, normalized size = 1.89 \begin {gather*} \frac {1}{9} \, \sqrt {3} \log \left (\frac {x^{9} + 6 \, x^{6} + 3 \, x^{3} - 2 \, \sqrt {3} {\left (x^{6} + x^{3}\right )} \sqrt {x^{3} + 1} + 1}{x^{9} + 3 \, x^{3} + 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.29, size = 58, normalized size = 2.07 \begin {gather*} -\frac {1}{9} \, \sqrt {3} \log \left ({\left | \sqrt {3} {\left (x^{3} + 1\right )} + {\left (x^{3} + 1\right )}^{\frac {3}{2}} - \sqrt {3} \right |}\right ) + \frac {1}{9} \, \sqrt {3} \log \left ({\left | -\sqrt {3} {\left (x^{3} + 1\right )} + {\left (x^{3} + 1\right )}^{\frac {3}{2}} + \sqrt {3} \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.38, size = 87, normalized size = 3.11
method | result | size |
trager | \(\frac {\RootOf \left (\textit {\_Z}^{2}-3\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}-3\right ) x^{9}+6 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{6}-6 \sqrt {x^{3}+1}\, x^{6}+3 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{3}-6 \sqrt {x^{3}+1}\, x^{3}+\RootOf \left (\textit {\_Z}^{2}-3\right )}{x^{9}+3 x^{3}+1}\right )}{9}\) | \(87\) |
default | \(\frac {\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{9}+3 \textit {\_Z}^{3}+1\right )}{\sum }\frac {\left (-\underline {\hspace {1.25 ex}}\alpha ^{6}+\underline {\hspace {1.25 ex}}\alpha ^{3}-1\right ) \left (-\underline {\hspace {1.25 ex}}\alpha ^{8}+\underline {\hspace {1.25 ex}}\alpha ^{7}-\underline {\hspace {1.25 ex}}\alpha ^{6}+\underline {\hspace {1.25 ex}}\alpha ^{5}-\underline {\hspace {1.25 ex}}\alpha ^{4}+\underline {\hspace {1.25 ex}}\alpha ^{3}-4 \underline {\hspace {1.25 ex}}\alpha ^{2}+4 \underline {\hspace {1.25 ex}}\alpha -4\right ) \left (3-i \sqrt {3}\right ) \sqrt {\frac {1+x}{3-i \sqrt {3}}}\, \sqrt {\frac {-1+2 x -i \sqrt {3}}{-3-i \sqrt {3}}}\, \sqrt {\frac {-1+2 x +i \sqrt {3}}{-3+i \sqrt {3}}}\, \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {\underline {\hspace {1.25 ex}}\alpha ^{8}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{7}}{2}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{6}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{5}}{2}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{4}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{3}}{2}+2 \underline {\hspace {1.25 ex}}\alpha ^{2}-2 \underline {\hspace {1.25 ex}}\alpha +2+\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{7}}{6}-\frac {i \underline {\hspace {1.25 ex}}\alpha ^{4} \sqrt {3}}{6}-\frac {2 i \sqrt {3}}{3}+\frac {i \underline {\hspace {1.25 ex}}\alpha ^{3} \sqrt {3}}{6}-\frac {2 i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{3}-\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{6}}{6}-\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{8}}{6}+\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{5}}{6}+\frac {2 i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha }{3}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\right )}{27}\) | \(298\) |
elliptic | \(\frac {\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{9}+3 \textit {\_Z}^{3}+1\right )}{\sum }\frac {\left (-\underline {\hspace {1.25 ex}}\alpha ^{6}+\underline {\hspace {1.25 ex}}\alpha ^{3}-1\right ) \left (-\underline {\hspace {1.25 ex}}\alpha ^{8}+\underline {\hspace {1.25 ex}}\alpha ^{7}-\underline {\hspace {1.25 ex}}\alpha ^{6}+\underline {\hspace {1.25 ex}}\alpha ^{5}-\underline {\hspace {1.25 ex}}\alpha ^{4}+\underline {\hspace {1.25 ex}}\alpha ^{3}-4 \underline {\hspace {1.25 ex}}\alpha ^{2}+4 \underline {\hspace {1.25 ex}}\alpha -4\right ) \left (3-i \sqrt {3}\right ) \sqrt {\frac {1+x}{3-i \sqrt {3}}}\, \sqrt {\frac {-1+2 x -i \sqrt {3}}{-3-i \sqrt {3}}}\, \sqrt {\frac {-1+2 x +i \sqrt {3}}{-3+i \sqrt {3}}}\, \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {\underline {\hspace {1.25 ex}}\alpha ^{8}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{7}}{2}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{6}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{5}}{2}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{4}}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{3}}{2}+2 \underline {\hspace {1.25 ex}}\alpha ^{2}-2 \underline {\hspace {1.25 ex}}\alpha +2+\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{7}}{6}-\frac {i \underline {\hspace {1.25 ex}}\alpha ^{4} \sqrt {3}}{6}-\frac {2 i \sqrt {3}}{3}+\frac {i \underline {\hspace {1.25 ex}}\alpha ^{3} \sqrt {3}}{6}-\frac {2 i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{3}-\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{6}}{6}-\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{8}}{6}+\frac {i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha ^{5}}{6}+\frac {2 i \sqrt {3}\, \underline {\hspace {1.25 ex}}\alpha }{3}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\right )}{27}\) | \(298\) |
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*} \int \frac {\sqrt {x^{3} + 1} {\left (x^{3} - 2\right )} x^{2}}{x^{9} + 3 \, x^{3} + 1}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.49, size = 236, normalized size = 8.43 \begin {gather*} \sum _{k=1}^9\frac {\sqrt {6}\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {-\left (-3+\sqrt {3}\,1{}\mathrm {i}\right )\,\left (x+1\right )}\,\Pi \left (\frac {3+\sqrt {3}\,1{}\mathrm {i}}{2\,\left (\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )+1\right )};\mathrm {asin}\left (\frac {\sqrt {6}\,\sqrt {-\left (-3+\sqrt {3}\,1{}\mathrm {i}\right )\,\left (x+1\right )}}{6}\right )\middle |\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-{\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )}^6+{\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )}^3+2\right )\,{\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )}^2\,\sqrt {3-3\,x+\sqrt {3}\,x\,1{}\mathrm {i}+\sqrt {3}\,1{}\mathrm {i}}\,\sqrt {3-3\,x-\sqrt {3}\,x\,1{}\mathrm {i}-\sqrt {3}\,1{}\mathrm {i}}}{162\,\left (\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )+1\right )\,\sqrt {x^3+1}\,\left ({\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )}^8+{\mathrm {root}\left (z^9+3\,z^3+1,z,k\right )}^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________