Primitives
SaveLabExperimentsApproach

Instruments

Time0.00 s
Bodies0
Kinetic E0.00 J
Excess KE0.00 J
Potential E0.00 J
Total E0.00 J
Momentum0.00
Ang. mom.0.00
Max speed0.00 m/s
Gravity9.81 m/s²
FPS60
Gravity9.81m/s²
Speed1.00×
built on founden.ai
Experiments/Waves

Standing wave simulation: a string in its second mode

A taut string, pinned at both ends, is plucked into its second harmonic. Its shape swells and shrinks in place, and the exact middle never moves.

Standing waves

y = A sin(kx)·cos(ωt), fₙ = (n/2L)√(T/μ)

y
sideways displacement of the string (m)
A
amplitude at the antinodes (m)
k
wavenumber, 2π/λ (rad/m)
x
position along the string (m)
ω
angular frequency, 2πf (rad/s)
t
time (s)
fₙ
frequency of the n-th mode (Hz)
n
mode number: how many half-wavelengths fit between the ends
L
length of the string between the pinned ends (m)
T
tension in the string (N)
μ
mass per unit length of the string (kg/m)

What you are watching

The string is 29 point masses of 50 g each, linked by springs and pinned at both ends. The springs are built shorter than the gaps between the points, so the string is under real tension before anything moves, like a tuned guitar string. Gravity is off. The scene bends it into one full sine wave, one lobe up and one down, and lets go from rest.

The shape does not travel. The two lobes swing in opposition about 1.4 times per second while the centre point stays still to within a fraction of a millimetre. The kinetic energy readout peaks twice per cycle as the string flashes through straight, and nearly vanishes at the extremes, when the energy is stored in the stretched springs. Over tens of seconds the swing fades slowly, from a small numerical damping in the solver.

Why it happens

A wave on a taut string travels at √(T/μ). Two identical waves moving in opposite directions add up to y = A sin(kx)·cos(ωt): a fixed shape, sin(kx), scaled up and down by cos(ωt). Wherever sin(kx) = 0 the string never moves; those points are nodes, and halfway between them the antinodes swing hardest.

Pinned ends must be nodes, so only a whole number of half-wavelengths fits, L = nλ/2, and with f = v/λ the allowed frequencies are fₙ = (n/2L)√(T/μ). This string is in mode n = 2, with a node in the middle. For its tension and mass the formula gives 1.40 Hz, and the simulation runs about 1.5 percent faster, because the large swing stretches the string and raises its tension slightly.

Try this

  1. Grab the string at its centre, pull it sideways and let go. Now the middle moves most: you have mainly excited the first mode, a single lobe, which swings at half the frequency, about 0.7 Hz.
  2. Grab a point near one end, jerk it sideways and release. A pulse runs along the string, and when it reaches a pinned end it comes back upside down.
  3. At 0.1x speed, pause as the string passes through straight: it has no displacement, yet every point is moving at its fastest.

Questions

Why are there nodes in a standing wave?

A standing wave is two equal waves travelling in opposite directions. At certain points their displacements are always equal and opposite, so they cancel at every instant: those are the nodes. With fixed ends, the ends must be nodes, so only certain frequencies fit.

More waves experiments

  • Wave reflectionReflection at a boundary
  • Passing pulsesSuperposition
  • Wave trainWave speed
  • Doppler sweepDoppler effect
  • Driven resonanceResonance

All 57 experiments

Primitives logoPrimitives

A real-time physics engine you experiment with directly. Real Newtonian mechanics, in SI units, in your browser.

Product

  • Engine
  • Experiments
  • Lab sheets
  • Lab
  • Approach
  • Notes

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • support@primitives.im
© 2026 Primitives. All rights reserved.