Pi Is Everywhere

A circle of radius $r$: circumference and area
r = 3A = πr²CIRCUMFERENCE18.850C = 2π × 3 = 18.850AREAA = π × 3² = 28.274
r = 35

Everyone learns that π3.14159\pi \approx 3.14159 is the ratio of a circle's circumference to its diameter. That definition makes π\pi sound like a fact about circles — interesting but contained. What's strange and worth thinking about is that π\pi keeps appearing in contexts that have nothing to do with circles. The sum of an infinite series of fractions. A Gaussian integral. The probability that two randomly chosen integers share no common factors. These have no obvious circles in them. So what's actually going on?

Circles

Starting from the circle

The definition: if a circle has diameter dd, its circumference is πd\pi d. Equivalently, circumference =2πr= 2\pi r where rr is the radius. That's where π\pi comes from, historically and pedagogically.

The area formula A=πr2A = \pi r^2 isn't obvious, but it follows cleanly from the circumference formula. Imagine slicing the circle into very thin concentric rings. Each ring at radius tt has circumference 2πt2\pi t and thickness dtdt, contributing area 2πtdt2\pi t \, dt. Summing all rings from t=0t = 0 to t=rt = r:

A=0r2πtdt=πr2A = \int_0^r 2\pi t \, dt = \pi r^2

This is calculus, but the intuition is just: unrolling all those rings and stacking them gives a triangle of base 2πr2\pi r and height rr, which has area 122πrr=πr2\frac{1}{2} \cdot 2\pi r \cdot r = \pi r^2. The circle formula is the integral of the circumference formula, which makes geometric sense.

So far so circular (sorry). π\pi is behaving itself. Now things get strange.

The Basel problem

In 1734, Leonhard Euler solved a problem that had stumped mathematicians for nearly a century: what is the exact value of

n=11n2=1+14+19+116+?\sum_{n=1}^{\infty} \frac{1}{n^2} = 1 + \frac{1}{4} + \frac{1}{9} + \frac{1}{16} + \cdots?

The answer is π26\dfrac{\pi^2}{6}.

Why? There are no circles in the problem. The series is just the reciprocals of the perfect squares. Euler's proof used the fact that the function sin(x)/x\sin(x)/x has roots at every nonzero integer multiple of π\pi, and then factored it as an infinite product — a polynomial-like expansion. When he compared coefficients, π2\pi^2 fell out.

The key ingredient is the sine function, and the sine function is the projection of circular motion onto a line. Circles are hiding inside the trigonometry.

The Gaussian integral

The integral ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} is one of the most important results in probability, because the bell curve (the normal distribution) is built from ex2e^{-x^2}.

The standard proof is a trick: call the integral II, then compute I2=(ex2dx)(ey2dy)=e(x2+y2)dxdyI^2 = \left(\int_{-\infty}^{\infty} e^{-x^2} dx\right)\left(\int_{-\infty}^{\infty} e^{-y^2} dy\right) = \int\int e^{-(x^2+y^2)} \, dx \, dy.

Now switch to polar coordinates: x2+y2=r2x^2 + y^2 = r^2, and the double integral over the whole plane becomes 02π0er2rdrdθ=2π12=π\int_0^{2\pi} \int_0^{\infty} e^{-r^2} r \, dr \, d\theta = 2\pi \cdot \frac{1}{2} = \pi. So I=πI = \sqrt{\pi}.

There it is — π\pi enters through polar coordinates, through the factor of 2π2\pi that comes from integrating the angular part of a circle. The bell curve's normalization constant is π\sqrt{\pi} because circles are the natural coordinate system for two-dimensional space.

Where the bell curve gets its 1/√(2π)

The standard normal distribution is written 12πex2/2\frac{1}{\sqrt{2\pi}} e^{-x^2/2}. The 2π\sqrt{2\pi} in the denominator is exactly the Gaussian integral result, adjusted to normalize the total probability to 1. Every time you use a normal distribution — in statistics, in physics, in machine learning — you're using π\pi.

Coprime integers and Buffon's needle

The probability that two randomly chosen positive integers are coprime (share no common factor) is 6π2\dfrac{6}{\pi^2}, which is the reciprocal of the Basel sum. This follows from the fact that the probability two integers are both divisible by a prime pp is 1/p21/p^2, and the primes are independent in the right sense. Multiply over all primes using the Euler product formula and π2/6\pi^2/6 appears again.

Buffon's needle: drop a needle of length ll at random onto a floor with parallel lines spaced dd apart (ldl \leq d). The probability it crosses a line is 2lπd\dfrac{2l}{\pi d}. The π\pi here comes from integrating over random angles — the needle can land at any orientation, and averaging over orientations involves integrating cosθ|\cos\theta| over a semicircle.

It's not a coincidence, but it does need explaining

It can feel like π\pi is showing up as a magic trick. The right response isn't to accept it as mysterious — it's to notice the pattern: whenever you sum over continuous symmetry (all angles, all orientations, all directions), you're integrating over a circle, and π\pi appears. The surprise shrinks once you see the underlying structure.

The deep reason: Euler's formula

The real unifying explanation is Euler's formula: eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta.

The complex exponential eiθe^{i\theta} traces out the unit circle as θ\theta varies. When θ=π\theta = \pi, you land at 1-1, giving the famous identity eiπ+1=0e^{i\pi} + 1 = 0. But more fundamentally, this formula means that circular motion and exponential growth are the same thing, just with an imaginary exponent.

The reason π\pi appears in the Gaussian integral is that the complex exponential connects the bell curve to circular symmetry. The reason π\pi appears in the Basel problem is that sin(x)\sin(x) is built from eixe^{ix}, and eixe^{ix} is rotation. Wherever you see π\pi appearing in an unexpected context, somewhere in the proof there's a rotation, an angle, a circle — even if it's in the complex plane and invisible in the original formulation.

π\pi isn't fundamentally a fact about circles drawn on paper. It's a fact about rotation — about what happens when you move through angles in any space. Circles just happen to be the simplest place that rotation lives, which is why π\pi shows up there first. But rotation lives everywhere, and π\pi follows it.