Skip to content
All apps

Fourier epicycles (3D)

About this app

Every closed curve as a sum of rotating vectors — Σ cₙ·eⁱⁿᵗ. The tip traces the curve, time unrolled as a 3D helix. Presets (heart, star, treble clef, …) or draw your own curve freely.

Epicycles and the complex Fourier series

A closed curve in the plane can be treated as a complex-valued periodic function z(t) and written as a complex Fourier series z(t) = Σ cₙ·e^(int). Each term is a vector of length |cₙ| rotating at frequency n. Chaining these vectors tip to tail, the end of the chain traces the curve; these are epicycles, circles on circles. A few terms give a rough shape, more terms sharpen corners and details. For space curves one uses a series per coordinate, and the individual terms then move on elliptical orbits in space.

What the app shows

The app plays Fourier synthesis as a chain of rotating vectors in a 3D scene. Presets include heart, square, star and cardioid in the plane, and cube path, trefoil knot, torus spiral, Lissajous figure, Viviani curve and figure-eight knot in space. You can also draw your own 2D curve. You can set the number of harmonics (1 to 120), speed and line width, and toggle ellipse orbits, the vector chain, the target curve, a floor with shadows and a camera that follows the pen. “Unroll time helix” stretches the time course into a spiral in depth.

Try it yourself

Choose the star and reduce the harmonics to a few terms: the points round off because the high frequencies are missing. Then increase step by step and see when the corners turn sharp. Draw your own curve and switch on the time helix to see how the motion unfolds over time. Drag to rotate the scene and scroll to zoom.

Frequently asked questions

What are Fourier epicycles?
Fourier epicycles visualise the complex Fourier series as a chain of rotating vectors. Each vector has length |cₙ| and spins at frequency n. The tip of the chain traces the original curve.
How can any drawing be traced with circles?
Treat the drawing as a closed curve z(t) in the complex plane and compute its Fourier coefficients cₙ. Each coefficient corresponds to one rotating circle. With enough circles the sum approximates any continuous closed curve as closely as desired.
Why do corners need many harmonics?
Corners and sharp points contain high-frequency components. Without those terms the shape is smoothed out. Only with many harmonics do sharp details appear.
Can I draw my own curve in the app?
Yes. With “Draw your own 2D curve” you hold the mouse button or finger down and draw. The app decomposes the curve into Fourier terms and lets the epicycle chain trace it.

Subject: Fourier analysis

More from Fourier analysis

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps