Week 1 — Geometry and mathematical intuition30 minutesSaturday, December 5, 2026

Day 6 · The Gaussian integral: when geometry simplifies integration

Evaluate the Gaussian integral by changing geometry, quantify the truncation error, and discover the complex Fourier transform of a Gaussian.

By the end of today you will
  • Explain why squaring the integral produces a radial integrand.
  • Derive the polar Jacobian and evaluate the Gaussian integral rigorously.
  • Bound the error from integrating over a finite square.
  • Derive a Gaussian Fourier transform using differentiation and integration by parts.

The integral of a bell-shaped curve over the whole real line has an exact value, even though its antiderivative cannot be expressed using elementary functions. The trick is not a more complicated substitution in one dimension. It is to change the problem's geometry.

1. Recall: the geometry behind the exponential 5 min

The previous lesson separated the real and imaginary coordinates of a complex exponential:

ex+iy=ex(cos⁡y+isin⁡y).e^{x+iy}=e^x(\cos y+i\sin y).

The output has radius exe^x and angle yy modulo 2π2\pi. Today we use polar coordinates directly in the input plane. For z=x+iy=reiθz=x+iy=re^{i\theta},

∣z∣2=x2+y2=r2.|z|^2=x^2+y^2=r^2.

Here r≥0r\ge0 and θ\theta is measured in radians. The function e−∣z∣2e^{-|z|^2} is real-valued and radial: it is constant on circles centered at the origin.

Before proceeding, estimate whether II is closer to 1, 2, or 3. The central part contributes substantial area, but the tails decay rapidly. We'll derive the exact answer without relying on numerical quadrature.

2. Visual laboratory: from squares to circles 10 min

Experiment A: lift the integral into two dimensions

Let IR=∫−RRe−x2 dxI_R=\int_{-R}^R e^{-x^2}\,dx. Multiplying this integral by an identical copy with a different integration variable gives

IR2=∫[−R,R]2e−x2−y2 dx dy.I_R^2=\int_{[-R,R]^2}e^{-x^2-y^2}\,dx\,dy.

Think of the integrand as the height of a smooth hill above the plane. The square of the original area is the volume beneath the hill over a square base. The hill has circular level sets because x2+y2=r2x^2+y^2=r^2.

The purple square has corners (±R,±R)(\pm R,\pm R). The teal inner disk has radius RR, while the outer disk has radius 2R\sqrt2R. Each circular contour has constant Gaussian height. The selected annulus illustrates a thin radial slice.

Try R=1R=1, then R=2R=2, then R=3R=3. Watch the exact disk bounds approach one another. The square integral is estimated by one-dimensional quadrature and squaring, but the bounds themselves come from closed formulas. Their agreement is not needed for the proof; it is a visual demonstration of it.

Experiment B: why the radius is a factor

A polar cell spanning [r,r+Δr][r,r+\Delta r] and an angle interval of width Δθ\Delta\theta has area

Δθ2[(r+Δr)2−r2]=rΔrΔθ+12(Δr)2Δθ.\frac{\Delta\theta}{2}\big[(r+\Delta r)^2-r^2\big] =r\Delta r\Delta\theta+\tfrac12(\Delta r)^2\Delta\theta.

A full thin annulus therefore has area approximately 2πrΔr2\pi r\Delta r. Its Gaussian mass is approximately 2πre−r2Δr2\pi r e^{-r^2}\Delta r. Near the origin, the hill is high but the rings are tiny. Far away, the rings are wide but the hill is low.

Move the annulus radius from zero outward. The radial mass density 2πre−r22\pi r e^{-r^2} is zero at the origin, reaches its maximum at r=1/2r=1/\sqrt2, and then decays. Verify the maximum by differentiating with respect to rr.

3. Rigorous derivation and worked problem 10 min

A complex-valued extension: the Fourier transform

For real bb define

F(b)=∫Re−x2eibx dx.F(b)=\int_{\mathbb R}e^{-x^2}e^{ibx}\,dx.

Our sign convention uses +ibx+ibx and no normalization factor. Absolute integrability follows from ∣eibx∣=1|e^{ibx}|=1. The imaginary part vanishes by odd symmetry. Differentiation under the integral is justified by dominated convergence, since the difference quotients in bb are bounded by ∣x∣e−x2|x|e^{-x^2}, which is integrable. Thus

F′(b)=i∫Rxe−x2eibx dx.F'(b)=i\int_{\mathbb R}xe^{-x^2}e^{ibx}\,dx.

Using xe−x2=−12(d/dx)e−x2xe^{-x^2}=-\tfrac12(d/dx)e^{-x^2}, integrate by parts on [−R,R][-R,R] and pass to the limit. The boundary term vanishes because e−R2→0e^{-R^2}\to0 while the phase has modulus one. Therefore

F′(b)=−b2F(b).F'(b)=-\frac b2 F(b).

Since F(0)=πF(0)=\sqrt\pi, multiplication by the integrating factor eb2/4e^{b^2/4} shows that

F(b)=π e−b2/4.\boxed{F(b)=\sqrt\pi\,e^{-b^2/4}.}

A Gaussian in position becomes another Gaussian in frequency. No complex contour shift was needed. Later, contour integration will supply a second proof.

4. Exercises and connections 5 min

A normal density with mean μ∈R\mu\in\mathbb R and standard deviation σ>0\sigma>0 is

p(x)=1σ2πe−(x−μ)2/(2σ2).p(x)=\frac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/(2\sigma^2)}.

The constant is forced by the Gaussian integral, not chosen by convention. In econometrics it normalizes the Gaussian likelihood; in statistical mechanics quadratic energies lead to related partition integrals. In quantum mechanics a Gaussian wave packet has a Gaussian momentum-space amplitude under Fourier transformation.

For discussion, explain in your own words why the square-to-disk argument is legitimate even though the regions are not identical, and why the factor rr cannot be omitted. Next we return to complex differentiation: one limit must agree along every approach direction.

If you remember one thingSquaring a Gaussian integral reveals radial symmetry, while complex exponential phases reveal its frequency-domain structure.

Textbook references and further reading

  • Tristan Needham, Visual Complex Analysis — Topics: polar coordinates and the geometry of complex exponentials · Optional geometric reinforcement, not a claim that this book contains today's proof.
  • Larry Wasserman, All of Statistics — Topics: normal distributions and probability densities · Optional connection to normalization; no reading is required.