Optimal. Leaf size=133 \[ \frac {\log \left (\sqrt [3]{2} \sqrt [3]{x^6+1}-x\right )}{6\ 2^{2/3}}-\frac {\tan ^{-1}\left (\frac {\sqrt {3} x}{2 \sqrt [3]{2} \sqrt [3]{x^6+1}+x}\right )}{2\ 2^{2/3} \sqrt {3}}+\frac {\left (x^6+1\right )^{2/3}}{4 x^2}-\frac {\log \left (\sqrt [3]{2} \sqrt [3]{x^6+1} x+2^{2/3} \left (x^6+1\right )^{2/3}+x^2\right )}{12\ 2^{2/3}} \]
________________________________________________________________________________________
Rubi [C] time = 0.89, antiderivative size = 241, normalized size of antiderivative = 1.81, number of steps used = 16, number of rules used = 7, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.219, Rules used = {6728, 275, 364, 1438, 429, 465, 510} \begin {gather*} \frac {\left (-\sqrt {15}+i\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7-i \sqrt {15}},-x^6\right )}{\sqrt {15}+7 i}+\frac {\left (\sqrt {15}+i\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7+i \sqrt {15}},-x^6\right )}{-\sqrt {15}+7 i}+\frac {x^4 F_1\left (\frac {2}{3};-\frac {2}{3},1;\frac {5}{3};-x^6,-\frac {8 x^6}{7-i \sqrt {15}}\right )}{7-i \sqrt {15}}+\frac {x^4 F_1\left (\frac {2}{3};-\frac {2}{3},1;\frac {5}{3};-x^6,-\frac {8 x^6}{7+i \sqrt {15}}\right )}{7+i \sqrt {15}}+\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 275
Rule 364
Rule 429
Rule 465
Rule 510
Rule 1438
Rule 6728
Rubi steps
\begin {align*} \int \frac {\left (-1+x^6\right ) \left (1+x^6\right )^{2/3}}{x^3 \left (2-x^3+2 x^6\right )} \, dx &=\int \left (-\frac {\left (1+x^6\right )^{2/3}}{2 x^3}+\frac {\left (-1+4 x^3\right ) \left (1+x^6\right )^{2/3}}{2 \left (2-x^3+2 x^6\right )}\right ) \, dx\\ &=-\left (\frac {1}{2} \int \frac {\left (1+x^6\right )^{2/3}}{x^3} \, dx\right )+\frac {1}{2} \int \frac {\left (-1+4 x^3\right ) \left (1+x^6\right )^{2/3}}{2-x^3+2 x^6} \, dx\\ &=-\left (\frac {1}{4} \operatorname {Subst}\left (\int \frac {\left (1+x^3\right )^{2/3}}{x^2} \, dx,x,x^2\right )\right )+\frac {1}{2} \int \left (\frac {4 \left (1+x^6\right )^{2/3}}{-1-i \sqrt {15}+4 x^3}+\frac {4 \left (1+x^6\right )^{2/3}}{-1+i \sqrt {15}+4 x^3}\right ) \, dx\\ &=\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2}+2 \int \frac {\left (1+x^6\right )^{2/3}}{-1-i \sqrt {15}+4 x^3} \, dx+2 \int \frac {\left (1+x^6\right )^{2/3}}{-1+i \sqrt {15}+4 x^3} \, dx\\ &=\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2}+2 \int \left (\frac {\left (i-\sqrt {15}\right ) \left (1+x^6\right )^{2/3}}{2 \left (7 i+\sqrt {15}+8 i x^6\right )}+\frac {2 x^3 \left (1+x^6\right )^{2/3}}{7-i \sqrt {15}+8 x^6}\right ) \, dx+2 \int \left (\frac {\left (-i-\sqrt {15}\right ) \left (1+x^6\right )^{2/3}}{2 \left (-7 i+\sqrt {15}-8 i x^6\right )}+\frac {2 x^3 \left (1+x^6\right )^{2/3}}{7+i \sqrt {15}+8 x^6}\right ) \, dx\\ &=\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2}+4 \int \frac {x^3 \left (1+x^6\right )^{2/3}}{7-i \sqrt {15}+8 x^6} \, dx+4 \int \frac {x^3 \left (1+x^6\right )^{2/3}}{7+i \sqrt {15}+8 x^6} \, dx+\left (-i-\sqrt {15}\right ) \int \frac {\left (1+x^6\right )^{2/3}}{-7 i+\sqrt {15}-8 i x^6} \, dx+\left (i-\sqrt {15}\right ) \int \frac {\left (1+x^6\right )^{2/3}}{7 i+\sqrt {15}+8 i x^6} \, dx\\ &=\frac {\left (i-\sqrt {15}\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7-i \sqrt {15}},-x^6\right )}{7 i+\sqrt {15}}+\frac {\left (i+\sqrt {15}\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7+i \sqrt {15}},-x^6\right )}{7 i-\sqrt {15}}+\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2}+2 \operatorname {Subst}\left (\int \frac {x \left (1+x^3\right )^{2/3}}{7-i \sqrt {15}+8 x^3} \, dx,x,x^2\right )+2 \operatorname {Subst}\left (\int \frac {x \left (1+x^3\right )^{2/3}}{7+i \sqrt {15}+8 x^3} \, dx,x,x^2\right )\\ &=\frac {\left (i-\sqrt {15}\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7-i \sqrt {15}},-x^6\right )}{7 i+\sqrt {15}}+\frac {\left (i+\sqrt {15}\right ) x F_1\left (\frac {1}{6};1,-\frac {2}{3};\frac {7}{6};-\frac {8 x^6}{7+i \sqrt {15}},-x^6\right )}{7 i-\sqrt {15}}+\frac {x^4 F_1\left (\frac {2}{3};-\frac {2}{3},1;\frac {5}{3};-x^6,-\frac {8 x^6}{7-i \sqrt {15}}\right )}{7-i \sqrt {15}}+\frac {x^4 F_1\left (\frac {2}{3};-\frac {2}{3},1;\frac {5}{3};-x^6,-\frac {8 x^6}{7+i \sqrt {15}}\right )}{7+i \sqrt {15}}+\frac {\, _2F_1\left (-\frac {2}{3},-\frac {1}{3};\frac {2}{3};-x^6\right )}{4 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.40, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (-1+x^6\right ) \left (1+x^6\right )^{2/3}}{x^3 \left (2-x^3+2 x^6\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.10, size = 133, normalized size = 1.00 \begin {gather*} \frac {\left (1+x^6\right )^{2/3}}{4 x^2}-\frac {\tan ^{-1}\left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{2} \sqrt [3]{1+x^6}}\right )}{2\ 2^{2/3} \sqrt {3}}+\frac {\log \left (-x+\sqrt [3]{2} \sqrt [3]{1+x^6}\right )}{6\ 2^{2/3}}-\frac {\log \left (x^2+\sqrt [3]{2} x \sqrt [3]{1+x^6}+2^{2/3} \left (1+x^6\right )^{2/3}\right )}{12\ 2^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 149.19, size = 349, normalized size = 2.62 \begin {gather*} -\frac {4 \cdot 4^{\frac {1}{6}} \sqrt {3} x^{2} \arctan \left (\frac {4^{\frac {1}{6}} {\left (12 \cdot 4^{\frac {2}{3}} \sqrt {3} {\left (2 \, x^{13} + x^{10} + 3 \, x^{7} + x^{4} + 2 \, x\right )} {\left (x^{6} + 1\right )}^{\frac {2}{3}} + 4^{\frac {1}{3}} \sqrt {3} {\left (8 \, x^{18} + 60 \, x^{15} + 48 \, x^{12} + 119 \, x^{9} + 48 \, x^{6} + 60 \, x^{3} + 8\right )} + 12 \, \sqrt {3} {\left (4 \, x^{14} + 14 \, x^{11} + 9 \, x^{8} + 14 \, x^{5} + 4 \, x^{2}\right )} {\left (x^{6} + 1\right )}^{\frac {1}{3}}\right )}}{6 \, {\left (8 \, x^{18} - 12 \, x^{15} - 24 \, x^{12} - 25 \, x^{9} - 24 \, x^{6} - 12 \, x^{3} + 8\right )}}\right ) - 2 \cdot 4^{\frac {2}{3}} x^{2} \log \left (-\frac {6 \cdot 4^{\frac {1}{3}} {\left (x^{6} + 1\right )}^{\frac {1}{3}} x^{2} + 4^{\frac {2}{3}} {\left (2 \, x^{6} - x^{3} + 2\right )} - 12 \, {\left (x^{6} + 1\right )}^{\frac {2}{3}} x}{2 \, x^{6} - x^{3} + 2}\right ) + 4^{\frac {2}{3}} x^{2} \log \left (\frac {6 \cdot 4^{\frac {2}{3}} {\left (x^{7} + x^{4} + x\right )} {\left (x^{6} + 1\right )}^{\frac {2}{3}} + 4^{\frac {1}{3}} {\left (4 \, x^{12} + 14 \, x^{9} + 9 \, x^{6} + 14 \, x^{3} + 4\right )} + 6 \, {\left (4 \, x^{8} + x^{5} + 4 \, x^{2}\right )} {\left (x^{6} + 1\right )}^{\frac {1}{3}}}{4 \, x^{12} - 4 \, x^{9} + 9 \, x^{6} - 4 \, x^{3} + 4}\right ) - 36 \, {\left (x^{6} + 1\right )}^{\frac {2}{3}}}{144 \, x^{2}} \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} + 1\right )}^{\frac {2}{3}} {\left (x^{6} - 1\right )}}{{\left (2 \, x^{6} - x^{3} + 2\right )} x^{3}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 5.09, size = 0, normalized size = 0.00 \[\int \frac {\left (x^{6}-1\right ) \left (x^{6}+1\right )^{\frac {2}{3}}}{x^{3} \left (2 x^{6}-x^{3}+2\right )}\, dx\]
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} + 1\right )}^{\frac {2}{3}} {\left (x^{6} - 1\right )}}{{\left (2 \, x^{6} - x^{3} + 2\right )} x^{3}}\,{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.01 \begin {gather*} \int \frac {\left (x^6-1\right )\,{\left (x^6+1\right )}^{2/3}}{x^3\,\left (2\,x^6-x^3+2\right )} \,d x \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]
________________________________________________________________________________________