Kolton Ndoj

Trapping pi with polygons

A circle is what you get when a regular polygon grows endlessly many sides.

nsin⁡πn  ⟶  π(n→∞)n\sin\frac{\pi}{n}\;\longrightarrow\;\pi\quad(n\to\infty)

What the symbols mean

nn
number of sides of a regular polygon inside a unit circle
2nsin⁡πn2n\sin\frac\pi n
its full perimeter

Why it works — the picture

Fit a regular n-sided polygon inside a circle of radius 1. Its perimeter is slightly under the circle's, 2 pi. A hexagon has perimeter exactly 6. Double the sides again and again and the polygon hugs the circle tighter. Add another polygon outside the circle and pi gets squeezed from both sides. The plotted curve is half the inner perimeter; it creeps up toward pi from below.

Graph for Trapping pi with polygons 3963.22.5
Half the perimeter of an inscribed t-sided polygon. A triangle gives 2.6, a hexagon 3.0, a 96-gon 3.1410. It never passes 3.14159... (drawn with the default slider values — move the sliders live)

Try it yourself

Where it’s used in real life

It is how pi was first computed for thousands of years; the same idea of squeezing between two approximations underlies numerical analysis.

The story behind it

Archimedes used 96-sided polygons around 250 BCE to prove pi lies between 223/71 and 22/7.

Related

Play with it live →

Math · Geometry & limits · Intermediate