Optimal. Leaf size=97 \[ -\frac {x}{6 \left (x^3+1\right )}+\frac {1}{72} \log \left (x^2-x+1\right )+\frac {1}{24} \log \left (x^2+x+1\right )-\frac {1}{12} \log (1-x)-\frac {1}{36} \log (x+1)+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{12 \sqrt {3}}+\frac {\tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{4 \sqrt {3}} \]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {471, 522, 200, 31, 634, 618, 204, 628} \begin {gather*} -\frac {x}{6 \left (x^3+1\right )}+\frac {1}{72} \log \left (x^2-x+1\right )+\frac {1}{24} \log \left (x^2+x+1\right )-\frac {1}{12} \log (1-x)-\frac {1}{36} \log (x+1)+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{12 \sqrt {3}}+\frac {\tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{4 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 200
Rule 204
Rule 471
Rule 522
Rule 618
Rule 628
Rule 634
Rubi steps
\begin {align*} \int \frac {x^3}{\left (1-x^3\right ) \left (1+x^3\right )^2} \, dx &=-\frac {x}{6 \left (1+x^3\right )}+\frac {1}{6} \int \frac {1+2 x^3}{\left (1-x^3\right ) \left (1+x^3\right )} \, dx\\ &=-\frac {x}{6 \left (1+x^3\right )}-\frac {1}{12} \int \frac {1}{1+x^3} \, dx+\frac {1}{4} \int \frac {1}{1-x^3} \, dx\\ &=-\frac {x}{6 \left (1+x^3\right )}-\frac {1}{36} \int \frac {1}{1+x} \, dx-\frac {1}{36} \int \frac {2-x}{1-x+x^2} \, dx+\frac {1}{12} \int \frac {1}{1-x} \, dx+\frac {1}{12} \int \frac {2+x}{1+x+x^2} \, dx\\ &=-\frac {x}{6 \left (1+x^3\right )}-\frac {1}{12} \log (1-x)-\frac {1}{36} \log (1+x)+\frac {1}{72} \int \frac {-1+2 x}{1-x+x^2} \, dx-\frac {1}{24} \int \frac {1}{1-x+x^2} \, dx+\frac {1}{24} \int \frac {1+2 x}{1+x+x^2} \, dx+\frac {1}{8} \int \frac {1}{1+x+x^2} \, dx\\ &=-\frac {x}{6 \left (1+x^3\right )}-\frac {1}{12} \log (1-x)-\frac {1}{36} \log (1+x)+\frac {1}{72} \log \left (1-x+x^2\right )+\frac {1}{24} \log \left (1+x+x^2\right )+\frac {1}{12} \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 x\right )-\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2 x\right )\\ &=-\frac {x}{6 \left (1+x^3\right )}+\frac {\tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{12 \sqrt {3}}+\frac {\tan ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )}{4 \sqrt {3}}-\frac {1}{12} \log (1-x)-\frac {1}{36} \log (1+x)+\frac {1}{72} \log \left (1-x+x^2\right )+\frac {1}{24} \log \left (1+x+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 85, normalized size = 0.88 \begin {gather*} \frac {1}{72} \left (-\frac {12 x}{x^3+1}+\log \left (x^2-x+1\right )+3 \log \left (x^2+x+1\right )-6 \log (1-x)-2 \log (x+1)-2 \sqrt {3} \tan ^{-1}\left (\frac {2 x-1}{\sqrt {3}}\right )+6 \sqrt {3} \tan ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^3}{\left (1-x^3\right ) \left (1+x^3\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.19, size = 106, normalized size = 1.09 \begin {gather*} \frac {6 \, \sqrt {3} {\left (x^{3} + 1\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) - 2 \, \sqrt {3} {\left (x^{3} + 1\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) + 3 \, {\left (x^{3} + 1\right )} \log \left (x^{2} + x + 1\right ) + {\left (x^{3} + 1\right )} \log \left (x^{2} - x + 1\right ) - 2 \, {\left (x^{3} + 1\right )} \log \left (x + 1\right ) - 6 \, {\left (x^{3} + 1\right )} \log \left (x - 1\right ) - 12 \, x}{72 \, {\left (x^{3} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.31, size = 77, normalized size = 0.79 \begin {gather*} \frac {1}{12} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) - \frac {1}{36} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {x}{6 \, {\left (x^{3} + 1\right )}} + \frac {1}{24} \, \log \left (x^{2} + x + 1\right ) + \frac {1}{72} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{36} \, \log \left ({\left | x + 1 \right |}\right ) - \frac {1}{12} \, \log \left ({\left | x - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 90, normalized size = 0.93 \begin {gather*} -\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{36}+\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x +1\right ) \sqrt {3}}{3}\right )}{12}-\frac {\ln \left (x -1\right )}{12}-\frac {\ln \left (x +1\right )}{36}+\frac {\ln \left (x^{2}-x +1\right )}{72}+\frac {\ln \left (x^{2}+x +1\right )}{24}+\frac {-2 x -2}{36 x^{2}-36 x +36}+\frac {1}{18 x +18} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.93, size = 75, normalized size = 0.77 \begin {gather*} \frac {1}{12} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) - \frac {1}{36} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) - \frac {x}{6 \, {\left (x^{3} + 1\right )}} + \frac {1}{24} \, \log \left (x^{2} + x + 1\right ) + \frac {1}{72} \, \log \left (x^{2} - x + 1\right ) - \frac {1}{36} \, \log \left (x + 1\right ) - \frac {1}{12} \, \log \left (x - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.18, size = 103, normalized size = 1.06 \begin {gather*} -\frac {\ln \left (x-1\right )}{12}-\frac {\ln \left (x+1\right )}{36}-\frac {x}{6\,\left (x^3+1\right )}-\ln \left (x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {1}{24}+\frac {\sqrt {3}\,1{}\mathrm {i}}{24}\right )+\ln \left (x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{24}+\frac {\sqrt {3}\,1{}\mathrm {i}}{24}\right )+\ln \left (x-\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{72}+\frac {\sqrt {3}\,1{}\mathrm {i}}{72}\right )-\ln \left (x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {1}{72}+\frac {\sqrt {3}\,1{}\mathrm {i}}{72}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.36, size = 92, normalized size = 0.95 \begin {gather*} - \frac {x}{6 x^{3} + 6} - \frac {\log {\left (x - 1 \right )}}{12} - \frac {\log {\left (x + 1 \right )}}{36} + \frac {\log {\left (x^{2} - x + 1 \right )}}{72} + \frac {\log {\left (x^{2} + x + 1 \right )}}{24} - \frac {\sqrt {3} \operatorname {atan}{\left (\frac {2 \sqrt {3} x}{3} - \frac {\sqrt {3}}{3} \right )}}{36} + \frac {\sqrt {3} \operatorname {atan}{\left (\frac {2 \sqrt {3} x}{3} + \frac {\sqrt {3}}{3} \right )}}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________