3.36.8 \(\int \frac {2+e^{e^{\frac {-60+e^4}{e^4}}} x^2+e^x x^2}{x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {14, 2194} \begin {gather*} e^{e^{1-\frac {60}{e^4}}} x+e^x-\frac {2}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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 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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 22, normalized size = 1.00 \begin {gather*} e^x-\frac {2}{x}+e^{e^{1-\frac {60}{e^4}}} x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 19, normalized size = 0.86




method result size



risch \({\mathrm e}^{{\mathrm e}^{1-60 \,{\mathrm e}^{-4}}} x -\frac {2}{x}+{\mathrm e}^{x}\) \(19\)
default \(-\frac {2}{x}+{\mathrm e}^{x}+{\mathrm e}^{{\mathrm e} \,{\mathrm e}^{-60 \,{\mathrm e}^{-4}}} x\) \(22\)
norman \(\frac {-2+x^{2} {\mathrm e}^{{\mathrm e} \,{\mathrm e}^{-60 \,{\mathrm e}^{-4}}}+{\mathrm e}^{x} x}{x}\) \(26\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 18, normalized size = 0.82 \begin {gather*} x e^{\left (e^{\left (-60 \, e^{\left (-4\right )} + 1\right )}\right )} - \frac {2}{x} + e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 2.09, size = 19, normalized size = 0.86 \begin {gather*} {\mathrm {e}}^x+x\,{\mathrm {e}}^{{\mathrm {e}}^{-60\,{\mathrm {e}}^{-4}}\,\mathrm {e}}-\frac {2}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 19, normalized size = 0.86 \begin {gather*} x e^{\frac {e}{e^{\frac {60}{e^{4}}}}} + e^{x} - \frac {2}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________