3.51.60 \(\int \frac {e^{-\frac {e^2}{x}} (15 x+e^2 (-15+5 x)+e^{\frac {e^2}{x}} (-12+5 x-3 x^3+2 x^4))}{x^3} \, dx\)

Optimal. Leaf size=33 \[ \frac {(-3+x) \left (-1+5 e^{-\frac {e^2}{x}}+x^2+\frac {-2+2 x}{x}\right )}{x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.41, antiderivative size = 65, normalized size of antiderivative = 1.97, number of steps used = 9, number of rules used = 4, integrand size = 52, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {6742, 2212, 2209, 14} \begin {gather*} x^2+\frac {6}{x^2}-3 x-15 e^{-\frac {e^2}{x}-2}+5 \left (3+e^2\right ) e^{-\frac {e^2}{x}-2}-\frac {15 e^{-\frac {e^2}{x}}}{x}-\frac {5}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-15*E^(-2 - E^2/x) + 5*E^(-2 - E^2/x)*(3 + E^2) + 6/x^2 - 5/x - 15/(E^(E^2/x)*x) - 3*x + x^2

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2209

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> Simp[((e + f*x)^n*
F^(a + b*(c + d*x)^n))/(b*f*n*(c + d*x)^n*Log[F]), x] /; FreeQ[{F, a, b, c, d, e, f, n}, x] && EqQ[m, n - 1] &
& EqQ[d*e - c*f, 0]

Rule 2212

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^(m
 - n + 1)*F^(a + b*(c + d*x)^n))/(b*d*n*Log[F]), x] - Dist[(m - n + 1)/(b*n*Log[F]), Int[(c + d*x)^(m - n)*F^(
a + b*(c + d*x)^n), x], x] /; FreeQ[{F, a, b, c, d}, x] && IntegerQ[(2*(m + 1))/n] && LtQ[0, (m + 1)/n, 5] &&
IntegerQ[n] && (LtQ[0, n, m + 1] || LtQ[m, n, 0])

