Dr. Loveless Curiosity Lab

Guitar Waves and the Sound of Shape

Wave equations, natural modes, Fourier series, and the resonant voice of a guitar body

Many students in our courses are interested in music, especially guitars. In this project, we explore some of the mathematics of guitars using ideas that overlap with topics from our 100- and 200-level math courses.

The story begins with the wave equation. A vibrating string can be modeled by a one-variable wave equation, while waves inside a body or cavity can be modeled by a three-variable wave equation. In both settings, certain patterns appear naturally. These are called natural modes or eigenfunctions, and each mode has its own natural frequency.

A plucked guitar string is not just one sine wave. It is a combination of many modes. This is the central idea behind Fourier series: complicated waves can be built by adding simpler waves together. We then ask how the body of the guitar responds to the wave coming from the string, amplifies parts of it, and modifies the harmonic mix. There are many questions and details that remain, but we hope this page can grow to illustrate more of this fascinating story.

Back to Project Showcase

Explore the Story

The four visuals follow a sequence: a plucked string has natural modes, the body filters the string signal, a hollow body can be approximated by a mass-spring/Helmholtz oscillator, and a 3D rectangular guitar body has natural modes too.

Concept 1: A Plucked String Has Modes
A pluck is a mixture of standing-wave modes, not one simple sine wave.

The string is modeled by the one-dimensional wave equation \(u_{tt}=c^2u_{xx}\) with fixed endpoints. The natural eigenfunctions are sine waves, and their frequencies are integer multiples of the fundamental frequency.

Use Play Natural Frequency Demo to step through the natural frequencies. Pluck mode is the default: choose a pluck position, then press Play pluck. The spectrum below shows how the initial pluck is built from Fourier modes.

String model controls
Loading Concept 1 string visual...
Concept 2: The Body Filters the String Signal
This panel is synced to Concept 1: \(A_k(a)\mapsto H(k)A_k(a)\).

This graph uses the same pluck position and amplitude from Concept 1. The blue curve is a simplified incoming string signal and the green curve is the body-filtered response.

The paired spectrum bars show the main idea: for each harmonic, the body changes the coefficient from \(A_k(a)\) to \(H(k)A_k(a)\). Press Play pluck in Concept 1 to animate both panels together.

Synced from Concept 1: pluck position → Fourier coefficients → body filter
Loading synced body-filter visual...
Concept 3: How the Body Filters Shape into Sound
A simplified mass-spring / Helmholtz story for air moving in and out of an opening.

One first model treats the air in the opening like a moving mass and the air inside the body like a spring. This is the Helmholtz oscillator model.

Its basic prediction is \[ f_H=\frac{c}{2\pi}\sqrt{\frac{A}{V L_e}}, \] where \(V\) is the cavity volume, \(A\) is the opening area, and \(L_e\) is the effective opening length.

This says area and volume are key factors in the body response, but they are not the whole story. This visual is a simplified, under-construction model; we need more research to improve it and hope to add better sound later.

Choose a body shape
Loading Concept 3 shape-to-sound lab...
Concept 4: 3D Body Modes
A rectangular guitar body also has natural frequencies and mode shapes.

Just like a string has natural frequencies and modes, a three-dimensional shape has preferred standing-wave patterns. This visual uses a simplified rectangular guitar body so we can see the idea clearly.

Choose mode numbers \(l,m,n\) from 1 to 5. Then move the slice sliders to see cross-sections of the wave passing through the body. In this simplified model, each mode has frequency \(F=\frac{c}{2}\sqrt{(l/L_x)^2+(m/L_y)^2+(n/L_z)^2}\).

Mode animation
Move slices and choose modes
Loading Concept 4 body modes visual...

Where It Started

This project started with a guitar question: how does the motion of a string become the sound we actually hear?

That question leads naturally to the wave equation, eigenfunctions, Fourier modes, resonance, filters, and the sound of a body shape.

Going Further

Some visuals on this page are physically motivated but intentionally simplified. For example, the body filter and background wave are not measured acoustic simulations. They are visual models designed to show the idea that the body can amplify some frequencies, damp others, and change the tone color.

There are many directions to explore next: measured guitar spectra, air-cavity modes, plate vibration, Chladni patterns, damping, coupling through the bridge, and better sound synthesis.

Links and Further Reading

These are starting points for the literature review and for the mathematical background behind the page.

The research papers are more advanced than this page, but they point toward the larger story: realistic guitar sound depends on coupling between the string, bridge, body, soundboard, air cavity, and radiation into the surrounding air.