3.87 \(\int (2 x+3 x^2)^3 \, dx\)

Optimal. Leaf size=25 \[ \frac {27 x^7}{7}+9 x^6+\frac {36 x^5}{5}+2 x^4 \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {611} \[ \frac {27 x^7}{7}+9 x^6+\frac {36 x^5}{5}+2 x^4 \]

Antiderivative was successfully verified.

[In]

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

[Out]

2*x^4 + (36*x^5)/5 + 9*x^6 + (27*x^7)/7

Rule 611

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Int[ExpandIntegrand[(a + b*x + c*x^2)^p, x], x] /;
FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && IGtQ[p, 0] && (EqQ[a, 0] ||  !PerfectSquareQ[b^2 - 4*a*c])

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 25, normalized size = 1.00 \[ \frac {27 x^7}{7}+9 x^6+\frac {36 x^5}{5}+2 x^4 \]

Antiderivative was successfully verified.

[In]

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

[Out]

2*x^4 + (36*x^5)/5 + 9*x^6 + (27*x^7)/7

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.01, size = 25, normalized size = 1.00 \[ \frac {1}{35} \left (135 x^7+315 x^6+252 x^5+70 x^4\right ) \]

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(2*x + 3*x^2)^3,x]

[Out]

(70*x^4 + 252*x^5 + 315*x^6 + 135*x^7)/35

________________________________________________________________________________________

fricas [A]  time = 0.69, size = 21, normalized size = 0.84 \[ \frac {27}{7} x^{7} + 9 x^{6} + \frac {36}{5} x^{5} + 2 x^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

27/7*x^7 + 9*x^6 + 36/5*x^5 + 2*x^4

________________________________________________________________________________________

giac [A]  time = 0.94, size = 21, normalized size = 0.84 \[ \frac {27}{7} \, x^{7} + 9 \, x^{6} + \frac {36}{5} \, x^{5} + 2 \, x^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

27/7*x^7 + 9*x^6 + 36/5*x^5 + 2*x^4

________________________________________________________________________________________

maple [A]  time = 0.25, size = 21, normalized size = 0.84




method result size



gosper \(\frac {x^{4} \left (135 x^{3}+315 x^{2}+252 x +70\right )}{35}\) \(21\)
default \(2 x^{4}+\frac {36}{5} x^{5}+9 x^{6}+\frac {27}{7} x^{7}\) \(22\)
norman \(2 x^{4}+\frac {36}{5} x^{5}+9 x^{6}+\frac {27}{7} x^{7}\) \(22\)
risch \(2 x^{4}+\frac {36}{5} x^{5}+9 x^{6}+\frac {27}{7} x^{7}\) \(22\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3*x^2+2*x)^3,x,method=_RETURNVERBOSE)

[Out]

1/35*x^4*(135*x^3+315*x^2+252*x+70)

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 21, normalized size = 0.84 \[ \frac {27}{7} \, x^{7} + 9 \, x^{6} + \frac {36}{5} \, x^{5} + 2 \, x^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

27/7*x^7 + 9*x^6 + 36/5*x^5 + 2*x^4

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 21, normalized size = 0.84 \[ \frac {27\,x^7}{7}+9\,x^6+\frac {36\,x^5}{5}+2\,x^4 \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*x^4 + (36*x^5)/5 + 9*x^6 + (27*x^7)/7

________________________________________________________________________________________

sympy [A]  time = 0.06, size = 22, normalized size = 0.88 \[ \frac {27 x^{7}}{7} + 9 x^{6} + \frac {36 x^{5}}{5} + 2 x^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

27*x**7/7 + 9*x**6 + 36*x**5/5 + 2*x**4

________________________________________________________________________________________