Optimal. Leaf size=42 \[ -\frac{1}{15} \left (-x^4-2 x^3-x^2+1\right )^{3/2} \left (3 x^4+6 x^3+3 x^2+2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.238925, antiderivative size = 59, normalized size of antiderivative = 1.4, number of steps used = 6, number of rules used = 6, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {1593, 1680, 12, 1247, 692, 629} \[ -\frac{1}{5} x^2 \left (-x^4-2 x^3-x^2+1\right )^{3/2} (x+1)^2-\frac{2}{15} \left (-x^4-2 x^3-x^2+1\right )^{3/2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1680
Rule 12
Rule 1247
Rule 692
Rule 629
Rubi steps
\begin{align*} \int (1+2 x) \left (x+x^2\right )^3 \sqrt{1-\left (x+x^2\right )^2} \, dx &=\int x^3 (1+x)^3 (1+2 x) \sqrt{1-\left (x+x^2\right )^2} \, dx\\ &=\operatorname{Subst}\left (\int \frac{1}{128} x \left (-1+4 x^2\right )^3 \sqrt{15+8 x^2-16 x^4} \, dx,x,\frac{1}{2}+x\right )\\ &=\frac{1}{128} \operatorname{Subst}\left (\int x \left (-1+4 x^2\right )^3 \sqrt{15+8 x^2-16 x^4} \, dx,x,\frac{1}{2}+x\right )\\ &=\frac{1}{256} \operatorname{Subst}\left (\int (-1+4 x)^3 \sqrt{15+8 x-16 x^2} \, dx,x,\left (\frac{1}{2}+x\right )^2\right )\\ &=-\frac{1}{5} x^2 (1+x)^2 \left (1-x^2-2 x^3-x^4\right )^{3/2}+\frac{1}{40} \operatorname{Subst}\left (\int (-1+4 x) \sqrt{15+8 x-16 x^2} \, dx,x,\left (\frac{1}{2}+x\right )^2\right )\\ &=-\frac{2}{15} \left (1-x^2-2 x^3-x^4\right )^{3/2}-\frac{1}{5} x^2 (1+x)^2 \left (1-x^2-2 x^3-x^4\right )^{3/2}\\ \end{align*}
Mathematica [A] time = 0.302387, size = 62, normalized size = 1.48 \[ \frac{1}{15} \sqrt{-x^4-2 x^3-x^2+1} \left (3 x^8+12 x^7+18 x^6+12 x^5+2 x^4-2 x^3-x^2-2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 51, normalized size = 1.2 \begin{align*}{\frac{ \left ( 3\,{x}^{4}+6\,{x}^{3}+3\,{x}^{2}+2 \right ) \left ({x}^{2}+x+1 \right ) \left ({x}^{2}+x-1 \right ) }{15}\sqrt{-{x}^{4}-2\,{x}^{3}-{x}^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1783, size = 80, normalized size = 1.9 \begin{align*} \frac{1}{15} \,{\left (3 \, x^{8} + 12 \, x^{7} + 18 \, x^{6} + 12 \, x^{5} + 2 \, x^{4} - 2 \, x^{3} - x^{2} - 2\right )} \sqrt{x^{2} + x + 1} \sqrt{-x^{2} - x + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.7886, size = 130, normalized size = 3.1 \begin{align*} \frac{1}{15} \,{\left (3 \, x^{8} + 12 \, x^{7} + 18 \, x^{6} + 12 \, x^{5} + 2 \, x^{4} - 2 \, x^{3} - x^{2} - 2\right )} \sqrt{-x^{4} - 2 \, x^{3} - x^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 12.3649, size = 182, normalized size = 4.33 \begin{align*} \frac{x^{8} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{5} + \frac{4 x^{7} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{5} + \frac{6 x^{6} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{5} + \frac{4 x^{5} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{5} + \frac{2 x^{4} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{15} - \frac{2 x^{3} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{15} - \frac{x^{2} \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{15} - \frac{2 \sqrt{- x^{4} - 2 x^{3} - x^{2} + 1}}{15} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17992, size = 69, normalized size = 1.64 \begin{align*} \frac{1}{15} \, \sqrt{-x^{4} - 2 \, x^{3} - x^{2} + 1}{\left ({\left ({\left ({\left (3 \,{\left ({\left ({\left (x + 4\right )} x + 6\right )} x + 4\right )} x + 2\right )} x - 2\right )} x - 1\right )} x^{2} - 2\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]