Optimal. Leaf size=234 \[ -\frac {\left (1-x^3\right )^{2/3}}{3 \left (1+x^3\right )}+\frac {x \left (1-x^3\right )^{2/3}}{3 \left (1+x^3\right )}+\frac {2 x^2 \left (1-x^3\right )^{2/3}}{3 \left (1+x^3\right )}-\frac {2^{2/3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{2} x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3}}-\frac {2^{2/3} \tan ^{-1}\left (\frac {1+2^{2/3} \sqrt [3]{1-x^3}}{\sqrt {3}}\right )}{3 \sqrt {3}}+\frac {1}{3} x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )-\frac {\log \left (\sqrt [3]{2}-\sqrt [3]{1-x^3}\right )}{3 \sqrt [3]{2}}+\frac {\log \left (-\sqrt [3]{2} x-\sqrt [3]{1-x^3}\right )}{3 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 234, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 12, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.546, Rules used = {2183, 386,
384, 480, 21, 371, 455, 43, 57, 631, 210, 31} \begin {gather*} \frac {1}{3} x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )+\frac {\left (1-x^3\right )^{2/3} x}{3 \left (x^3+1\right )}-\frac {\left (1-x^3\right )^{2/3}}{3 \left (x^3+1\right )}-\frac {\log \left (\sqrt [3]{2}-\sqrt [3]{1-x^3}\right )}{3 \sqrt [3]{2}}+\frac {\log \left (-\sqrt [3]{1-x^3}-\sqrt [3]{2} x\right )}{3 \sqrt [3]{2}}-\frac {2^{2/3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{2} x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3}}-\frac {2^{2/3} \tan ^{-1}\left (\frac {2^{2/3} \sqrt [3]{1-x^3}+1}{\sqrt {3}}\right )}{3 \sqrt {3}}+\frac {2 \left (1-x^3\right )^{2/3} x^2}{3 \left (x^3+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 31
Rule 43
Rule 57
Rule 210
Rule 371
Rule 384
Rule 386
Rule 455
Rule 480
Rule 631
Rule 2183
Rubi steps
\begin {align*} \int \frac {\left (1-x^3\right )^{2/3}}{\left (1-x+x^2\right )^2} \, dx &=\int \left (-\frac {4 \left (1-x^3\right )^{2/3}}{3 \left (1+i \sqrt {3}-2 x\right )^2}+\frac {4 i \left (1-x^3\right )^{2/3}}{3 \sqrt {3} \left (1+i \sqrt {3}-2 x\right )}-\frac {4 \left (1-x^3\right )^{2/3}}{3 \left (-1+i \sqrt {3}+2 x\right )^2}+\frac {4 i \left (1-x^3\right )^{2/3}}{3 \sqrt {3} \left (-1+i \sqrt {3}+2 x\right )}\right ) \, dx\\ &=-\left (\frac {4}{3} \int \frac {\left (1-x^3\right )^{2/3}}{\left (1+i \sqrt {3}-2 x\right )^2} \, dx\right )-\frac {4}{3} \int \frac {\left (1-x^3\right )^{2/3}}{\left (-1+i \sqrt {3}+2 x\right )^2} \, dx+\frac {(4 i) \int \frac {\left (1-x^3\right )^{2/3}}{1+i \sqrt {3}-2 x} \, dx}{3 \sqrt {3}}+\frac {(4 i) \int \frac {\left (1-x^3\right )^{2/3}}{-1+i \sqrt {3}+2 x} \, dx}{3 \sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 20.25, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (1-x^3\right )^{2/3}}{\left (1-x+x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-1)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \frac {\left (-x^{3}+1\right )^{\frac {2}{3}}}{\left (x^{2}-x +1\right )^{2}}\, 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*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 1.37, 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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (- \left (x - 1\right ) \left (x^{2} + x + 1\right )\right )^{\frac {2}{3}}}{\left (x^{2} - x + 1\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] N/A
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 (1-x^3\right )}^{2/3}}{{\left (x^2-x+1\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________