Spirographs

Rolls one circle inside or outside another and traces the curve drawn by a pen fixed to the rolling circle.
Author

Apurva Nakade

Published

September 23, 2026

A circle of radius \(r\) rolls without slipping inside (a hypotrochoid) or outside (an epitrochoid) a fixed circle of radius \(R\), and a pen at distance \(d\) from its center traces the curve. Let \(t\) be the angle of the rolling circle’s center, and put \[ a = R \mp r, \qquad k = \frac{a}{r}, \qquad m = \frac{R}{r}, \] with the upper sign for inside and the lower for outside throughout.

Special cases

Curve Special case
Straight line Straight line (Tusi couple). Inside with \(R = 2r\) and \(d = r\), the pen runs back and forth along a diameter of the fixed circle: \(x(t) = 2r\cos t\), \(y(t) = 0\). Try it
Ellipse Ellipse. Inside with \(R = 2r\) and \(d \ne r\): \(x(t) = (r + d)\cos t\), \(y(t) = (r - d)\sin t\), with semi-axes \(\lvert r + d \rvert\) and \(\lvert r - d \rvert\). Try it
Astroid, a hypocycloid Hypocycloid. Inside with \(d = r\), the pen touches the fixed circle and leaves a cusp each time. \(R = nr\) gives \(n\) cusps: the deltoid for \(n = 3\), the astroid (pictured) for \(n = 4\). Try it
Nephroid, an epicycloid Epicycloid. Outside with \(d = r\), again one cusp per touch. \(R = nr\) gives \(n\) cusps: the cardioid for \(n = 1\), the nephroid (pictured) for \(n = 2\). Try it
Cardioid Cardioid. Outside with \(R = r\) and \(d = r\), a heart with a single cusp at \((R, 0)\); about that cusp it is \(\rho = 2r(1 - \cos\phi)\). Try it
Limaçon with an inner loop Limaçon. Outside with \(R = r\): \(z(t) = 2r\,e^{it} - d\,e^{2it}\). An inner loop when \(d > r\) (pictured), a cusp at \(d = r\), a dimple when \(r/2 < d < r\), convex when \(d \le r/2\). Try it
Rose Rose (rhodonea). Inside with \(d = R - r\): \(z(t) = 2a\cos\big(\tfrac{m}{2}t\big)\,e^{i(1 - \frac{m}{2})t}\), so every petal passes through the origin. Try it