Integrand size = 23, antiderivative size = 17 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=-\frac {2}{5}-x+e^{-x} (2+e) x \]
[Out]
Time = 0.05 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.82, number of steps used = 5, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {6874, 2225, 2207} \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=(2+e) e^{-x} x-x \]
[In]
[Out]
Rule 2207
Rule 2225
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \left (-1+2 \left (1+\frac {e}{2}\right ) e^{-x}-2 \left (1+\frac {e}{2}\right ) e^{-x} x\right ) \, dx \\ & = -x+(2+e) \int e^{-x} \, dx-(2+e) \int e^{-x} x \, dx \\ & = -e^{-x} (2+e)-x+e^{-x} (2+e) x-(2+e) \int e^{-x} \, dx \\ & = -x+e^{-x} (2+e) x \\ \end{align*}
Time = 0.15 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.82 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=-x+e^{-x} (2+e) x \]
[In]
[Out]
Time = 0.43 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.88
method | result | size |
risch | \(-x +\left ({\mathrm e}+2\right ) {\mathrm e}^{-x} x\) | \(15\) |
norman | \(\left (x \left ({\mathrm e}+2\right )-{\mathrm e}^{x} x \right ) {\mathrm e}^{-x}\) | \(18\) |
parallelrisch | \(\left (x \,{\mathrm e}-{\mathrm e}^{x} x +2 x \right ) {\mathrm e}^{-x}\) | \(19\) |
default | \(-x -{\mathrm e}^{-x} {\mathrm e}+2 x \,{\mathrm e}^{-x}-{\mathrm e} \left (-x \,{\mathrm e}^{-x}-{\mathrm e}^{-x}\right )\) | \(38\) |
parts | \(-x -{\mathrm e}^{-x} {\mathrm e}+2 x \,{\mathrm e}^{-x}-{\mathrm e} \left (-x \,{\mathrm e}^{-x}-{\mathrm e}^{-x}\right )\) | \(38\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.06 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx={\left (x e - x e^{x} + 2 \, x\right )} e^{\left (-x\right )} \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.71 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=- x + \left (2 x + e x\right ) e^{- x} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 39 vs. \(2 (15) = 30\).
Time = 0.19 (sec) , antiderivative size = 39, normalized size of antiderivative = 2.29 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx={\left (x e + e\right )} e^{\left (-x\right )} + 2 \, {\left (x + 1\right )} e^{\left (-x\right )} - x - 2 \, e^{\left (-x\right )} - e^{\left (-x + 1\right )} \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.12 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=2 \, x e^{\left (-x\right )} + x e^{\left (-x + 1\right )} - x \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.12 \[ \int e^{-x} \left (2-e^x+e (1-x)-2 x\right ) \, dx=2\,x\,{\mathrm {e}}^{-x}-x+x\,{\mathrm {e}}^{-x}\,\mathrm {e} \]
[In]
[Out]