The basic integral of Exp and Erf cannot be easily obtained . Its result contains the little known OwenT function (look up the Mathematica documentation for this) :
Integrate[
Erf[a*x + b]/E^(p^2*x^2), {x,0,Infinity}] =
(Sqrt[Pi]/p)*((1/2)*Erf[(b*p)/Sqrt[a^2 + p^2]] +
2*OwenT[(Sqrt[2]*b*p)/Sqrt[a^2 + p^2], a/p]).
From here you get contracting the a's and b's together with using elementary algebra to the result of Nasser' s integral with Exp and Erfc as :
(E^(9/400/a1)*Pi*Erfc[(3*Sqrt[-a1 + b1])/(20*Sqrt[a1]*Sqrt[b1])])/(4*
Sqrt[a1]*Sqrt[-a1 + b1])
Numeric check for b1 > a1 :
a1 = 0.3; b1 = 0.8; {NIntegrate[(Exp[9/(400*a1) + (a1 - b1)*z^2]*
Sqrt[Pi]*Erfc[(3 + 20*a1*z)/(20*Sqrt[a1])])/(4*
Sqrt[a1]), {z, -Infinity, Infinity}],
(E^(9/400/a1)*Pi*Erfc[(3*Sqrt[-a1 + b1])/(20*Sqrt[a1]*Sqrt[b1])])/(4*
Sqrt[a1]*Sqrt[-a1 + b1])}
(* {1.66006, 1.66006} *)
a nice simple form.
Edit:
an easier way to calculate
int = Integrate[E^(-a z^2) Erfc[b + c z], {z, -Infinity, Infinity}]
(which resembles the OP's integral after integrating over r)
is by differentiation under the integral sign :
Derivative with respect to b :
D[E^(-a z^2) Erfc[b + c z], b]
(* -((2*E^((-a)*z^2 - (b + c*z)^2))/Sqrt[Pi]) *)
Now integrate over z:
Integrate[-((2*E^((-a)*z^2 - (b + c*z)^2))/Sqrt[Pi]),
{z, -Infinity, Infinity},
GenerateConditions -> False]
(* -(2/(E^((a*b^2)/(a + c^2))*Sqrt[a + c^2])) *)
Find the Antiderivative with respect to b to 'cancel' the derivative :
Integrate[-(2/(E^((a*b^2)/(a + c^2))*Sqrt[a + c^2])), b]
(* -((Sqrt[Pi]*Erf[(Sqrt[a]*b)/Sqrt[a + c^2]])/Sqrt[a]) *)
To get the missing constant of integration compare both expressions at b = 0 :
Integrate[Erfc[c*z]/E^(a*z^2), {z, -Infinity, Infinity},
GenerateConditions -> False]
(* Sqrt[Pi]/Sqrt[a] *)
and the final result is
int = (Sqrt[Pi]/Sqrt[a])*Erfc[(Sqrt[a]*b)/Sqrt[a + c^2]]
Check by plot:
a = 0.7; c = 0.3; Plot[{NIntegrate[
Erfc[b + c*z]/E^(a*z^2), {z, -Infinity, Infinity}],
(Sqrt[Pi]*Erfc[(Sqrt[a]*b)/Sqrt[a + c^2]])/Sqrt[a]}, {b, 0, 1},
PlotStyle -> {Blue, Dashed}]

3/10
rather than0.3
if you're desiring an analytical solution. And you might consider special cases such asa1+a2 = b1+b2 = some integer
and look for patterns. $\endgroup$n = some positive integer
, then the integral will be1/(2 n) - (3 E^((9/400)/n) Sqrt[\[Pi]] Erfc[3/(20 Sqrt[n])])/(40 n^(3/2))
. That's simply from trying positive integers 1 through 6 and figuring out the pattern. I suspect that this formula will also work for any real values ofn > 0
. $\endgroup$Integrate
works directly with the above special case and resorting to looking for patterns wasn't necessary this time. $\endgroup$