Optimal. Leaf size=93 \[ -\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\frac {\text {ArcTan}\left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{1+x^3}}\right )}{\sqrt {3}}-\frac {1}{3} \log \left (-x+\sqrt [3]{1+x^3}\right )+\frac {1}{6} \log \left (x^2+x \sqrt [3]{1+x^3}+\left (1+x^3\right )^{2/3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 62, normalized size of antiderivative = 0.67, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {283, 245}
\begin {gather*} \frac {\text {ArcTan}\left (\frac {\frac {2 x}{\sqrt [3]{x^3+1}}+1}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{2} \log \left (\sqrt [3]{x^3+1}-x\right )-\frac {\left (x^3+1\right )^{2/3}}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 245
Rule 283
Rubi steps
\begin {align*} \int \frac {\left (1+x^3\right )^{2/3}}{x^3} \, dx &=-\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\int \frac {1}{\sqrt [3]{1+x^3}} \, dx\\ &=-\frac {\left (1+x^3\right )^{2/3}}{2 x^2}+\frac {\tan ^{-1}\left (\frac {1+\frac {2 x}{\sqrt [3]{1+x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{2} \log \left (-x+\sqrt [3]{1+x^3}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 90, normalized size = 0.97 \begin {gather*} \frac {1}{6} \left (-\frac {3 \left (1+x^3\right )^{2/3}}{x^2}+2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{1+x^3}}\right )-2 \log \left (-x+\sqrt [3]{1+x^3}\right )+\log \left (x^2+x \sqrt [3]{1+x^3}+\left (1+x^3\right )^{2/3}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 5 vs. order
3.
time = 1.74, size = 17, normalized size = 0.18
method | result | size |
meijerg | \(-\frac {\hypergeom \left (\left [-\frac {2}{3}, -\frac {2}{3}\right ], \left [\frac {1}{3}\right ], -x^{3}\right )}{2 x^{2}}\) | \(17\) |
risch | \(-\frac {\left (x^{3}+1\right )^{\frac {2}{3}}}{2 x^{2}}+x \hypergeom \left (\left [\frac {1}{3}, \frac {1}{3}\right ], \left [\frac {4}{3}\right ], -x^{3}\right )\) | \(27\) |
trager | \(-\frac {\left (x^{3}+1\right )^{\frac {2}{3}}}{2 x^{2}}-\frac {\ln \left (317 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x^{3}-555 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}+1\right )^{\frac {2}{3}} x +2358 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}+1\right )^{\frac {1}{3}} x^{2}-2120 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x^{3}-1803 x \left (x^{3}+1\right )^{\frac {2}{3}}-555 x^{2} \left (x^{3}+1\right )^{\frac {1}{3}}+2675 x^{3}-317 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2}-99 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )+1070\right )}{3}+\frac {\RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \ln \left (-535 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2} x^{3}+555 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}+1\right )^{\frac {2}{3}} x +1803 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) \left (x^{3}+1\right )^{\frac {1}{3}} x^{2}-1823 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right ) x^{3}-2358 x \left (x^{3}+1\right )^{\frac {2}{3}}+555 x^{2} \left (x^{3}+1\right )^{\frac {1}{3}}+1268 x^{3}+535 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )^{2}-1922 \RootOf \left (\textit {\_Z}^{2}-\textit {\_Z} +1\right )+951\right )}{3}\) | \(275\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 81, normalized size = 0.87 \begin {gather*} -\frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (\frac {2 \, {\left (x^{3} + 1\right )}^{\frac {1}{3}}}{x} + 1\right )}\right ) - \frac {{\left (x^{3} + 1\right )}^{\frac {2}{3}}}{2 \, x^{2}} + \frac {1}{6} \, \log \left (\frac {{\left (x^{3} + 1\right )}^{\frac {1}{3}}}{x} + \frac {{\left (x^{3} + 1\right )}^{\frac {2}{3}}}{x^{2}} + 1\right ) - \frac {1}{3} \, \log \left (\frac {{\left (x^{3} + 1\right )}^{\frac {1}{3}}}{x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.55, size = 105, normalized size = 1.13 \begin {gather*} \frac {2 \, \sqrt {3} x^{2} \arctan \left (-\frac {25382 \, \sqrt {3} {\left (x^{3} + 1\right )}^{\frac {1}{3}} x^{2} - 13720 \, \sqrt {3} {\left (x^{3} + 1\right )}^{\frac {2}{3}} x + \sqrt {3} {\left (5831 \, x^{3} + 7200\right )}}{58653 \, x^{3} + 8000}\right ) - x^{2} \log \left (3 \, {\left (x^{3} + 1\right )}^{\frac {1}{3}} x^{2} - 3 \, {\left (x^{3} + 1\right )}^{\frac {2}{3}} x + 1\right ) - 3 \, {\left (x^{3} + 1\right )}^{\frac {2}{3}}}{6 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.52, size = 34, normalized size = 0.37 \begin {gather*} \frac {\Gamma \left (- \frac {2}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, - \frac {2}{3} \\ \frac {1}{3} \end {matrix}\middle | {x^{3} e^{i \pi }} \right )}}{3 x^{2} \Gamma \left (\frac {1}{3}\right )} \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*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (x^3+1\right )}^{2/3}}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________