Complementary error function Created 2026-10-05 Updated 2026-10-14
The complementary error function describes the Gaussian integral area remaining beyond the endpoint. For a real ,
It is an entire function for complex arguments when defined by . On the real line it decreases from two to zero, with and .[ref]
For example, is a sizeable tail, whereas is extremely small. In the tested floating-point arithmetic, a direct evaluation of gives zero because the computed error function has already rounded to one. Evaluating the complementary error function directly preserves this tail. It is the useful quantity in an upper-tail normal distribution probability and in the decaying side of an error-function diffusion front.
For large positive real , the leading asymptotic expansion is
The first corrections are multiplying the leading term. This is an asymptotic expansion, not an assertion that summing arbitrarily many terms converges at a fixed .[ref] The complementary error function tail bound provides finite- inequalities instead.
Error function Created 2026-09-24 Updated 2026-10-14
The error function records the signed area under a Gaussian function between zero and a variable endpoint:
For a negative real number , reversing the integration limits makes this integral negative. The normalization uses the Gaussian integral: the full area of is , so its positive half contributes one after multiplication by . The same definition extends to a complex number along any path from zero to , giving an entire function.[ref]
For example, , , and . A finite positive endpoint captures only part of the positive Gaussian integral; approaches one as but never reaches it at a finite real .
Figure 1.
The error function turns signed Gaussian area into a bounded increasing curve
. Original computed real-axis curves. Blue shading represents integration from zero to ; orange shading represents the reversed integral from zero to . The right panel displays their signed values after normalization, not a probability density. Details.
The useful idea is to name a recurring integral once instead of carrying it through every calculation. The error function and the normal distribution express probabilities and quantiles through this area, while an error-function diffusion front describes how diffusion smooths a sharp jump. The complementary error function retains the small area left in the tail.
The fundamental theorem of calculus gives
Thus the real-axis error function is strictly increasing, with values in . Its integrand is an even function, so the error function is an odd function, . The derivative also gives : the curve is concave for and convex for . These real-axis properties do not imply boundedness throughout the complex plane; the existing quadrant asymptotics of the error function describe a different behavior in other directions.
Gaussian integral Created 2026-09-24 Updated 2026-10-14
The Gaussian integral gives the exact area under a Gaussian function. For a positive real number ,
This is a finite improper integral over the whole real line. For example, and . Increasing from one to four narrows the curve and halves its area, while its height at zero stays one. The change of variables explains the factor .
Figure 1.
Narrower Gaussian curves have less area unless their height is adjusted
. Left: the full-line areas of and are and . Right: multiplication by makes both areas one. Shading shows the plotted finite interval; the stated areas refer to the whole real line. Details.
The useful consequence is an exact normalization. For and any real center ,
This is a probability density function for a normal distribution with expected value and variance . A narrower probability density function must be taller to keep total probability one. In the usual notation , the prefactor is , where is the standard deviation.
The same area calculation makes the one-dimensional heat kernel
integrate to one in , with the diffusion coefficient. A spreading Gaussian function can therefore preserve total mass while its height falls. This links the Gaussian integral with both the normal distribution and the diffusion equation.
Finite intervals lead to the error function, rather than this single constant:
The complementary tail is described by the complementary error function. These definitions and their real-axis limits are given in the NIST reference. [ref]
The polar-coordinate proof of the Gaussian integral explains why appears in an integral of a function defined on a line: squaring its area creates a rotationally symmetric integral on a plane. Substitution also gives , connecting the result with the Gamma function.