3.13 \(\int (e^{x^2}+2 e^{x^2} x^2) \, dx\)

Optimal. Leaf size=7 \[ e^{x^2} x \]

[Out]

exp(x^2)*x

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2204, 2212} \[ e^{x^2} x \]

Antiderivative was successfully verified.

[In]

Int[E^x^2 + 2*E^x^2*x^2,x]

[Out]

E^x^2*x

Rule 2204

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[(F^a*Sqrt[Pi]*Erfi[(c + d*x)*Rt[b*Log[F], 2
]])/(2*d*Rt[b*Log[F], 2]), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2212

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^(m
 - n + 1)*F^(a + b*(c + d*x)^n))/(b*d*n*Log[F]), x] - Dist[(m - n + 1)/(b*n*Log[F]), Int[(c + d*x)^(m - n)*F^(
a + b*(c + d*x)^n), x], x] /; FreeQ[{F, a, b, c, d}, x] && IntegerQ[(2*(m + 1))/n] && LtQ[0, (m + 1)/n, 5] &&
IntegerQ[n] && (LtQ[0, n, m + 1] || LtQ[m, n, 0])

Rubi steps

\begin {align*} \int \left (e^{x^2}+2 e^{x^2} x^2\right ) \, dx &=2 \int e^{x^2} x^2 \, dx+\int e^{x^2} \, dx\\ &=e^{x^2} x+\frac {1}{2} \sqrt {\pi } \text {erfi}(x)-\int e^{x^2} \, dx\\ &=e^{x^2} x\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 7, normalized size = 1.00 \[ e^{x^2} x \]

Antiderivative was successfully verified.

[In]

Integrate[E^x^2 + 2*E^x^2*x^2,x]

[Out]

E^x^2*x

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 6, normalized size = 0.86 \[ x e^{\left (x^{2}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x^2)+2*exp(x^2)*x^2,x, algorithm="fricas")

[Out]

x*e^(x^2)

________________________________________________________________________________________

giac [A]  time = 0.88, size = 6, normalized size = 0.86 \[ x e^{\left (x^{2}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x^2)+2*exp(x^2)*x^2,x, algorithm="giac")

[Out]

x*e^(x^2)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 7, normalized size = 1.00 \[ x \,{\mathrm e}^{x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x^2)+2*exp(x^2)*x^2,x)

[Out]

x*exp(x^2)

________________________________________________________________________________________

maxima [A]  time = 0.47, size = 6, normalized size = 0.86 \[ x e^{\left (x^{2}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x^2)+2*exp(x^2)*x^2,x, algorithm="maxima")

[Out]

x*e^(x^2)

________________________________________________________________________________________

mupad [B]  time = 0.15, size = 6, normalized size = 0.86 \[ x\,{\mathrm {e}}^{x^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x^2) + 2*x^2*exp(x^2),x)

[Out]

x*exp(x^2)

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 5, normalized size = 0.71 \[ x e^{x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x**2)+2*exp(x**2)*x**2,x)

[Out]

x*exp(x**2)

________________________________________________________________________________________