\(\int \frac {e^9+5 x^2+e^x x^3+x^2 \log (\frac {e^{e^x}}{5})}{x^2} \, dx\) [6653]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 34, antiderivative size = 27 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=x \left (5-\frac {e^9 (1-x)}{x^2}+\log \left (\frac {e^{e^x}}{5}\right )\right ) \]

[Out]

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

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.44, number of steps used = 11, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {14, 2207, 2225, 2320, 2189, 29} \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=e^x x+5 x-\frac {e^9}{x}-\left (e^x-\log \left (\frac {e^{e^x}}{5}\right )\right ) \log \left (e^x\right ) \]

[In]

Int[(E^9 + 5*x^2 + E^x*x^3 + x^2*Log[E^E^x/5])/x^2,x]

[Out]

-(E^9/x) + 5*x + E^x*x - (E^x - Log[E^E^x/5])*Log[E^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 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 2189

Int[(v_)/(u_), x_Symbol] :> With[{a = Simplify[D[u, x]], b = Simplify[D[v, x]]}, Simp[b*(x/a), x] - Dist[(b*u
- a*v)/a, Int[1/u, x], x] /; NeQ[b*u - a*v, 0]] /; PiecewiseLinearQ[u, v, x]

Rule 2207

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] &&  !TrueQ[$UseGamma]

Rule 2225

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 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rubi steps \begin{align*} \text {integral}& = \int \left (e^x x+\frac {e^9+5 x^2+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2}\right ) \, dx \\ & = \int e^x x \, dx+\int \frac {e^9+5 x^2+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx \\ & = e^x x-\int e^x \, dx+\int \left (\frac {e^9+5 x^2}{x^2}+\log \left (\frac {e^{e^x}}{5}\right )\right ) \, dx \\ & = -e^x+e^x x+\int \frac {e^9+5 x^2}{x^2} \, dx+\int \log \left (\frac {e^{e^x}}{5}\right ) \, dx \\ & = -e^x+e^x x+\int \left (5+\frac {e^9}{x^2}\right ) \, dx+\text {Subst}\left (\int \frac {\log \left (\frac {e^x}{5}\right )}{x} \, dx,x,e^x\right ) \\ & = -\frac {e^9}{x}+5 x+e^x x-\left (e^x-\log \left (\frac {e^{e^x}}{5}\right )\right ) \text {Subst}\left (\int \frac {1}{x} \, dx,x,e^x\right ) \\ & = -\frac {e^9}{x}+5 x+e^x x-x \left (e^x-\log \left (\frac {e^{e^x}}{5}\right )\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.89 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=-\frac {e^9}{x}+5 x+x \log \left (\frac {e^{e^x}}{5}\right ) \]

[In]

Integrate[(E^9 + 5*x^2 + E^x*x^3 + x^2*Log[E^E^x/5])/x^2,x]

[Out]

-(E^9/x) + 5*x + x*Log[E^E^x/5]

Maple [A] (verified)

Time = 0.23 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93

method result size
parallelrisch \(-\frac {-x^{2} \ln \left (\frac {{\mathrm e}^{{\mathrm e}^{x}}}{5}\right )-5 x^{2}+{\mathrm e}^{9}}{x}\) \(25\)
risch \(x \ln \left ({\mathrm e}^{{\mathrm e}^{x}}\right )-\frac {2 x^{2} \ln \left (5\right )-10 x^{2}+2 \,{\mathrm e}^{9}}{2 x}\) \(30\)
default \(5 x -\frac {{\mathrm e}^{9}}{x}+{\mathrm e}^{x} x +\ln \left (\frac {{\mathrm e}^{{\mathrm e}^{x}}}{5}\right ) \ln \left ({\mathrm e}^{x}\right )-\ln \left ({\mathrm e}^{x}\right ) {\mathrm e}^{x}\) \(33\)
parts \(5 x -\frac {{\mathrm e}^{9}}{x}+{\mathrm e}^{x} x +\ln \left (\frac {{\mathrm e}^{{\mathrm e}^{x}}}{5}\right ) \ln \left ({\mathrm e}^{x}\right )-\ln \left ({\mathrm e}^{x}\right ) {\mathrm e}^{x}\) \(33\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.38 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=\frac {x^{2} e^{x} - x^{2} \log \left (5\right ) + 5 \, x^{2} - e^{9}}{x} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.56 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=x e^{x} + x \left (5 - \log {\left (5 \right )}\right ) - \frac {e^{9}}{x} \]

[In]

integrate((x**2*ln(1/5*exp(exp(x)))+exp(x)*x**3+exp(9)+5*x**2)/x**2,x)

[Out]

x*exp(x) + x*(5 - log(5)) - exp(9)/x

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.19 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx={\left (x - 1\right )} e^{x} - x e^{x} + x \log \left (\frac {1}{5} \, e^{\left (e^{x}\right )}\right ) + 5 \, x - \frac {e^{9}}{x} + e^{x} \]

[In]

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

[Out]

(x - 1)*e^x - x*e^x + x*log(1/5*e^(e^x)) + 5*x - e^9/x + e^x

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=\frac {x^{2} e^{x} - x^{2} \log \left (5\right ) + 5 \, x^{2} - e^{9}}{x} \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 0.14 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.67 \[ \int \frac {e^9+5 x^2+e^x x^3+x^2 \log \left (\frac {e^{e^x}}{5}\right )}{x^2} \, dx=x\,\left ({\mathrm {e}}^x-\ln \left (5\right )+5\right )-\frac {{\mathrm {e}}^9}{x} \]

[In]

int((exp(9) + x^3*exp(x) + x^2*log(exp(exp(x))/5) + 5*x^2)/x^2,x)

[Out]

x*(exp(x) - log(5) + 5) - exp(9)/x