Optimal. Leaf size=383 \[ -\frac {2^{2/3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\tan ^{-1}\left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}+\frac {\tan ^{-1}\left (\frac {1-\frac {2 x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {2^{2/3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{2} x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {1}{2} x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )-\frac {\log \left ((1-x) (1+x)^2\right )}{6 \sqrt [3]{2}}-\frac {\log \left (1+x^3\right )}{3 \sqrt [3]{2}}-\frac {\log \left (1+\frac {2^{2/3} (1-x)^2}{\left (1-x^3\right )^{2/3}}-\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{3 \sqrt [3]{2}}+\frac {1}{3} 2^{2/3} \log \left (1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )+\frac {\log \left (-\sqrt [3]{2} x-\sqrt [3]{1-x^3}\right )}{\sqrt [3]{2}}-\frac {1}{2} \log \left (x+\sqrt [3]{1-x^3}\right )+\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{2 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.58, antiderivative size = 648, normalized size of antiderivative = 1.69, number of steps
used = 17, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6857, 2178,
2177, 245, 2174, 371} \begin {gather*} -\frac {2^{2/3} \text {ArcTan}\left (\frac {\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}+1}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {\left (1+(-1)^{2/3}\right ) \text {ArcTan}\left (\frac {1-\frac {2 x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3}}+\frac {\left (1-\sqrt [3]{-1}\right ) \text {ArcTan}\left (\frac {1-\frac {2 x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3}}+\frac {2 \text {ArcTan}\left (\frac {1-\frac {2 x}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{3 \sqrt {3}}-\frac {\left (1-\sqrt [3]{-1}\right ) \text {ArcTan}\left (\frac {1-\frac {\sqrt [3]{2} \left (x+\sqrt [3]{-1}\right )}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}-\frac {\left (1+(-1)^{2/3}\right ) \text {ArcTan}\left (\frac {\frac {(-1)^{2/3} \sqrt [3]{2} \left (\sqrt [3]{-1} x+1\right )}{\sqrt [3]{1-x^3}}+1}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}+\frac {1}{6} \left (1+(-1)^{2/3}\right ) x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )+\frac {1}{6} \left (1-\sqrt [3]{-1}\right ) x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )+\frac {1}{3} x^2 \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};x^3\right )-\frac {1}{6} \left (1+(-1)^{2/3}\right ) \log \left (\sqrt [3]{1-x^3}+x\right )-\frac {1}{6} \left (1-\sqrt [3]{-1}\right ) \log \left (\sqrt [3]{1-x^3}+x\right )-\frac {1}{3} \log \left (\sqrt [3]{1-x^3}+x\right )+\frac {\left (1-\sqrt [3]{-1}\right ) \log \left (-(-2)^{2/3} \sqrt [3]{1-x^3}-(-1)^{2/3} x+1\right )}{2 \sqrt [3]{2}}+\frac {\log \left (-2^{2/3} \sqrt [3]{1-x^3}-x+1\right )}{\sqrt [3]{2}}+\frac {\left (1+(-1)^{2/3}\right ) \log \left (\sqrt [3]{-1} 2^{2/3} \sqrt [3]{1-x^3}+\sqrt [3]{-1} x+1\right )}{2 \sqrt [3]{2}}-\frac {\log \left (-\left ((1-x) (x+1)^2\right )\right )}{3 \sqrt [3]{2}}-\frac {\left (1+(-1)^{2/3}\right ) \log \left (-(-1)^{2/3} \left (x+(-1)^{2/3}\right )^2 \left (\sqrt [3]{-1} x+1\right )\right )}{6 \sqrt [3]{2}}-\frac {\left (1-\sqrt [3]{-1}\right ) \log \left ((-1)^{2/3} \left (x+\sqrt [3]{-1}\right ) \left ((-1)^{2/3} x+1\right )^2\right )}{6 \sqrt [3]{2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 245
Rule 371
Rule 2174
Rule 2177
Rule 2178
Rule 6857
Rubi steps
\begin {align*} \int \frac {(1-x) \left (1-x^3\right )^{2/3}}{1+x^3} \, dx &=\int \left (-\frac {2 \left (1-x^3\right )^{2/3}}{3 (-1-x)}+\frac {\left (-1-(-1)^{2/3}\right ) \left (1-x^3\right )^{2/3}}{3 \left (-1+\sqrt [3]{-1} x\right )}+\frac {\left (-1+\sqrt [3]{-1}\right ) \left (1-x^3\right )^{2/3}}{3 \left (-1-(-1)^{2/3} x\right )}\right ) \, dx\\ &=-\left (\frac {2}{3} \int \frac {\left (1-x^3\right )^{2/3}}{-1-x} \, dx\right )+\frac {1}{3} \left (-1+\sqrt [3]{-1}\right ) \int \frac {\left (1-x^3\right )^{2/3}}{-1-(-1)^{2/3} x} \, dx+\frac {1}{3} \left (-1-(-1)^{2/3}\right ) \int \frac {\left (1-x^3\right )^{2/3}}{-1+\sqrt [3]{-1} x} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 10.17, size = 138, normalized size = 0.36 \begin {gather*} -\frac {1}{2} x^2 F_1\left (\frac {2}{3};-\frac {2}{3},1;\frac {5}{3};x^3,-x^3\right )-\frac {4 x \left (1-x^3\right )^{2/3} F_1\left (\frac {1}{3};-\frac {2}{3},1;\frac {4}{3};x^3,-x^3\right )}{\left (1+x^3\right ) \left (-4 F_1\left (\frac {1}{3};-\frac {2}{3},1;\frac {4}{3};x^3,-x^3\right )+x^3 \left (3 F_1\left (\frac {4}{3};-\frac {2}{3},2;\frac {7}{3};x^3,-x^3\right )+2 F_1\left (\frac {4}{3};\frac {1}{3},1;\frac {7}{3};x^3,-x^3\right )\right )\right )} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {\left (1-x \right ) \left (-x^{3}+1\right )^{\frac {2}{3}}}{x^{3}+1}\, 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 = 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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \left (- \frac {\left (1 - x^{3}\right )^{\frac {2}{3}}}{x^{3} + 1}\right )\, dx - \int \frac {x \left (1 - x^{3}\right )^{\frac {2}{3}}}{x^{3} + 1}\, 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 (1-x^3\right )}^{2/3}\,\left (x-1\right )}{x^3+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________