On this page
Try ∫e^(−x²) dx with every trick you know and nothing comes out, because there is no formula to find. Mathematicians named the answer erf, and it turns up in statistics, heat flow and diffusion.
What is the error function erf(x)?
The error function is defined as erf(x) = (2/√π)∫₀ˣ e^(−t²) dt, as in the NIST Digital Library of Mathematical Functions, §7.2. The factor 2/√π makes erf(x) approach 1, because the whole area under e^(−t²) from 0 to infinity is √π/2.
Three facts carry most problems:
erf(0) = 0, and erf(−x) = −erf(x), because e^(−t²) is even.
erf(x) rises from −1 towards 1 in an S-shape, and is already above 0.995 at x = 2.
The name and the symbol erf were proposed by J. W. L. Glaisher in 1871, in his paper On a class of definite integrals, because of the link to the theory of errors.
Why does ∫e^(−x²) dx have no elementary antiderivative?
The antiderivative exists, since e^(−x²) is continuous. What fails is writing it with a finite combination of polynomials, roots, exponentials, logs and trig functions. Liouville's theorem in differential algebra), worked out by Joseph Liouville between 1833 and 1841, sets out exactly which antiderivatives can be elementary, and e^(−x²) is its standard example of one that cannot.
How do you calculate erf(1) by hand?
Expand e^(−t²) as a power series and integrate term by term. The result, given as equation 7.6.1 in the DLMF series section, is erf(x) = (2/√π) Σ (−1)ⁿ x^(2n+1) / (n!(2n+1)), summed from n = 0, valid for every x.
At x = 1 the bracket is 1 − 1/3 + 1/10 − 1/42 + 1/216 − 1/1320 + ... and 2/√π ≈ 1.12838. Multiply each partial sum by 1.12838:
One term: 1.12838
Two terms: 0.75225
Three terms: 0.86509
Four terms: 0.83822
Five terms: 0.84345
Six terms: 0.84259
The tabulated value is erf 1 ≈ 0.842700793, from the error function reference. Because the terms alternate and shrink, the error is always smaller than the next term: after five terms that term is about 0.00085, and the true error is 0.00075. See how accurate a Taylor polynomial is for why. For large x the series cancels badly; use erfc(x) = 1 − erf(x) tables instead.
How is erf related to the normal distribution?
For a normal error with mean 0 and standard deviation σ, the probability that it lies between −a and a is erf(a/(σ√2)), as the error function reference states. With σ = 1 that becomes P(|Z| < z) = erf(z/√2).
Plug in z = 1, 2 and 3 and you get the 68–95–99.7 rule: about 68.27%, 95.45% and 99.73% of a normal distribution lies within one, two and three standard deviations of the mean. A worked case: marks have mean 60 and σ = 10, and you want the share between 45 and 75. That is z = 1.5, so the share is erf(1.5/√2) = erf(1.0607) ≈ 0.866. In two or more dimensions the bell curve becomes the multivariate normal distribution.
How does erf solve the heat equation for a suddenly heated rod?
Take a long rod, insulated along its sides, all at temperature T₀; at t = 0 one end is held at T₁. It behaves like the semi-infinite slab that Faith Morrison's Michigan Tech lecture slides on unsteady heat conduction solve with ζ = x/(2√(αt)), where α is the thermal diffusivity. With the end held exactly at T₁ (the β → ∞ curve in those slides), the solution is (T − T₀)/(T₁ − T₀) = erfc(ζ) = 1 − erf(ζ).
Worked example: copper's thermal diffusivity is about 111 mm²/s at 25 °C, per the thermal diffusivity table. Start the rod at 25 °C and hold one end at 100 °C. After 10 s, 2√(αt) = 2√(1.11 × 10⁻⁴ × 10) m ≈ 6.7 cm.
At x = 3.3 cm, ζ ≈ 0.5 and erfc(0.5) ≈ 0.480, so T ≈ 25 + 75 × 0.480 ≈ 61 °C.
At x = 6.7 cm, ζ = 1 and erfc(1) ≈ 0.157, so T ≈ 37 °C.
Because x and t enter only through x/√t, the 61 °C point reaches 6.7 cm after 40 s. To solve the same rod numerically on a grid, read our finite difference method for the heat equation.
A three-step checklist for any erf question
Make the argument clean: z/√2 for a normal question, x/(2√(αt)) for heat or diffusion.
Pick the tool: the series for small arguments, an erfc table or calculator for large ones.
Check: erf is odd, lies between −1 and 1, and erf 1 ≈ 0.8427.
If integral-defined functions still feel slippery, the Fermi Concept Library gives each mathematics and physics concept its own lesson. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



