3.22.5 \(\int e^{-2+e^x-x} (-8 x+4 x^2-4 e^x x^2) \, dx\) [2105]

Optimal. Leaf size=19 \[ e^5-4 e^{-2+e^x-x} x^2 \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 33, normalized size of antiderivative = 1.74, number of steps used = 1, number of rules used = 1, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.036, Rules used = {2326} \begin {gather*} -\frac {4 e^{-x+e^x-2} \left (x^2-e^x x^2\right )}{1-e^x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^(-2 + E^x - x)*(-8*x + 4*x^2 - 4*E^x*x^2),x]

[Out]

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

Rule 2326

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = v*(y/(Log[F]*D[u, x]))}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=-\frac {4 e^{-2+e^x-x} \left (x^2-e^x x^2\right )}{1-e^x}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 15, normalized size = 0.79 \begin {gather*} -4 e^{-2+e^x-x} x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^(-2 + E^x - x)*(-8*x + 4*x^2 - 4*E^x*x^2),x]

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.13, size = 14, normalized size = 0.74

method result size
risch \(-4 x^{2} {\mathrm e}^{{\mathrm e}^{x}-2-x}\) \(14\)
norman \(-4 \,{\mathrm e}^{-2} x^{2} {\mathrm e}^{{\mathrm e}^{x}-x}\) \(19\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-4*exp(x)*x^2+4*x^2-8*x)/exp(2)/exp(x-exp(x)),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.31, size = 13, normalized size = 0.68 \begin {gather*} -4 \, x^{2} e^{\left (-x + e^{x} - 2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-4*exp(x)*x^2+4*x^2-8*x)/exp(2)/exp(x-exp(x)),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 13, normalized size = 0.68 \begin {gather*} -4 \, x^{2} e^{\left (-x + e^{x} - 2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-4*exp(x)*x^2+4*x^2-8*x)/exp(2)/exp(x-exp(x)),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.08, size = 15, normalized size = 0.79 \begin {gather*} - \frac {4 x^{2} e^{- x + e^{x}}}{e^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-4*exp(x)*x**2+4*x**2-8*x)/exp(2)/exp(x-exp(x)),x)

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 13, normalized size = 0.68 \begin {gather*} -4 \, x^{2} e^{\left (-x + e^{x} - 2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-4*exp(x)*x^2+4*x^2-8*x)/exp(2)/exp(x-exp(x)),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 1.14, size = 14, normalized size = 0.74 \begin {gather*} -4\,x^2\,{\mathrm {e}}^{-x}\,{\mathrm {e}}^{{\mathrm {e}}^x}\,{\mathrm {e}}^{-2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-exp(-2)*exp(exp(x) - x)*(8*x + 4*x^2*exp(x) - 4*x^2),x)

[Out]

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

________________________________________________________________________________________