3.76 \(\int e^x x^2 \, dx\)

Optimal. Leaf size=19 \[ e^x x^2-2 e^x x+2 e^x \]

[Out]

2*exp(x)-2*exp(x)*x+exp(x)*x^2

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2176, 2194} \[ e^x x^2-2 e^x x+2 e^x \]

Antiderivative was successfully verified.

[In]

Int[E^x*x^2,x]

[Out]

2*E^x - 2*E^x*x + E^x*x^2

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]

Rubi steps

\begin {align*} \int e^x x^2 \, dx &=e^x x^2-2 \int e^x x \, dx\\ &=-2 e^x x+e^x x^2+2 \int e^x \, dx\\ &=2 e^x-2 e^x x+e^x x^2\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 12, normalized size = 0.63 \[ e^x \left (x^2-2 x+2\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[E^x*x^2,x]

[Out]

E^x*(2 - 2*x + x^2)

________________________________________________________________________________________

fricas [A]  time = 0.40, size = 11, normalized size = 0.58 \[ {\left (x^{2} - 2 \, x + 2\right )} e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2 - 2*x + 2)*e^x

________________________________________________________________________________________

giac [A]  time = 0.01, size = 11, normalized size = 0.58 \[ {\left (x^{2} - 2 \, x + 2\right )} e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2 - 2*x + 2)*e^x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 12, normalized size = 0.63 \[ \left (x^{2}-2 x +2\right ) {\mathrm e}^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2-2*x+2)*exp(x)

________________________________________________________________________________________

maxima [A]  time = 0.53, size = 11, normalized size = 0.58 \[ {\left (x^{2} - 2 \, x + 2\right )} e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2 - 2*x + 2)*e^x

________________________________________________________________________________________

mupad [B]  time = 0.02, size = 11, normalized size = 0.58 \[ {\mathrm {e}}^x\,\left (x^2-2\,x+2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(x)*(x^2 - 2*x + 2)

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 10, normalized size = 0.53 \[ \left (x^{2} - 2 x + 2\right ) e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*x**2,x)

[Out]

(x**2 - 2*x + 2)*exp(x)

________________________________________________________________________________________