Integrand size = 38, antiderivative size = 20 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=6-\frac {e^{3-2 x}}{x}+x+e^4 x \]
[Out]
Time = 0.11 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {6820, 2228} \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=\left (1+e^4\right ) x-\frac {e^{3-2 x}}{x} \]
[In]
[Out]
Rule 2228
Rule 6820
Rubi steps \begin{align*} \text {integral}& = \int \left (1+e^4+\frac {e^{3-2 x} (1+2 x)}{x^2}\right ) \, dx \\ & = \left (1+e^4\right ) x+\int \frac {e^{3-2 x} (1+2 x)}{x^2} \, dx \\ & = -\frac {e^{3-2 x}}{x}+\left (1+e^4\right ) x \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.95 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=-\frac {e^{3-2 x}}{x}+x+e^4 x \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.90
method | result | size |
risch | \(x +x \,{\mathrm e}^{4}-\frac {{\mathrm e}^{3-2 x}}{x}\) | \(18\) |
norman | \(\frac {\left (\left ({\mathrm e}^{4}+1\right ) x^{2} {\mathrm e}^{2 x}-{\mathrm e}^{3}\right ) {\mathrm e}^{-2 x}}{x}\) | \(26\) |
parallelrisch | \(\frac {\left (x^{2} {\mathrm e}^{4} {\mathrm e}^{x}+{\mathrm e}^{x} x^{2}-{\mathrm e}^{-x +3}\right ) {\mathrm e}^{-x}}{x}\) | \(32\) |
default | \(x +{\mathrm e}^{3} \left (-\frac {{\mathrm e}^{-2 x}}{x}+2 \,\operatorname {Ei}_{1}\left (2 x \right )\right )-2 \,{\mathrm e}^{3} \operatorname {Ei}_{1}\left (2 x \right )+x \,{\mathrm e}^{4}\) | \(36\) |
parts | \(x +{\mathrm e}^{3} \left (-\frac {{\mathrm e}^{-2 x}}{x}+2 \,\operatorname {Ei}_{1}\left (2 x \right )\right )-2 \,{\mathrm e}^{3} \operatorname {Ei}_{1}\left (2 x \right )+x \,{\mathrm e}^{4}\) | \(36\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.40 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=\frac {{\left ({\left (x^{2} e^{4} + x^{2}\right )} e^{\left (2 \, x\right )} - e^{3}\right )} e^{\left (-2 \, x\right )}}{x} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.75 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=x \left (1 + e^{4}\right ) - \frac {e^{3} e^{- 2 x}}{x} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3.
Time = 0.24 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=x e^{4} + 2 \, {\rm Ei}\left (-2 \, x\right ) e^{3} - 2 \, e^{3} \Gamma \left (-1, 2 \, x\right ) + x \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.10 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=\frac {x^{2} e^{4} + x^{2} - e^{\left (-2 \, x + 3\right )}}{x} \]
[In]
[Out]
Time = 14.44 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.90 \[ \int \frac {e^{-x} \left (e^{3-x} (1+2 x)+e^x \left (x^2+e^4 x^2\right )\right )}{x^2} \, dx=x\,\left ({\mathrm {e}}^4+1\right )-\frac {{\mathrm {e}}^{3-2\,x}}{x} \]
[In]
[Out]