Optimal. Leaf size=17 \[ -e^{-x}+x-e^{-x} x \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {6874, 2207,
2225} \begin {gather*} -e^{-x} x+x-e^{-x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2225
Rule 6874
Rubi steps
\begin {align*} \int e^{-x} \left (e^x+x\right ) \, dx &=\int \left (1+e^{-x} x\right ) \, dx\\ &=x+\int e^{-x} x \, dx\\ &=x-e^{-x} x+\int e^{-x} \, dx\\ &=-e^{-x}+x-e^{-x} x\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 13, normalized size = 0.76 \begin {gather*} e^{-x} (-1-x)+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 16, normalized size = 0.94
method | result | size |
risch | \(x +\left (-1-x \right ) {\mathrm e}^{-x}\) | \(13\) |
norman | \(\left (-1+{\mathrm e}^{x} x -x \right ) {\mathrm e}^{-x}\) | \(15\) |
default | \(-{\mathrm e}^{-x}+x -x \,{\mathrm e}^{-x}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.54, size = 11, normalized size = 0.65 \begin {gather*} -{\left (x + 1\right )} e^{\left (-x\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.67, size = 14, normalized size = 0.82 \begin {gather*} {\left (x e^{x} - x - 1\right )} e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 8, normalized size = 0.47 \begin {gather*} x + \left (- x - 1\right ) e^{- x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 11, normalized size = 0.65 \begin {gather*} -{\left (x + 1\right )} e^{\left (-x\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 15, normalized size = 0.88 \begin {gather*} x-{\mathrm {e}}^{-x}-x\,{\mathrm {e}}^{-x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________