The wave equation

Pluck a stretched string and a bump runs down it without changing shape. Blow a sharp pulse of air and a pressure kink races off at the speed of sound. Wiggle a charge and an electromagnetic kink races off at the speed of light. All three are the same mathematics: a single differential equation, the wave equation, that Newton's second law forces onto any medium where a restoring force is proportional to curvature. This node derives it from scratch for a stretched string — the cleanest possible setting — by isolating a small element, writing down the net tension force on it, and applying F=maF=ma. Out falls not just an equation but its entire solution family: any shape that translates rigidly at a fixed speed vv, sinusoidal or not. Once you have this equation and its d'Alembert solution in hand, you can recognise the same structure wherever it reappears in the syllabus.

The core insight

Newton's second law applied to a string element under tension gives ∂2y/∂t2=v2 ∂2y/∂x2\partial^2y/\partial t^2=v^2\,\partial^2y/\partial x^2 with v=T/μv=\sqrt{T/\mu}, whose general solution y=f(x−vt)+g(x+vt)y=f(x-vt)+g(x+vt) describes any fixed shape rigidly translating at speed vv.

The core idea

Setting up the element. Take a string under uniform tension TT, mass per unit length μ\mu, lying close to the xx-axis, and let y(x,t)y(x,t) be its small transverse displacement. Isolate a short element between xx and x+dxx+dx, of mass dm=μ dxdm=\mu\,dx. Because the slope ∂y/∂x\partial y/\partial x is small, the vertical component of the tension pulling on either end of the element is approximately T ∂y/∂xT\,\partial y/\partial x evaluated at that end, so the two ends do not quite cancel when the string is curved.

Net force from curvature. The net upward force on the element is the difference of these end-slopes,

dFy=T[∂y∂x∣x+dx−∂y∂x∣x]≈T ∂2y∂x2 dx,dF_y = T\left[\frac{\partial y}{\partial x}\bigg|_{x+dx}-\frac{\partial y}{\partial x}\bigg|_{x}\right]\approx T\,\frac{\partial^2 y}{\partial x^2}\,dx,

where: TT is the tension (N), ∂2y/∂x2\partial^2y/\partial x^2 is the curvature of the string at xx, and dxdx is the element length. A straight segment (∂2y/∂x2=0\partial^2y/\partial x^2=0) feels no net force — it is curvature, not slope, that accelerates the element.

Newton's second law closes the loop. Setting dFy=dm ∂2y/∂t2=μ dx ∂2y/∂t2dF_y=dm\,\partial^2y/\partial t^2=\mu\,dx\,\partial^2y/\partial t^2 and cancelling dxdx gives T ∂2y/∂x2=μ ∂2y/∂t2T\,\partial^2y/\partial x^2=\mu\,\partial^2y/\partial t^2, i.e. the wave equation with v2=T/μv^2=T/\mu: a stiffer or lighter string produces a faster wave. The figure below shows how the two unequal end-tensions on a curved element produce the net restoring force that curvature drives.

Figure
A curved string element between x and x plus dx showing unequal tension slopes at its two ends producing a net upward restoring force
Curvature of the string element produces the restoring force T at x T at x+dx x x+dx dm = μ dx The two tension slopes differ because the string is curved, giving a net force T times the second derivative of y, times dx.

The general solution. Any twice-differentiable function of the single variable x−vtx-vt or x+vtx+vt solves the wave equation:

y(x,t)=f(x−vt)+g(x+vt).y(x,t)=f(x-vt)+g(x+vt).

f(x−vt)f(x-vt) is a fixed shape ff translating rigidly in the +x+x direction at speed vv; g(x+vt)g(x+vt) is a shape moving in −x-x. Substituting u=x−vtu=x-vt gives ∂2f/∂t2=v2f′′(u)\partial^2f/\partial t^2=v^2f''(u) and ∂2f/∂x2=f′′(u)\partial^2f/\partial x^2=f''(u), so the equation holds for any functional form — the equation fixes only the speed and rigidity of propagation, never the shape.

Harmonic waves. The special case y(x,t)=Acos⁡(kx−ωt+ϕ)y(x,t)=A\cos(kx-\omega t+\phi) is of this d'Alembert form with u=x−(ω/k)tu=x-(\omega/k)t, so it solves the wave equation provided v=ω/kv=\omega/k. Substituting directly gives ∂2y/∂t2=−ω2y\partial^2y/\partial t^2=-\omega^2y and ∂2y/∂x2=−k2y\partial^2y/\partial x^2=-k^2y, so −ω2y=v2(−k2y)⇒v=ω/k-\omega^2y=v^2(-k^2y)\Rightarrow v=\omega/k, consistent with ω=2πf\omega=2\pi f, k=2π/λk=2\pi/\lambda, v=fλv=f\lambda.

