\(\int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx\) [5417]

   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 = 20, antiderivative size = 25 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=-e+e^x+\frac {5+25 e^2 \left (\frac {1}{x}-x\right )}{x} \]

[Out]

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

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.92, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {14, 2225, 37} \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=\frac {\left (x+10 e^2\right )^2}{4 e^2 x^2}+e^x \]

[In]

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

[Out]

E^x + (10*E^2 + x)^2/(4*E^2*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 37

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

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]

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

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=e^x+\frac {25 e^2}{x^2}+\frac {5}{x} \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.05 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.64

method result size
default \(\frac {5}{x}+\frac {25 \,{\mathrm e}^{2}}{x^{2}}+{\mathrm e}^{x}\) \(16\)
risch \(\frac {25 \,{\mathrm e}^{2}+5 x}{x^{2}}+{\mathrm e}^{x}\) \(16\)
parts \(\frac {5}{x}+\frac {25 \,{\mathrm e}^{2}}{x^{2}}+{\mathrm e}^{x}\) \(16\)
norman \(\frac {{\mathrm e}^{x} x^{2}+5 x +25 \,{\mathrm e}^{2}}{x^{2}}\) \(19\)
parallelrisch \(\frac {{\mathrm e}^{x} x^{2}+5 x +25 \,{\mathrm e}^{2}}{x^{2}}\) \(19\)

[In]

int((exp(x)*x^3-50*exp(2)-5*x)/x^3,x,method=_RETURNVERBOSE)

[Out]

5/x+25*exp(2)/x^2+exp(x)

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=\frac {x^{2} e^{x} + 5 \, x + 25 \, e^{2}}{x^{2}} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.08 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.60 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=e^{x} - \frac {- 5 x - 25 e^{2}}{x^{2}} \]

[In]

integrate((exp(x)*x**3-50*exp(2)-5*x)/x**3,x)

[Out]

exp(x) - (-5*x - 25*exp(2))/x**2

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.60 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=\frac {5}{x} + \frac {25 \, e^{2}}{x^{2}} + e^{x} \]

[In]

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

[Out]

5/x + 25*e^2/x^2 + e^x

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx=\frac {x^{2} e^{x} + 5 \, x + 25 \, e^{2}}{x^{2}} \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 11.35 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.60 \[ \int \frac {-50 e^2-5 x+e^x x^3}{x^3} \, dx={\mathrm {e}}^x+\frac {5\,x+25\,{\mathrm {e}}^2}{x^2} \]

[In]

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

[Out]

exp(x) + (5*x + 25*exp(2))/x^2