Optimal. Leaf size=24 \[ e^{x^2} x+\frac{e^{x^2}}{2 \left (x^2+1\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35703, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 6, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {6742, 2204, 2212, 6715, 2177, 2178} \[ e^{x^2} x+\frac{e^{x^2}}{2 \left (x^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 2204
Rule 2212
Rule 6715
Rule 2177
Rule 2178
Rubi steps
\begin{align*} \int \frac{e^{x^2} \left (1+4 x^2+x^3+5 x^4+2 x^6\right )}{\left (1+x^2\right )^2} \, dx &=\int \left (e^{x^2}+2 e^{x^2} x^2-\frac{e^{x^2} x}{\left (1+x^2\right )^2}+\frac{e^{x^2} x}{1+x^2}\right ) \, dx\\ &=2 \int e^{x^2} x^2 \, dx+\int e^{x^2} \, dx-\int \frac{e^{x^2} x}{\left (1+x^2\right )^2} \, dx+\int \frac{e^{x^2} x}{1+x^2} \, dx\\ &=e^{x^2} x+\frac{1}{2} \sqrt{\pi } \text{erfi}(x)-\frac{1}{2} \operatorname{Subst}\left (\int \frac{e^x}{(1+x)^2} \, dx,x,x^2\right )+\frac{1}{2} \operatorname{Subst}\left (\int \frac{e^x}{1+x} \, dx,x,x^2\right )-\int e^{x^2} \, dx\\ &=e^{x^2} x+\frac{e^{x^2}}{2 \left (1+x^2\right )}+\frac{\text{Ei}\left (1+x^2\right )}{2 e}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{e^x}{1+x} \, dx,x,x^2\right )\\ &=e^{x^2} x+\frac{e^{x^2}}{2 \left (1+x^2\right )}\\ \end{align*}
Mathematica [A] time = 0.068602, size = 20, normalized size = 0.83 \[ \frac{1}{2} e^{x^2} \left (\frac{1}{x^2+1}+2 x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 24, normalized size = 1. \begin{align*}{\frac{ \left ( 2\,{x}^{3}+2\,x+1 \right ){{\rm e}^{{x}^{2}}}}{2\,{x}^{2}+2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.54735, size = 31, normalized size = 1.29 \begin{align*} \frac{{\left (2 \, x^{3} + 2 \, x + 1\right )} e^{\left (x^{2}\right )}}{2 \,{\left (x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.17282, size = 55, normalized size = 2.29 \begin{align*} \frac{{\left (2 \, x^{3} + 2 \, x + 1\right )} e^{\left (x^{2}\right )}}{2 \,{\left (x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.108063, size = 20, normalized size = 0.83 \begin{align*} \frac{\left (2 x^{3} + 2 x + 1\right ) e^{x^{2}}}{2 x^{2} + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.06218, size = 41, normalized size = 1.71 \begin{align*} \frac{2 \, x^{3} e^{\left (x^{2}\right )} + 2 \, x e^{\left (x^{2}\right )} + e^{\left (x^{2}\right )}}{2 \,{\left (x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]