3.15.59 \(\int \frac {e^{-2 x} (e^{2 x}+6 e^{8 x} x^2+162 x^3-162 x^4+e^x (18 x^2-18 x^3))}{x^2} \, dx\)

Optimal. Leaf size=24 \[ -7+e^{6 x}-\frac {1}{x}+\left (1+9 e^{-x} x\right )^2 \]

________________________________________________________________________________________

Rubi [A]  time = 0.37, antiderivative size = 40, normalized size of antiderivative = 1.67, number of steps used = 12, number of rules used = 4, integrand size = 50, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {6688, 2194, 2176, 2196} \begin {gather*} 81 e^{-2 x} x^2+18 e^{-x}+e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^(2*x) + 6*E^(8*x)*x^2 + 162*x^3 - 162*x^4 + E^x*(18*x^2 - 18*x^3))/(E^(2*x)*x^2),x]

[Out]

18/E^x + E^(6*x) - (18*(1 - x))/E^x - x^(-1) + (81*x^2)/E^(2*x)

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

Rule 6688

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (6 e^{6 x}-18 e^{-x} (-1+x)+\frac {1}{x^2}-162 e^{-2 x} (-1+x) x\right ) \, dx\\ &=-\frac {1}{x}+6 \int e^{6 x} \, dx-18 \int e^{-x} (-1+x) \, dx-162 \int e^{-2 x} (-1+x) x \, dx\\ &=e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x}-18 \int e^{-x} \, dx-162 \int \left (-e^{-2 x} x+e^{-2 x} x^2\right ) \, dx\\ &=18 e^{-x}+e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x}+162 \int e^{-2 x} x \, dx-162 \int e^{-2 x} x^2 \, dx\\ &=18 e^{-x}+e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x}-81 e^{-2 x} x+81 e^{-2 x} x^2+81 \int e^{-2 x} \, dx-162 \int e^{-2 x} x \, dx\\ &=-\frac {81}{2} e^{-2 x}+18 e^{-x}+e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x}+81 e^{-2 x} x^2-81 \int e^{-2 x} \, dx\\ &=18 e^{-x}+e^{6 x}-18 e^{-x} (1-x)-\frac {1}{x}+81 e^{-2 x} x^2\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 29, normalized size = 1.21 \begin {gather*} e^{6 x}-\frac {1}{x}+18 e^{-x} x+81 e^{-2 x} x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^(2*x) + 6*E^(8*x)*x^2 + 162*x^3 - 162*x^4 + E^x*(18*x^2 - 18*x^3))/(E^(2*x)*x^2),x]

[Out]

E^(6*x) - x^(-1) + (18*x)/E^x + (81*x^2)/E^(2*x)

________________________________________________________________________________________

fricas [A]  time = 0.93, size = 33, normalized size = 1.38 \begin {gather*} \frac {{\left (81 \, x^{3} + 18 \, x^{2} e^{x} + x e^{\left (8 \, x\right )} - e^{\left (2 \, x\right )}\right )} e^{\left (-2 \, x\right )}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((6*x^2*exp(x)^2*exp(3*x)^2+exp(x)^2+(-18*x^3+18*x^2)*exp(x)-162*x^4+162*x^3)/exp(x)^2/x^2,x, algorit
hm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.29, size = 30, normalized size = 1.25 \begin {gather*} \frac {81 \, x^{3} e^{\left (-2 \, x\right )} + 18 \, x^{2} e^{\left (-x\right )} + x e^{\left (6 \, x\right )} - 1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((6*x^2*exp(x)^2*exp(3*x)^2+exp(x)^2+(-18*x^3+18*x^2)*exp(x)-162*x^4+162*x^3)/exp(x)^2/x^2,x, algorit
hm="giac")

[Out]

(81*x^3*e^(-2*x) + 18*x^2*e^(-x) + x*e^(6*x) - 1)/x

________________________________________________________________________________________

maple [A]  time = 0.03, size = 27, normalized size = 1.12




method result size



default \(-\frac {1}{x}+{\mathrm e}^{6 x}+18 x \,{\mathrm e}^{-x}+81 x^{2} {\mathrm e}^{-2 x}\) \(27\)
risch \(-\frac {1}{x}+{\mathrm e}^{6 x}+18 x \,{\mathrm e}^{-x}+81 x^{2} {\mathrm e}^{-2 x}\) \(27\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((6*x^2*exp(x)^2*exp(3*x)^2+exp(x)^2+(-18*x^3+18*x^2)*exp(x)-162*x^4+162*x^3)/exp(x)^2/x^2,x,method=_RETURN
VERBOSE)

[Out]

-1/x+exp(x)^6+18*x/exp(x)+81*x^2/exp(x)^2

________________________________________________________________________________________

maxima [B]  time = 0.56, size = 52, normalized size = 2.17 \begin {gather*} 18 \, {\left (x + 1\right )} e^{\left (-x\right )} + \frac {81}{2} \, {\left (2 \, x^{2} + 2 \, x + 1\right )} e^{\left (-2 \, x\right )} - \frac {81}{2} \, {\left (2 \, x + 1\right )} e^{\left (-2 \, x\right )} - \frac {1}{x} + e^{\left (6 \, x\right )} - 18 \, e^{\left (-x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((6*x^2*exp(x)^2*exp(3*x)^2+exp(x)^2+(-18*x^3+18*x^2)*exp(x)-162*x^4+162*x^3)/exp(x)^2/x^2,x, algorit
hm="maxima")

[Out]

18*(x + 1)*e^(-x) + 81/2*(2*x^2 + 2*x + 1)*e^(-2*x) - 81/2*(2*x + 1)*e^(-2*x) - 1/x + e^(6*x) - 18*e^(-x)

________________________________________________________________________________________

mupad [B]  time = 1.06, size = 26, normalized size = 1.08 \begin {gather*} {\mathrm {e}}^{6\,x}+18\,x\,{\mathrm {e}}^{-x}+81\,x^2\,{\mathrm {e}}^{-2\,x}-\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(-2*x)*(exp(2*x) + exp(x)*(18*x^2 - 18*x^3) + 6*x^2*exp(8*x) + 162*x^3 - 162*x^4))/x^2,x)

[Out]

exp(6*x) + 18*x*exp(-x) + 81*x^2*exp(-2*x) - 1/x

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 24, normalized size = 1.00 \begin {gather*} 81 x^{2} e^{- 2 x} + 18 x e^{- x} + e^{6 x} - \frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((6*x**2*exp(x)**2*exp(3*x)**2+exp(x)**2+(-18*x**3+18*x**2)*exp(x)-162*x**4+162*x**3)/exp(x)**2/x**2,
x)

[Out]

81*x**2*exp(-2*x) + 18*x*exp(-x) + exp(6*x) - 1/x

________________________________________________________________________________________