Article

Lissajous Curves: Where Mathematics Meets Music and Light

A 19th-century physicist pointed lasers at tuning forks and created one of the most useful patterns in engineering. Turns out the same math connects musical harmony, graphic design, and the LIDAR in your car. A full explanation of the theory behind it, plus an interactive tool to make your own.

Obviously, it all begins with two physicists

The curves we call “Lissajous” actually have an earlier origin. In 1815, American mathematician Nathaniel Bowditch first described these patterns while studying pendulum motion.

But it was French physicist Jules Antoine Lissajous who, in the 1850s, turned them into spectacle. His experiment was simple: mirrors attached to vibrating tuning forks, projecting beams of light onto screens in darkened lecture halls. Audiences could watch sound become “visible”. The curves took his name and have remained scientifically useful ever since.

Figure 1. Experiment of Lissajous. The light-figures produced by the compound vibrations of two tuning forks vibrating at different pitches. Source: Privat-Deschanel A. and de Ochoa y Ronna E., Tratado elemental de física, Hachette, Paris (1872), pp. 696–697 1Figure / 01
Figure 2. Modern recreation of Lissajous's experiment. Two tuning forks arranged at 90 degrees, each with a mirror on one tyne. A laser beam reflects off both mirrors in sequence; when the forks are struck, the beam traces a Lissajous pattern on the screen. Source: UC Berkeley Physics Lecture Demonstrations 2Figure / 02

The Mathematics

A Lissajous curve appears when two perpendicular oscillations combine. Here is the math for those two oscillations:

