3.66.8 \(\int \frac {x+2 x^2+e^{\frac {-5+e x}{x}} (5+x)}{x} \, dx\)

Optimal. Leaf size=22 \[ -\left (\left (-1-e^{e-\frac {5}{x}}-x\right ) x\right )+\log (9) \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 16, normalized size of antiderivative = 0.73, number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {14, 2288} \begin {gather*} x^2+e^{e-\frac {5}{x}} x+x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x + E^(E - 5/x)*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 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} &=\int \left (1+2 x+\frac {e^{e-\frac {5}{x}} (5+x)}{x}\right ) \, dx\\ &=x+x^2+\int \frac {e^{e-\frac {5}{x}} (5+x)}{x} \, dx\\ &=x+e^{e-\frac {5}{x}} x+x^2\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 16, normalized size = 0.73 \begin {gather*} x+e^{e-\frac {5}{x}} x+x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x + E^(E - 5/x)*x + x^2

________________________________________________________________________________________

fricas [A]  time = 0.66, size = 18, normalized size = 0.82 \begin {gather*} x^{2} + x e^{\left (\frac {x e - 5}{x}\right )} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2 + x*e^((x*e - 5)/x) + x

________________________________________________________________________________________

giac [B]  time = 0.18, size = 87, normalized size = 3.95 \begin {gather*} \frac {5 \, {\left (\frac {{\left (x e - 5\right )} e^{\left (\frac {x e - 5}{x}\right )}}{x} + \frac {x e - 5}{x} - e - e^{\left (\frac {x e - 5}{x} + 1\right )} - 5\right )}}{\frac {2 \, {\left (x e - 5\right )} e}{x} - \frac {{\left (x e - 5\right )}^{2}}{x^{2}} - e^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

5*((x*e - 5)*e^((x*e - 5)/x)/x + (x*e - 5)/x - e - e^((x*e - 5)/x + 1) - 5)/(2*(x*e - 5)*e/x - (x*e - 5)^2/x^2
 - e^2)

________________________________________________________________________________________

maple [A]  time = 0.23, size = 17, normalized size = 0.77




method result size



derivativedivides \(x +{\mathrm e}^{-\frac {5}{x}+{\mathrm e}} x +x^{2}\) \(17\)
default \(x +{\mathrm e}^{-\frac {5}{x}+{\mathrm e}} x +x^{2}\) \(17\)
norman \(x +x^{2}+{\mathrm e}^{\frac {x \,{\mathrm e}-5}{x}} x\) \(19\)
risch \(x +x^{2}+{\mathrm e}^{\frac {x \,{\mathrm e}-5}{x}} x\) \(19\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((5+x)*exp((x*exp(1)-5)/x)+2*x^2+x)/x,x,method=_RETURNVERBOSE)

[Out]

x+exp(-5/x+exp(1))*x+x^2

________________________________________________________________________________________

maxima [C]  time = 0.41, size = 28, normalized size = 1.27 \begin {gather*} x^{2} - 5 \, {\rm Ei}\left (-\frac {5}{x}\right ) e^{e} + 5 \, e^{e} \Gamma \left (-1, \frac {5}{x}\right ) + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2 - 5*Ei(-5/x)*e^e + 5*e^e*gamma(-1, 5/x) + x

________________________________________________________________________________________

mupad [B]  time = 4.04, size = 16, normalized size = 0.73 \begin {gather*} x+x^2+x\,{\mathrm {e}}^{-\frac {5}{x}}\,{\mathrm {e}}^{\mathrm {e}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x + exp((x*exp(1) - 5)/x)*(x + 5) + 2*x^2)/x,x)

[Out]

x + x^2 + x*exp(-5/x)*exp(exp(1))

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 15, normalized size = 0.68 \begin {gather*} x^{2} + x e^{\frac {e x - 5}{x}} + x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((5+x)*exp((x*exp(1)-5)/x)+2*x**2+x)/x,x)

[Out]

x**2 + x*exp((E*x - 5)/x) + x

________________________________________________________________________________________