Optimal. Leaf size=21 \[ -3-5 e^{-4+x}+e^x+\frac {1}{4} (-1-x) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 16, normalized size of antiderivative = 0.76, number of steps used = 4, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {12, 2194} \begin {gather*} -\frac {x}{4}-5 e^{x-4}+e^x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{4} \int \left (-1-20 e^{-4+x}+4 e^x\right ) \, dx\\ &=-\frac {x}{4}-5 \int e^{-4+x} \, dx+\int e^x \, dx\\ &=-5 e^{-4+x}+e^x-\frac {x}{4}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 16, normalized size = 0.76 \begin {gather*} -5 e^{-4+x}+e^x-\frac {x}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 17, normalized size = 0.81 \begin {gather*} -\frac {1}{4} \, {\left (x e^{4} - 4 \, {\left (e^{4} - 5\right )} e^{x}\right )} e^{\left (-4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.36, size = 12, normalized size = 0.57 \begin {gather*} -\frac {1}{4} \, x - 5 \, e^{\left (x - 4\right )} + e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 0.62
method | result | size |
default | \(-\frac {x}{4}-5 \,{\mathrm e}^{x -4}+{\mathrm e}^{x}\) | \(13\) |
risch | \(-\frac {x}{4}-5 \,{\mathrm e}^{x -4}+{\mathrm e}^{x}\) | \(13\) |
norman | \(\left ({\mathrm e}^{4}-5\right ) {\mathrm e}^{-4} {\mathrm e}^{x}-\frac {x}{4}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 12, normalized size = 0.57 \begin {gather*} -\frac {1}{4} \, x - 5 \, e^{\left (x - 4\right )} + e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 14, normalized size = 0.67 \begin {gather*} -\frac {x}{4}-{\mathrm {e}}^x\,\left (5\,{\mathrm {e}}^{-4}-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 14, normalized size = 0.67 \begin {gather*} - \frac {x}{4} + \frac {\left (-5 + e^{4}\right ) e^{x}}{e^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________