3.3.35 \(\int x^2 (a+b x+c x^2+d x^3)^p (3 a+b (4+p) x+c (5+2 p) x^2+d (6+3 p) x^3) \, dx\) [235]

Optimal. Leaf size=23 \[ x^3 \left (a+b x+c x^2+d x^3\right )^{1+p} \]

[Out]

x^3*(d*x^3+c*x^2+b*x+a)^(1+p)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 51, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.020, Rules used = {1602} \begin {gather*} x^3 \left (a+b x+c x^2+d x^3\right )^{p+1} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*(a + b*x + c*x^2 + d*x^3)^p*(3*a + b*(4 + p)*x + c*(5 + 2*p)*x^2 + d*(6 + 3*p)*x^3),x]

[Out]

x^3*(a + b*x + c*x^2 + d*x^3)^(1 + p)

Rule 1602

Int[(Pp_)*(Qq_)^(m_.), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x]}, Simp[Coeff[Pp, x, p]*x^(p - q +
 1)*(Qq^(m + 1)/((p + m*q + 1)*Coeff[Qq, x, q])), x] /; NeQ[p + m*q + 1, 0] && EqQ[(p + m*q + 1)*Coeff[Qq, x,
q]*Pp, Coeff[Pp, x, p]*x^(p - q)*((p - q + 1)*Qq + (m + 1)*x*D[Qq, x])]] /; FreeQ[m, x] && PolyQ[Pp, x] && Pol
yQ[Qq, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int x^2 \left (a+b x+c x^2+d x^3\right )^p \left (3 a+b (4+p) x+c (5+2 p) x^2+d (6+3 p) x^3\right ) \, dx &=x^3 \left (a+b x+c x^2+d x^3\right )^{1+p}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 2.05, size = 21, normalized size = 0.91 \begin {gather*} x^3 (a+x (b+x (c+d x)))^{1+p} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a + b*x + c*x^2 + d*x^3)^p*(3*a + b*(4 + p)*x + c*(5 + 2*p)*x^2 + d*(6 + 3*p)*x^3),x]

[Out]

x^3*(a + x*(b + x*(c + d*x)))^(1 + p)

________________________________________________________________________________________

Maple [A]
time = 0.04, size = 24, normalized size = 1.04

method result size
gosper \(x^{3} \left (d \,x^{3}+c \,x^{2}+b x +a \right )^{1+p}\) \(24\)
risch \(\left (d \,x^{3}+c \,x^{2}+b x +a \right )^{p} x^{3} \left (d \,x^{3}+c \,x^{2}+b x +a \right )\) \(37\)
norman \(a \,x^{3} {\mathrm e}^{p \ln \left (d \,x^{3}+c \,x^{2}+b x +a \right )}+b \,x^{4} {\mathrm e}^{p \ln \left (d \,x^{3}+c \,x^{2}+b x +a \right )}+c \,x^{5} {\mathrm e}^{p \ln \left (d \,x^{3}+c \,x^{2}+b x +a \right )}+x^{6} d \,{\mathrm e}^{p \ln \left (d \,x^{3}+c \,x^{2}+b x +a \right )}\) \(98\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(d*x^3+c*x^2+b*x+a)^p*(3*a+b*(4+p)*x+c*(5+2*p)*x^2+d*(6+3*p)*x^3),x,method=_RETURNVERBOSE)

[Out]

x^3*(d*x^3+c*x^2+b*x+a)^(1+p)

________________________________________________________________________________________

Maxima [A]
time = 0.32, size = 39, normalized size = 1.70 \begin {gather*} {\left (d x^{6} + c x^{5} + b x^{4} + a x^{3}\right )} {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d*x^3+c*x^2+b*x+a)^p*(3*a+b*(4+p)*x+c*(5+2*p)*x^2+d*(6+3*p)*x^3),x, algorithm="maxima")

[Out]

(d*x^6 + c*x^5 + b*x^4 + a*x^3)*(d*x^3 + c*x^2 + b*x + a)^p

________________________________________________________________________________________

Fricas [A]
time = 0.42, size = 39, normalized size = 1.70 \begin {gather*} {\left (d x^{6} + c x^{5} + b x^{4} + a x^{3}\right )} {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d*x^3+c*x^2+b*x+a)^p*(3*a+b*(4+p)*x+c*(5+2*p)*x^2+d*(6+3*p)*x^3),x, algorithm="fricas")

[Out]

(d*x^6 + c*x^5 + b*x^4 + a*x^3)*(d*x^3 + c*x^2 + b*x + a)^p

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(d*x**3+c*x**2+b*x+a)**p*(3*a+b*(4+p)*x+c*(5+2*p)*x**2+d*(6+3*p)*x**3),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 89 vs. \(2 (23) = 46\).
time = 4.65, size = 89, normalized size = 3.87 \begin {gather*} {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} d x^{6} + {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} c x^{5} + {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} b x^{4} + {\left (d x^{3} + c x^{2} + b x + a\right )}^{p} a x^{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(d*x^3+c*x^2+b*x+a)^p*(3*a+b*(4+p)*x+c*(5+2*p)*x^2+d*(6+3*p)*x^3),x, algorithm="giac")

[Out]

(d*x^3 + c*x^2 + b*x + a)^p*d*x^6 + (d*x^3 + c*x^2 + b*x + a)^p*c*x^5 + (d*x^3 + c*x^2 + b*x + a)^p*b*x^4 + (d
*x^3 + c*x^2 + b*x + a)^p*a*x^3

________________________________________________________________________________________

Mupad [B]
time = 2.55, size = 39, normalized size = 1.70 \begin {gather*} {\left (d\,x^3+c\,x^2+b\,x+a\right )}^p\,\left (d\,x^6+c\,x^5+b\,x^4+a\,x^3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*x + c*x^2 + d*x^3)^p*(3*a + b*x*(p + 4) + c*x^2*(2*p + 5) + d*x^3*(3*p + 6)),x)

[Out]

(a + b*x + c*x^2 + d*x^3)^p*(a*x^3 + b*x^4 + c*x^5 + d*x^6)

________________________________________________________________________________________