Optimal. Leaf size=12 \[ 4+3 e^{-x}-x \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 0.92, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2280, 45}
\begin {gather*} 3 e^{-x}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2280
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\text {Subst}\left (\int \frac {-3-x}{x^2} \, dx,x,e^x\right )\\ &=\text {Subst}\left (\int \left (-\frac {3}{x^2}-\frac {1}{x}\right ) \, dx,x,e^x\right )\\ &=3 e^{-x}-x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 11, normalized size = 0.92 \begin {gather*} 3 e^{-x}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 13, normalized size = 1.08
method | result | size |
risch | \(-x +3 \,{\mathrm e}^{-x}\) | \(11\) |
derivativedivides | \(3 \,{\mathrm e}^{-x}-\ln \left ({\mathrm e}^{x}\right )\) | \(13\) |
default | \(3 \,{\mathrm e}^{-x}-\ln \left ({\mathrm e}^{x}\right )\) | \(13\) |
norman | \(\left (-{\mathrm e}^{x} x +3\right ) {\mathrm e}^{-x}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 10, normalized size = 0.83 \begin {gather*} -x + 3 \, e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 12, normalized size = 1.00 \begin {gather*} -{\left (x e^{x} - 3\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 = 5, normalized size = 0.42 \begin {gather*} - x + 3 e^{- x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 10, normalized size = 0.83 \begin {gather*} -x + 3 \, e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 10, normalized size = 0.83 \begin {gather*} 3\,{\mathrm {e}}^{-x}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________