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

Optimal. Leaf size=24 \[ e^{-4+2 x-2 x^2-\frac {4 (4+x)}{x}} x^2 \]

________________________________________________________________________________________

Rubi [B]  time = 0.04, antiderivative size = 51, normalized size of antiderivative = 2.12, number of steps used = 1, number of rules used = 1, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.028, Rules used = {2288} \begin {gather*} \frac {e^{-2 x^2+2 x-\frac {4 (x+4)}{x}-4} \left (-2 x^3+x^2+8\right )}{\frac {2 (x+4)}{x^2}-2 x-\frac {2}{x}+1} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 2288

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 {e^{-4+2 x-2 x^2-\frac {4 (4+x)}{x}} \left (8+x^2-2 x^3\right )}{1-\frac {2}{x}-2 x+\frac {2 (4+x)}{x^2}}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.53, size = 23, normalized size = 0.96 \begin {gather*} x^{2} e^{\left (-\frac {2 \, {\left (x^{3} - x^{2} + 4 \, x + 8\right )}}{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2*e^(-2*(x^3 - x^2 + 4*x + 8)/x)

________________________________________________________________________________________

giac [A]  time = 0.20, size = 23, normalized size = 0.96 \begin {gather*} x^{2} e^{\left (-\frac {2 \, {\left (x^{3} - x^{2} + 4 \, x + 8\right )}}{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2*e^(-2*(x^3 - x^2 + 4*x + 8)/x)

________________________________________________________________________________________

maple [A]  time = 0.13, size = 24, normalized size = 1.00




method result size



risch \(x^{2} {\mathrm e}^{-\frac {2 \left (x^{3}-x^{2}+4 x +8\right )}{x}}\) \(24\)
gosper \(x^{2} {\mathrm e}^{-\frac {4 \left (4+x \right )}{x}} {\mathrm e}^{-2 x^{2}+2 x -4}\) \(26\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 20, normalized size = 0.83 \begin {gather*} x^{2} e^{\left (-2 \, x^{2} + 2 \, x - \frac {16}{x} - 8\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2*e^(-2*x^2 + 2*x - 16/x - 8)

________________________________________________________________________________________

mupad [B]  time = 5.71, size = 22, normalized size = 0.92 \begin {gather*} x^2\,{\mathrm {e}}^{2\,x}\,{\mathrm {e}}^{-8}\,{\mathrm {e}}^{-2\,x^2}\,{\mathrm {e}}^{-\frac {16}{x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2*exp(2*x)*exp(-8)*exp(-2*x^2)*exp(-16/x)

________________________________________________________________________________________

sympy [A]  time = 1.05, size = 22, normalized size = 0.92 \begin {gather*} x^{2} e^{- \frac {4 \left (x + 4\right )}{x}} e^{- 2 x^{2} + 2 x - 4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________