1. Home
  2. Explore
  3. Physics
  4. Unreasonable Effectiveness of Mathematics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Unreasonable Effectiveness of Mathematics

The Appearance of π in the Gaussian Distribution

The Problem: Why Does π Appear in Statistics?

The normal distribution, also called the Gaussian distribution, is a fundamental concept in statistics. Its formula, often seen in textbooks, contains the constant π. This seems strange: what do circles have to do with population trends, measurement errors, or any of the other phenomena described by the normal distribution?

The core function that produces the bell curve shape is e−x2e^{-x^2}e−x2. The reason π appears is that the area under this curve is π\sqrt{\pi}π​. To use the Gaussian as a probability distribution, the total area must be 1, so we divide by π\sqrt{\pi}π​. However, simply knowing this fact does not fully answer the conceptual question: why should a circle’s circumference-to-diameter ratio arise from a function that describes randomness?


The Classic Proof: Computing the Area Under e−x2e^{-x^2}e−x2

The Problem of Integration

The integral we want is:

∫−∞∞e−x2 dx\int_{-\infty}^{\infty} e^{-x^2} \, dx∫−∞∞​e−x2dx

This function has no elementary antiderivative — it cannot be expressed using polynomials, trigonometric functions, or exponentials in a finite combination. Thus, a clever trick is needed.

The 2D Trick

The first step seems absurd: instead of finding the area under a 1D curve, consider the volume under a 2D bell surface defined by e−(x2+y2)e^{-(x^2+y^2)}e−(x2+y2). Why do this? Because solving a related but more symmetrical problem can give insight into the original.

This surface has circular symmetry — its value depends only on the distance r=x2+y2r = \sqrt{x^2+y^2}r=x2+y2​ from the origin. The volume under this surface can be computed by integrating thin cylindrical shells:

  • The surface area of a cylindrical shell of radius rrr is 2πr2\pi r2πr (circumference) times the height e−r2e^{-r^2}e−r2.

  • The volume of a shell with thickness drdrdr is 2πre−r2 dr2\pi r e^{-r^2} \, dr2πre−r2dr.

Thus, the total volume is:

V=∫0∞2πre−r2 drV = \int_0^\infty 2\pi r e^{-r^2} \, drV=∫0∞​2πre−r2dr

This integral can be evaluated directly because 2re−r22r e^{-r^2}2re−r2 is the derivative of −e−r2-e^{-r^2}−e−r2:

V=π∫0∞2re−r2 dr=π[−e−r2]0∞=π(0−(−1))=πV = \pi \int_0^\infty 2r e^{-r^2} \, dr = \pi \left[ -e^{-r^2} \right]_0^\infty = \pi (0 - (-1)) = \piV=π∫0∞​2re−r2dr=π[−e−r2]0∞​=π(0−(−1))=π

Hence, the volume under the 2D bell surface is π\piπ. The appearance of π here is natural due to the circular symmetry.

Relating Back to 1D

Now, compute the same volume in a different way: by slicing the surface parallel to the x-axis. For a fixed yyy, the cross-section is a scaled version of the 1D curve e−x2e^{-x^2}e−x2. Because e−(x2+y2)=e−x2⋅e−y2e^{-(x^2+y^2)} = e^{-x^2} \cdot e^{-y^2}e−(x2+y2)=e−x2⋅e−y2, the area of each slice is e−y2e^{-y^2}e−y2 times the unknown area C=∫−∞∞e−x2 dxC = \int_{-\infty}^{\infty} e^{-x^2} \, dxC=∫−∞∞​e−x2dx.

Integrating over yyy:

V=∫−∞∞(e−y2⋅C) dy=C∫−∞∞e−y2 dy=C2V = \int_{-\infty}^{\infty} \left( e^{-y^2} \cdot C \right) \, dy = C \int_{-\infty}^{\infty} e^{-y^2} \, dy = C^2V=∫−∞∞​(e−y2⋅C)dy=C∫−∞∞​e−y2dy=C2

Thus, C2=πC^2 = \piC2=π, so C=πC = \sqrt{\pi}C=π​. The area under e−x2e^{-x^2}e−x2 is π\sqrt{\pi}π​.


The Herschel–Maxwell Derivation: Forcing the Gaussian Shape

The classic proof explains how π appears but does not explain why the function e−x2e^{-x^2}e−x2 is special in the first place. In 1850, John Herschel offered a derivation that starts from two plausible assumptions about a probability distribution on the plane.

