\(\int \frac {\text {erfc}(b x)}{x^2} \, dx\) [115]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [F]
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 8, antiderivative size = 27 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {\text {erfc}(b x)}{x}-\frac {b \operatorname {ExpIntegralEi}\left (-b^2 x^2\right )}{\sqrt {\pi }} \]

[Out]

-erfc(b*x)/x-b*Ei(-b^2*x^2)/Pi^(1/2)

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6497, 2241} \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {b \operatorname {ExpIntegralEi}\left (-b^2 x^2\right )}{\sqrt {\pi }}-\frac {\text {erfc}(b x)}{x} \]

[In]

Int[Erfc[b*x]/x^2,x]

[Out]

-(Erfc[b*x]/x) - (b*ExpIntegralEi[-(b^2*x^2)])/Sqrt[Pi]

Rule 2241

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))/((e_.) + (f_.)*(x_)), x_Symbol] :> Simp[F^a*(ExpIntegralEi[
b*(c + d*x)^n*Log[F]]/(f*n)), x] /; FreeQ[{F, a, b, c, d, e, f, n}, x] && EqQ[d*e - c*f, 0]

Rule 6497

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

Rubi steps \begin{align*} \text {integral}& = -\frac {\text {erfc}(b x)}{x}-\frac {(2 b) \int \frac {e^{-b^2 x^2}}{x} \, dx}{\sqrt {\pi }} \\ & = -\frac {\text {erfc}(b x)}{x}-\frac {b \operatorname {ExpIntegralEi}\left (-b^2 x^2\right )}{\sqrt {\pi }} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {\text {erfc}(b x)}{x}-\frac {b \operatorname {ExpIntegralEi}\left (-b^2 x^2\right )}{\sqrt {\pi }} \]

[In]

Integrate[Erfc[b*x]/x^2,x]

[Out]

-(Erfc[b*x]/x) - (b*ExpIntegralEi[-(b^2*x^2)])/Sqrt[Pi]

Maple [A] (verified)

Time = 0.71 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93

method result size
parts \(-\frac {\operatorname {erfc}\left (b x \right )}{x}+\frac {b \,\operatorname {Ei}_{1}\left (b^{2} x^{2}\right )}{\sqrt {\pi }}\) \(25\)
derivativedivides \(b \left (-\frac {\operatorname {erfc}\left (b x \right )}{b x}+\frac {\operatorname {Ei}_{1}\left (b^{2} x^{2}\right )}{\sqrt {\pi }}\right )\) \(29\)
default \(b \left (-\frac {\operatorname {erfc}\left (b x \right )}{b x}+\frac {\operatorname {Ei}_{1}\left (b^{2} x^{2}\right )}{\sqrt {\pi }}\right )\) \(29\)

[In]

int(erfc(b*x)/x^2,x,method=_RETURNVERBOSE)

[Out]

-erfc(b*x)/x+1/Pi^(1/2)*b*Ei(1,b^2*x^2)

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.19 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {\pi + \sqrt {\pi } b x {\rm Ei}\left (-b^{2} x^{2}\right ) - \pi \operatorname {erf}\left (b x\right )}{\pi x} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.67 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.74 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=\frac {b \operatorname {E}_{1}\left (b^{2} x^{2}\right )}{\sqrt {\pi }} - \frac {\operatorname {erfc}{\left (b x \right )}}{x} \]

[In]

integrate(erfc(b*x)/x**2,x)

[Out]

b*expint(1, b**2*x**2)/sqrt(pi) - erfc(b*x)/x

Maxima [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {b {\rm Ei}\left (-b^{2} x^{2}\right )}{\sqrt {\pi }} - \frac {\operatorname {erfc}\left (b x\right )}{x} \]

[In]

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

[Out]

-b*Ei(-b^2*x^2)/sqrt(pi) - erfc(b*x)/x

Giac [F]

\[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=\int { \frac {\operatorname {erfc}\left (b x\right )}{x^{2}} \,d x } \]

[In]

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

[Out]

integrate(erfc(b*x)/x^2, x)

Mupad [B] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93 \[ \int \frac {\text {erfc}(b x)}{x^2} \, dx=-\frac {\mathrm {erfc}\left (b\,x\right )}{x}-\frac {b\,\mathrm {ei}\left (-b^2\,x^2\right )}{\sqrt {\pi }} \]

[In]

int(erfc(b*x)/x^2,x)

[Out]

- erfc(b*x)/x - (b*ei(-b^2*x^2))/pi^(1/2)