Integrand size = 41, antiderivative size = 28 \[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=e^{\frac {x}{2+x^2}} \left (2+x^2\right )+\operatorname {ExpIntegralEi}\left (\frac {x}{2+x^2}\right ) \]
[Out]
\[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=\int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{x \left (2+x^2\right )} \, dx \\ & = \int \left (-e^{\frac {x}{2+x^2}}+\frac {e^{\frac {x}{2+x^2}}}{x}+2 e^{\frac {x}{2+x^2}} x-\frac {2 e^{\frac {x}{2+x^2}} (-2+x)}{2+x^2}\right ) \, dx \\ & = 2 \int e^{\frac {x}{2+x^2}} x \, dx-2 \int \frac {e^{\frac {x}{2+x^2}} (-2+x)}{2+x^2} \, dx-\int e^{\frac {x}{2+x^2}} \, dx+\int \frac {e^{\frac {x}{2+x^2}}}{x} \, dx \\ & = 2 \int e^{\frac {x}{2+x^2}} x \, dx-2 \int \left (\frac {\left (-2-2 i \sqrt {2}\right ) e^{\frac {x}{2+x^2}}}{4 \left (i \sqrt {2}-x\right )}+\frac {\left (2-2 i \sqrt {2}\right ) e^{\frac {x}{2+x^2}}}{4 \left (i \sqrt {2}+x\right )}\right ) \, dx-\int e^{\frac {x}{2+x^2}} \, dx+\int \frac {e^{\frac {x}{2+x^2}}}{x} \, dx \\ & = 2 \int e^{\frac {x}{2+x^2}} x \, dx-\left (-1-i \sqrt {2}\right ) \int \frac {e^{\frac {x}{2+x^2}}}{i \sqrt {2}-x} \, dx-\left (1-i \sqrt {2}\right ) \int \frac {e^{\frac {x}{2+x^2}}}{i \sqrt {2}+x} \, dx-\int e^{\frac {x}{2+x^2}} \, dx+\int \frac {e^{\frac {x}{2+x^2}}}{x} \, dx \\ \end{align*}
Time = 0.59 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.39 \[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=2 e^{\frac {x}{2+x^2}}+e^{\frac {x}{2+x^2}} x^2+\operatorname {ExpIntegralEi}\left (\frac {x}{2+x^2}\right ) \]
[In]
[Out]
\[\int \frac {\left (2 x^{4}-x^{3}+3 x^{2}+2 x +2\right ) {\mathrm e}^{\frac {x}{x^{2}+2}}}{x^{3}+2 x}d x\]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.96 \[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx={\left (x^{2} + 2\right )} e^{\left (\frac {x}{x^{2} + 2}\right )} + {\rm Ei}\left (\frac {x}{x^{2} + 2}\right ) \]
[In]
[Out]
\[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=\int \frac {\left (2 x^{4} - x^{3} + 3 x^{2} + 2 x + 2\right ) e^{\frac {x}{x^{2} + 2}}}{x \left (x^{2} + 2\right )}\, dx \]
[In]
[Out]
\[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=\int { \frac {{\left (2 \, x^{4} - x^{3} + 3 \, x^{2} + 2 \, x + 2\right )} e^{\left (\frac {x}{x^{2} + 2}\right )}}{x^{3} + 2 \, x} \,d x } \]
[In]
[Out]
\[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=\int { \frac {{\left (2 \, x^{4} - x^{3} + 3 \, x^{2} + 2 \, x + 2\right )} e^{\left (\frac {x}{x^{2} + 2}\right )}}{x^{3} + 2 \, x} \,d x } \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.32 \[ \int \frac {e^{\frac {x}{2+x^2}} \left (2+2 x+3 x^2-x^3+2 x^4\right )}{2 x+x^3} \, dx=\mathrm {ei}\left (\frac {x}{x^2+2}\right )+2\,{\mathrm {e}}^{\frac {x}{x^2+2}}+x^2\,{\mathrm {e}}^{\frac {x}{x^2+2}} \]
[In]
[Out]