3.55.52 \(\int \frac {1}{4} e^x (-2 x+47 x^2+16 x^3) \, dx\)

Optimal. Leaf size=17 \[ \frac {1}{4} e^x x \left (-x+16 x^2\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 19, normalized size of antiderivative = 1.12, number of steps used = 13, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {12, 1594, 2196, 2176, 2194} \begin {gather*} 4 e^x x^3-\frac {e^x x^2}{4} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^x*(-2*x + 47*x^2 + 16*x^3))/4,x]

[Out]

-1/4*(E^x*x^2) + 4*E^x*x^3

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 1594

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^
(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] && PosQ[r - p]

Rule 2176

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^m
*(b*F^(g*(e + f*x)))^n)/(f*g*n*Log[F]), x] - Dist[(d*m)/(f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !$UseGamma === True

Rule 2194

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rule 2196

Int[(F_)^((c_.)*(v_))*(u_), x_Symbol] :> Int[ExpandIntegrand[F^(c*ExpandToSum[v, x]), u, x], x] /; FreeQ[{F, c
}, x] && PolynomialQ[u, x] && LinearQ[v, x] &&  !$UseGamma === True

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{4} \int e^x \left (-2 x+47 x^2+16 x^3\right ) \, dx\\ &=\frac {1}{4} \int e^x x \left (-2+47 x+16 x^2\right ) \, dx\\ &=\frac {1}{4} \int \left (-2 e^x x+47 e^x x^2+16 e^x x^3\right ) \, dx\\ &=-\left (\frac {1}{2} \int e^x x \, dx\right )+4 \int e^x x^3 \, dx+\frac {47}{4} \int e^x x^2 \, dx\\ &=-\frac {e^x x}{2}+\frac {47 e^x x^2}{4}+4 e^x x^3+\frac {\int e^x \, dx}{2}-12 \int e^x x^2 \, dx-\frac {47}{2} \int e^x x \, dx\\ &=\frac {e^x}{2}-24 e^x x-\frac {e^x x^2}{4}+4 e^x x^3+\frac {47 \int e^x \, dx}{2}+24 \int e^x x \, dx\\ &=24 e^x-\frac {e^x x^2}{4}+4 e^x x^3-24 \int e^x \, dx\\ &=-\frac {1}{4} e^x x^2+4 e^x x^3\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 15, normalized size = 0.88 \begin {gather*} \frac {1}{4} e^x x^2 (-1+16 x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^x*(-2*x + 47*x^2 + 16*x^3))/4,x]

[Out]

(E^x*x^2*(-1 + 16*x))/4

________________________________________________________________________________________

fricas [A]  time = 0.63, size = 15, normalized size = 0.88 \begin {gather*} \frac {1}{4} \, {\left (16 \, x^{3} - x^{2}\right )} e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(16*x^3+47*x^2-2*x)*exp(x),x, algorithm="fricas")

[Out]

1/4*(16*x^3 - x^2)*e^x

________________________________________________________________________________________

giac [A]  time = 0.18, size = 15, normalized size = 0.88 \begin {gather*} \frac {1}{4} \, {\left (16 \, x^{3} - x^{2}\right )} e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(16*x^3+47*x^2-2*x)*exp(x),x, algorithm="giac")

[Out]

1/4*(16*x^3 - x^2)*e^x

________________________________________________________________________________________

maple [A]  time = 0.02, size = 13, normalized size = 0.76




method result size



gosper \(\frac {{\mathrm e}^{x} \left (16 x -1\right ) x^{2}}{4}\) \(13\)
default \(-\frac {{\mathrm e}^{x} x^{2}}{4}+4 \,{\mathrm e}^{x} x^{3}\) \(16\)
norman \(-\frac {{\mathrm e}^{x} x^{2}}{4}+4 \,{\mathrm e}^{x} x^{3}\) \(16\)
risch \(\frac {\left (16 x^{3}-x^{2}\right ) {\mathrm e}^{x}}{4}\) \(16\)
meijerg \(-\left (-4 x^{3}+12 x^{2}-24 x +24\right ) {\mathrm e}^{x}+\frac {47 \left (3 x^{2}-6 x +6\right ) {\mathrm e}^{x}}{12}+\frac {\left (-2 x +2\right ) {\mathrm e}^{x}}{4}\) \(44\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/4*(16*x^3+47*x^2-2*x)*exp(x),x,method=_RETURNVERBOSE)

[Out]

1/4*exp(x)*(16*x-1)*x^2

________________________________________________________________________________________

maxima [B]  time = 0.39, size = 37, normalized size = 2.18 \begin {gather*} 4 \, {\left (x^{3} - 3 \, x^{2} + 6 \, x - 6\right )} e^{x} + \frac {47}{4} \, {\left (x^{2} - 2 \, x + 2\right )} e^{x} - \frac {1}{2} \, {\left (x - 1\right )} e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(16*x^3+47*x^2-2*x)*exp(x),x, algorithm="maxima")

[Out]

4*(x^3 - 3*x^2 + 6*x - 6)*e^x + 47/4*(x^2 - 2*x + 2)*e^x - 1/2*(x - 1)*e^x

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 12, normalized size = 0.71 \begin {gather*} \frac {x^2\,{\mathrm {e}}^x\,\left (16\,x-1\right )}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(x)*(47*x^2 - 2*x + 16*x^3))/4,x)

[Out]

(x^2*exp(x)*(16*x - 1))/4

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 12, normalized size = 0.71 \begin {gather*} \frac {\left (16 x^{3} - x^{2}\right ) e^{x}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(16*x**3+47*x**2-2*x)*exp(x),x)

[Out]

(16*x**3 - x**2)*exp(x)/4

________________________________________________________________________________________