opyeb WaveLab

Studio 03 · Wave physics

Waves slowed down
until you can count them.

Four benches for the same physics. Two close frequencies beat, a moving source compresses its wavefronts ahead and stretches them behind, two points paint an interference pattern, and a fixed length allows only certain resonances. Every bench can be heard as well as seen.

A · Beats

Two frequencies, one envelope

Two sines of equal amplitude sum to a carrier at the mean frequency with an envelope at half the difference. The envelope repeats at |f₁ − f₂|.

  • sum
  • envelope
  • components

B · Doppler

A source that moves its own wavefronts

Each circle is a wavefront emitted at the position the source had at that instant. Stack them and the spacing ahead shrinks while the spacing behind grows.

  • source
  • wavefronts
  • observer

C · Interference

Two points, one pattern

Two sources a distance d apart emit in phase. Where the path difference is a whole number of wavelengths the waves add; where it is a half wavelength they cancel.

  • constructive
  • destructive
  • screen

D · Resonance

The length chooses the note

A string or air column fixed at both ends supports a standing wave only when the length holds a whole number of half wavelengths.

  • standing wave
  • driven response

Method

What each bench draws

Beats are drawn from the exact sum of two sines over a window wide enough to hold at least two beats; the envelope is ±A·2|cos(πΔf t)| drawn separately so the modulation is unambiguous. The Doppler bench emits a wavefront every 1/30 s of simulated time at the source position at that moment and grows each circle at c, so the picture is a direct construction of the formula rather than an illustration of it. The observer sits to the right, and the readout uses the sign for the chosen direction.

The interference bench computes the amplitude |2A cos(kΔr/2)| on a grid and paints it, then marks the screen line at distance L and the maxima that land on it. The resonance bench draws sin(nπx/L) and the driven response 1/√((1−r²)² + (r/Q)²) with r = f/fₙ, on one canvas, so the peak you hear is the antinode you see.

Formulas

Four relations, four benches

BenchRelationWorked example
Beatsf_beat = |f₁ − f₂|440 & 444 Hz → 4 Hz, 0.25 s
Dopplerf′ = f₀(c ± v_o)/(c ∓ v_s)500 Hz, 30 m/s → 547.9 Hz
FringesΔy = λL/d1 kHz, d 0.5 m, L 2 m → 1.372 m
Resonancefₙ = nc/2LL 0.65 m → 263.8, 527.7, 791.5 Hz

Cents are 1200·log₂(f′/f₀): the 47.9 Hz rise at 500 Hz is 158 cents, about a semitone and a half.

Guides

Read the theory behind this bench