Integrand size = 49, antiderivative size = 36 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=-e^2 \left (x+\left (e^x-x\right ) x^2\right )+3 \left (-x+\frac {10 e^x+x}{x}\right ) \]
[Out]
Time = 0.07 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.94, number of steps used = 12, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {14, 2230, 2208, 2209, 2207, 2225} \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=e^2 x^3-e^{x+2} x^2-\left (3+e^2\right ) x+\frac {30 e^x}{x} \]
[In]
[Out]
Rule 14
Rule 2207
Rule 2208
Rule 2209
Rule 2225
Rule 2230
Rubi steps \begin{align*} \text {integral}& = \int \left (-3 \left (1+\frac {e^2}{3}\right )+3 e^2 x^2-\frac {e^x \left (30-30 x+2 e^2 x^3+e^2 x^4\right )}{x^2}\right ) \, dx \\ & = -\left (\left (3+e^2\right ) x\right )+e^2 x^3-\int \frac {e^x \left (30-30 x+2 e^2 x^3+e^2 x^4\right )}{x^2} \, dx \\ & = -\left (\left (3+e^2\right ) x\right )+e^2 x^3-\int \left (\frac {30 e^x}{x^2}-\frac {30 e^x}{x}+2 e^{2+x} x+e^{2+x} x^2\right ) \, dx \\ & = -\left (\left (3+e^2\right ) x\right )+e^2 x^3-2 \int e^{2+x} x \, dx-30 \int \frac {e^x}{x^2} \, dx+30 \int \frac {e^x}{x} \, dx-\int e^{2+x} x^2 \, dx \\ & = \frac {30 e^x}{x}-2 e^{2+x} x-\left (3+e^2\right ) x-e^{2+x} x^2+e^2 x^3+30 \operatorname {ExpIntegralEi}(x)+2 \int e^{2+x} \, dx+2 \int e^{2+x} x \, dx-30 \int \frac {e^x}{x} \, dx \\ & = 2 e^{2+x}+\frac {30 e^x}{x}-\left (3+e^2\right ) x-e^{2+x} x^2+e^2 x^3-2 \int e^{2+x} \, dx \\ & = \frac {30 e^x}{x}-\left (3+e^2\right ) x-e^{2+x} x^2+e^2 x^3 \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.97 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=\frac {30 e^x}{x}-3 x-e^2 x-e^{2+x} x^2+e^2 x^3 \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.86
method | result | size |
risch | \(x^{3} {\mathrm e}^{2}-{\mathrm e}^{2} x -3 x -\frac {\left (x^{3} {\mathrm e}^{2}-30\right ) {\mathrm e}^{x}}{x}\) | \(31\) |
norman | \(\frac {x^{4} {\mathrm e}^{2}+\left (-{\mathrm e}^{2}-3\right ) x^{2}-x^{3} {\mathrm e}^{2} {\mathrm e}^{x}+30 \,{\mathrm e}^{x}}{x}\) | \(35\) |
parallelrisch | \(\frac {x^{4} {\mathrm e}^{2}-x^{3} {\mathrm e}^{2} {\mathrm e}^{x}-x^{2} {\mathrm e}^{2}-3 x^{2}+30 \,{\mathrm e}^{x}}{x}\) | \(37\) |
default | \(-3 x +x^{3} {\mathrm e}^{2}+\frac {30 \,{\mathrm e}^{x}}{x}-2 \,{\mathrm e}^{2} \left ({\mathrm e}^{x} x -{\mathrm e}^{x}\right )-{\mathrm e}^{2} \left ({\mathrm e}^{x} x^{2}-2 \,{\mathrm e}^{x} x +2 \,{\mathrm e}^{x}\right )-{\mathrm e}^{2} x\) | \(56\) |
parts | \(-3 x +x^{3} {\mathrm e}^{2}+\frac {30 \,{\mathrm e}^{x}}{x}-2 \,{\mathrm e}^{2} \left ({\mathrm e}^{x} x -{\mathrm e}^{x}\right )-{\mathrm e}^{2} \left ({\mathrm e}^{x} x^{2}-2 \,{\mathrm e}^{x} x +2 \,{\mathrm e}^{x}\right )-{\mathrm e}^{2} x\) | \(56\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.97 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=-\frac {3 \, x^{2} - {\left (x^{4} - x^{2}\right )} e^{2} + {\left (x^{3} e^{2} - 30\right )} e^{x}}{x} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.75 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=x^{3} e^{2} + x \left (- e^{2} - 3\right ) + \frac {\left (- x^{3} e^{2} + 30\right ) e^{x}}{x} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3.
Time = 0.23 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.64 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=x^{3} e^{2} - x e^{2} - {\left (x^{2} e^{2} - 2 \, x e^{2} + 2 \, e^{2}\right )} e^{x} - 2 \, {\left (x e^{2} - e^{2}\right )} e^{x} - 3 \, x + 30 \, {\rm Ei}\left (x\right ) - 30 \, \Gamma \left (-1, -x\right ) \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.00 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=\frac {x^{4} e^{2} - x^{3} e^{\left (x + 2\right )} - x^{2} e^{2} - 3 \, x^{2} + 30 \, e^{x}}{x} \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.83 \[ \int \frac {-3 x^2+e^2 \left (-x^2+3 x^4\right )+e^x \left (-30+30 x+e^2 \left (-2 x^3-x^4\right )\right )}{x^2} \, dx=\frac {30\,{\mathrm {e}}^x}{x}-x^2\,{\mathrm {e}}^{x+2}-x\,\left ({\mathrm {e}}^2+3\right )+x^3\,{\mathrm {e}}^2 \]
[In]
[Out]