3.1.3 \(\int \frac {e^{\frac {x}{2+x^2}} (2+2 x+3 x^2-x^3+2 x^4)}{2 x+x^3} \, dx\) [3]

Optimal. Leaf size=28 \[ e^{\frac {x}{2+x^2}} \left (2+x^2\right )+\text {Ei}\left (\frac {x}{2+x^2}\right ) \]

[Out]

exp(x/(x^2+2))*(x^2+2)+Ei(x/(x^2+2))

________________________________________________________________________________________

Rubi [F]
time = 0.35, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \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 \end {gather*}

Verification is not applicable to the result.

[In]

Int[(E^(x/(2 + x^2))*(2 + 2*x + 3*x^2 - x^3 + 2*x^4))/(2*x + x^3),x]

[Out]

-Defer[Int][E^(x/(2 + x^2)), x] + (1 + I*Sqrt[2])*Defer[Int][E^(x/(2 + x^2))/(I*Sqrt[2] - x), x] + Defer[Int][
E^(x/(2 + x^2))/x, x] + 2*Defer[Int][E^(x/(2 + x^2))*x, x] - (1 - I*Sqrt[2])*Defer[Int][E^(x/(2 + x^2))/(I*Sqr
t[2] + x), x]

Rubi steps

\begin {align*} \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 )}{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*}

________________________________________________________________________________________

Mathematica [A]
time = 0.17, size = 39, normalized size = 1.39 \begin {gather*} 2 e^{\frac {x}{2+x^2}}+e^{\frac {x}{2+x^2}} x^2+\text {Ei}\left (\frac {x}{2+x^2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^(x/(2 + x^2))*(2 + 2*x + 3*x^2 - x^3 + 2*x^4))/(2*x + x^3),x]

[Out]

2*E^(x/(2 + x^2)) + E^(x/(2 + x^2))*x^2 + ExpIntegralEi[x/(2 + x^2)]

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\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}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x^4-x^3+3*x^2+2*x+2)*exp(x/(x^2+2))/(x^3+2*x),x)

[Out]

int((2*x^4-x^3+3*x^2+2*x+2)*exp(x/(x^2+2))/(x^3+2*x),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-x^3+3*x^2+2*x+2)*exp(x/(x^2+2))/(x^3+2*x),x, algorithm="maxima")

[Out]

integrate((2*x^4 - x^3 + 3*x^2 + 2*x + 2)*e^(x/(x^2 + 2))/(x^3 + 2*x), x)

________________________________________________________________________________________

Fricas [A]
time = 0.93, size = 27, normalized size = 0.96 \begin {gather*} {\left (x^{2} + 2\right )} e^{\left (\frac {x}{x^{2} + 2}\right )} + {\rm Ei}\left (\frac {x}{x^{2} + 2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-x^3+3*x^2+2*x+2)*exp(x/(x^2+2))/(x^3+2*x),x, algorithm="fricas")

[Out]

(x^2 + 2)*e^(x/(x^2 + 2)) + Ei(x/(x^2 + 2))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \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 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x**4-x**3+3*x**2+2*x+2)*exp(x/(x**2+2))/(x**3+2*x),x)

[Out]

Integral((2*x**4 - x**3 + 3*x**2 + 2*x + 2)*exp(x/(x**2 + 2))/(x*(x**2 + 2)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-x^3+3*x^2+2*x+2)*exp(x/(x^2+2))/(x^3+2*x),x, algorithm="giac")

[Out]

integrate((2*x^4 - x^3 + 3*x^2 + 2*x + 2)*e^(x/(x^2 + 2))/(x^3 + 2*x), x)

________________________________________________________________________________________

Mupad [B]
time = 0.13, size = 37, normalized size = 1.32 \begin {gather*} \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}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(x/(x^2 + 2))*(2*x + 3*x^2 - x^3 + 2*x^4 + 2))/(2*x + x^3),x)

[Out]

ei(x/(x^2 + 2)) + 2*exp(x/(x^2 + 2)) + x^2*exp(x/(x^2 + 2))

________________________________________________________________________________________