The Wave Equation and Vibrating Strings
Pluck a guitar string and watch it shiver into a blur. Then it settles back to rest. What equation governs the shape of the string at every instant? This question was first answered rigorously in the eighteenth century. It produced one of the most important partial differential equations in all of mathematics and physics. The one-dimensional wave equation describes not only vibrating strings but sound waves. It also governs electromagnetic waves along transmission lines. Countless other phenomena involve a disturbance propagating through a medium without dissipation. The wave equation matters because it is the simplest model exhibiting genuine wave propagation at finite speed. This feature is absent from the heat equation. The heat equation smooths disturbances instantly and infinitely fast. Understanding how the wave equation arises from Newton's second law builds physical intuition. This intuition applies to an idealized string. It transfers directly to higher-dimensional waves, quantum mechanics, and elasticity theory. The derivation itself is a model of applied mathematics. Physical assumptions are stated explicitly, and a differential element is isolated. Forces are balanced, and a limiting process converts a discrete statement into a continuum PDE. The big picture is this: a taut, flexible, elastic string vibrates with small transverse displacements. It obeys a linear, hyperbolic, second-order PDE with two independent variables. These variables are position and time. This equation belongs to the hyperbolic class discussed in the classification of second-order linear PDEs. Its hyperbolic character permits solutions that travel as waves with finite propagation speed. This stands in sharp contrast to the parabolic heat equation. It also contrasts with the elliptic Laplace equation. This article derives the wave equation from first principles using Newton's second law. It states the precise hypotheses under which the derivation is valid. It proves the central theorem rigorously, and then interprets the equation physically. The constant that appears is a wave speed. The equation supports two independent families of traveling disturbances. Boundary and initial conditions determine a unique solution. The article closes by pointing toward d'Alembert's explicit solution formula. It also points to the separation-of-variables technique. Both of these build directly on the derivation given here.
- A perfectly flexible, elastic string under tension vibrating with small transverse displacement satisfies .
- The constant has units of speed squared, where is mass per unit length.
- The derivation rests on Newton's second law applied to an infinitesimal string element, plus the small-slope (linearization) hypothesis.
- The wave equation is hyperbolic, matching the general classification of second-order linear PDEs by the sign of .
- Physically, solutions decompose into disturbances traveling left and right at speed , unlike diffusive solutions of the heat equation.
- Key idea: balancing transverse forces on a string element and linearizing for small slopes converts Newton's second law into the constant-coefficient hyperbolic PDE .
Where this lives today
The wave equation extends far beyond music. In acoustics, the same derivation technique (balancing forces on an infinitesimal element and linearizing) produces the equation governing pressure waves in air, with the speed of sound. In electrical engineering, the telegrapher's equations for voltage and current on a transmission line reduce, in the lossless limit, to the wave equation, with determined by the line's inductance and capacitance per unit length. In elasticity theory, the same linearization technique yields wave equations for longitudinal and shear waves in solids, underlying seismology's use of P-waves and S-waves to probe the Earth's interior. In numerical analysis, finite-difference and finite-element schemes for the wave equation (such as the classical explicit leapfrog scheme) must respect the Courant–Friedrichs–Lewy condition, a stability constraint tying the time step to and the spatial mesh size, a direct descendant of the finite propagation speed proven here. In quantum field theory, the relativistic Klein–Gordon equation is a wave equation with an added mass term, and the massless case reduces exactly to the equation derived above. The techniques that follow directly from this derivation — d'Alembert's Solution of the Wave Equation and Separation of Variables for the Wave Equation — remain the standard tools for solving it explicitly, whether on the infinite line or on a finite interval with boundary conditions.
Ask the tutor: How does d'Alembert's formula turn the initial shape and velocity of a plucked string into an explicit traveling-wave solution of this equation?
Let denote the transverse displacement, at horizontal position and time , of a vibrating string from its equilibrium straight-line configuration. The one-dimensional wave equation is the second-order linear partial differential equation
where is a constant called the wave speed. When the equation models a physical string of constant mass density (mass per unit length) under constant tension , the wave speed is given by
A well-posed problem for the wave equation on a finite string additionally specifies two boundary conditions (for instance for a string fixed at both ends) and two initial conditions,
giving the initial shape and initial velocity of the string.
Intuition
Picture the string as a continuum of infinitesimal masses connected by tension, each free to move only vertically. Tension is the internal force that pulls neighboring pieces of string toward straightness; when the string is bent, the tension on the two ends of a small piece no longer point in exactly opposite directions, and the mismatch produces a net transverse force. Newton's second law then says that this net force equals mass times transverse acceleration. The wave equation is nothing more than the continuum limit of this force balance, together with the physical fact that for small displacements the tension's horizontal components stay essentially constant while the vertical components are proportional to the local slope of the string. The constant has a transparent physical meaning: tightening the string (increasing ) increases the restoring force and speeds up vibrations, while a heavier string (larger ) is more sluggish and slows them down. This matches everyday experience tuning a guitar: tightening a string raises its pitch, corresponding to a higher effective wave speed and hence higher frequencies of vibration, while thicker, heavier strings (larger , used for bass notes) vibrate more slowly. The picture below shows a snapshot of a string element and the tension forces acting on its two ends, tilted at slightly different angles because the string is curved.
The second figure illustrates why the equation is called hyperbolic: characteristic lines and in the -plane carry information at finite speed , foreshadowing d'Alembert's traveling-wave solution.
Let a string occupy, at rest, the segment of the -axis from to . Assume: 1. (Perfect flexibility) The string offers no resistance to bending; the only internal force it can exert is tension directed tangent to the string. 2. (Constant linear density) The string has constant mass per unit length , and no stretching occurs during vibration (the motion is purely transverse). 3. (No external transverse forces) Gravity and damping are neglected; the only forces acting are the internal tensions at the two ends of any string element. 4. (Planar, transverse motion) Each point of the string moves only vertically; denotes this vertical displacement, and horizontal motion of material points is negligible. 5. (Small slope) The displacement is small enough that is small for all under consideration, so that and to the order of approximation used, where is the angle the string makes with the horizontal at . Under hypotheses 1–5, satisfies
where is the (constant, to leading order) magnitude of the tension in the string.
We use the method of balancing forces on an infinitesimal element, then pass to the limit as the element's length tends to zero; this is the standard continuum-mechanics derivation technique.
Step 1: Isolate an element and write Newton's second law. Fix and consider the piece of string lying between and . By hypothesis 1, the string exerts only tangential tension forces, so the piece is acted on by tension pulling to the left at (directed into the piece from the left neighbor) and tension pulling to the right at , each tangent to the string at its respective point. Let denote the angle the tangent to the string makes with the positive -axis at the point . By hypothesis 4, only vertical motion occurs, so we apply Newton's second law separately in the horizontal and vertical directions to the transverse displacement.
Step 2: Horizontal force balance. By hypothesis 4, the horizontal acceleration of every material point is zero (no horizontal motion), so the net horizontal force on the element is zero:
Since and are arbitrary, this says is independent of ; call this quantity . Under hypothesis 5, to leading order, so for all : the tension magnitude is spatially uniform to the order of approximation being used. We will further assume (consistent with small-amplitude, non-stretching vibration) that is also constant in time; this is the standard idealization for a string vibrating about a fixed equilibrium tension.
Step 3: Vertical force balance and Newton's second law. Let be the mass of the element (hypothesis 2: mass per unit length constant, no stretching). The vertical component of Newton's second law for this element is
for some , where we have used that the vertical acceleration of the element is well-approximated by evaluated at an interior point (this uses continuity of and the mean value theorem for integrals, applied to ). By hypothesis 3, there are no other vertical forces.
Step 4: Linearize using the small-slope hypothesis. By hypothesis 5, to leading order (since is exactly the slope of the string, this is exact by definition of , and the approximation is valid whenever is small). Combining with Step 2 ( constant), the right side becomes
Step 5: Divide and take the limit . Substituting into the equation from Step 3 and dividing by :
Assume is differentiable in (this is a smoothness hypothesis implicit in seeking a classical solution). As , by the squeeze theorem, and the difference quotient on the right converges to by the definition of the partial derivative. The left side converges to by continuity of . Hence
for every and . Dividing by and setting gives
which is the claimed equation.
∎Worked examples
Example 1 — Computing the wave speed and a boundary/initial value problem for a cello string. A cello C-string has linear mass density and is stretched to tension , with length between the nut and the bridge. We are asked: (a) find the wave speed ; (b) write the full initial-boundary value problem if the string is plucked at into the (asymmetric) triangular shape
with pluck point (deliberately off-center) and released from rest. Solution. (a) By the theorem,
(b) The string is fixed at both ends (clamped to the cello body), giving Dirichlet boundary conditions . Released from rest means zero initial velocity, . The full problem is
with m/s, m, m, and the asymmetric triangular pluck shape given above. Note the peak of occurs at m, close to one end — this asymmetry is essential to producing the rich harmonic content characteristic of a string plucked near its end, and the equation derived above applies unchanged regardless of where the string is plucked, since the derivation used no assumption about the initial shape. This problem is precisely the type solved by separation of variables, using the wave speed and boundary data computed here as raw ingredients.
Example 2 — Checking a candidate solution and reading off a constraint on the wave speed. Consider a string of length fixed at both ends. Suppose it is claimed that
is a solution of on this string for a particular value of , and satisfies the boundary conditions. Verify the boundary conditions, determine the unique value of for which solves the PDE, and check the initial velocity. Solution. Boundary conditions. At : for all , so the left condition holds. At : , since . Both boundary conditions are satisfied.
Substitute into the PDE. Compute the needed partial derivatives:
For to hold identically (for all , , not just at isolated points), we need, wherever ,
(taking as required by the definition). Since is not identically zero on , this single value is forced, and one checks directly that with the equation holds identically: , which is true since .
Initial velocity. , so this solution corresponds to a string released from rest, consistent with in the general initial-value formulation. The initial shape is , an oscillatory (three-half-wavelength) shape on — this is one of the normal modes that separation of variables produces for this string, and it satisfies the wave equation only for the specific speed computed here, illustrating how the PDE constrains the temporal frequency once the spatial mode and wave speed are fixed.
Suppose we retain hypotheses 1–4 of the theorem but drop hypothesis 5 (small slope), allowing to be an arbitrary angle rather than a small one. Returning to Step 4 of the proof, the vertical force balance becomes, without linearization,
so that exactly (from the right-triangle relation between the tangent and sine of the slope angle). The vertical balance equation is then the genuinely nonlinear PDE
This is not the wave equation: it is nonlinear because the coefficient of depends on itself, so superposition of solutions fails (if solve this equation, generally does not). Only when can we Taylor-expand and recover the linear equation of the theorem. Physically, a string plucked so violently that its slope is not small (for example, pulled into a sharp near-vertical kink) genuinely vibrates according to this nonlinear equation, and predictions from the linear wave equation — such as the exact superposition of normal modes used in separation of variables — become inaccurate. This shows hypothesis 5 is not a technical nicety but is load-bearing: without it the derivation yields a different, harder equation with fundamentally different mathematical structure (no simple d'Alembert formula, no straightforward superposition).
Scope, edge cases & common traps
| Situation | What happens | Correct handling |
|---|---|---|
| Non-uniform density | Equation becomes , no longer constant-coefficient | Re-derive; becomes position-dependent, |
| Damping present (air resistance) | An extra term appears from a resistive force proportional to velocity | Use the damped wave equation , not the undamped one |
| External transverse forcing (e.g. gravity, magnetic pluck) | Hypothesis 3 fails; a forcing term appears on the right | Use |
| Large-amplitude plucking | Hypothesis 5 fails; equation becomes genuinely nonlinear (see counterexample) | Use the nonlinear vibrating-string equation, or restrict to small amplitude |
| Confusing with the physical speed of any material point | Material points move only vertically; is the propagation speed of the waveform, not a particle speed | Distinguish transverse particle velocity from wave speed |
The mathematician behind it
Origins · 1 minJean le Rond d'Alembert and how this was discovered
D'Alembert was a French mathematician, physicist, and philosopher, a leading figure of the Enlightenment and co-editor of the Encyclopédie. In 1747 he derived the one-dimensional wave equation for a vibrating string and produced the first general solution to it, expressing the displacement as a sum of two traveling waveforms moving in opposite directions. His work ignited a famous and productive controversy with Euler, Daniel Bernoulli, and later Lagrange over what kinds of functions could legitimately represent the string's initial shape, a dispute that helped clarify the modern concept of a function and anticipated the theory of Fourier series.
Why is only the transverse (vertical) displacement modeled, when a real string can also stretch?
The derivation assumes purely transverse motion and no stretching (hypotheses 2 and 4) because, for small-amplitude vibrations of an already-taut string, longitudinal displacement is a much smaller effect than transverse displacement — it is a second-order correction. Physically, tension in a slightly stretched elastic string responds strongly to small length changes, so any incipient stretching is suppressed almost instantly compared to the timescale of transverse oscillation. Keeping only transverse displacement is therefore an excellent approximation for the musically and physically relevant regime of small-amplitude vibration, and it is exactly what makes the resulting equation linear and analytically tractable, in contrast to the fully nonlinear elastic string equation.
Does the wave equation apply to a string with variable tension or density, like a tapered instrument string?
Not in the constant-coefficient form given here. If density or tension vary with position, the same force-balance argument (Steps 1–5 of the proof) still applies locally, but Step 2 no longer gives a spatially uniform tension, and the final equation becomes , a variable-coefficient hyperbolic PDE. This equation is still linear and still supports finite-speed wave propagation, but it generally cannot be solved by elementary traveling waves; techniques like Sturm–Liouville theory replace simple separation of variables.
What happens physically if the small-slope hypothesis fails, such as when a string is plucked extremely hard?
As shown in the counterexample, dropping the small-slope assumption produces a genuinely nonlinear PDE, , rather than the linear wave equation. Physically this means the restoring force per unit displacement depends on how steep the string already is, so the principle of superposition fails: you cannot add two known vibration patterns to get a new one. Large-amplitude plucking of a real string does exhibit measurable nonlinear effects, such as amplitude-dependent pitch shifts, which the linear wave equation cannot predict at all.
How does the wave equation relate to the heat equation covered under the classification of second-order linear PDEs?
Both are constant-coefficient second-order linear PDEs in one space and one time variable, but they belong to different classes under the discriminant-based classification: the wave equation has , making it hyperbolic, while the heat equation is first order in time and parabolic. The practical consequence is stark: the wave equation propagates information at exactly finite speed along characteristics, while the heat equation instantaneously (if very weakly) affects every point, however far away, the moment a disturbance is introduced.
Why do boundary conditions and initial conditions each need to be specified twice (two boundary, two initial) for a well-posed problem?
The wave equation is second order in both and . Just as a second-order ordinary differential equation in time needs two initial conditions (position and velocity) to pin down a unique solution, the wave equation needs an initial position and an initial velocity to determine the future evolution uniquely; this matches the two arbitrary functions that appear in d'Alembert's general solution. Likewise, being second order in requires two boundary conditions, one at each end of the string, to select a unique spatial solution consistent with how the string is physically held or free.
Can the same derivation be adapted to justify the wave equation for sound or electromagnetic transmission lines?
Yes, and this is exactly why the equation is so important. For sound in a gas, one balances forces on an infinitesimal slab of gas using Newton's second law together with the linearized equation of state, playing the role that tension plays for the string; the result is again with the speed of sound. For a lossless transmission line, Kirchhoff's laws applied to an infinitesimal segment of the line, combined with linearized inductance and capacitance relations, produce the same equation with per unit length. The common thread is always a linear restoring mechanism combined with inertia, linearized over infinitesimal elements.