Optimal. Leaf size=28 \[ \log \left (1-x^3\right )+\frac {4 \tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {1871, 1586, 618, 204, 260} \[ \log \left (1-x^3\right )+\frac {4 \tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 260
Rule 618
Rule 1586
Rule 1871
Rubi steps
\begin {align*} \int \frac {-2+2 x+3 x^2}{-1+x^3} \, dx &=3 \int \frac {x^2}{-1+x^3} \, dx+\int \frac {-2+2 x}{-1+x^3} \, dx\\ &=\log \left (1-x^3\right )+\int \frac {1}{\frac {1}{2}+\frac {x}{2}+\frac {x^2}{2}} \, dx\\ &=\log \left (1-x^3\right )-2 \operatorname {Subst}\left (\int \frac {1}{-\frac {3}{4}-x^2} \, dx,x,\frac {1}{2}+x\right )\\ &=\frac {4 \tan ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )}{\sqrt {3}}+\log \left (1-x^3\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 28, normalized size = 1.00 \[ \log \left (1-x^3\right )+\frac {4 \tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 28, normalized size = 1.00 \[ \frac {4}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \log \left (x^{2} + x + 1\right ) + \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.01, size = 29, normalized size = 1.04 \[ \frac {4}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \log \left (x^{2} + x + 1\right ) + \log \left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 29, normalized size = 1.04 \[ \frac {4 \sqrt {3}\, \arctan \left (\frac {\left (2 x +1\right ) \sqrt {3}}{3}\right )}{3}+\ln \left (x -1\right )+\ln \left (x^{2}+x +1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.17, size = 28, normalized size = 1.00 \[ \frac {4}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \log \left (x^{2} + x + 1\right ) + \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 57, normalized size = 2.04 \[ \ln \left (x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )+\ln \left (x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )+\ln \left (x-1\right )-\frac {\sqrt {3}\,\ln \left (x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,2{}\mathrm {i}}{3}+\frac {\sqrt {3}\,\ln \left (x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,2{}\mathrm {i}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 3, normalized size = 0.11 \[ \log {\left (x - 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________