3.3.78 \(\int e^{-b^2 x^2} x^2 \text {Erfi}(b x) \, dx\) [278]

Optimal. Leaf size=70 \[ \frac {x^2}{2 b \sqrt {\pi }}-\frac {e^{-b^2 x^2} x \text {Erfi}(b x)}{2 b^2}+\frac {x^2 \, _2F_2\left (1,1;\frac {3}{2},2;-b^2 x^2\right )}{2 b \sqrt {\pi }} \]

[Out]

-1/2*x*erfi(b*x)/b^2/exp(b^2*x^2)+1/2*x^2/b/Pi^(1/2)+1/2*x^2*hypergeom([1, 1],[3/2, 2],-b^2*x^2)/b/Pi^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6522, 6513, 30} \begin {gather*} \frac {x^2 \, _2F_2\left (1,1;\frac {3}{2},2;-b^2 x^2\right )}{2 \sqrt {\pi } b}-\frac {x e^{-b^2 x^2} \text {Erfi}(b x)}{2 b^2}+\frac {x^2}{2 \sqrt {\pi } b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^2*Erfi[b*x])/E^(b^2*x^2),x]

[Out]

x^2/(2*b*Sqrt[Pi]) - (x*Erfi[b*x])/(2*b^2*E^(b^2*x^2)) + (x^2*HypergeometricPFQ[{1, 1}, {3/2, 2}, -(b^2*x^2)])
/(2*b*Sqrt[Pi])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 6513

Int[E^((c_.) + (d_.)*(x_)^2)*Erfi[(b_.)*(x_)], x_Symbol] :> Simp[b*E^c*(x^2/Sqrt[Pi])*HypergeometricPFQ[{1, 1}
, {3/2, 2}, (-b^2)*x^2], x] /; FreeQ[{b, c, d}, x] && EqQ[d, -b^2]

Rule 6522

Int[E^((c_.) + (d_.)*(x_)^2)*Erfi[(a_.) + (b_.)*(x_)]*(x_)^(m_), x_Symbol] :> Simp[x^(m - 1)*E^(c + d*x^2)*(Er
fi[a + b*x]/(2*d)), x] + (-Dist[(m - 1)/(2*d), Int[x^(m - 2)*E^(c + d*x^2)*Erfi[a + b*x], x], x] - Dist[b/(d*S
qrt[Pi]), Int[x^(m - 1)*E^(a^2 + c + 2*a*b*x + (b^2 + d)*x^2), x], x]) /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 36, normalized size = 0.51 \begin {gather*} \frac {x^2 \left (1-\, _2F_2\left (1,1;\frac {1}{2},2;-b^2 x^2\right )\right )}{2 b \sqrt {\pi }} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[(x^2*Erfi[b*x])/E^(b^2*x^2),x]

[Out]

(x^2*(1 - HypergeometricPFQ[{1, 1}, {1/2, 2}, -(b^2*x^2)]))/(2*b*Sqrt[Pi])

________________________________________________________________________________________

Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int x^{2} \erfi \left (b x \right ) {\mathrm e}^{-b^{2} x^{2}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*erfi(b*x)/exp(b^2*x^2),x)

[Out]

int(x^2*erfi(b*x)/exp(b^2*x^2),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(x^2*erfi(b*x)/exp(b^2*x^2),x, algorithm="maxima")

[Out]

integrate(x^2*erfi(b*x)*e^(-b^2*x^2), x)

________________________________________________________________________________________

Fricas [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(x^2*erfi(b*x)/exp(b^2*x^2),x, algorithm="fricas")

[Out]

integral(x^2*erfi(b*x)*e^(-b^2*x^2), x)

________________________________________________________________________________________

Sympy [A]
time = 30.59, size = 22, normalized size = 0.31 \begin {gather*} \frac {b x^{4} {{}_{2}F_{2}\left (\begin {matrix} 1, 2 \\ \frac {3}{2}, 3 \end {matrix}\middle | {- b^{2} x^{2}} \right )}}{2 \sqrt {\pi }} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*erfi(b*x)/exp(b**2*x**2),x)

[Out]

b*x**4*hyper((1, 2), (3/2, 3), -b**2*x**2)/(2*sqrt(pi))

________________________________________________________________________________________

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(x^2*erfi(b*x)/exp(b^2*x^2),x, algorithm="giac")

[Out]

integrate(x^2*erfi(b*x)*e^(-b^2*x^2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,{\mathrm {e}}^{-b^2\,x^2}\,\mathrm {erfi}\left (b\,x\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*exp(-b^2*x^2)*erfi(b*x),x)

[Out]

int(x^2*exp(-b^2*x^2)*erfi(b*x), x)

________________________________________________________________________________________