Optimal. Leaf size=330 \[ \frac {\left (x^2-1\right )^{2/3} \left (x^2+1\right )^{4/3} \left (\frac {1}{12} \sqrt [3]{x^2-1} \left (3 \left (x^2+1\right )^{5/3}-2 \left (x^2+1\right )^{2/3}\right )+\frac {1}{2} \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}+\frac {1}{18} \log \left (\sqrt [3]{x^2-1}-\sqrt [3]{x^2+1}\right )-\frac {1}{2} \log \left (\sqrt [3]{x^2-1}+\sqrt [3]{x^2+1}\right )+\frac {1}{4} \log \left (\left (x^2-1\right )^{2/3}-\sqrt [3]{x^2+1} \sqrt [3]{x^2-1}+\left (x^2+1\right )^{2/3}\right )-\frac {1}{36} \log \left (\left (x^2-1\right )^{2/3}+\sqrt [3]{x^2+1} \sqrt [3]{x^2-1}+\left (x^2+1\right )^{2/3}\right )+\frac {1}{2} \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{x^2+1}}{2 \sqrt [3]{x^2-1}-\sqrt [3]{x^2+1}}\right )+\frac {\tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{x^2+1}}{2 \sqrt [3]{x^2-1}+\sqrt [3]{x^2+1}}\right )}{6 \sqrt {3}}\right )}{\left (\left (x^2-1\right ) \left (x^2+1\right )^2\right )^{2/3}} \]
________________________________________________________________________________________
Rubi [A] time = 0.55, antiderivative size = 488, normalized size of antiderivative = 1.48, number of steps used = 9, number of rules used = 7, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.269, Rules used = {6719, 101, 157, 50, 59, 105, 91} \begin {gather*} \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}}-\frac {\sqrt {3} \sqrt [3]{x^6+x^4-x^2-1} \tan ^{-1}\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} \sqrt [3]{x^6+x^4-x^2-1} \tan ^{-1}\left (\frac {2 \sqrt [3]{x^2+1}}{\sqrt {3} \sqrt [3]{x^2-1}}+\frac {1}{\sqrt {3}}\right )}{2 \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}}-\frac {4 \sqrt [3]{x^6+x^4-x^2-1} \tan ^{-1}\left (\frac {2 \sqrt [3]{x^2+1}}{\sqrt {3} \sqrt [3]{x^2-1}}+\frac {1}{\sqrt {3}}\right )}{3 \sqrt {3} \sqrt [3]{x^2-1} \left (x^2+1\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 59
Rule 91
Rule 101
Rule 105
Rule 157
Rule 6719
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} \operatorname {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} \operatorname {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} \operatorname {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} \operatorname {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} \operatorname {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 ) \operatorname {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} \operatorname {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} \operatorname {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 [C] time = 0.11, size = 188, normalized size = 0.57 \begin {gather*} -\frac {3 \sqrt [3]{\left (x^2-1\right ) \left (x^2+1\right )^2} \left (2^{2/3} x^2 \, _2F_1\left (\frac {1}{3},\frac {1}{3};\frac {4}{3};\frac {1}{2} \left (1-x^2\right )\right )-4\ 2^{2/3} \left (x^2+1\right ) \, _2F_1\left (-\frac {5}{3},\frac {1}{3};\frac {4}{3};\frac {1}{2} \left (1-x^2\right )\right )+2\ 2^{2/3} \left (x^2+1\right ) \, _2F_1\left (-\frac {2}{3},\frac {1}{3};\frac {4}{3};\frac {1}{2} \left (1-x^2\right )\right )+2^{2/3} \, _2F_1\left (\frac {1}{3},\frac {1}{3};\frac {4}{3};\frac {1}{2} \left (1-x^2\right )\right )+2 \left (x^2+1\right )^{2/3} \, _2F_1\left (\frac {1}{3},1;\frac {4}{3};\frac {1-x^2}{x^2+1}\right )\right )}{4 \left (x^2+1\right )^{5/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 8.00, size = 308, normalized size = 0.93 \begin {gather*} \frac {\left (x^2-1\right )^{2/3} \left (x^2+1\right )^{4/3} \left (\frac {1}{12} \sqrt [3]{x^2-1} \left (3 \left (x^2+1\right )^{5/3}+4 \left (x^2+1\right )^{2/3}\right )+\frac {1}{18} \log \left (\sqrt [3]{x^2-1}-\sqrt [3]{x^2+1}\right )-\frac {1}{2} \log \left (\sqrt [3]{x^2-1}+\sqrt [3]{x^2+1}\right )+\frac {1}{4} \log \left (\left (x^2-1\right )^{2/3}-\sqrt [3]{x^2+1} \sqrt [3]{x^2-1}+\left (x^2+1\right )^{2/3}\right )-\frac {1}{36} \log \left (\left (x^2-1\right )^{2/3}+\sqrt [3]{x^2+1} \sqrt [3]{x^2-1}+\left (x^2+1\right )^{2/3}\right )+\frac {1}{2} \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{x^2+1}}{2 \sqrt [3]{x^2-1}-\sqrt [3]{x^2+1}}\right )+\frac {\tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{x^2+1}}{2 \sqrt [3]{x^2-1}+\sqrt [3]{x^2+1}}\right )}{6 \sqrt {3}}\right )}{\left (\left (x^2-1\right ) \left (x^2+1\right )^2\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, 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]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )}}{x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 49.13, size = 6304, normalized size = 19.10 \begin {gather*} \text {output too large to display} \end {gather*}
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 (x^{6} + x^{4} - x^{2} - 1\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )}}{x}\,{d x} \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]
________________________________________________________________________________________
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]
________________________________________________________________________________________