Optimal. Leaf size=225 \[ -\log \left (\sqrt [3]{x^3-x^2+x}-x\right )+\sqrt [3]{2} \log \left (2^{2/3} \sqrt [3]{x^3-x^2+x}-2 x\right )+\frac {1}{2} \log \left (x^2+\sqrt [3]{x^3-x^2+x} x+\left (x^3-x^2+x\right )^{2/3}\right )-\frac {\log \left (2 x^2+2^{2/3} \sqrt [3]{x^3-x^2+x} x+\sqrt [3]{2} \left (x^3-x^2+x\right )^{2/3}\right )}{2^{2/3}}-\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x}{2 \sqrt [3]{x^3-x^2+x}+x}\right )+\sqrt [3]{2} \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x}{2^{2/3} \sqrt [3]{x^3-x^2+x}+x}\right ) \]
________________________________________________________________________________________
Rubi [F] time = 1.74, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {(-2+x) \sqrt [3]{x-x^2+x^3}}{(-1+x) \left (-1+x+x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {(-2+x) \sqrt [3]{x-x^2+x^3}}{(-1+x) \left (-1+x+x^2\right )} \, dx &=\frac {\sqrt [3]{x-x^2+x^3} \int \frac {(-2+x) \sqrt [3]{x} \sqrt [3]{1-x+x^2}}{(-1+x) \left (-1+x+x^2\right )} \, dx}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=\frac {\sqrt [3]{x-x^2+x^3} \int \frac {(-2+x) \sqrt [3]{x} \sqrt [3]{1-x+x^2}}{1-2 x+x^3} \, dx}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=\frac {\left (3 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {x^3 \left (-2+x^3\right ) \sqrt [3]{1-x^3+x^6}}{1-2 x^3+x^9} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=\frac {\left (3 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \left (-\frac {\sqrt [3]{1-x^3+x^6}}{3 (-1+x)}+\frac {(2+x) \sqrt [3]{1-x^3+x^6}}{3 \left (1+x+x^2\right )}+\frac {\left (1+2 x^3\right ) \sqrt [3]{1-x^3+x^6}}{-1+x^3+x^6}\right ) \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=-\frac {\sqrt [3]{x-x^2+x^3} \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{-1+x} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\sqrt [3]{x-x^2+x^3} \operatorname {Subst}\left (\int \frac {(2+x) \sqrt [3]{1-x^3+x^6}}{1+x+x^2} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (3 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {\left (1+2 x^3\right ) \sqrt [3]{1-x^3+x^6}}{-1+x^3+x^6} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=-\frac {\sqrt [3]{x-x^2+x^3} \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{-1+x} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\sqrt [3]{x-x^2+x^3} \operatorname {Subst}\left (\int \left (\frac {\left (1-i \sqrt {3}\right ) \sqrt [3]{1-x^3+x^6}}{1-i \sqrt {3}+2 x}+\frac {\left (1+i \sqrt {3}\right ) \sqrt [3]{1-x^3+x^6}}{1+i \sqrt {3}+2 x}\right ) \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (3 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \left (\frac {2 \sqrt [3]{1-x^3+x^6}}{1-\sqrt {5}+2 x^3}+\frac {2 \sqrt [3]{1-x^3+x^6}}{1+\sqrt {5}+2 x^3}\right ) \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ &=-\frac {\sqrt [3]{x-x^2+x^3} \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{-1+x} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (6 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{1-\sqrt {5}+2 x^3} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (6 \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{1+\sqrt {5}+2 x^3} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (\left (1-i \sqrt {3}\right ) \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{1-i \sqrt {3}+2 x} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}+\frac {\left (\left (1+i \sqrt {3}\right ) \sqrt [3]{x-x^2+x^3}\right ) \operatorname {Subst}\left (\int \frac {\sqrt [3]{1-x^3+x^6}}{1+i \sqrt {3}+2 x} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{x} \sqrt [3]{1-x+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.63, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(-2+x) \sqrt [3]{x-x^2+x^3}}{(-1+x) \left (-1+x+x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.45, size = 225, normalized size = 1.00 \begin {gather*} -\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{x-x^2+x^3}}\right )+\sqrt [3]{2} \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} x}{x+2^{2/3} \sqrt [3]{x-x^2+x^3}}\right )-\log \left (-x+\sqrt [3]{x-x^2+x^3}\right )+\sqrt [3]{2} \log \left (-2 x+2^{2/3} \sqrt [3]{x-x^2+x^3}\right )+\frac {1}{2} \log \left (x^2+x \sqrt [3]{x-x^2+x^3}+\left (x-x^2+x^3\right )^{2/3}\right )-\frac {\log \left (2 x^2+2^{2/3} x \sqrt [3]{x-x^2+x^3}+\sqrt [3]{2} \left (x-x^2+x^3\right )^{2/3}\right )}{2^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \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^{3} - x^{2} + x\right )}^{\frac {1}{3}} {\left (x - 2\right )}}{{\left (x^{2} + x - 1\right )} {\left (x - 1\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.16, size = 0, normalized size = 0.00 \[\int \frac {\left (-2+x \right ) \left (x^{3}-x^{2}+x \right )^{\frac {1}{3}}}{\left (-1+x \right ) \left (x^{2}+x -1\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^{3} - x^{2} + x\right )}^{\frac {1}{3}} {\left (x - 2\right )}}{{\left (x^{2} + x - 1\right )} {\left (x - 1\right )}}\,{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\right )\,{\left (x^3-x^2+x\right )}^{1/3}}{\left (x-1\right )\,\left (x^2+x-1\right )} \,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]{x \left (x^{2} - x + 1\right )} \left (x - 2\right )}{\left (x - 1\right ) \left (x^{2} + x - 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________