Integrand size = 37, antiderivative size = 23 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=e^3 x-x \left (4-x+\left (-e^x+x\right )^2\right ) \]
[Out]
Leaf count is larger than twice the leaf count of optimal. \(50\) vs. \(2(23)=46\).
Time = 0.04 (sec) , antiderivative size = 50, normalized size of antiderivative = 2.17, number of steps used = 11, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.108, Rules used = {2207, 2225, 1607, 2227} \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=-x^3+2 e^x x^2+x^2-\left (4-e^3\right ) x+\frac {e^{2 x}}{2}-\frac {1}{2} e^{2 x} (2 x+1) \]
[In]
[Out]
Rule 1607
Rule 2207
Rule 2225
Rule 2227
Rubi steps \begin{align*} \text {integral}& = -\left (\left (4-e^3\right ) x\right )+x^2-x^3+\int e^{2 x} (-1-2 x) \, dx+\int e^x \left (4 x+2 x^2\right ) \, dx \\ & = -\left (\left (4-e^3\right ) x\right )+x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x)+\int e^{2 x} \, dx+\int e^x x (4+2 x) \, dx \\ & = \frac {e^{2 x}}{2}-\left (4-e^3\right ) x+x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x)+\int \left (4 e^x x+2 e^x x^2\right ) \, dx \\ & = \frac {e^{2 x}}{2}-\left (4-e^3\right ) x+x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x)+2 \int e^x x^2 \, dx+4 \int e^x x \, dx \\ & = \frac {e^{2 x}}{2}+4 e^x x-\left (4-e^3\right ) x+x^2+2 e^x x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x)-4 \int e^x \, dx-4 \int e^x x \, dx \\ & = -4 e^x+\frac {e^{2 x}}{2}-\left (4-e^3\right ) x+x^2+2 e^x x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x)+4 \int e^x \, dx \\ & = \frac {e^{2 x}}{2}-\left (4-e^3\right ) x+x^2+2 e^x x^2-x^3-\frac {1}{2} e^{2 x} (1+2 x) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.43 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=-4 x+e^3 x-e^{2 x} x+x^2+2 e^x x^2-x^3 \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30
method | result | size |
norman | \(x^{2}+\left ({\mathrm e}^{3}-4\right ) x -x^{3}-x \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} x^{2}\) | \(30\) |
parallelrisch | \(x^{2}+\left ({\mathrm e}^{3}-4\right ) x -x^{3}-x \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} x^{2}\) | \(30\) |
default | \(-4 x -x \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} x^{2}+x^{2}-x^{3}+x \,{\mathrm e}^{3}\) | \(31\) |
risch | \(-4 x -x \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} x^{2}+x^{2}-x^{3}+x \,{\mathrm e}^{3}\) | \(31\) |
parts | \(-4 x -x \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} x^{2}+x^{2}-x^{3}+x \,{\mathrm e}^{3}\) | \(31\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=-x^{3} + 2 \, x^{2} e^{x} + x^{2} + x e^{3} - x e^{\left (2 \, x\right )} - 4 \, x \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.17 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=- x^{3} + 2 x^{2} e^{x} + x^{2} - x e^{2 x} + x \left (-4 + e^{3}\right ) \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=-x^{3} + 2 \, x^{2} e^{x} + x^{2} + x e^{3} - x e^{\left (2 \, x\right )} - 4 \, x \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=-x^{3} + 2 \, x^{2} e^{x} + x^{2} + x e^{3} - x e^{\left (2 \, x\right )} - 4 \, x \]
[In]
[Out]
Time = 12.68 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00 \[ \int \left (-4+e^3+e^{2 x} (-1-2 x)+2 x-3 x^2+e^x \left (4 x+2 x^2\right )\right ) \, dx=x\,\left (x-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^3+2\,x\,{\mathrm {e}}^x-x^2-4\right ) \]
[In]
[Out]