Two Assumptions

  1. Radial symmetry: The probability density at a point depends only on its distance from the origin, not on its direction. Mathematically, f2(x,y)=f(r)f_2(x,y) = f(r)f2​(x,y)=f(r), where r=x2+y2r = \sqrt{x^2+y^2}r=x2+y2​.

  2. Independence of coordinates: The xxx and yyy coordinates are independent. Thus, f2(x,y)=g(x)⋅g(y)f_2(x,y) = g(x) \cdot g(y)f2​(x,y)=g(x)⋅g(y), where ggg is the density for a single coordinate (since both axes should behave identically).

The Functional Equation

Combining these, we have for any point:

f(x2+y2)=g(x)⋅g(y)f\left(\sqrt{x^2+y^2}\right) = g(x) \cdot g(y)f(x2+y2​)=g(x)⋅g(y)

Because fff and ggg are essentially the same function (up to a constant factor that can be absorbed later), we can write f(r)=f(x2+y2)=f(x)⋅f(y)f(r) = f\left(\sqrt{x^2+y^2}\right) = f(x) \cdot f(y)f(r)=f(x2+y2​)=f(x)⋅f(y) (after rescaling). This is a functional equation: it must hold for all real numbers x,yx, yx,y.

Solving the Functional Equation

Introduce a helper function h(u)=f(u)h(u) = f(\sqrt{u})h(u)=f(u​), so that f(x)=h(x2)f(x) = h(x^2)f(x)=h(x2). Then the equation becomes:

h(x2+y2)=h(x2)⋅h(y2)h(x^2 + y^2) = h(x^2) \cdot h(y^2)h(x2+y2)=h(x2)⋅h(y2)

For positive arguments a=x2a = x^2a=x2, b=y2b = y^2b=y2, this is h(a+b)=h(a)h(b)h(a+b) = h(a)h(b)h(a+b)=h(a)h(b). This is the Cauchy exponential equation. For continuous functions, the only solution is h(a)=ecah(a) = e^{c a}h(a)=eca for some constant ccc. Thus:

f(x)=h(x2)=ecx2f(x) = h(x^2) = e^{c x^2}f(x)=h(x2)=ecx2

Therefore, the probability density for a single coordinate must be proportional to ecx2e^{c x^2}ecx2.

Normalization and the Sign of ccc

For the total probability to be finite, the constant ccc must be negative (otherwise the function grows without bound). The specific value of ccc controls the spread (variance) of the distribution. After rescaling to make the total area 1, we recover the Gaussian bell curve e−x2e^{-x^2}e−x2 (up to a constant factor depending on ccc).

Connection to the Classic Proof

The two properties used in the classic proof — radial symmetry and factorization — are exactly the assumptions of the Herschel–Maxwell derivation. Thus, the 2D trick is not an arbitrary leap; it naturally leverages the defining characteristics of the Gaussian. The appearance of π is then a consequence of the circular symmetry built into the distribution.


Why This Matters for the Central Limit Theorem

The central limit theorem states that sums of many independent random variables tend toward a normal distribution. The Herschel–Maxwell derivation shows that if a distribution in multiple dimensions has both radial symmetry and independence, it must be Gaussian. This provides a bridge between the geometric proof and the statistical context: the Gaussian emerges when many independent contributions combine, and the circular symmetry in the proof reflects the rotational invariance of sums of independent variables (a concept connected to the Fourier transform and characteristic functions).

However, fully connecting the continuous derivation to the discrete central limit theorem requires additional steps. The explanation of that link is a natural next topic.


Bonus: Volumes of Higher-Dimensional Spheres

The same integration trick used for the 2D bell surface can be extended to compute the volumes of nnn-dimensional spheres. By integrating e−r2e^{-r^2}e−r2 over Rn\mathbb{R}^nRn in two ways — using spherical shells and using a product of 1D integrals — one derives a recursion for the sphere volume VnV_nVn​:

Vn=πn/2Γ(n2+1)V_n = \frac{\pi^{n/2}}{\Gamma\left(\frac{n}{2}+1\right)}Vn​=Γ(2n​+1)πn/2​

where Γ\GammaΓ is the gamma function. For example, V2=πV_2 = \piV2​=π, V3=43πV_3 = \frac{4}{3}\piV3​=34​π, V4=π22V_4 = \frac{\pi^2}{2}V4​=2π2​, and so on. The method relies on the same principle: the Gaussian integral factorizes in Cartesian coordinates and has radial symmetry, linking the circular constant π to volumes in any number of dimensions.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent