3.176 \(\int \frac{e^{c+b^2 x^2} \text{Erfc}(b x)}{x^2} \, dx\)

Optimal. Leaf size=80 \[ -\frac{2 b^3 e^c x^2 \text{HypergeometricPFQ}\left (\{1,1\},\left \{\frac{3}{2},2\right \},b^2 x^2\right )}{\sqrt{\pi }}-\frac{e^{b^2 x^2+c} \text{Erfc}(b x)}{x}+\sqrt{\pi } b e^c \text{Erfi}(b x)-\frac{2 b e^c \log (x)}{\sqrt{\pi }} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.0787574, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {6392, 6377, 2204, 6376, 12, 29} \[ -\frac{2 b^3 e^c x^2 \, _2F_2\left (1,1;\frac{3}{2},2;b^2 x^2\right )}{\sqrt{\pi }}-\frac{e^{b^2 x^2+c} \text{Erfc}(b x)}{x}+\sqrt{\pi } b e^c \text{Erfi}(b x)-\frac{2 b e^c \log (x)}{\sqrt{\pi }} \]

Antiderivative was successfully verified.

[In]

Int[(E^(c + b^2*x^2)*Erfc[b*x])/x^2,x]

[Out]

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

Rule 6392

Int[E^((c_.) + (d_.)*(x_)^2)*Erfc[(a_.) + (b_.)*(x_)]*(x_)^(m_), x_Symbol] :> Simp[(x^(m + 1)*E^(c + d*x^2)*Er
fc[a + b*x])/(m + 1), x] + (-Dist[(2*d)/(m + 1), Int[x^(m + 2)*E^(c + d*x^2)*Erfc[a + b*x], x], x] + Dist[(2*b
)/((m + 1)*Sqrt[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]
&& ILtQ[m, -1]

Rule 6377

Int[E^((c_.) + (d_.)*(x_)^2)*Erfc[(b_.)*(x_)], x_Symbol] :> Int[E^(c + d*x^2), x] - Int[E^(c + d*x^2)*Erf[b*x]
, x] /; FreeQ[{b, c, d}, x] && EqQ[d, b^2]

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 6376

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

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rubi steps

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

Mathematica [A]  time = 0.262034, size = 99, normalized size = 1.24 \[ -\frac{e^c \left (-2 b^3 x^3 \text{HypergeometricPFQ}\left (\{1,1\},\left \{\frac{3}{2},2\right \},-b^2 x^2\right )+\text{Erf}(b x) \left (\pi b x \text{Erfi}(b x)-\sqrt{\pi } e^{b^2 x^2}\right )+\sqrt{\pi } e^{b^2 x^2}-\pi b x \text{Erfi}(b x)+2 b x \log (x)\right )}{\sqrt{\pi } x} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(E^(c + b^2*x^2)*Erfc[b*x])/x^2,x]

[Out]

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

________________________________________________________________________________________

Maple [F]  time = 0.128, size = 0, normalized size = 0. \begin{align*} \int{\frac{{{\rm e}^{{b}^{2}{x}^{2}+c}}{\it erfc} \left ( bx \right ) }{{x}^{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(b^2*x^2+c)*erfc(b*x)/x^2,x)

[Out]

int(exp(b^2*x^2+c)*erfc(b*x)/x^2,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{erfc}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erfc(b*x)/x^2,x, algorithm="maxima")

[Out]

integrate(erfc(b*x)*e^(b^2*x^2 + c)/x^2, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (\operatorname{erf}\left (b x\right ) - 1\right )} e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erfc(b*x)/x^2,x, algorithm="fricas")

[Out]

integral(-(erf(b*x) - 1)*e^(b^2*x^2 + c)/x^2, x)

________________________________________________________________________________________

Sympy [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b**2*x**2+c)*erfc(b*x)/x**2,x)

[Out]

Exception raised: AttributeError

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{erfc}\left (b x\right ) e^{\left (b^{2} x^{2} + c\right )}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(b^2*x^2+c)*erfc(b*x)/x^2,x, algorithm="giac")

[Out]

integrate(erfc(b*x)*e^(b^2*x^2 + c)/x^2, x)