\(\int e^{-x} x \, dx\) [75]

   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 = 7, antiderivative size = 16 \[ \int e^{-x} x \, dx=-e^{-x}-e^{-x} x \]

[Out]

-1/exp(x)-x/exp(x)

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2207, 2225} \[ \int e^{-x} x \, dx=-e^{-x} x-e^{-x} \]

[In]

Int[x/E^x,x]

[Out]

-E^(-x) - x/E^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]

Rubi steps \begin{align*} \text {integral}& = -e^{-x} x+\int e^{-x} \, dx \\ & = -e^{-x}-e^{-x} x \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.69 \[ \int e^{-x} x \, dx=e^{-x} (-1-x) \]

[In]

Integrate[x/E^x,x]

[Out]

(-1 - x)/E^x

Maple [A] (verified)

Time = 0.02 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.62

method result size
gosper \(-\left (1+x \right ) {\mathrm e}^{-x}\) \(10\)
norman \(\left (-1-x \right ) {\mathrm e}^{-x}\) \(11\)
risch \(\left (-1-x \right ) {\mathrm e}^{-x}\) \(11\)
parallelrisch \(\left (-1-x \right ) {\mathrm e}^{-x}\) \(11\)
meijerg \(1-\frac {\left (2 x +2\right ) {\mathrm e}^{-x}}{2}\) \(14\)
default \(-{\mathrm e}^{-x}-x \,{\mathrm e}^{-x}\) \(15\)

[In]

int(x/exp(x),x,method=_RETURNVERBOSE)

[Out]

-(1+x)/exp(x)

Fricas [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.56 \[ \int e^{-x} x \, dx=-{\left (x + 1\right )} e^{\left (-x\right )} \]

[In]

integrate(x/exp(x),x, algorithm="fricas")

[Out]

-(x + 1)*e^(-x)

Sympy [A] (verification not implemented)

Time = 0.03 (sec) , antiderivative size = 7, normalized size of antiderivative = 0.44 \[ \int e^{-x} x \, dx=\left (- x - 1\right ) e^{- x} \]

[In]

integrate(x/exp(x),x)

[Out]

(-x - 1)*exp(-x)

Maxima [A] (verification not implemented)

none

Time = 0.22 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.56 \[ \int e^{-x} x \, dx=-{\left (x + 1\right )} e^{\left (-x\right )} \]

[In]

integrate(x/exp(x),x, algorithm="maxima")

[Out]

-(x + 1)*e^(-x)

Giac [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.56 \[ \int e^{-x} x \, dx=-{\left (x + 1\right )} e^{\left (-x\right )} \]

[In]

integrate(x/exp(x),x, algorithm="giac")

[Out]

-(x + 1)*e^(-x)

Mupad [B] (verification not implemented)

Time = 0.02 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.56 \[ \int e^{-x} x \, dx=-{\mathrm {e}}^{-x}\,\left (x+1\right ) \]

[In]

int(x*exp(-x),x)

[Out]

-exp(-x)*(x + 1)