3.198 \(\int (\frac {e^{-b^2 x^2} \text {erfc}(b x)}{x^3}+\frac {b^2 e^{-b^2 x^2} \text {erfc}(b x)}{x}) \, dx\)

Optimal. Leaf size=60 \[ \sqrt {2} b^2 \text {erf}\left (\sqrt {2} b x\right )-\frac {e^{-b^2 x^2} \text {erfc}(b x)}{2 x^2}+\frac {b e^{-2 b^2 x^2}}{\sqrt {\pi } x} \]

[Out]

-1/2*erfc(b*x)/exp(b^2*x^2)/x^2+b^2*erf(b*x*2^(1/2))*2^(1/2)+b/exp(2*b^2*x^2)/x/Pi^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.13, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {6392, 2214, 2205} \[ \sqrt {2} b^2 \text {Erf}\left (\sqrt {2} b x\right )-\frac {e^{-b^2 x^2} \text {Erfc}(b x)}{2 x^2}+\frac {b e^{-2 b^2 x^2}}{\sqrt {\pi } x} \]

Antiderivative was successfully verified.

[In]

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

[Out]

b/(E^(2*b^2*x^2)*Sqrt[Pi]*x) + Sqrt[2]*b^2*Erf[Sqrt[2]*b*x] - Erfc[b*x]/(2*E^(b^2*x^2)*x^2)

Rule 2205

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

Rule 2214

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^(m
 + 1)*F^(a + b*(c + d*x)^n))/(d*(m + 1)), x] - Dist[(b*n*Log[F])/(m + 1), 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[-4, (m + 1)/n, 5] && IntegerQ[n
] && ((GtQ[n, 0] && LtQ[m, -1]) || (GtQ[-n, 0] && LeQ[-n, m + 1]))

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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 60, normalized size = 1.00 \[ \sqrt {2} b^2 \text {erf}\left (\sqrt {2} b x\right )-\frac {e^{-b^2 x^2} \text {erfc}(b x)}{2 x^2}+\frac {b e^{-2 b^2 x^2}}{\sqrt {\pi } x} \]

Antiderivative was successfully verified.

[In]

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

[Out]

b/(E^(2*b^2*x^2)*Sqrt[Pi]*x) + Sqrt[2]*b^2*Erf[Sqrt[2]*b*x] - Erfc[b*x]/(2*E^(b^2*x^2)*x^2)

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 71, normalized size = 1.18 \[ \frac {2 \, \sqrt {2} \pi \sqrt {b^{2}} b x^{2} \operatorname {erf}\left (\sqrt {2} \sqrt {b^{2}} x\right ) + 2 \, \sqrt {\pi } b x e^{\left (-2 \, b^{2} x^{2}\right )} - {\left (\pi - \pi \operatorname {erf}\left (b x\right )\right )} e^{\left (-b^{2} x^{2}\right )}}{2 \, \pi x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(2*sqrt(2)*pi*sqrt(b^2)*b*x^2*erf(sqrt(2)*sqrt(b^2)*x) + 2*sqrt(pi)*b*x*e^(-2*b^2*x^2) - (pi - pi*erf(b*x)
)*e^(-b^2*x^2))/(pi*x^2)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b^{2} \operatorname {erfc}\left (b x\right ) e^{\left (-b^{2} x^{2}\right )}}{x} + \frac {\operatorname {erfc}\left (b x\right ) e^{\left (-b^{2} x^{2}\right )}}{x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.28, size = 84, normalized size = 1.40 \[ \frac {-\frac {b \,{\mathrm e}^{-b^{2} x^{2}}}{2 x^{2}}+\frac {\erf \left (b x \right ) b \,{\mathrm e}^{-b^{2} x^{2}}}{2 x^{2}}-\frac {b^{3} \left (-\frac {{\mathrm e}^{-2 b^{2} x^{2}}}{b x}-\sqrt {2}\, \sqrt {\pi }\, \erf \left (b x \sqrt {2}\right )\right )}{\sqrt {\pi }}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(-1/2*b/exp(b^2*x^2)/x^2+1/2*erf(b*x)*b/exp(b^2*x^2)/x^2-1/Pi^(1/2)*b^3*(-1/exp(b^2*x^2)^2/b/x-2^(1/2)*Pi^(1/2
)*erf(b*x*2^(1/2))))/b

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b^{2} \operatorname {erfc}\left (b x\right ) e^{\left (-b^{2} x^{2}\right )}}{x} + \frac {\operatorname {erfc}\left (b x\right ) e^{\left (-b^{2} x^{2}\right )}}{x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {{\mathrm {e}}^{-b^2\,x^2}\,\mathrm {erfc}\left (b\,x\right )}{x^3}+\frac {b^2\,{\mathrm {e}}^{-b^2\,x^2}\,\mathrm {erfc}\left (b\,x\right )}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (b^{2} x^{2} + 1\right ) e^{- b^{2} x^{2}} \operatorname {erfc}{\left (b x \right )}}{x^{3}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral((b**2*x**2 + 1)*exp(-b**2*x**2)*erfc(b*x)/x**3, x)

________________________________________________________________________________________