PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Math Visualization

Other simulators in this category — or see all 46.

View category →
NewKids

Spirograph (Trochoids)

Hypo- or epitrochoid: fixed R, rolling r, pen d; hue trail and period hints.

Launch Simulator
NewSchool

SIR Epidemic Model

S + I + R = 1: βSI and γI; ℛ₀ ≈ β/γ, herd threshold 1 − 1/ℛ₀; RK4 time plot.

Launch Simulator
NewSchool

Sandpile (SOC)

BTW abelian model: add grains, ≥4 topples to neighbors; critical avalanches.

Launch Simulator
NewUniversity / research

Flow Field Particles

Synthetic v(x,y,t); advection with wrap; optional arrow grid.

Launch Simulator
NewSchool

Fractal Generator

Mandelbrot, Julia, Koch snowflake. Zoom infinitely.

Launch Simulator
NewKids

Conway's Game of Life

B3/S23 on a torus: paint cells, run, step — glider, LWSS, Gosper gun, pulsar, and more.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Harmonograph

Harmonograph

A harmonograph is a mechanical device that uses pendulums to draw intricate, repeating patterns known as harmonic patterns. This simulator models the mathematical essence of such a device by plotting the path of a point whose x and y coordinates are each governed by a separate, damped harmonic oscillator. The position over time is given by two independent equations: x(t) = A_x e^{-d_x t} sin(ω_x t + φ_x) and y(t) = A_y e^{-d_y t} sin(ω_y t + φ_y). Here, A represents amplitude, d is the damping coefficient controlling the exponential decay of the oscillation, ω is the angular frequency, and φ is the phase shift. The model simplifies the real physics by ignoring factors like pendulum coupling, air resistance beyond the simple exponential damping term, and the finite energy input needed in a real device. By interacting with the controls for frequency, phase, damping, and amplitude, students can explore the core principles of simple harmonic motion, superposition, and damping. They will observe how the ratio of the x and y frequencies determines the pattern's complexity—creating Lissajous figures when damping is minimal and decaying rosette traces when damping is significant—and how phase shifts rotate these patterns. This provides a direct visual connection to the mathematics of oscillatory systems found in physics and engineering.

Who it's for: High school and introductory college physics students studying oscillations, waves, and simple harmonic motion, as well as math students exploring parametric equations and Lissajous curves.

Key terms

  • Damped Harmonic Oscillator
  • Lissajous Figure
  • Angular Frequency
  • Phase Shift
  • Exponential Decay
  • Superposition
  • Simple Harmonic Motion
  • Parametric Equations

Pendulum sums

120 px
95 px
118 px
72 px
1.07
1.31
0.97
1.18
38°
72°
0.08
1.15

x(t) and y(t) are sums of two damped harmonics — a screen harmonograph. Tweak ratios for dense rosettes vs open loops.

How it works

Where Lissajous shows a closed loop in xy, the harmonograph smears time: decay reveals depth and turns the curve into a bouquet.

Frequently asked questions

Why does the drawing eventually stop, even though the equations keep going?
The lines fade and stop because of the exponential damping term (e^{-d t}) in the equations. This term causes the amplitude of the oscillations to shrink toward zero over time, modeling energy loss due to friction or air resistance. In a perfect, undamped system, the pattern would repeat forever, but this simulator includes damping to reflect real-world physics.
What creates the intricate, looping patterns instead of just a circle or ellipse?
The complexity arises from the superposition of two perpendicular oscillations with different frequencies. When the frequency ratio (ω_x : ω_y) is a simple integer ratio like 3:2, you get a stable, repeating Lissajous figure. When the ratio is irrational or when significant damping is applied, the pattern does not close perfectly and instead creates a beautiful, decaying rosette trace as the point never returns to the exact same position with the same velocity.
Is this just a mathematical toy, or does it have real-world applications?
The principles are widely applicable. The same mathematics describe the motion of coupled oscillators in engineering, the polarization of light, and even the analysis of electrical signals in an oscilloscope. Lissajous figures are a classic tool for comparing frequencies and phase relationships between two wave signals.
What does the 'phase' control actually do?
Phase shift (φ) determines the starting point of the oscillation's cycle. Changing the phase of one oscillator relative to the other effectively rotates or inverts the resulting pattern. For example, with equal frequencies, a 90° phase difference produces a perfect circle, while a 0° difference yields a diagonal line.