Integrand size = 74, antiderivative size = 32 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=5+e^{\frac {1}{x}-x} \left (3 \left (4+e^2\right )-\frac {e^{2-2 x}}{x^2}\right ) \]
[Out]
Time = 0.12 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.44, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.041, Rules used = {14, 6838, 2326} \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=3 \left (4+e^2\right ) e^{\frac {1}{x}-x}-\frac {e^{-3 x+\frac {1}{x}+2} \left (3 x^2+1\right )}{\left (\frac {1}{x^2}+3\right ) x^4} \]
[In]
[Out]
Rule 14
Rule 2326
Rule 6838
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {3 e^{\frac {1}{x}-x} \left (4+e^2\right ) \left (1+x^2\right )}{x^2}+\frac {e^{2+\frac {1}{x}-3 x} \left (1+2 x+3 x^2\right )}{x^4}\right ) \, dx \\ & = -\left (\left (3 \left (4+e^2\right )\right ) \int \frac {e^{\frac {1}{x}-x} \left (1+x^2\right )}{x^2} \, dx\right )+\int \frac {e^{2+\frac {1}{x}-3 x} \left (1+2 x+3 x^2\right )}{x^4} \, dx \\ & = 3 e^{\frac {1}{x}-x} \left (4+e^2\right )-\frac {e^{2+\frac {1}{x}-3 x} \left (1+3 x^2\right )}{\left (3+\frac {1}{x^2}\right ) x^4} \\ \end{align*}
Time = 3.88 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.00 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=3 e^{\frac {1}{x}-x} \left (4+e^2\right )-\frac {e^{2+\frac {1}{x}-3 x}}{x^2} \]
[In]
[Out]
Time = 0.60 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.19
method | result | size |
risch | \(\frac {\left (3 x^{2} {\mathrm e}^{2}+12 x^{2}-{\mathrm e}^{2-2 x}\right ) {\mathrm e}^{-\frac {\left (-1+x \right ) \left (1+x \right )}{x}}}{x^{2}}\) | \(38\) |
norman | \(\frac {\left (3 \,{\mathrm e}^{2}+12\right ) x^{3} {\mathrm e}^{\frac {-x^{2}+1}{x}}-x \,{\mathrm e}^{2-2 x} {\mathrm e}^{\frac {-x^{2}+1}{x}}}{x^{3}}\) | \(51\) |
parallelrisch | \(\frac {3 \,{\mathrm e}^{2} {\mathrm e}^{-\frac {x^{2}-1}{x}} x^{2}+12 \,{\mathrm e}^{-\frac {x^{2}-1}{x}} x^{2}-{\mathrm e}^{-\frac {x^{2}-1}{x}} {\mathrm e}^{2-2 x}}{x^{2}}\) | \(61\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.50 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=\frac {3 \, {\left (x^{2} e^{2} + 4 \, x^{2}\right )} e^{\left (-\frac {x^{2} - 1}{x}\right )} - e^{\left (-\frac {3 \, x^{2} - 2 \, x - 1}{x}\right )}}{x^{2}} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.00 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=\left (12 + 3 e^{2}\right ) e^{\frac {1 - x^{2}}{x}} - \frac {e^{\frac {1 - x^{2}}{x}} e^{2 - 2 x}}{x^{2}} \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.94 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=\frac {{\left (3 \, x^{2} {\left (e^{2} + 4\right )} e^{\left (2 \, x\right )} - e^{2}\right )} e^{\left (-3 \, x + \frac {1}{x}\right )}}{x^{2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (28) = 56\).
Time = 0.30 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.81 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=\frac {3 \, x^{2} e^{\left (-\frac {x^{2} - 2 \, x - 1}{x}\right )} + 12 \, x^{2} e^{\left (-\frac {x^{2} - 1}{x}\right )} - e^{\left (-\frac {3 \, x^{2} - 2 \, x - 1}{x}\right )}}{x^{2}} \]
[In]
[Out]
Time = 12.28 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.16 \[ \int \frac {e^{2-2 x+\frac {1-x^2}{x}} \left (1+2 x+3 x^2\right )+e^{\frac {1-x^2}{x}} \left (-12 x^2-12 x^4+e^2 \left (-3 x^2-3 x^4\right )\right )}{x^4} \, dx=\frac {{\mathrm {e}}^{\frac {1}{x}-3\,x}\,\left (12\,x^2\,{\mathrm {e}}^{2\,x}-{\mathrm {e}}^2+3\,x^2\,{\mathrm {e}}^{2\,x+2}\right )}{x^2} \]
[In]
[Out]