Optimal. Leaf size=62 \[ \frac {2 (1-x)}{3 x \sqrt {x^2+x+1}}-\frac {5 \sqrt {x^2+x+1}}{3 x}+\frac {3}{2} \tanh ^{-1}\left (\frac {x+2}{2 \sqrt {x^2+x+1}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {740, 806, 724, 206} \[ \frac {2 (1-x)}{3 x \sqrt {x^2+x+1}}-\frac {5 \sqrt {x^2+x+1}}{3 x}+\frac {3}{2} \tanh ^{-1}\left (\frac {x+2}{2 \sqrt {x^2+x+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rule 740
Rule 806
Rubi steps
\begin {align*} \int \frac {1}{x^2 \left (1+x+x^2\right )^{3/2}} \, dx &=\frac {2 (1-x)}{3 x \sqrt {1+x+x^2}}+\frac {2}{3} \int \frac {\frac {5}{2}-x}{x^2 \sqrt {1+x+x^2}} \, dx\\ &=\frac {2 (1-x)}{3 x \sqrt {1+x+x^2}}-\frac {5 \sqrt {1+x+x^2}}{3 x}-\frac {3}{2} \int \frac {1}{x \sqrt {1+x+x^2}} \, dx\\ &=\frac {2 (1-x)}{3 x \sqrt {1+x+x^2}}-\frac {5 \sqrt {1+x+x^2}}{3 x}+3 \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {2+x}{\sqrt {1+x+x^2}}\right )\\ &=\frac {2 (1-x)}{3 x \sqrt {1+x+x^2}}-\frac {5 \sqrt {1+x+x^2}}{3 x}+\frac {3}{2} \tanh ^{-1}\left (\frac {2+x}{2 \sqrt {1+x+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 50, normalized size = 0.81 \[ \frac {3}{2} \tanh ^{-1}\left (\frac {x+2}{2 \sqrt {x^2+x+1}}\right )-\frac {5 x^2+7 x+3}{3 x \sqrt {x^2+x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.20, size = 45, normalized size = 0.73 \[ \frac {-5 x^2-7 x-3}{3 x \sqrt {x^2+x+1}}-3 \tanh ^{-1}\left (x-\sqrt {x^2+x+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.59, size = 94, normalized size = 1.52 \[ -\frac {10 \, x^{3} + 10 \, x^{2} - 9 \, {\left (x^{3} + x^{2} + x\right )} \log \left (-x + \sqrt {x^{2} + x + 1} + 1\right ) + 9 \, {\left (x^{3} + x^{2} + x\right )} \log \left (-x + \sqrt {x^{2} + x + 1} - 1\right ) + 2 \, {\left (5 \, x^{2} + 7 \, x + 3\right )} \sqrt {x^{2} + x + 1} + 10 \, x}{6 \, {\left (x^{3} + x^{2} + x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.62, size = 80, normalized size = 1.29 \[ -\frac {2 \, {\left (x + 2\right )}}{3 \, \sqrt {x^{2} + x + 1}} + \frac {x - \sqrt {x^{2} + x + 1} + 2}{{\left (x - \sqrt {x^{2} + x + 1}\right )}^{2} - 1} + \frac {3}{2} \, \log \left ({\left | -x + \sqrt {x^{2} + x + 1} + 1 \right |}\right ) - \frac {3}{2} \, \log \left ({\left | -x + \sqrt {x^{2} + x + 1} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 41, normalized size = 0.66
method | result | size |
risch | \(-\frac {5 x^{2}+7 x +3}{3 x \sqrt {x^{2}+x +1}}+\frac {3 \arctanh \left (\frac {2+x}{2 \sqrt {x^{2}+x +1}}\right )}{2}\) | \(41\) |
trager | \(-\frac {5 x^{2}+7 x +3}{3 x \sqrt {x^{2}+x +1}}-\frac {3 \ln \left (\frac {-2-x +2 \sqrt {x^{2}+x +1}}{x}\right )}{2}\) | \(47\) |
default | \(-\frac {1}{x \sqrt {x^{2}+x +1}}-\frac {3}{2 \sqrt {x^{2}+x +1}}-\frac {5 \left (1+2 x \right )}{6 \sqrt {x^{2}+x +1}}+\frac {3 \arctanh \left (\frac {2+x}{2 \sqrt {x^{2}+x +1}}\right )}{2}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.42, size = 58, normalized size = 0.94 \[ -\frac {5 \, x}{3 \, \sqrt {x^{2} + x + 1}} - \frac {7}{3 \, \sqrt {x^{2} + x + 1}} - \frac {1}{\sqrt {x^{2} + x + 1} x} + \frac {3}{2} \, \operatorname {arsinh}\left (\frac {\sqrt {3} x}{3 \, {\left | x \right |}} + \frac {2 \, \sqrt {3}}{3 \, {\left | x \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{x^2\,{\left (x^2+x+1\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{x^{2} \left (x^{2} + x + 1\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________