Integrand size = 49, antiderivative size = 26 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=e^{-1+x+x^2} \left (4-e^{\frac {1}{e^3}}-e^{x^2} x\right ) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.73, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.082, Rules used = {12, 2276, 2268, 2326} \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=\left (4-e^{\frac {1}{e^3}}\right ) e^{x^2+x-1}-\frac {e^{2 x^2+x-1} \left (4 x^2+x\right )}{4 x+1} \]
[In]
[Out]
Rule 12
Rule 2268
Rule 2276
Rule 2326
Rubi steps \begin{align*} \text {integral}& = \frac {\int \left (e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )\right ) \, dx}{e} \\ & = \frac {\int e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right ) \, dx}{e}+\frac {\int e^{x+2 x^2} \left (-1-x-4 x^2\right ) \, dx}{e} \\ & = -\frac {e^{-1+x+2 x^2} \left (x+4 x^2\right )}{1+4 x}+\frac {\int e^{x+x^2} \left (4-e^{\frac {1}{e^3}}+2 \left (4-e^{\frac {1}{e^3}}\right ) x\right ) \, dx}{e} \\ & = e^{-1+x+x^2} \left (4-e^{\frac {1}{e^3}}\right )-\frac {e^{-1+x+2 x^2} \left (x+4 x^2\right )}{1+4 x} \\ \end{align*}
Time = 2.55 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.92 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=-e^{-1+x+x^2} \left (-4+e^{\frac {1}{e^3}}+e^{x^2} x\right ) \]
[In]
[Out]
Time = 0.16 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.38
method | result | size |
norman | \(-x \,{\mathrm e}^{-1} {\mathrm e}^{x} {\mathrm e}^{2 x^{2}}-{\mathrm e}^{-1} \left ({\mathrm e}^{{\mathrm e}^{-3}}-4\right ) {\mathrm e}^{x} {\mathrm e}^{x^{2}}\) | \(36\) |
risch | \(-x \,{\mathrm e}^{\left (1+x \right ) \left (-1+2 x \right )}-{\mathrm e}^{x^{2}+x -1} {\mathrm e}^{{\mathrm e}^{-3}}+4 \,{\mathrm e}^{x^{2}+x -1}\) | \(36\) |
parallelrisch | \({\mathrm e}^{-1} \left (-{\mathrm e}^{2 x^{2}} {\mathrm e}^{x} x -{\mathrm e}^{{\mathrm e}^{-3}} {\mathrm e}^{x^{2}} {\mathrm e}^{x}+4 \,{\mathrm e}^{x} {\mathrm e}^{x^{2}}\right )\) | \(39\) |
default | \({\mathrm e}^{-1} \left (4 \,{\mathrm e}^{x^{2}+x}+\frac {i {\mathrm e}^{{\mathrm e}^{-3}} \sqrt {\pi }\, {\mathrm e}^{-\frac {1}{4}} \operatorname {erf}\left (i x +\frac {1}{2} i\right )}{2}-2 \,{\mathrm e}^{{\mathrm e}^{-3}} \left (\frac {{\mathrm e}^{x^{2}+x}}{2}+\frac {i \sqrt {\pi }\, {\mathrm e}^{-\frac {1}{4}} \operatorname {erf}\left (i x +\frac {1}{2} i\right )}{4}\right )-x \,{\mathrm e}^{2 x^{2}+x}\right )\) | \(79\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.04 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=-{\left (x e^{\left (2 \, x^{2} + x\right )} + {\left (e^{\left (e^{\left (-3\right )}\right )} - 4\right )} e^{\left (x^{2} + x\right )}\right )} e^{\left (-1\right )} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.69 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=\frac {- e x e^{x} e^{2 x^{2}} + \left (- e e^{x} e^{e^{-3}} + 4 e e^{x}\right ) e^{x^{2}}}{e^{2}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3.
Time = 0.24 (sec) , antiderivative size = 153, normalized size of antiderivative = 5.88 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=\frac {1}{2} \, {\left (-4 i \, \sqrt {\pi } \operatorname {erf}\left (i \, x + \frac {1}{2} i\right ) e^{\left (-\frac {1}{4}\right )} + i \, \sqrt {\pi } \operatorname {erf}\left (i \, x + \frac {1}{2} i\right ) e^{\left (e^{\left (-3\right )} - \frac {1}{4}\right )} - 4 \, {\left (\frac {\sqrt {\pi } {\left (2 \, x + 1\right )} {\left (\operatorname {erf}\left (\frac {1}{2} \, \sqrt {-{\left (2 \, x + 1\right )}^{2}}\right ) - 1\right )}}{\sqrt {-{\left (2 \, x + 1\right )}^{2}}} - 2 \, e^{\left (\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )}\right )} e^{\left (-\frac {1}{4}\right )} - 2 \, x e^{\left (2 \, x^{2} + x\right )} + {\left (\frac {\sqrt {\pi } {\left (2 \, x + 1\right )} {\left (\operatorname {erf}\left (\frac {1}{2} \, \sqrt {-{\left (2 \, x + 1\right )}^{2}}\right ) - 1\right )}}{\sqrt {-{\left (2 \, x + 1\right )}^{2}}} - 2 \, e^{\left (\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )}\right )} e^{\left (e^{\left (-3\right )} - \frac {1}{4}\right )}\right )} e^{\left (-1\right )} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.04 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=-{\left (x e^{\left (2 \, x^{2} + x\right )} + {\left (e^{\left (e^{\left (-3\right )}\right )} - 4\right )} e^{\left (x^{2} + x\right )}\right )} e^{\left (-1\right )} \]
[In]
[Out]
Time = 0.18 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.77 \[ \int \frac {e^{x+x^2} \left (4+e^{\frac {1}{e^3}} (-1-2 x)+8 x\right )+e^{x+2 x^2} \left (-1-x-4 x^2\right )}{e} \, dx=-{\mathrm {e}}^{x^2+x-1}\,\left ({\mathrm {e}}^{{\mathrm {e}}^{-3}}+x\,{\mathrm {e}}^{x^2}-4\right ) \]
[In]
[Out]