3.1.77 \(\int e^{-2 x} x^2 \, dx\) [77]

Optimal. Leaf size=32 \[ -\frac {1}{4} e^{-2 x}-\frac {1}{2} e^{-2 x} x-\frac {1}{2} e^{-2 x} x^2 \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2207, 2225} \begin {gather*} -\frac {1}{2} e^{-2 x} x^2-\frac {1}{2} e^{-2 x} x-\frac {e^{-2 x}}{4} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2/E^(2*x),x]

[Out]

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

Rule 2207

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] &&  !TrueQ[$UseGamma]

Rule 2225

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^{-2 x} x^2 \, dx &=-\frac {1}{2} e^{-2 x} x^2+\int e^{-2 x} x \, dx\\ &=-\frac {1}{2} e^{-2 x} x-\frac {1}{2} e^{-2 x} x^2+\frac {1}{2} \int e^{-2 x} \, dx\\ &=-\frac {1}{4} e^{-2 x}-\frac {1}{2} e^{-2 x} x-\frac {1}{2} e^{-2 x} x^2\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 19, normalized size = 0.59 \begin {gather*} -\frac {1}{4} e^{-2 x} \left (1+2 x+2 x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2/E^(2*x),x]

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 30, normalized size = 0.94

method result size
risch \(\left (-\frac {1}{2} x^{2}-\frac {1}{2} x -\frac {1}{4}\right ) {\mathrm e}^{-2 x}\) \(16\)
norman \(\left (-\frac {1}{2} x^{2}-\frac {1}{2} x -\frac {1}{4}\right ) {\mathrm e}^{-2 x}\) \(18\)
gosper \(-\frac {\left (2 x^{2}+2 x +1\right ) {\mathrm e}^{-2 x}}{4}\) \(19\)
meijerg \(\frac {1}{4}-\frac {\left (12 x^{2}+12 x +6\right ) {\mathrm e}^{-2 x}}{24}\) \(19\)
derivativedivides \(-\frac {{\mathrm e}^{-2 x}}{4}-\frac {x \,{\mathrm e}^{-2 x}}{2}-\frac {x^{2} {\mathrm e}^{-2 x}}{2}\) \(30\)
default \(-\frac {{\mathrm e}^{-2 x}}{4}-\frac {x \,{\mathrm e}^{-2 x}}{2}-\frac {x^{2} {\mathrm e}^{-2 x}}{2}\) \(30\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/exp(2*x),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 2.49, size = 16, normalized size = 0.50 \begin {gather*} -\frac {1}{4} \, {\left (2 \, x^{2} + 2 \, x + 1\right )} e^{\left (-2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.78, size = 16, normalized size = 0.50 \begin {gather*} -\frac {1}{4} \, {\left (2 \, x^{2} + 2 \, x + 1\right )} e^{\left (-2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.02, size = 17, normalized size = 0.53 \begin {gather*} \frac {\left (- 2 x^{2} - 2 x - 1\right ) e^{- 2 x}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.45, size = 16, normalized size = 0.50 \begin {gather*} -\frac {1}{4} \, {\left (2 \, x^{2} + 2 \, x + 1\right )} e^{\left (-2 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.08, size = 16, normalized size = 0.50 \begin {gather*} -\frac {{\mathrm {e}}^{-2\,x}\,\left (4\,x^2+4\,x+2\right )}{8} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(exp(-2*x)*(4*x + 4*x^2 + 2))/8

________________________________________________________________________________________