Derivation ADeriving the 1D wave equation for a stretched string

The goal is to obtain ∂2y/∂t2=v2 ∂2y/∂x2\partial^2y/\partial t^2=v^2\,\partial^2y/\partial x^2 directly from Newton's second law applied to an infinitesimal element of a stretched string, using only the small-slope approximation, and to read off v=T/μv=\sqrt{T/\mu} as the natural speed scale that falls out of the tension and the mass density — this is the derivation the course wants reproduced, not a formula to memorise.

Step 1. Isolate an element of the string between xx and x+dxx+dx, mass dm=μ dxdm=\mu\,dx, with μ\mu the mass per unit length. The tension TT is uniform along the string; only its direction changes where the string is curved, since the string is nearly horizontal and displacement yy is small.

Step 2. Write the vertical (transverse) component of tension at each end. For small slope θ≈∂y/∂x\theta\approx\partial y/\partial x, sin⁡θ≈tan⁡θ≈∂y/∂x\sin\theta\approx\tan\theta\approx\partial y/\partial x, so the vertical pull at the right end is T ∂y/∂x∣x+dxT\,\partial y/\partial x|_{x+dx} and at the left end T ∂y/∂x∣xT\,\partial y/\partial x|_{x} (pulling the other way).

Step 3. Subtract to get the net force, and Taylor-expand the difference in slope over the small interval dxdx: dFy=T[∂y/∂x∣x+dx−∂y/∂x∣x]≈T (∂2y/∂x2) dxdF_y=T\left[\partial y/\partial x|_{x+dx}-\partial y/\partial x|_x\right]\approx T\,(\partial^2y/\partial x^2)\,dx. This is where curvature, the second spatial derivative, enters — a straight or uniformly sloped segment gives zero net force.

Step 4. Apply Newton's second law to the element, dFy=dm ∂2y/∂t2dF_y=dm\,\partial^2y/\partial t^2: T(∂2y/∂x2) dx=μ dx (∂2y/∂t2)T(\partial^2y/\partial x^2)\,dx=\mu\,dx\,(\partial^2y/\partial t^2). The dxdx cancels on both sides, leaving ∂2y/∂t2=(T/μ) ∂2y/∂x2\partial^2y/\partial t^2=(T/\mu)\,\partial^2y/\partial x^2.

Step 5. Identify v2=T/μv^2=T/\mu, giving the boxed result ∂2y/∂t2=v2 ∂2y/∂x2\partial^2y/\partial t^2=v^2\,\partial^2y/\partial x^2, with v=T/μv=\sqrt{T/\mu} having units of N/(kg/m)=m2/s2=m/s\sqrt{\text{N}/(\text{kg/m})}=\sqrt{\text{m}^2/\text{s}^2}=\text{m/s}, confirming it is indeed a speed.

Worked example

A string with μ=2.5×10−3 kg/m\mu=2.5\times10^{-3}\ \text{kg/m} is under tension T=90 NT=90\ \text{N}. A transverse pulse of fixed shape y(x,0)=f(x)y(x,0)=f(x), peaked at x=0x=0, is launched at t=0t=0 travelling in the +x+x direction. A second string carries the harmonic wave y(x,t)=0.02cos⁡(15.7 x−3140 t)y(x,t)=0.02\cos(15.7\,x-3140\,t) (SI units).

Step 1. Wave speed for the pulse string: v=T/μ=90/(2.5×10−3)=36000≈189.7 m/sv=\sqrt{T/\mu}=\sqrt{90/(2.5\times10^{-3})}=\sqrt{36000}\approx189.7\ \text{m/s}.

Step 2. Since the pulse keeps its shape while translating at vv, y(x,t)=f(x−189.7 t)y(x,t)=f(x-189.7\,t); the peak (at argument zero) sits at x−189.7t=0x-189.7t=0, so at t=0.01 st=0.01\ \text{s} it is at x=1.897 mx=1.897\ \text{m} — the whole shape has shifted 1.897 m right, undistorted, exactly as d'Alembert's solution predicts.

