Integrand size = 11, antiderivative size = 56 \[ \int \frac {x}{a^3+x^3} \, dx=-\frac {\arctan \left (\frac {a-2 x}{\sqrt {3} a}\right )}{\sqrt {3} a}-\frac {\log (a+x)}{3 a}+\frac {\log \left (a^2-a x+x^2\right )}{6 a} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.545, Rules used = {298, 31, 648, 631, 210, 642} \[ \int \frac {x}{a^3+x^3} \, dx=\frac {\log \left (a^2-a x+x^2\right )}{6 a}-\frac {\arctan \left (\frac {a-2 x}{\sqrt {3} a}\right )}{\sqrt {3} a}-\frac {\log (a+x)}{3 a} \]
[In]
[Out]
Rule 31
Rule 210
Rule 298
Rule 631
Rule 642
Rule 648
Rubi steps \begin{align*} \text {integral}& = -\frac {\int \frac {1}{a+x} \, dx}{3 a}+\frac {\int \frac {a+x}{a^2-a x+x^2} \, dx}{3 a} \\ & = -\frac {\log (a+x)}{3 a}+\frac {1}{2} \int \frac {1}{a^2-a x+x^2} \, dx+\frac {\int \frac {-a+2 x}{a^2-a x+x^2} \, dx}{6 a} \\ & = -\frac {\log (a+x)}{3 a}+\frac {\log \left (a^2-a x+x^2\right )}{6 a}+\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 x}{a}\right )}{a} \\ & = -\frac {\arctan \left (\frac {a-2 x}{\sqrt {3} a}\right )}{\sqrt {3} a}-\frac {\log (a+x)}{3 a}+\frac {\log \left (a^2-a x+x^2\right )}{6 a} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.89 \[ \int \frac {x}{a^3+x^3} \, dx=\frac {2 \sqrt {3} \arctan \left (\frac {-a+2 x}{\sqrt {3} a}\right )-2 \log (a+x)+\log \left (a^2-a x+x^2\right )}{6 a} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.21 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.77
method | result | size |
risch | \(-\frac {\ln \left (a +x \right )}{3 a}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{2} a^{2}-a \textit {\_Z} +1\right )}{\sum }\textit {\_R} \ln \left (a^{2} \textit {\_R} -a +x \right )\right )}{3}\) | \(43\) |
default | \(\frac {\frac {\ln \left (a^{2}-a x +x^{2}\right )}{2}+\sqrt {3}\, \arctan \left (\frac {\left (-a +2 x \right ) \sqrt {3}}{3 a}\right )}{3 a}-\frac {\ln \left (a +x \right )}{3 a}\) | \(51\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.77 \[ \int \frac {x}{a^3+x^3} \, dx=\frac {2 \, \sqrt {3} \arctan \left (-\frac {\sqrt {3} {\left (a - 2 \, x\right )}}{3 \, a}\right ) + \log \left (a^{2} - a x + x^{2}\right ) - 2 \, \log \left (a + x\right )}{6 \, a} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.05 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.27 \[ \int \frac {x}{a^3+x^3} \, dx=\frac {- \frac {\log {\left (a + x \right )}}{3} + \left (\frac {1}{6} - \frac {\sqrt {3} i}{6}\right ) \log {\left (9 a \left (\frac {1}{6} - \frac {\sqrt {3} i}{6}\right )^{2} + x \right )} + \left (\frac {1}{6} + \frac {\sqrt {3} i}{6}\right ) \log {\left (9 a \left (\frac {1}{6} + \frac {\sqrt {3} i}{6}\right )^{2} + x \right )}}{a} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.88 \[ \int \frac {x}{a^3+x^3} \, dx=\frac {\sqrt {3} \arctan \left (-\frac {\sqrt {3} {\left (a - 2 \, x\right )}}{3 \, a}\right )}{3 \, a} + \frac {\log \left (a^{2} - a x + x^{2}\right )}{6 \, a} - \frac {\log \left (a + x\right )}{3 \, a} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.89 \[ \int \frac {x}{a^3+x^3} \, dx=\frac {\sqrt {3} \arctan \left (-\frac {\sqrt {3} {\left (a - 2 \, x\right )}}{3 \, a}\right )}{3 \, a} + \frac {\log \left (a^{2} - a x + x^{2}\right )}{6 \, a} - \frac {\log \left ({\left | a + x \right |}\right )}{3 \, a} \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.21 \[ \int \frac {x}{a^3+x^3} \, dx=-\frac {\ln \left (a+x\right )}{3\,a}-\frac {\ln \left (x+\frac {a\,{\left (-1+\sqrt {3}\,1{}\mathrm {i}\right )}^2}{4}\right )\,\left (-1+\sqrt {3}\,1{}\mathrm {i}\right )}{6\,a}+\frac {\ln \left (x+\frac {a\,{\left (1+\sqrt {3}\,1{}\mathrm {i}\right )}^2}{4}\right )\,\left (1+\sqrt {3}\,1{}\mathrm {i}\right )}{6\,a} \]
[In]
[Out]