Optimal. Leaf size=330 \[ \frac {\left (-1+x^2\right )^{2/3} \left (1+x^2\right )^{4/3} \left (\frac {1}{2} \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}+\frac {1}{12} \sqrt [3]{-1+x^2} \left (-2 \left (1+x^2\right )^{2/3}+3 \left (1+x^2\right )^{5/3}\right )+\frac {1}{2} \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{1+x^2}}{2 \sqrt [3]{-1+x^2}-\sqrt [3]{1+x^2}}\right )+\frac {\text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{1+x^2}}{2 \sqrt [3]{-1+x^2}+\sqrt [3]{1+x^2}}\right )}{6 \sqrt {3}}+\frac {1}{18} \log \left (\sqrt [3]{-1+x^2}-\sqrt [3]{1+x^2}\right )-\frac {1}{2} \log \left (\sqrt [3]{-1+x^2}+\sqrt [3]{1+x^2}\right )+\frac {1}{4} \log \left (\left (-1+x^2\right )^{2/3}-\sqrt [3]{-1+x^2} \sqrt [3]{1+x^2}+\left (1+x^2\right )^{2/3}\right )-\frac {1}{36} \log \left (\left (-1+x^2\right )^{2/3}+\sqrt [3]{-1+x^2} \sqrt [3]{1+x^2}+\left (1+x^2\right )^{2/3}\right )\right )}{\left (\left (-1+x^2\right ) \left (1+x^2\right )^2\right )^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 412, normalized size of antiderivative = 1.25, number of steps
used = 7, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {6851, 103, 161,
93, 81, 61} \begin {gather*} -\frac {\sqrt {3} \sqrt [3]{x^6+x^4-x^2-1} \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{x^2+1}}{\sqrt {3} \sqrt [3]{x^2-1}}\right )}{2 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}+\frac {\sqrt [3]{x^6+x^4-x^2-1} \text {ArcTan}\left (\frac {2 \sqrt [3]{x^2+1}}{\sqrt {3} \sqrt [3]{x^2-1}}+\frac {1}{\sqrt {3}}\right )}{6 \sqrt {3} \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}+\frac {1}{4} \sqrt [3]{x^6+x^4-x^2-1} \left (x^2+1\right )+\frac {1}{3} \sqrt [3]{x^6+x^4-x^2-1}+\frac {\sqrt [3]{x^6+x^4-x^2-1} \log \left (x^2\right )}{4 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}+\frac {\sqrt [3]{x^6+x^4-x^2-1} \log \left (x^2-1\right )}{36 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}-\frac {3 \sqrt [3]{x^6+x^4-x^2-1} \log \left (-\sqrt [3]{x^2-1}-\sqrt [3]{x^2+1}\right )}{4 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}+\frac {\sqrt [3]{x^6+x^4-x^2-1} \log \left (\frac {\sqrt [3]{x^2+1}}{\sqrt [3]{x^2-1}}-1\right )}{12 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 61
Rule 81
Rule 93
Rule 103
Rule 161
Rule 6851
Rubi steps
\begin {align*} \int \frac {\left (1+x^2\right ) \sqrt [3]{-1-x^2+x^4+x^6}}{x} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(1+x) \sqrt [3]{(-1+x) (1+x)^2}}{x} \, dx,x,x^2\right )\\ &=\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {\sqrt [3]{-1+x} (1+x)^{5/3}}{x} \, dx,x,x^2\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}\\ &=\frac {1}{4} \left (1+x^2\right ) \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}-\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {\left (2-\frac {4 x}{3}\right ) (1+x)^{2/3}}{(-1+x)^{2/3} x} \, dx,x,x^2\right )}{4 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}\\ &=\frac {1}{4} \left (1+x^2\right ) \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}+\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {(1+x)^{2/3}}{(-1+x)^{2/3}} \, dx,x,x^2\right )}{3 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}-\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {(1+x)^{2/3}}{(-1+x)^{2/3} x} \, dx,x,x^2\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}\\ &=\frac {1}{3} \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}+\frac {1}{4} \left (1+x^2\right ) \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}+\frac {\left (4 \sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2}\right ) \text {Subst}\left (\int \frac {1}{(-1+x)^{2/3} \sqrt [3]{1+x}} \, dx,x,x^2\right )}{9 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}-\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {1}{(-1+x)^{2/3} \sqrt [3]{1+x}} \, dx,x,x^2\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}-\frac {\sqrt [3]{\left (-1+x^2\right ) \left (1+x^2\right )^2} \text {Subst}\left (\int \frac {1}{(-1+x)^{2/3} x \sqrt [3]{1+x}} \, dx,x,x^2\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}\\ &=\frac {1}{3} \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}+\frac {1}{4} \left (1+x^2\right ) \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )}-\frac {\sqrt {3} \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1+x^2}}{\sqrt {3} \sqrt [3]{-1+x^2}}\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}-\frac {4 \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{1+x^2}}{\sqrt {3} \sqrt [3]{-1+x^2}}\right )}{3 \sqrt {3} \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}+\frac {\sqrt {3} \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{1+x^2}}{\sqrt {3} \sqrt [3]{-1+x^2}}\right )}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}+\frac {\sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \log (x)}{2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}+\frac {\sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \log \left (1-x^2\right )}{36 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}-\frac {3 \sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \log \left (\sqrt [3]{-1+x^2}+\sqrt [3]{1+x^2}\right )}{4 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}+\frac {\sqrt [3]{-\left (\left (1-x^2\right ) \left (1+x^2\right )^2\right )} \log \left (1-\frac {\sqrt [3]{1+x^2}}{\sqrt [3]{-1+x^2}}\right )}{12 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.93, size = 306, normalized size = 0.93 \begin {gather*} \frac {\left (-1+x^2\right )^{2/3} \left (1+x^2\right )^{4/3} \left (21 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}+9 x^2 \sqrt [3]{-1+x^2} \left (1+x^2\right )^{2/3}+18 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{1+x^2}}{2 \sqrt [3]{-1+x^2}-\sqrt [3]{1+x^2}}\right )+2 \sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{1+x^2}}{2 \sqrt [3]{-1+x^2}+\sqrt [3]{1+x^2}}\right )+2 \log \left (\sqrt [3]{-1+x^2}-\sqrt [3]{1+x^2}\right )-18 \log \left (\sqrt [3]{-1+x^2}+\sqrt [3]{1+x^2}\right )+9 \log \left (\left (-1+x^2\right )^{2/3}-\sqrt [3]{-1+x^2} \sqrt [3]{1+x^2}+\left (1+x^2\right )^{2/3}\right )-\log \left (\left (-1+x^2\right )^{2/3}+\sqrt [3]{-1+x^2} \sqrt [3]{1+x^2}+\left (1+x^2\right )^{2/3}\right )\right )}{36 \left (\left (-1+x^2\right ) \left (1+x^2\right )^2\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 71.96, size = 6693, normalized size = 20.28
method | result | size |
trager | \(\text {Expression too large to display}\) | \(6693\) |
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.51, size = 305, normalized size = 0.92 \begin {gather*} -\frac {1}{18} \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (x^{2} + 1\right )} + 2 \, \sqrt {3} {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}}}{3 \, {\left (x^{2} + 1\right )}}\right ) - \frac {1}{2} \, \sqrt {3} \arctan \left (-\frac {\sqrt {3} {\left (x^{2} + 1\right )} - 2 \, \sqrt {3} {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}}}{3 \, {\left (x^{2} + 1\right )}}\right ) + \frac {1}{12} \, {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} {\left (3 \, x^{2} + 7\right )} - \frac {1}{36} \, \log \left (\frac {x^{4} + 2 \, x^{2} + {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )} + {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {2}{3}} + 1}{x^{4} + 2 \, x^{2} + 1}\right ) + \frac {1}{4} \, \log \left (\frac {x^{4} + 2 \, x^{2} - {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )} + {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {2}{3}} + 1}{x^{4} + 2 \, x^{2} + 1}\right ) - \frac {1}{2} \, \log \left (\frac {x^{2} + {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} + 1}{x^{2} + 1}\right ) + \frac {1}{18} \, \log \left (-\frac {x^{2} - {\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} + 1}{x^{2} + 1}\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 \frac {\sqrt [3]{\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )^{2}} \left (x^{2} + 1\right )}{x}\, dx \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.00 \begin {gather*} \int \frac {\left (x^2+1\right )\,{\left (x^6+x^4-x^2-1\right )}^{1/3}}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________