Optimal. Leaf size=74 \[ -\frac {\log \left (x^2+\sqrt [3]{2} x+2^{2/3}\right )}{6\ 2^{2/3}}+\frac {\log \left (\sqrt [3]{2}-x\right )}{3\ 2^{2/3}}-\frac {\tan ^{-1}\left (\frac {2^{2/3} x+1}{\sqrt {3}}\right )}{2^{2/3} \sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.857, Rules used = {200, 31, 634, 617, 204, 628} \[ -\frac {\log \left (x^2+\sqrt [3]{2} x+2^{2/3}\right )}{6\ 2^{2/3}}+\frac {\log \left (\sqrt [3]{2}-x\right )}{3\ 2^{2/3}}-\frac {\tan ^{-1}\left (\frac {2^{2/3} x+1}{\sqrt {3}}\right )}{2^{2/3} \sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 200
Rule 204
Rule 617
Rule 628
Rule 634
Rubi steps
\begin {align*} \int \frac {1}{-2+x^3} \, dx &=\frac {\int \frac {1}{-\sqrt [3]{2}+x} \, dx}{3\ 2^{2/3}}+\frac {\int \frac {-2 \sqrt [3]{2}-x}{2^{2/3}+\sqrt [3]{2} x+x^2} \, dx}{3\ 2^{2/3}}\\ &=\frac {\log \left (\sqrt [3]{2}-x\right )}{3\ 2^{2/3}}-\frac {\int \frac {\sqrt [3]{2}+2 x}{2^{2/3}+\sqrt [3]{2} x+x^2} \, dx}{6\ 2^{2/3}}-\frac {\int \frac {1}{2^{2/3}+\sqrt [3]{2} x+x^2} \, dx}{2 \sqrt [3]{2}}\\ &=\frac {\log \left (\sqrt [3]{2}-x\right )}{3\ 2^{2/3}}-\frac {\log \left (2^{2/3}+\sqrt [3]{2} x+x^2\right )}{6\ 2^{2/3}}+\frac {\operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2^{2/3} x\right )}{2^{2/3}}\\ &=-\frac {\tan ^{-1}\left (\frac {1+2^{2/3} x}{\sqrt {3}}\right )}{2^{2/3} \sqrt {3}}+\frac {\log \left (\sqrt [3]{2}-x\right )}{3\ 2^{2/3}}-\frac {\log \left (2^{2/3}+\sqrt [3]{2} x+x^2\right )}{6\ 2^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 65, normalized size = 0.88 \[ -\frac {\log \left (\sqrt [3]{2} x^2+2^{2/3} x+2\right )-2 \log \left (2-2^{2/3} x\right )+2 \sqrt {3} \tan ^{-1}\left (\frac {2^{2/3} x+1}{\sqrt {3}}\right )}{6\ 2^{2/3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 68, normalized size = 0.92 \[ -\frac {1}{6} \cdot 4^{\frac {1}{6}} \sqrt {3} \arctan \left (\frac {1}{6} \cdot 4^{\frac {1}{6}} {\left (4^{\frac {2}{3}} \sqrt {3} x + 4^{\frac {1}{3}} \sqrt {3}\right )}\right ) - \frac {1}{24} \cdot 4^{\frac {2}{3}} \log \left (2 \, x^{2} + 4^{\frac {2}{3}} x + 2 \cdot 4^{\frac {1}{3}}\right ) + \frac {1}{12} \cdot 4^{\frac {2}{3}} \log \left (2 \, x - 4^{\frac {2}{3}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.28, size = 57, normalized size = 0.77 \[ -\frac {1}{6} \, \sqrt {3} 2^{\frac {1}{3}} \arctan \left (\frac {1}{6} \, \sqrt {3} 2^{\frac {2}{3}} {\left (2 \, x + 2^{\frac {1}{3}}\right )}\right ) - \frac {1}{12} \cdot 2^{\frac {1}{3}} \log \left (x^{2} + 2^{\frac {1}{3}} x + 2^{\frac {2}{3}}\right ) + \frac {1}{6} \cdot 2^{\frac {1}{3}} \log \left ({\left | x - 2^{\frac {1}{3}} \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 0.73 \[ -\frac {2^{\frac {1}{3}} \sqrt {3}\, \arctan \left (\frac {\left (2^{\frac {2}{3}} x +1\right ) \sqrt {3}}{3}\right )}{6}+\frac {2^{\frac {1}{3}} \ln \left (x -2^{\frac {1}{3}}\right )}{6}-\frac {2^{\frac {1}{3}} \ln \left (x^{2}+2^{\frac {1}{3}} x +2^{\frac {2}{3}}\right )}{12} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 56, normalized size = 0.76 \[ -\frac {1}{6} \, \sqrt {3} 2^{\frac {1}{3}} \arctan \left (\frac {1}{6} \, \sqrt {3} 2^{\frac {2}{3}} {\left (2 \, x + 2^{\frac {1}{3}}\right )}\right ) - \frac {1}{12} \cdot 2^{\frac {1}{3}} \log \left (x^{2} + 2^{\frac {1}{3}} x + 2^{\frac {2}{3}}\right ) + \frac {1}{6} \cdot 2^{\frac {1}{3}} \log \left (x - 2^{\frac {1}{3}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.36, size = 72, normalized size = 0.97 \[ \frac {2^{1/3}\,\ln \left (x-2^{1/3}\right )}{6}+\frac {2^{1/3}\,\ln \left (x-\frac {2^{1/3}\,\left (-1+\sqrt {3}\,1{}\mathrm {i}\right )}{2}\right )\,\left (-1+\sqrt {3}\,1{}\mathrm {i}\right )}{12}-\frac {2^{1/3}\,\ln \left (x+\frac {2^{1/3}\,\left (1+\sqrt {3}\,1{}\mathrm {i}\right )}{2}\right )\,\left (1+\sqrt {3}\,1{}\mathrm {i}\right )}{12} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.30, size = 71, normalized size = 0.96 \[ \frac {\sqrt [3]{2} \log {\left (x - \sqrt [3]{2} \right )}}{6} - \frac {\sqrt [3]{2} \log {\left (x^{2} + \sqrt [3]{2} x + 2^{\frac {2}{3}} \right )}}{12} - \frac {\sqrt [3]{2} \sqrt {3} \operatorname {atan}{\left (\frac {2^{\frac {2}{3}} \sqrt {3} x}{3} + \frac {\sqrt {3}}{3} \right )}}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________