3.2 \(\int x^2 (x+2 x^2)^2 \, dx\)

Optimal. Leaf size=22 \[ \frac {4 x^7}{7}+\frac {2 x^6}{3}+\frac {x^5}{5} \]

[Out]

1/5*x^5+2/3*x^6+4/7*x^7

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {647, 43} \[ \frac {4 x^7}{7}+\frac {2 x^6}{3}+\frac {x^5}{5} \]

Antiderivative was successfully verified.

[In]

Int[x^2*(x + 2*x^2)^2,x]

[Out]

x^5/5 + (2*x^6)/3 + (4*x^7)/7

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 647

Int[((e_.)*(x_))^(m_.)*((b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[1/e^p, Int[(e*x)^(m + p)*(b + c*x)
^p, x], x] /; FreeQ[{b, c, e, m}, x] && IntegerQ[p]

Rubi steps

\begin {align*} \int x^2 \left (x+2 x^2\right )^2 \, dx &=\int x^4 (1+2 x)^2 \, dx\\ &=\int \left (x^4+4 x^5+4 x^6\right ) \, dx\\ &=\frac {x^5}{5}+\frac {2 x^6}{3}+\frac {4 x^7}{7}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 22, normalized size = 1.00 \[ \frac {4 x^7}{7}+\frac {2 x^6}{3}+\frac {x^5}{5} \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*(x + 2*x^2)^2,x]

[Out]

x^5/5 + (2*x^6)/3 + (4*x^7)/7

________________________________________________________________________________________

fricas [A]  time = 0.37, size = 16, normalized size = 0.73 \[ \frac {4}{7} x^{7} + \frac {2}{3} x^{6} + \frac {1}{5} x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(2*x^2+x)^2,x, algorithm="fricas")

[Out]

4/7*x^7 + 2/3*x^6 + 1/5*x^5

________________________________________________________________________________________

giac [A]  time = 1.01, size = 16, normalized size = 0.73 \[ \frac {4}{7} \, x^{7} + \frac {2}{3} \, x^{6} + \frac {1}{5} \, x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(2*x^2+x)^2,x, algorithm="giac")

[Out]

4/7*x^7 + 2/3*x^6 + 1/5*x^5

________________________________________________________________________________________

maple [A]  time = 0.00, size = 17, normalized size = 0.77 \[ \frac {4}{7} x^{7}+\frac {2}{3} x^{6}+\frac {1}{5} x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(2*x^2+x)^2,x)

[Out]

1/5*x^5+2/3*x^6+4/7*x^7

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 16, normalized size = 0.73 \[ \frac {4}{7} \, x^{7} + \frac {2}{3} \, x^{6} + \frac {1}{5} \, x^{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(2*x^2+x)^2,x, algorithm="maxima")

[Out]

4/7*x^7 + 2/3*x^6 + 1/5*x^5

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 15, normalized size = 0.68 \[ \frac {x^5\,\left (60\,x^2+70\,x+21\right )}{105} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(x + 2*x^2)^2,x)

[Out]

(x^5*(70*x + 60*x^2 + 21))/105

________________________________________________________________________________________

sympy [A]  time = 0.06, size = 17, normalized size = 0.77 \[ \frac {4 x^{7}}{7} + \frac {2 x^{6}}{3} + \frac {x^{5}}{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(2*x**2+x)**2,x)

[Out]

4*x**7/7 + 2*x**6/3 + x**5/5

________________________________________________________________________________________