Optimal. Leaf size=65 \[ \frac{1}{4} x \left (x^2+x+1\right )^{3/2}-\frac{5}{24} \left (x^2+x+1\right )^{3/2}+\frac{1}{64} (2 x+1) \sqrt{x^2+x+1}+\frac{3}{128} \sinh ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0562837, antiderivative size = 65, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357 \[ \frac{1}{4} x \left (x^2+x+1\right )^{3/2}-\frac{5}{24} \left (x^2+x+1\right )^{3/2}+\frac{1}{64} (2 x+1) \sqrt{x^2+x+1}+\frac{3}{128} \sinh ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right ) \]
Antiderivative was successfully verified.
[In] Int[x^2*Sqrt[1 + x + x^2],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 3.42105, size = 65, normalized size = 1. \[ \frac{x \left (x^{2} + x + 1\right )^{\frac{3}{2}}}{4} + \frac{\left (2 x + 1\right ) \sqrt{x^{2} + x + 1}}{64} - \frac{5 \left (x^{2} + x + 1\right )^{\frac{3}{2}}}{24} + \frac{3 \operatorname{atanh}{\left (\frac{2 x + 1}{2 \sqrt{x^{2} + x + 1}} \right )}}{128} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2*(x**2+x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0343313, size = 46, normalized size = 0.71 \[ \frac{1}{384} \left (2 \sqrt{x^2+x+1} \left (48 x^3+8 x^2+14 x-37\right )+9 \sinh ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )\right ) \]
Antiderivative was successfully verified.
[In] Integrate[x^2*Sqrt[1 + x + x^2],x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.007, size = 49, normalized size = 0.8 \[{\frac{x}{4} \left ({x}^{2}+x+1 \right ) ^{{\frac{3}{2}}}}-{\frac{5}{24} \left ({x}^{2}+x+1 \right ) ^{{\frac{3}{2}}}}+{\frac{1+2\,x}{64}\sqrt{{x}^{2}+x+1}}+{\frac{3}{128}{\it Arcsinh} \left ({\frac{2\,\sqrt{3}}{3} \left ( x+{\frac{1}{2}} \right ) } \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2*(x^2+x+1)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.62022, size = 76, normalized size = 1.17 \[ \frac{1}{4} \,{\left (x^{2} + x + 1\right )}^{\frac{3}{2}} x - \frac{5}{24} \,{\left (x^{2} + x + 1\right )}^{\frac{3}{2}} + \frac{1}{32} \, \sqrt{x^{2} + x + 1} x + \frac{1}{64} \, \sqrt{x^{2} + x + 1} + \frac{3}{128} \, \operatorname{arsinh}\left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + x + 1)*x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.199672, size = 266, normalized size = 4.09 \[ -\frac{98304 \, x^{8} + 262144 \, x^{7} + 425984 \, x^{6} + 344064 \, x^{5} + 120960 \, x^{4} - 102144 \, x^{3} - 137952 \, x^{2} + 72 \,{\left (128 \, x^{4} + 256 \, x^{3} + 288 \, x^{2} - 8 \,{\left (16 \, x^{3} + 24 \, x^{2} + 18 \, x + 5\right )} \sqrt{x^{2} + x + 1} + 160 \, x + 41\right )} \log \left (-2 \, x + 2 \, \sqrt{x^{2} + x + 1} - 1\right ) - 8 \,{\left (12288 \, x^{7} + 26624 \, x^{6} + 35328 \, x^{5} + 17664 \, x^{4} - 2256 \, x^{3} - 12984 \, x^{2} - 8298 \, x - 2369\right )} \sqrt{x^{2} + x + 1} - 78688 \, x - 18227}{3072 \,{\left (128 \, x^{4} + 256 \, x^{3} + 288 \, x^{2} - 8 \,{\left (16 \, x^{3} + 24 \, x^{2} + 18 \, x + 5\right )} \sqrt{x^{2} + x + 1} + 160 \, x + 41\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + x + 1)*x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int x^{2} \sqrt{x^{2} + x + 1}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2*(x**2+x+1)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.206108, size = 59, normalized size = 0.91 \[ \frac{1}{192} \,{\left (2 \,{\left (4 \,{\left (6 \, x + 1\right )} x + 7\right )} x - 37\right )} \sqrt{x^{2} + x + 1} - \frac{3}{128} \,{\rm ln}\left (-2 \, x + 2 \, \sqrt{x^{2} + x + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + x + 1)*x^2,x, algorithm="giac")
[Out]