Optimal. Leaf size=56 \[ -\frac {2 x^2 (2+x)}{3 \sqrt {1+x+x^2}}+\frac {1}{3} (5+2 x) \sqrt {1+x+x^2}-\frac {3}{2} \sinh ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 56, 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 = {752, 793, 633,
221} \begin {gather*} -\frac {2 (x+2) x^2}{3 \sqrt {x^2+x+1}}+\frac {1}{3} (2 x+5) \sqrt {x^2+x+1}-\frac {3}{2} \sinh ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 633
Rule 752
Rule 793
Rubi steps
\begin {align*} \int \frac {x^3}{\left (1+x+x^2\right )^{3/2}} \, dx &=-\frac {2 x^2 (2+x)}{3 \sqrt {1+x+x^2}}+\frac {2}{3} \int \frac {x (4+2 x)}{\sqrt {1+x+x^2}} \, dx\\ &=-\frac {2 x^2 (2+x)}{3 \sqrt {1+x+x^2}}+\frac {1}{3} (5+2 x) \sqrt {1+x+x^2}-\frac {3}{2} \int \frac {1}{\sqrt {1+x+x^2}} \, dx\\ &=-\frac {2 x^2 (2+x)}{3 \sqrt {1+x+x^2}}+\frac {1}{3} (5+2 x) \sqrt {1+x+x^2}-\frac {1}{2} \sqrt {3} \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{3}}} \, dx,x,1+2 x\right )\\ &=-\frac {2 x^2 (2+x)}{3 \sqrt {1+x+x^2}}+\frac {1}{3} (5+2 x) \sqrt {1+x+x^2}-\frac {3}{2} \sinh ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 47, normalized size = 0.84 \begin {gather*} \frac {5+7 x+3 x^2}{3 \sqrt {1+x+x^2}}+\frac {3}{2} \log \left (-1-2 x+2 \sqrt {1+x+x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 61, normalized size = 1.09
method | result | size |
risch | \(\frac {3 x^{2}+7 x +5}{3 \sqrt {x^{2}+x +1}}-\frac {3 \arcsinh \left (\frac {2 \sqrt {3}\, \left (x +\frac {1}{2}\right )}{3}\right )}{2}\) | \(33\) |
trager | \(\frac {3 x^{2}+7 x +5}{3 \sqrt {x^{2}+x +1}}+\frac {3 \ln \left (2 \sqrt {x^{2}+x +1}-1-2 x \right )}{2}\) | \(40\) |
default | \(\frac {x^{2}}{\sqrt {x^{2}+x +1}}+\frac {3 x}{2 \sqrt {x^{2}+x +1}}+\frac {5}{4 \sqrt {x^{2}+x +1}}+\frac {\frac {5}{12}+\frac {5 x}{6}}{\sqrt {x^{2}+x +1}}-\frac {3 \arcsinh \left (\frac {2 \sqrt {3}\, \left (x +\frac {1}{2}\right )}{3}\right )}{2}\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.59, size = 47, normalized size = 0.84 \begin {gather*} \frac {x^{2}}{\sqrt {x^{2} + x + 1}} + \frac {7 \, x}{3 \, \sqrt {x^{2} + x + 1}} + \frac {5}{3 \, \sqrt {x^{2} + x + 1}} - \frac {3}{2} \, \operatorname {arsinh}\left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 64, normalized size = 1.14 \begin {gather*} \frac {19 \, x^{2} + 18 \, {\left (x^{2} + x + 1\right )} \log \left (-2 \, x + 2 \, \sqrt {x^{2} + x + 1} - 1\right ) + 4 \, {\left (3 \, x^{2} + 7 \, x + 5\right )} \sqrt {x^{2} + x + 1} + 19 \, x + 19}{12 \, {\left (x^{2} + x + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{3}}{\left (x^{2} + x + 1\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.83, size = 38, normalized size = 0.68 \begin {gather*} \frac {{\left (3 \, x + 7\right )} x + 5}{3 \, \sqrt {x^{2} + x + 1}} + \frac {3}{2} \, \log \left (-2 \, x + 2 \, \sqrt {x^{2} + x + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {x^3}{{\left (x^2+x+1\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________