Why the Gaussian integral equals √π

The question
How can we find the total area under e−x² when its antiderivative has no elementary formula?
Choose the next mathematical move and see what it makes possible.
- 1 SeeChoose the next move.
- 2 TryPredict a change in area.
- 3 ProveJustify the infinite limits.
- 4 ApplyUse the integral in five problems.
Before you start · 3 quick checks on exponential products, improper integrals and polar distance
Two ideas before you start
2 ideasAn area can extend beyond the picture
The curve e to the minus x squared, with a movable finite cutoff.
Moving the boundary changes which part of the curve is included. The picture always stops somewhere; the improper integral does not.
Exact definition
Write \(f(x)=e^{-x^2}\) and \(A_R=\int_{-R}^{R}f(x)\,dx\), where \(R\gt0\). The desired integral is \(I=\int_{-\infty}^{\infty}f(x)\,dx\). This notation requires both one-sided tails to converge. Since f is even and nonnegative, convergence of the symmetric totals will imply convergence of each half. The finite shaded region represents \(A_R\); the card reports a boundary height, not its area.
Distance can replace a pair of coordinates
A radial segment at a chosen angle, with the same length in every direction.
Turn the segment without stretching it. Its endpoint moves, but its distance from the origin stays fixed.
Exact definition
Polar coordinates describe a point by \(x=r\cos\theta\) and \(y=r\sin\theta\). Here r is distance from the origin and θ is an angle in radians. The identity \(\cos^2\theta+\sin^2\theta=1\) gives \(x^2+y^2=r^2\). The Jacobian lesson explains how a coordinate change also changes the area element.
Choose a route through the calculation
- Choose the next operation. The figure changes only when that operation has the inputs it needs.
- A blocked move explains what is missing. Start over clears the route and its conclusion.
Begin with one unknown area I. The available moves work together, but each needs a particular mathematical object. The goal is to reach an ordinary substitution integral.
Refresher: integrals on rectangles and disks
A double integral adds height times a small patch of base area. For a nonnegative surface, this is the volume underneath it. On a finite rectangle, a continuous function can be integrated one coordinate at a time. If the function is a product of a function of x and a function of y, the two integrations separate into a product of ordinary integrals.
On a disk, polar coordinates use \(0\le r\le R\) and one full turn of θ. Their area element is \(dA=r\,dr\,d\theta\). The radial factor accounts for the increasing length of circular arcs farther from the center. The origin and the ray where the angle wraps around have area zero. Omitting them does not change an integral of a bounded continuous function on a disk. These facts suffice here; no result about exchanging integrals over an unbounded region is assumed.
The new surface has the same height all around each circle centered at the origin. A thin annulus therefore contributes approximately its circumference times its width times that height. Adding these contributions turns a plane integral into a single radial integral. The angular variable contributes a full turn.
The factor from area is essential: it supplies exactly the radial term needed when differentiating the squared radius. Merely rewriting the exponent does not finish a change of variables. We must change the base area as well.
This route explains the calculation. It does not yet justify replacing finite squares by disks or taking limits. Stage 3 supplies those missing steps, using containment and positivity.
Change the exponent
The comparison curve, formula and goals open after you submit a choice.
Define \(I(a)=\int_{-\infty}^{\infty}e^{-ax^2}\,dx\) for \(a\gt0\). Set \(u=\sqrt a\,x\); then \(dx=du/\sqrt a\), and the whole real line maps to itself. Thus \(I(a)=I/\sqrt a\). The exponent coefficient is not itself a horizontal stretch factor: the square on x matters.
Use what you found above: meet two area goals
- Choose a coefficient a, then press Check coefficient to submit it.
- Each new goal resets the coefficient and requires a fresh submission.
The peak stays at the same height for every allowed coefficient. Only the horizontal scale changes. The plot shows a finite window; the displayed totals include the omitted tails by the exact formula. These curves are not normalized probability densities, so their areas need not be one.
What happens outside the allowed coefficients?
The restriction \(a\gt0\) is necessary. At a equal to zero the integrand is constant on the whole line. At negative a it grows away from the origin. Both cases have divergent positive integrals. For a positive coefficient, multiplying the curve by \(\sqrt{a/\pi}\) gives a nonnegative function of total area one. This is the connection to the normal distribution; that lesson develops probabilities, while this one establishes the normalization.
Make the route valid at infinity
For the continuous, positive function \(f(x)=e^{-x^2}\), the two one-sided improper integrals converge, and
\[I=\int_{-\infty}^{\infty}e^{-x^2}\,dx=\sqrt\pi.\]For the proof, \(R\gt0\), \(A_R=\int_{-R}^Re^{-x^2}\,dx\), and \(J_R\) is the integral of \(e^{-(x^2+y^2)}\) over the disk of radius R. Every finite integral below has a bounded region and a continuous integrand.
Build the convergence argument, compute a disk integral, and compare regions. This is stronger than observing that a numerical answer seems to stop changing. The improper integrals lesson explains why a limit must control all sufficiently large cutoffs.
| R | Inner disk | Square | Outer disk |
|---|
Why squaring the integrand is a different operation
The square of an integral uses two independent coordinates. Multiplying two copies of a one-dimensional area produces a double integral of \(f(x)f(y)\). By contrast, \(\int f(x)^2\,dx\) uses the same coordinate twice and remains a one-dimensional integral. The two expressions have different geometric meanings.
Also, a finite square does not become a disk when coordinates change. Its polar boundary depends on the angle. The proof avoids that complication by putting the square between two disks. Positivity makes containment imply inequalities between integrals. Both disk totals approach the same number, which forces the square total to have that limit too.
The same result with Tonelli's theorem
If you know Tonelli's theorem, there is a shorter justification that works on the whole plane at once. For a nonnegative measurable function on the plane, the double integral over the whole plane equals each iterated integral, in either order, even though the region is unbounded and even when the common value is infinite. Since \(e^{-x^2}e^{-y^2}\ge0\),
\[\begin{aligned}&\iint_{\mathbb R^2}e^{-(x^2+y^2)}\,dA\\&\quad=\int_{-\infty}^{\infty}\!\left(\int_{-\infty}^{\infty}e^{-y^2}\,dy\right)e^{-x^2}\,dx\\&\quad=I\cdot I=I^2.\end{aligned}\]The polar change of variables is also valid for a nonnegative integrand on the whole plane, and it gives \(2\pi\int_0^\infty re^{-r^2}\,dr=\pi\). Nonnegativity is what makes the exchange safe. For an integrand that changes sign, iterated integrals over an unbounded region can disagree, and Fubini's theorem then requires the integral of the absolute value to be finite. The squeeze above avoids this theory: it uses only finite rectangles and disks, where continuity is enough, and then takes a limit.
Use the integral
For each problem, identify the domain before substituting. An integral over a half-line differs from one over the whole line. Enter a decimal to four places; each problem states its absolute tolerance and includes hints and a worked solution.
Further reading
- T. M. Apostol, Calculus, Vol. 2, chapter on multiple integrals.
- W. Feller, An Introduction to Probability Theory and Its Applications, Vol. 1, chapter on the normal approximation.