Integrand size = 102, antiderivative size = 29 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=e^{-x^2} (-4+x)^2 \left (e^{-3+e^x-e^{x^4}}+x\right ) \]
[Out]
Leaf count is larger than twice the leaf count of optimal. \(118\) vs. \(2(29)=58\).
Time = 2.05 (sec) , antiderivative size = 118, normalized size of antiderivative = 4.07, number of steps used = 14, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {6874, 2258, 2236, 2240, 2243, 2326} \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=-8 e^{-x^2} x^2+16 e^{-x^2} x+e^{-x^2} x^3+\frac {e^{-e^{x^4}-x^2+e^x-3} (4-x) \left (4 e^{x^4} x^4+2 x^2-16 e^{x^4} x^3-e^x x-8 x+4 e^x\right )}{-4 e^{x^4} x^3-2 x+e^x} \]
[In]
[Out]
Rule 2236
Rule 2240
Rule 2243
Rule 2258
Rule 2326
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \left (-e^{-x^2} \left (-16+16 x+29 x^2-16 x^3+2 x^4\right )-e^{-3+e^x-e^{x^4}-x^2} (-4+x) \left (-2+4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )\right ) \, dx \\ & = -\int e^{-x^2} \left (-16+16 x+29 x^2-16 x^3+2 x^4\right ) \, dx-\int e^{-3+e^x-e^{x^4}-x^2} (-4+x) \left (-2+4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right ) \, dx \\ & = \frac {e^{-3+e^x-e^{x^4}-x^2} (4-x) \left (4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )}{e^x-2 x-4 e^{x^4} x^3}-\int \left (-16 e^{-x^2}+16 e^{-x^2} x+29 e^{-x^2} x^2-16 e^{-x^2} x^3+2 e^{-x^2} x^4\right ) \, dx \\ & = \frac {e^{-3+e^x-e^{x^4}-x^2} (4-x) \left (4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )}{e^x-2 x-4 e^{x^4} x^3}-2 \int e^{-x^2} x^4 \, dx+16 \int e^{-x^2} \, dx-16 \int e^{-x^2} x \, dx+16 \int e^{-x^2} x^3 \, dx-29 \int e^{-x^2} x^2 \, dx \\ & = 8 e^{-x^2}+\frac {29}{2} e^{-x^2} x-8 e^{-x^2} x^2+e^{-x^2} x^3+\frac {e^{-3+e^x-e^{x^4}-x^2} (4-x) \left (4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )}{e^x-2 x-4 e^{x^4} x^3}+8 \sqrt {\pi } \text {erf}(x)-3 \int e^{-x^2} x^2 \, dx-\frac {29}{2} \int e^{-x^2} \, dx+16 \int e^{-x^2} x \, dx \\ & = 16 e^{-x^2} x-8 e^{-x^2} x^2+e^{-x^2} x^3+\frac {e^{-3+e^x-e^{x^4}-x^2} (4-x) \left (4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )}{e^x-2 x-4 e^{x^4} x^3}+\frac {3}{4} \sqrt {\pi } \text {erf}(x)-\frac {3}{2} \int e^{-x^2} \, dx \\ & = 16 e^{-x^2} x-8 e^{-x^2} x^2+e^{-x^2} x^3+\frac {e^{-3+e^x-e^{x^4}-x^2} (4-x) \left (4 e^x-8 x-e^x x+2 x^2-16 e^{x^4} x^3+4 e^{x^4} x^4\right )}{e^x-2 x-4 e^{x^4} x^3} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.34 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=e^{-3-e^{x^4}-x^2} (-4+x)^2 \left (e^{e^x}+e^{3+e^{x^4}} x\right ) \]
[In]
[Out]
Time = 1.80 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.59
method | result | size |
risch | \(\left (x^{3}-8 x^{2}+16 x \right ) {\mathrm e}^{-x^{2}}+\left (x^{2}-8 x +16\right ) {\mathrm e}^{-x^{2}-{\mathrm e}^{x^{4}}+{\mathrm e}^{x}-3}\) | \(46\) |
parallelrisch | \(\left ({\mathrm e}^{{\mathrm e}^{x^{4}}} x^{3}-8 \,{\mathrm e}^{{\mathrm e}^{x^{4}}} x^{2}+x^{2} {\mathrm e}^{{\mathrm e}^{x}-3}+16 \,{\mathrm e}^{{\mathrm e}^{x^{4}}} x -8 \,{\mathrm e}^{{\mathrm e}^{x}-3} x +16 \,{\mathrm e}^{{\mathrm e}^{x}-3}\right ) {\mathrm e}^{-x^{2}} {\mathrm e}^{-{\mathrm e}^{x^{4}}}\) | \(67\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.55 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx={\left (x^{3} - 8 \, x^{2} + 16 \, x\right )} e^{\left (-x^{2}\right )} + {\left (x^{2} - 8 \, x + 16\right )} e^{\left (-x^{2} - e^{\left (x^{4}\right )} + e^{x} - 3\right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 53 vs. \(2 (24) = 48\).
Time = 0.39 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.83 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=\left (x^{3} - 8 x^{2} + 16 x\right ) e^{- x^{2}} + \left (x^{2} e^{- x^{2}} - 8 x e^{- x^{2}} + 16 e^{- x^{2}}\right ) e^{e^{x} - 3} e^{- e^{x^{4}}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 73 vs. \(2 (25) = 50\).
Time = 0.31 (sec) , antiderivative size = 73, normalized size of antiderivative = 2.52 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=\frac {1}{2} \, {\left (2 \, x^{3} + 3 \, x\right )} e^{\left (-x^{2}\right )} - 8 \, {\left (x^{2} + 1\right )} e^{\left (-x^{2}\right )} + \frac {29}{2} \, x e^{\left (-x^{2}\right )} + {\left (x^{2} - 8 \, x + 16\right )} e^{\left (-x^{2} - e^{\left (x^{4}\right )} + e^{x} - 3\right )} + 8 \, e^{\left (-x^{2}\right )} \]
[In]
[Out]
\[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx=\int { -{\left ({\left (2 \, x^{3} - 16 \, x^{2} + 4 \, {\left (x^{5} - 8 \, x^{4} + 16 \, x^{3}\right )} e^{\left (x^{4}\right )} - {\left (x^{2} - 8 \, x + 16\right )} e^{x} + 30 \, x + 8\right )} e^{\left (e^{x} - 3\right )} + {\left (2 \, x^{4} - 16 \, x^{3} + 29 \, x^{2} + 16 \, x - 16\right )} e^{\left (e^{\left (x^{4}\right )}\right )}\right )} e^{\left (-x^{2} - e^{\left (x^{4}\right )}\right )} \,d x } \]
[In]
[Out]
Time = 9.38 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.28 \[ \int e^{-e^{x^4}-x^2} \left (e^{e^{x^4}} \left (16-16 x-29 x^2+16 x^3-2 x^4\right )+e^{-3+e^x} \left (-8-30 x+16 x^2-2 x^3+e^x \left (16-8 x+x^2\right )+e^{x^4} \left (-64 x^3+32 x^4-4 x^5\right )\right )\right ) \, dx={\mathrm {e}}^{-{\mathrm {e}}^{x^4}}\,{\mathrm {e}}^{{\mathrm {e}}^x-x^2-3}\,{\left (x-4\right )}^2+x\,{\mathrm {e}}^{-x^2}\,{\left (x-4\right )}^2 \]
[In]
[Out]