Fourier epicycles in this visualization
Walk once round a closed curve in the plane and read each point as a complex number , with from 0 to 1 for one turn. Its complex Fourier series writes as a sum of terms , one for each whole number . Each term is a point going round a circle of radius , times per turn, starting at the angle ; negative turn the other way. Put the circles tip to tail and the last tip draws the sum. does not turn: it is where the chain starts.
What the page computes
The page samples the curve at points, evenly along its length (or, for the heart, evenly in its formula’s ), and computes the discrete coefficients . All terms together pass exactly through the samples. The error at the samples is (without ): by the discrete Parseval identity it is the root-mean-square distance between the drawn curve and the samples, relative to the shape’s size. It is not a comparison with your original stroke.
Build up adds circles level by level, , one turn each, largest first (or lowest frequency first). Every finished level stays as a faint ghost: where the levels agree the light piles up, where they still disagree it spreads. One circle is a circle; and together make an ellipse with semi-axes and .
The ticks on the pen’s trace are of a turn apart in time. Where they crowd, the pen went slowly over that stretch on average; between two ticks a fast circle can turn several times, so they do not show the speed at an instant.
Easy to misread
- The coefficients belong to the curve and to the way it is walked. The heart , walked by its own has exactly 8 non-zero terms; walked at constant speed, the same heart needs 21 circles to get under 1 % error.
- The order of the chain changes how it looks, not where its tip goes: a sum does not depend on the order of its terms.
- At corners, as in the square or the star, the partial sums can stick out beyond the shape while there are few circles, but this overshoot dies away as circles are added (not with every single one). Jumps behave differently: there the overshoot lasts (the Gibbs phenomenon). Because this page uses samples, a small wobble between the samples remains even with every term in: about 0.0007 for the square of half-side 1.
- The glow, the trails and the fading of the circles are display only.
History
Ancient astronomers described the planets with circles riding on circles, the deferent and the epicycle. A chain of uniformly turning circles is exactly a sum of terms , which is why enough epicycles can follow any closed path [2]. Fourier introduced his series in 1807 for the flow of heat [1].
Related concepts
Complex plane · Unit circle · Fourier series (page planned) · Parametric equation (page planned)
References
- J. Fourier, Théorie analytique de la chaleur, Firmin Didot, Paris (1822); the 1807 memoir to the Institut de France.
- N. R. Hanson, “The mathematical power of epicyclical astronomy”, Isis 51 (1960) 150–158.
Further reading: Wikipedia: Fourier series; MacTutor History of Mathematics: Joseph Fourier.