Optimal. Leaf size=43 \[ \frac {2 \sqrt {x^3+1} \left (2 x^3-3 x^2+2\right )}{3 x^3}-2 \tan ^{-1}\left (\frac {x}{\sqrt {x^3+1}}\right ) \]
________________________________________________________________________________________
Rubi [F] time = 0.96, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {\left (-2+x^3\right ) \sqrt {1+x^3} \left (2+x^2+2 x^3\right )}{x^4 \left (1+x^2+x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (-2+x^3\right ) \sqrt {1+x^3} \left (2+x^2+2 x^3\right )}{x^4 \left (1+x^2+x^3\right )} \, dx &=\int \left (-\frac {4 \sqrt {1+x^3}}{x^4}+\frac {2 \sqrt {1+x^3}}{x^2}+\frac {2 \sqrt {1+x^3}}{x}+\frac {(-2-3 x) \sqrt {1+x^3}}{1+x^2+x^3}\right ) \, dx\\ &=2 \int \frac {\sqrt {1+x^3}}{x^2} \, dx+2 \int \frac {\sqrt {1+x^3}}{x} \, dx-4 \int \frac {\sqrt {1+x^3}}{x^4} \, dx+\int \frac {(-2-3 x) \sqrt {1+x^3}}{1+x^2+x^3} \, dx\\ &=-\frac {2 \sqrt {1+x^3}}{x}+\frac {2}{3} \operatorname {Subst}\left (\int \frac {\sqrt {1+x}}{x} \, dx,x,x^3\right )-\frac {4}{3} \operatorname {Subst}\left (\int \frac {\sqrt {1+x}}{x^2} \, dx,x,x^3\right )+3 \int \frac {x}{\sqrt {1+x^3}} \, dx+\int \left (-\frac {2 \sqrt {1+x^3}}{1+x^2+x^3}-\frac {3 x \sqrt {1+x^3}}{1+x^2+x^3}\right ) \, dx\\ &=\frac {4 \sqrt {1+x^3}}{3}+\frac {4 \sqrt {1+x^3}}{3 x^3}-\frac {2 \sqrt {1+x^3}}{x}-2 \int \frac {\sqrt {1+x^3}}{1+x^2+x^3} \, dx+3 \int \frac {1-\sqrt {3}+x}{\sqrt {1+x^3}} \, dx-3 \int \frac {x \sqrt {1+x^3}}{1+x^2+x^3} \, dx+\left (3 \sqrt {2 \left (2-\sqrt {3}\right )}\right ) \int \frac {1}{\sqrt {1+x^3}} \, dx\\ &=\frac {4 \sqrt {1+x^3}}{3}+\frac {4 \sqrt {1+x^3}}{3 x^3}-\frac {2 \sqrt {1+x^3}}{x}+\frac {6 \sqrt {1+x^3}}{1+\sqrt {3}+x}-\frac {3 \sqrt [4]{3} \sqrt {2-\sqrt {3}} (1+x) \sqrt {\frac {1-x+x^2}{\left (1+\sqrt {3}+x\right )^2}} E\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+x}{1+\sqrt {3}+x}\right )|-7-4 \sqrt {3}\right )}{\sqrt {\frac {1+x}{\left (1+\sqrt {3}+x\right )^2}} \sqrt {1+x^3}}+\frac {2 \sqrt {2} 3^{3/4} (1+x) \sqrt {\frac {1-x+x^2}{\left (1+\sqrt {3}+x\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+x}{1+\sqrt {3}+x}\right )|-7-4 \sqrt {3}\right )}{\sqrt {\frac {1+x}{\left (1+\sqrt {3}+x\right )^2}} \sqrt {1+x^3}}-2 \int \frac {\sqrt {1+x^3}}{1+x^2+x^3} \, dx-3 \int \frac {x \sqrt {1+x^3}}{1+x^2+x^3} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.18, size = 1638, normalized size = 38.09
result too large to display
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.60, size = 43, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {1+x^3} \left (2-3 x^2+2 x^3\right )}{3 x^3}-2 \tan ^{-1}\left (\frac {x}{\sqrt {1+x^3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 55, normalized size = 1.28 \begin {gather*} -\frac {3 \, x^{3} \arctan \left (\frac {2 \, \sqrt {x^{3} + 1} x}{x^{3} - x^{2} + 1}\right ) - 2 \, {\left (2 \, x^{3} - 3 \, x^{2} + 2\right )} \sqrt {x^{3} + 1}}{3 \, x^{3}} \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*} \int \frac {{\left (2 \, x^{3} + x^{2} + 2\right )} \sqrt {x^{3} + 1} {\left (x^{3} - 2\right )}}{{\left (x^{3} + x^{2} + 1\right )} x^{4}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.46, size = 84, normalized size = 1.95
method | result | size |
trager | \(\frac {2 \sqrt {x^{3}+1}\, \left (2 x^{3}-3 x^{2}+2\right )}{3 x^{3}}-\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{3}-\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{2}+2 x \sqrt {x^{3}+1}+\RootOf \left (\textit {\_Z}^{2}+1\right )}{x^{3}+x^{2}+1}\right )\) | \(84\) |
default | \(\frac {4 \sqrt {x^{3}+1}}{3}+\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticF \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}+\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{3}+\textit {\_Z}^{2}+1\right )}{\sum }\frac {\underline {\hspace {1.25 ex}}\alpha ^{3} \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 {3 \underline {\hspace {1.25 ex}}\alpha ^{2}}{2}+\frac {i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{2}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\right )+\frac {4 \sqrt {x^{3}+1}}{3 x^{3}}-\frac {2 \sqrt {x^{3}+1}}{x}\) | \(302\) |
elliptic | \(\frac {4 \sqrt {x^{3}+1}}{3}+\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticF \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}+\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{3}+\textit {\_Z}^{2}+1\right )}{\sum }\frac {\underline {\hspace {1.25 ex}}\alpha ^{3} \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 {3 \underline {\hspace {1.25 ex}}\alpha ^{2}}{2}+\frac {i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{2}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\right )+\frac {4 \sqrt {x^{3}+1}}{3 x^{3}}-\frac {2 \sqrt {x^{3}+1}}{x}\) | \(302\) |
risch | \(\frac {-2 x^{5}-2 x^{2}+\frac {8}{3} x^{3}+\frac {4}{3}+\frac {4}{3} x^{6}}{\sqrt {x^{3}+1}\, x^{3}}+\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticF \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}+\sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\RootOf \left (\textit {\_Z}^{3}+\textit {\_Z}^{2}+1\right )}{\sum }\frac {\underline {\hspace {1.25 ex}}\alpha ^{3} \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 {3 \underline {\hspace {1.25 ex}}\alpha ^{2}}{2}+\frac {i \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}}{2}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\right )\) | \(303\) |
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 {{\left (2 \, x^{3} + x^{2} + 2\right )} \sqrt {x^{3} + 1} {\left (x^{3} - 2\right )}}{{\left (x^{3} + x^{2} + 1\right )} x^{4}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.31, size = 70, normalized size = 1.63 \begin {gather*} \frac {4\,\sqrt {x^3+1}}{3}-\frac {2\,\sqrt {x^3+1}}{x}+\frac {4\,\sqrt {x^3+1}}{3\,x^3}+\ln \left (\frac {x^3-x^2+1+x\,\sqrt {x^3+1}\,2{}\mathrm {i}}{x^3+x^2+1}\right )\,1{}\mathrm {i} \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]
________________________________________________________________________________________