Optimal. Leaf size=74 \[ \frac {1}{12} (2 x+1) \left (x^2+x+1\right )^{5/2}+\frac {5}{64} (2 x+1) \left (x^2+x+1\right )^{3/2}+\frac {45}{512} (2 x+1) \sqrt {x^2+x+1}+\frac {135 \sinh ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{1024} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {612, 619, 215} \[ \frac {1}{12} (2 x+1) \left (x^2+x+1\right )^{5/2}+\frac {5}{64} (2 x+1) \left (x^2+x+1\right )^{3/2}+\frac {45}{512} (2 x+1) \sqrt {x^2+x+1}+\frac {135 \sinh ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{1024} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 612
Rule 619
Rubi steps
\begin {align*} \int \left (1+x+x^2\right )^{5/2} \, dx &=\frac {1}{12} (1+2 x) \left (1+x+x^2\right )^{5/2}+\frac {5}{8} \int \left (1+x+x^2\right )^{3/2} \, dx\\ &=\frac {5}{64} (1+2 x) \left (1+x+x^2\right )^{3/2}+\frac {1}{12} (1+2 x) \left (1+x+x^2\right )^{5/2}+\frac {45}{128} \int \sqrt {1+x+x^2} \, dx\\ &=\frac {45}{512} (1+2 x) \sqrt {1+x+x^2}+\frac {5}{64} (1+2 x) \left (1+x+x^2\right )^{3/2}+\frac {1}{12} (1+2 x) \left (1+x+x^2\right )^{5/2}+\frac {135 \int \frac {1}{\sqrt {1+x+x^2}} \, dx}{1024}\\ &=\frac {45}{512} (1+2 x) \sqrt {1+x+x^2}+\frac {5}{64} (1+2 x) \left (1+x+x^2\right )^{3/2}+\frac {1}{12} (1+2 x) \left (1+x+x^2\right )^{5/2}+\frac {\left (45 \sqrt {3}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{3}}} \, dx,x,1+2 x\right )}{1024}\\ &=\frac {45}{512} (1+2 x) \sqrt {1+x+x^2}+\frac {5}{64} (1+2 x) \left (1+x+x^2\right )^{3/2}+\frac {1}{12} (1+2 x) \left (1+x+x^2\right )^{5/2}+\frac {135 \sinh ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )}{1024}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 56, normalized size = 0.76 \[ \frac {2 \sqrt {x^2+x+1} \left (256 x^5+640 x^4+1264 x^3+1256 x^2+1142 x+383\right )+405 \sinh ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right )}{3072} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.28, size = 62, normalized size = 0.84 \[ \frac {\sqrt {x^2+x+1} \left (256 x^5+640 x^4+1264 x^3+1256 x^2+1142 x+383\right )}{1536}-\frac {135 \log \left (2 \sqrt {x^2+x+1}-2 x-1\right )}{1024} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 54, normalized size = 0.73 \[ \frac {1}{1536} \, {\left (256 \, x^{5} + 640 \, x^{4} + 1264 \, x^{3} + 1256 \, x^{2} + 1142 \, x + 383\right )} \sqrt {x^{2} + x + 1} - \frac {135}{1024} \, \log \left (-2 \, x + 2 \, \sqrt {x^{2} + x + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.62, size = 54, normalized size = 0.73 \[ \frac {1}{1536} \, {\left (2 \, {\left (4 \, {\left (2 \, {\left (8 \, {\left (2 \, x + 5\right )} x + 79\right )} x + 157\right )} x + 571\right )} x + 383\right )} \sqrt {x^{2} + x + 1} - \frac {135}{1024} \, \log \left (-2 \, x + 2 \, \sqrt {x^{2} + x + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.35, size = 48, normalized size = 0.65
method | result | size |
risch | \(\frac {\left (256 x^{5}+640 x^{4}+1264 x^{3}+1256 x^{2}+1142 x +383\right ) \sqrt {x^{2}+x +1}}{1536}+\frac {135 \arcsinh \left (\frac {2 \left (\frac {1}{2}+x \right ) \sqrt {3}}{3}\right )}{1024}\) | \(48\) |
trager | \(\left (\frac {1}{6} x^{5}+\frac {5}{12} x^{4}+\frac {79}{96} x^{3}+\frac {157}{192} x^{2}+\frac {571}{768} x +\frac {383}{1536}\right ) \sqrt {x^{2}+x +1}-\frac {135 \ln \left (2 \sqrt {x^{2}+x +1}-1-2 x \right )}{1024}\) | \(54\) |
default | \(\frac {\left (1+2 x \right ) \left (x^{2}+x +1\right )^{\frac {5}{2}}}{12}+\frac {5 \left (1+2 x \right ) \left (x^{2}+x +1\right )^{\frac {3}{2}}}{64}+\frac {45 \left (1+2 x \right ) \sqrt {x^{2}+x +1}}{512}+\frac {135 \arcsinh \left (\frac {2 \left (\frac {1}{2}+x \right ) \sqrt {3}}{3}\right )}{1024}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.43, size = 77, normalized size = 1.04 \[ \frac {1}{6} \, {\left (x^{2} + x + 1\right )}^{\frac {5}{2}} x + \frac {1}{12} \, {\left (x^{2} + x + 1\right )}^{\frac {5}{2}} + \frac {5}{32} \, {\left (x^{2} + x + 1\right )}^{\frac {3}{2}} x + \frac {5}{64} \, {\left (x^{2} + x + 1\right )}^{\frac {3}{2}} + \frac {45}{256} \, \sqrt {x^{2} + x + 1} x + \frac {45}{512} \, \sqrt {x^{2} + x + 1} + \frac {135}{1024} \, \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]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 56, normalized size = 0.76 \[ \frac {135\,\ln \left (x+\sqrt {x^2+x+1}+\frac {1}{2}\right )}{1024}+\frac {5\,\left (x+\frac {1}{2}\right )\,{\left (x^2+x+1\right )}^{3/2}}{32}+\frac {\left (x+\frac {1}{2}\right )\,{\left (x^2+x+1\right )}^{5/2}}{6}+\frac {45\,\left (\frac {x}{2}+\frac {1}{4}\right )\,\sqrt {x^2+x+1}}{128} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (x^{2} + x + 1\right )^{\frac {5}{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________