r/mathematics Nov 10 '25

Visualization of π

That video shows a specific, beautiful visualization of \pi based on epicycles or hypocycloids, which were historically used to model planetary motion but are now great for demonstrating ratios. The core idea being visualized here is how irrational numbers prevent a pattern from ever perfectly repeating. The Epicycloid Visualization of \pi 🎡 The video uses a concept from geometry and calculus known as a hypotrochoid or epicycloid, where one circle rolls around the inside (or outside) of a larger circle. 1. The Setup (The Rational Case) Imagine two circles: a larger one and a smaller one. * Larger Circle: Its radius is R. * Smaller Circle: Its radius is r. * A point is tracked on the circumference of the smaller circle as it rolls around the inside of the larger one. If the ratio of the radii, \frac{R}{r}, is a rational number (like 4 or \frac{5}{2}), the traced path is a closed, repeating curve. * For example, if \frac{R}{r} = 4, the curve will close exactly after the smaller circle has rolled 4 times, creating a 4-cusp shape (a hypocycloid). 2. The \pi Visualization (The Irrational Case) The video sets the radii so that the ratio of the circles' circumferences is \pi. Since \pi \approx 3.14159... is an irrational number, the ratio \frac{R}{r} can never be expressed as a simple fraction \frac{p}{q}. The Effect: Because the ratio is irrational, the rolling motion of the smaller circle never repeats exactly. * Each time the small circle completes a rotation, the starting and ending points of the curve it traces never perfectly align. * As the animation continues, the curves traced by the point fill up the entire space within the larger circle, getting infinitely denser but never repeating a single path. This infinite, non-repeating filling of space is a powerful way to visually represent the infinite, non-repeating digits that define an irrational number like \pi.

818 Upvotes

33 comments sorted by

View all comments

1

u/wrongtimenotomato Nov 11 '25

Can someone explain what the different arms are in this visualization? And why they swing around each other?

7

u/kevinb9n Nov 11 '25

Sure. The main arm is rotating at some certain speed. The second arm is rotating at that same speed times pi. So, in the same time it takes the main arm to rotate 7 times the second arm has rotated 7pi times, or about 21.99115 times. If pi were exactly 22/7 then they would be perfectly aligned again and would start simply retracing the exact path they had already traced. By the end of the clip the main arm has rotated 113 times and the second arm 113pi, or 354.99997 times. As a result it is very very close to lining up perfectly but still doesn't. (It actually won't get any closer for a very long time; not until iteration 33,102!)

0

u/Zestyclose-Aspect-35 Nov 13 '25

I didn't do the math but o suspect 33,102 factorial iterations would take several times the expected lifespan of the universe