Rule 6742

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

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {5 e^{-\frac {e^2}{x}} \left (-3 e^2+\left (3+e^2\right ) x\right )}{x^3}+\frac {-12+5 x-3 x^3+2 x^4}{x^3}\right ) \, dx\\ &=5 \int \frac {e^{-\frac {e^2}{x}} \left (-3 e^2+\left (3+e^2\right ) x\right )}{x^3} \, dx+\int \frac {-12+5 x-3 x^3+2 x^4}{x^3} \, dx\\ &=5 \int \left (-\frac {3 e^{2-\frac {e^2}{x}}}{x^3}+\frac {e^{-\frac {e^2}{x}} \left (3+e^2\right )}{x^2}\right ) \, dx+\int \left (-3-\frac {12}{x^3}+\frac {5}{x^2}+2 x\right ) \, dx\\ &=\frac {6}{x^2}-\frac {5}{x}-3 x+x^2-15 \int \frac {e^{2-\frac {e^2}{x}}}{x^3} \, dx+\left (5 \left (3+e^2\right )\right ) \int \frac {e^{-\frac {e^2}{x}}}{x^2} \, dx\\ &=5 e^{-2-\frac {e^2}{x}} \left (3+e^2\right )+\frac {6}{x^2}-\frac {5}{x}-\frac {15 e^{-\frac {e^2}{x}}}{x}-3 x+x^2-\frac {15 \int \frac {e^{2-\frac {e^2}{x}}}{x^2} \, dx}{e^2}\\ &=-15 e^{-2-\frac {e^2}{x}}+5 e^{-2-\frac {e^2}{x}} \left (3+e^2\right )+\frac {6}{x^2}-\frac {5}{x}-\frac {15 e^{-\frac {e^2}{x}}}{x}-3 x+x^2\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.13, size = 33, normalized size = 1.00 \begin {gather*} \frac {6-5 x+5 e^{-\frac {e^2}{x}} (-3+x) x-3 x^3+x^4}{x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(6 - 5*x + (5*(-3 + x)*x)/E^(E^2/x) - 3*x^3 + x^4)/x^2

________________________________________________________________________________________

fricas [A]  time = 0.49, size = 42, normalized size = 1.27 \begin {gather*} \frac {{\left (5 \, x^{2} + {\left (x^{4} - 3 \, x^{3} - 5 \, x + 6\right )} e^{\left (\frac {e^{2}}{x}\right )} - 15 \, x\right )} e^{\left (-\frac {e^{2}}{x}\right )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(5*x^2 + (x^4 - 3*x^3 - 5*x + 6)*e^(e^2/x) - 15*x)*e^(-e^2/x)/x^2

________________________________________________________________________________________

giac [B]  time = 0.14, size = 63, normalized size = 1.91 \begin {gather*} -x^{2} {\left (\frac {3 \, e^{8}}{x} - \frac {5 \, e^{\left (-\frac {e^{2}}{x} + 8\right )}}{x^{2}} + \frac {5 \, e^{8}}{x^{3}} + \frac {15 \, e^{\left (-\frac {e^{2}}{x} + 8\right )}}{x^{3}} - \frac {6 \, e^{8}}{x^{4}} - e^{8}\right )} e^{\left (-8\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.16, size = 33, normalized size = 1.00




method result size



risch \(x^{2}-3 x +\frac {-5 x +6}{x^{2}}+\frac {5 \left (x -3\right ) {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}\) \(33\)
norman \(\frac {\left (x^{4} {\mathrm e}^{\frac {{\mathrm e}^{2}}{x}}-15 x +5 x^{2}-5 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}} x -3 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}} x^{3}+6 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}}\right ) {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x^{2}}\) \(65\)
derivativedivides \(-{\mathrm e}^{-4} \left (-\frac {6 \,{\mathrm e}^{4}}{x^{2}}-x^{2} {\mathrm e}^{4}+3 x \,{\mathrm e}^{4}-15 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{2}-5 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{4}-15 \,{\mathrm e}^{2} \left (-\frac {{\mathrm e}^{2} {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}-{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}\right )+\frac {5 \,{\mathrm e}^{4}}{x}\right )\) \(102\)
default \(-{\mathrm e}^{-4} \left (-\frac {6 \,{\mathrm e}^{4}}{x^{2}}-x^{2} {\mathrm e}^{4}+3 x \,{\mathrm e}^{4}-15 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{2}-5 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{4}-15 \,{\mathrm e}^{2} \left (-\frac {{\mathrm e}^{2} {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}-{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}\right )+\frac {5 \,{\mathrm e}^{4}}{x}\right )\) \(102\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2-3*x+(-5*x+6)/x^2+5*(x-3)/x*exp(-exp(2)/x)

________________________________________________________________________________________

maxima [C]  time = 0.37, size = 51, normalized size = 1.55 \begin {gather*} x^{2} - 15 \, e^{\left (-2\right )} \Gamma \left (2, \frac {e^{2}}{x}\right ) - 3 \, x - \frac {5}{x} + \frac {6}{x^{2}} + 15 \, e^{\left (-\frac {e^{2}}{x} - 2\right )} + 5 \, e^{\left (-\frac {e^{2}}{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2 - 15*e^(-2)*gamma(2, e^2/x) - 3*x - 5/x + 6/x^2 + 15*e^(-e^2/x - 2) + 5*e^(-e^2/x)

________________________________________________________________________________________

mupad [B]  time = 3.38, size = 38, normalized size = 1.15 \begin {gather*} 5\,{\mathrm {e}}^{-\frac {{\mathrm {e}}^2}{x}}-3\,x-\frac {x\,\left (15\,{\mathrm {e}}^{-\frac {{\mathrm {e}}^2}{x}}+5\right )-6}{x^2}+x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(-exp(2)/x)*(15*x + exp(exp(2)/x)*(5*x - 3*x^3 + 2*x^4 - 12) + exp(2)*(5*x - 15)))/x^3,x)

[Out]

5*exp(-exp(2)/x) - 3*x - (x*(15*exp(-exp(2)/x) + 5) - 6)/x^2 + x^2

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 27, normalized size = 0.82 \begin {gather*} x^{2} - 3 x + \frac {\left (5 x - 15\right ) e^{- \frac {e^{2}}{x}}}{x} + \frac {6 - 5 x}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x**4-3*x**3+5*x-12)*exp(exp(2)/x)+(5*x-15)*exp(2)+15*x)/x**3/exp(exp(2)/x),x)

[Out]

x**2 - 3*x + (5*x - 15)*exp(-exp(2)/x)/x + (6 - 5*x)/x**2

________________________________________________________________________________________