STEMviz
Free lesson · no sign-up

A guitar string can only play certain notes.

Switch harmonics in the simulation and watch the nodes appear, then see why the allowed notes are eigenvalues.

High School Physics · Free lesson · ~6 min
The cheat sheet
  • Both fixed ends must stay still, so only whole half-wavelengths fit: L = nλ/2.
  • Tension and mass per length set the wave speed: v = √(T/μ).
  • Each allowed wavelength gives one allowed note: fₙ = n·v / (2L) — the fundamental and its harmonics.
  • Each mode is an eigenfunction: d²y/dx² = −kₙ²·y with kₙ = nπ/L — the same maths as a particle in a box.
  • Where you pluck changes the mix of harmonics, never their frequencies.

1. The wave equation for a string

Take a stretched string with tension TT and mass per unit length μ\mu, and a short piece of it of length dx\mathrm{d}x. If the string is curved there, the tension pulls on the two ends of the piece in slightly different directions, and the vertical parts don't cancel. For small displacements y(x,t)y(x,t) the net vertical force is T ∂2y∂x2 dxT\,\dfrac{\partial^2 y}{\partial x^2}\,\mathrm{d}x — proportional to the curvature. Newton's second law for the piece (mass μ dx\mu\,\mathrm{d}x) gives

\quad\Longrightarrow\quad \frac{\partial^2 y}{\partial t^2} = v^2\,\frac{\partial^2 y}{\partial x^2}, \qquad v = \sqrt{\frac{T}{\mu}}.$$ So tension and mass per length set the wave speed: a tighter or lighter string carries waves faster. ## 2. The fixed ends A guitar string is clamped at $x = 0$ (the bridge) and $x = L$ (the nut or your finger). Whatever the string does, those two points never move: $$y(0,t) = 0, \qquad y(L,t) = 0 \quad \text{for all } t.$$ These two **boundary conditions** are what select the notes. ## 3. Standing waves: an eigenvalue problem Look for motions in which the whole string keeps one shape and just oscillates in time: $y(x,t) = X(x)\cos(\omega t)$. Substituting into the wave equation, the $\cos(\omega t)$ cancels: $$\frac{\mathrm{d}^2 X}{\mathrm{d}x^2} = -k^2\,X, \qquad k = \frac{\omega}{v}.$$ Read it as: *take the curvature of the shape and you get the same shape back, multiplied by a number.* A function that an operation (here $\mathrm{d}^2/\mathrm{d}x^2$) only rescales is an **eigenfunction** of it, and the factor ($-k^2$) is its **eigenvalue**. The solutions are $\sin kx$ and $\cos kx$. The end $x = 0$ rules out $\cos kx$ (it equals 1 there), so $X(x) = A\sin kx$. The end $x = L$ then demands $\sin kL = 0$, so $kL$ must be a whole multiple of $\pi$: $$k_n = \frac{n\pi}{L}, \qquad \lambda_n = \frac{2\pi}{k_n} = \frac{2L}{n}, \qquad n = 1, 2, 3, \dots$$ That is $L = n\,\dfrac{\lambda_n}{2}$: only waves that fit a **whole number of half-wavelengths** between the ends survive. Any other wave, bouncing between the ends, meets its own reflections out of step and cancels. ## 4. The allowed notes Each allowed wavelength gives one allowed frequency, $f = \dfrac{\omega}{2\pi} = \dfrac{v\,k}{2\pi}$: $$f_n = \frac{n\,v}{2L} = \frac{n}{2L}\sqrt{\frac{T}{\mu}}.$$ $f_1$ is the **fundamental**; $f_2 = 2f_1$, $f_3 = 3f_1, \dots$ are the **harmonics**. Mode $n$ has $n$ loops and $n + 1$ nodes (counting both ends), at $x = mL/n$. Shorter, tighter or lighter strings play higher notes — exactly how a guitarist frets and tunes. ## 5. Pluck it anywhere A real pluck is not one pure mode. The string's motion is a **sum** of the modes (the equation is linear, so superposition holds): $$y(x,t) = \sum_{n} A_n \sin\!\left(\frac{n\pi x}{L}\right)\cos(2\pi f_n t + \varphi_n).$$ Where and how hard you pluck only changes the amplitudes $A_n$ — the mix of harmonics, i.e. the timbre. The frequencies $f_n$ come from $L$, $T$ and $\mu$ alone. (Pluck exactly in the middle and every even mode, which has a node there, gets $A_n = 0$.) A real string is slightly stiff, so its overtones sit a little above $n f_1$; the result above is for an ideal string. ## 6. The same maths as an atom An electron confined between two walls obeys the time-independent Schrödinger equation $$-\frac{\hbar^2}{2m}\,\frac{\mathrm{d}^2\psi}{\mathrm{d}x^2} = E\,\psi, \qquad \psi(0) = \psi(L) = 0.$$ It is the same eigenvalue problem with the same boundary conditions, so the same shapes and $k_n = n\pi/L$ come out. The only change is what the eigenvalue means: there it is an energy, $E_n = \dfrac{\hbar^2 k_n^2}{2m} = \dfrac{n^2 h^2}{8mL^2}$, which grows as $n^2$, while the string's frequency grows as $n$. Allowed notes and allowed energy levels are both eigenvalues.
Check your understanding · 5 questions

Conceptual Quiz

Tempting answers throughout. Commit to a choice before revealing the reasoning — recognising your own misconception is worth far more than a lucky guess.

Why only some notes

Why can a string fixed at both ends vibrate steadily only at certain frequencies?

Select an option to reveal the explanation.

Harmonic frequency

A string of length 0.65 m0.65\ \text{m} carries waves at v=286 m s−1v = 286\ \text{m s}^{-1}. What is the frequency of its third harmonic?

Select an option to reveal the explanation.

Tension

You quadruple the tension in a string and change nothing else. What happens to its fundamental frequency?

Select an option to reveal the explanation.

Plucking position

An ideal string is plucked exactly at its midpoint. Which harmonics are missing from its sound?

Select an option to reveal the explanation.

Eigenvalues

For a string mode X(x)=sin⁡(nπx/L)X(x) = \sin(n\pi x/L), what is the eigenvalue of d2dx2\dfrac{\mathrm{d}^2}{\mathrm{d}x^2}?

Select an option to reveal the explanation.

Black Friday: lifetime access up to 50% off · until December 1
Liked this? Keep going

Get all of High School Physics

This free lesson covers one topic. The course has 60 full chapters, each with a simulation to play with, the full theory with derivations, exam questions where every option is explained, practice problems with hints and worked solutions, flashcards and saved progress.

Continue with these chapters:
  • Standing Waves in Strings and Acoustic Pipes
$13.99/monthFirst 3 days free · cancel in one click
Secure checkout by Lemon Squeezy, our merchant of recordSee all 60 chapters of High School Physics →
Not ready yet?

Get free lessons by email

One email every few days. Unsubscribe in one click.