Step 3. For the harmonic wave, compare y=Acos⁡(kx−ωt)y=A\cos(kx-\omega t) to read off A=0.02 mA=0.02\ \text{m}, k=15.7 rad/mk=15.7\ \text{rad/m}, ω=3140 rad/s\omega=3140\ \text{rad/s}, so v=ω/k=3140/15.7=200 m/sv=\omega/k=3140/15.7=200\ \text{m/s}, f=ω/2π≈500 Hzf=\omega/2\pi\approx500\ \text{Hz}, λ=2π/k≈0.4 m\lambda=2\pi/k\approx0.4\ \text{m}. Check: fλ=500×0.4=200 m/s=vf\lambda=500\times0.4=200\ \text{m/s}=v, consistent.

Step 4. If this second string has μ=4×10−3 kg/m\mu=4\times10^{-3}\ \text{kg/m}, its tension follows from v2=T/μv^2=T/\mu: T=μv2=4×10−3×(200)2=160 NT=\mu v^2=4\times10^{-3}\times(200)^2=160\ \text{N}. Answer: pulse speed ≈189.7 m/s\approx189.7\ \text{m/s} (peak shifts to 1.897 m at t=0.01t=0.01 s); harmonic wave has v=200 m/sv=200\ \text{m/s}, f≈500 Hzf\approx500\ \text{Hz}, λ≈0.4 m\lambda\approx0.4\ \text{m}, and requires T=160 NT=160\ \text{N}.

Common traps

  • Forgetting linearity: only functions of x−vtx-vt or x+vtx+vt (or sums of these) solve the wave equation — an arbitrary function of xx and tt separately generally does not.
  • Sign confusion in y=Acos⁡(kx−ωt)y=A\cos(kx-\omega t): a +ωt+\omega t term (cos⁡(kx+ωt)\cos(kx+\omega t)) describes a wave moving in the −x-x direction, not +x+x — check the sign every time.
  • Treating v=ω/kv=\omega/k as an independent input rather than a consequence of substituting the harmonic form into the wave equation, where v2=T/μv^2=T/\mu is already fixed by the string's physical properties.
  • Assuming the wave equation is specific to strings — sound pressure, electromagnetic field components and many other quantities obey the identical equation, each with its own expression for vv.
  • Confusing the wave speed vv with the transverse speed of a piece of the string, ∂y/∂t\partial y/\partial t; the string material itself only moves up and down, while v=T/μv=\sqrt{T/\mu} is the speed at which the disturbance pattern travels along xx — the two are numerically unrelated in general.

Ask the tutor: If the small-slope approximation or the step from the tension-difference to T ∂2y/∂x2 dxT\,\partial^2y/\partial x^2\,dx feels shaky, ask the AI tutor to redo that Taylor-expansion step slowly or to check your own derivation line by line.

Why does only curvature, not slope, produce a restoring force on the string element?

A uniformly sloped but straight segment has the same tension direction pulling at both ends in a way that just balances — imagine tilting the whole picture; nothing about a constant slope makes one end pull harder upward than the other pulls downward. It is only when the slope itself changes across the element, i.e. when ∂2y/∂x2≠0\partial^2y/\partial x^2\neq0, that the two end-forces fail to cancel and a net transverse force appears. That is exactly why the second derivative, not the first, shows up in the wave equation.

Does the wave equation require the wave to be sinusoidal?

No. The wave equation itself, ∂2y/∂t2=v2 ∂2y/∂x2\partial^2y/\partial t^2=v^2\,\partial^2y/\partial x^2, is satisfied by any twice-differentiable function of x−vtx-vt or x+vtx+vt — a single pulse, a square-ish kink, a superposition of many shapes, or a pure sinusoid all qualify. The harmonic wave Acos⁡(kx−ωt)A\cos(kx-\omega t) is just the most convenient special case, useful because it is easy to Fourier-decompose other shapes into sums of such terms, not because the equation demands sinusoids.

Why is the small-slope approximation needed, and what happens if the string is displaced a lot?

The step sin⁡θ≈tan⁡θ≈∂y/∂x\sin\theta\approx\tan\theta\approx\partial y/\partial x requires the slope angle θ\theta to be small, which keeps the tension magnitude effectively constant along the string (only its direction changes) and keeps the equation linear. If the displacement is large, higher-order terms in θ\theta survive, the equation becomes nonlinear, tension itself may vary with position, and the clean d'Alembert solution f(x−vt)+g(x+vt)f(x-vt)+g(x+vt) no longer exactly applies — real large-amplitude strings show mild dispersion and distortion that this idealised derivation ignores.

Before this

Where this leads