Lissajous curve
A Lissajous curve is the path of a point that swings left and right and up and down at the same time, with two different rhythms:
The frequencies a and b set the number of loops, and the phase δ shifts one swing against the other. When a and b are whole numbers, the curve closes and repeats itself after
This is the only figure of Image89 that is not a fractal: it is a smooth line.
History
The American mathematician Nathaniel Bowditch studied these curves in 1815 with a pendulum that swings in two directions, so they are also called Bowditch curves. In 1857 the French physicist Jules Antoine Lissajous used them to make sound visible. He fixed small mirrors to two tuning forks that vibrated at right angles. The two mirrors reflected a beam of light onto a screen. The shape of the light figure showed the ratio of the two pitches.
Interesting facts
- With a = b the curve is an ellipse: a circle for δ = π/2 and a straight line for δ = 0.
- Engineers compared an unknown frequency with a known one on an oscilloscope: the ratio can be read from the loops of the figure.
- When the ratio of the frequencies is not a fraction, the curve never closes and comes arbitrarily close to every point of its rectangle.
- The logo of the Australian Broadcasting Corporation is a Lissajous figure: its designer Bill Kennard took it from an oscilloscope trace in the 1960s.
- The Victorian harmonograph, a table with two pendulums and a pen, draws Lissajous curves that slowly spiral inwards as the pendulums lose energy.
How Image89 draws it
Image89 uses a = 3, b = 2 and δ = π/2 by default; the preset allows frequencies from 1 to 32. The curve is approximated by points joined into a closed red line on white. By default their number depends on the image, so that from one point to the next each coordinate changes by at most about two pixels:
where R is half the shorter side in pixels, from 256 to 65 536 points. The two-pixel bound does
not apply when the calculated count exceeds 65 536. The line is 0.4% of the shorter side wide, but at
least one pixel. The curve is fitted without distortion, with a margin of 5% of the shorter side. The
preset is in the [types.lissajous] section of the config.