Database › Mathematics › Mathematical physics › Special functions
The error function erf x = (2/√π)∫₀ˣ e^{−t²}dt gives Gaussian probabilities (68.3 % within 1σ, 95.4 % within 2σ) and solves diffusion problems with step initial or boundary data.
Explanation
erf is odd, tends to 1, and has the series $\frac2{\sqrt\pi}(x-\frac{x^3}3+\cdots)$; the asymptotic form follows by integrating by parts. The normal CDF is $\Phi(z)=\frac12[1+{\rm erf}(z/\sqrt2)]$.
For the heat equation on a half-line with the boundary suddenly held at $u_0$, $u=u_0\,{\rm erfc}\frac{x}{2\sqrt{Dt}}$: the penetration depth grows as $\sqrt{Dt}$. Similar profiles describe dopant diffusion in semiconductors.
Example 1
Find the probability that a normal variable lies within $1\sigma$ and within $2\sigma$ of its mean.
Solution
${\rm erf}(1/\sqrt2)\approx0.683$ and ${\rm erf}(\sqrt2)\approx0.954$.
Example 2
A slab's surface is suddenly heated; with $D=1\times10^{-5}$ m²/s, where has the temperature rise reached half its surface value after 100 s?
Solution
${\rm erfc}\,\xi=\frac12$ at $\xi\approx0.477$, so $x=2\xi\sqrt{Dt}\approx0.954\times0.0316\approx3.0$ cm.