{X=Axcos(2πfxt+ϕx)Y=Aycos(2πfyt+ϕy)\begin{cases} X = A_x \cos(2\pi f_x t + \phi_x) \\ Y = A_y \cos(2\pi f_y t + \phi_y) \end{cases}

Where:

  • AxA_x and AyA_y control amplitude (the size in each direction)
  • fxf_x and fyf_y are the frequencies of oscillation (in Hz)
  • ϕx\phi_x and ϕy\phi_y are the phase offsets
  • tt is time

Frequency Ratios and Periodicity

If both frequencies share a greatest common divisor f0f_0, we can write:

fxfy=nxf0nyf0=nxny\frac{f_x}{f_y} = \frac{n_x f_0}{n_y f_0} = \frac{n_x}{n_y}

where nxn_x and nyn_y are coprime integers. This ratio determines everything about the curve’s structure. The value f0f_0 becomes the frame rate; the frequency at which the entire pattern repeats. Another way of seeing it: every 1/f01/f_0 seconds, the trajectory traces exactly the same path.

Ratio nx:nyn_x : n_y Result
1:11:1 Ellipse (or circle, or line depending on phase)
1:21:2 Figure-eight shape
2:32:3 More complex closed loop
1:21:\sqrt{2} Never closes: fills the rectangle forever

Simple ratios produce closed curves. Irrational ratios create paths that wander eternally without repeating.

The Phase Parameter kk

The combined effect of both phase offsets can be combined in a single parameter kk, defined as:

k=4π(nxϕynyϕx)k = \frac{4}{\pi}(n_x \phi_y - n_y \phi_x)

This parameter has a period of 8, meaning kk and k+8k + 8 produce identical figures. When kk is an integer, eight distinct basic figures exist for any given frequency ratio.

Assuming nx>nyn_x > n_y and setting ϕx=0\phi_x = 0, the equations simplify to:

{X=Axcos(2πnxf0t)Y=Aycos(2πnyf0t+kπ4nx)\begin{cases} X = A_x \cos(2\pi n_x f_0 t) \\ Y = A_y \cos\left(2\pi n_y f_0 t + \dfrac{k\pi}{4n_x}\right) \end{cases}

The figure below shows how kk affects the trajectory for various frequency ratios. Notice that when k=2k = 2 or k=6k = 6, the figures achieve maximum symmetry: symmetric about both axes and the origin simultaneously.

Figure 3. Lissajous basic graphs for frequency ratios nx:nyn_x : n_y of 1:1, 2:1, 3:1, 3:2, 4:3, 5:3, and 5:4 (rows) with phase parameter kk from 0 to 7 (columns). When kk is constant, trajectory density increases with frequency. At constant frequency ratio, different kk values produce different trajectory densities. Source: Wang et al., Microsystems & Nanoengineering (2020) 3Figure / 03

Symmetry Properties

The symmetry of a Lissajous figure depends on the parity of nxn_x and nyn_y:

  • When nxn_x is even → symmetric about the xx-axis
  • When nyn_y is even → symmetric about the yy-axis
  • When both are odd → symmetric about the origin

Two Lissajous patterns with parameters (nx,ny,k)(n_x, n_y, k) and (nx,ny,k)(n_x', n_y', k') are identical if and only if:

nx=nx,ny=ny,k=k+8mn_x' = n_x, \quad n_y' = n_y, \quad k' = k + 8m

where mm is any integer.

Fill Factor: Measuring Trajectory Density

A critical property for applications is the fill factor (FF). It’s a measure of how densely the curve covers its bounding rectangle. Lissajous trajectories are characteristically dense at the edges and sparse near the center. The maximum gap appears in an approximate parallelogram containing the origin.

For scanning applications like LIDAR (e.g. self driving cars), minimizing this gap (or maximizing density) is super important. Research has shown that k=2k = 2 produces optimal density for most frequency ratios, establishing a key design rule for Lissajous-based systems.


Seeing Sound: The Music Connection

Here’s where Lissajous curves become magical: those frequency ratios are musical intervals.

Ratio Musical Interval
1:21:2 Octave
2:32:3 Perfect fifth
3:43:4 Perfect fourth
4:54:5 Major third

When two notes form a consonant harmony, their Lissajous figure is clean, closed, symmetrical. Dissonance produces chaos: curves that refuse to close.

You can literally see whether two notes sound good together.


Making Your Own

The Victorian Way: Harmonographs

Before computers, there were harmonographs: pendulum-driven drawing machines popular in the 1800s. Two or more pendulums swing in perpendicular directions, and a pen traces their combined motion onto paper.

Simpler Experiments

  • Sand pendulums: A funnel of sand swinging over paper
  • Laser on speakers: Mount a mirror on one speaker cone, bounce a laser off it onto a wall, play two frequencies through stereo speakers (similar to how Lissajous did it)
  • Oscilloscope: Feed two audio signals into XX and YY inputs (easy to do and actually useful)

The Modern Way: Code

A few lines in Python will generate infinite variations:

import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(0, 1, 10000)
nx, ny = 5, 4
k = 2
f0 = 1

x = np.cos(2 * np.pi * nx * f0 * t)
y = np.cos(2 * np.pi * ny * f0 * t + k * np.pi / (4 * nx))

plt.plot(x, y)
plt.axis('equal')
plt.show()

Play with nx, ny, and k. Watch the curves change.


Applications

Science and Engineering

Oscilloscopes have used Lissajous figures since the early 20th century to compare signal frequencies. An unknown frequency fed into one axis, a known reference into the other. The resulting shape instantly reveals their ratio and thus the unknown frequency.

MEMS LIDAR and Laser Scanning

Modern microelectromechanical systems (MEMS) scanning mirrors exploit Lissajous trajectories for solid-state LIDAR systems. By driving a two-axis mirror with sinusoidal waveforms at carefully chosen frequencies, engineers create scanning patterns that cover a field of view with predictable density and timing.

That enables various applications from autonomous vehicle sensing to 3D imaging microscopy.

Art and Design

Perhaps the most famous Lissajous figure hidden in plain sight: the ABC television logo, a stylized 1:31:3 ratio curve that has represented the network since 1965.

More recently, Meta’s 2021 rebrand introduced a logo that is essentially an infinite loop: a Lissajous-like figure rotated, representing connection and infinity.

Figure 4. Current Meta Logo 4Figure / 04

Beyond Two Dimensions

Lissajous Knots

Add a third oscillation:

Z=Azcos(2πfzt+ϕz)Z = A_z \cos(2\pi f_z t + \phi_z)

Now the curve spirals through 3D space. Depending on the frequency ratios, it can form true mathematical knots: curves that loop through themselves in ways that cannot be untangled without cutting.

These Lissajous knots have become a subject of serious topological study.

  • Spirograph toys produce related curves called hypotrochoids and epitrochoids
  • Certain orbital mechanics problems produce figure-eight trajectories that echo Lissajous geometry
  • Lissajous orbits in space (around Lagrange points) share the name, though the mathematics differs

Living Curves

Maths tends to be pretty abstract. The more you study it, the less visual it becomes. Lissajous curves change that. They straight up ask to be experienced.

Try the online generator I built and play with the parameters by yourself.

The interactive Lissajous curve generator requires JavaScript.

Click here for fullscreen.