Optimal. Leaf size=53 \[ \frac {1}{3} x^2 \sqrt {1+x+x^2}-\frac {1}{24} (1+10 x) \sqrt {1+x+x^2}+\frac {7}{16} \sinh ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 53, 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 = {756, 793, 633,
221} \begin {gather*} \frac {1}{3} \sqrt {x^2+x+1} x^2-\frac {1}{24} (10 x+1) \sqrt {x^2+x+1}+\frac {7}{16} \sinh ^{-1}\left (\frac {2 x+1}{\sqrt {3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 633
Rule 756
Rule 793
Rubi steps
\begin {align*} \int \frac {x^3}{\sqrt {1+x+x^2}} \, dx &=\frac {1}{3} x^2 \sqrt {1+x+x^2}+\frac {1}{3} \int \frac {\left (-2-\frac {5 x}{2}\right ) x}{\sqrt {1+x+x^2}} \, dx\\ &=\frac {1}{3} x^2 \sqrt {1+x+x^2}-\frac {1}{24} (1+10 x) \sqrt {1+x+x^2}+\frac {7}{16} \int \frac {1}{\sqrt {1+x+x^2}} \, dx\\ &=\frac {1}{3} x^2 \sqrt {1+x+x^2}-\frac {1}{24} (1+10 x) \sqrt {1+x+x^2}+\frac {7 \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{3}}} \, dx,x,1+2 x\right )}{16 \sqrt {3}}\\ &=\frac {1}{3} x^2 \sqrt {1+x+x^2}-\frac {1}{24} (1+10 x) \sqrt {1+x+x^2}+\frac {7}{16} \sinh ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 47, normalized size = 0.89 \begin {gather*} \frac {1}{24} \sqrt {1+x+x^2} \left (-1-10 x+8 x^2\right )-\frac {7}{16} \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 = 47, normalized size = 0.89
method | result | size |
risch | \(\frac {\left (8 x^{2}-10 x -1\right ) \sqrt {x^{2}+x +1}}{24}+\frac {7 \arcsinh \left (\frac {2 \sqrt {3}\, \left (x +\frac {1}{2}\right )}{3}\right )}{16}\) | \(33\) |
trager | \(\left (\frac {1}{3} x^{2}-\frac {5}{12} x -\frac {1}{24}\right ) \sqrt {x^{2}+x +1}+\frac {7 \ln \left (1+2 x +2 \sqrt {x^{2}+x +1}\right )}{16}\) | \(39\) |
default | \(\frac {x^{2} \sqrt {x^{2}+x +1}}{3}-\frac {5 x \sqrt {x^{2}+x +1}}{12}-\frac {\sqrt {x^{2}+x +1}}{24}+\frac {7 \arcsinh \left (\frac {2 \sqrt {3}\, \left (x +\frac {1}{2}\right )}{3}\right )}{16}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.07, size = 48, normalized size = 0.91 \begin {gather*} \frac {1}{3} \, \sqrt {x^{2} + x + 1} x^{2} - \frac {5}{12} \, \sqrt {x^{2} + x + 1} x - \frac {1}{24} \, \sqrt {x^{2} + x + 1} + \frac {7}{16} \, \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 = 39, normalized size = 0.74 \begin {gather*} \frac {1}{24} \, {\left (8 \, x^{2} - 10 \, x - 1\right )} \sqrt {x^{2} + x + 1} - \frac {7}{16} \, \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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{3}}{\sqrt {x^{2} + x + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.00, size = 39, normalized size = 0.74 \begin {gather*} \frac {1}{24} \, {\left (2 \, {\left (4 \, x - 5\right )} x - 1\right )} \sqrt {x^{2} + x + 1} - \frac {7}{16} \, \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}{\sqrt {x^2+x+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________