4.8 Route 4 — from Hamilton’s principle

The fourth and final route to the acoustic wave equation. Instead of Newton’s second law for a slab (route 1), or coupled oscillators (route 2), or molecular momentum flux (route 3), we start from a variational principle: the action

S  =  dtd3r  LS \;=\; \int dt \int d^3 r\; \mathcal{L}

is stationary on physical trajectories. Out falls the wave equation, and — by Noether’s theorem — the conserved energy and momentum currents of the field. This is a payoff routes 1–3 cannot give.

This is the deepest route, and intentionally last. It plants the seeds for chapter 5 (energy and momentum carried by sound waves) and shows how acoustics fits into the same framework as classical field theory, electromagnetism, and general relativity.

The acoustic Lagrangian density

For a linearised compressible fluid with velocity potential ϕ\phi (where v=ϕ\mathbf{v}' = \nabla \phi and p=ρ0tϕp' = -\rho_0 \partial_t \phi), the Lagrangian density is

L  =  12ρ0(tϕ)2    12ρ0c2(ϕ)2.\mathcal{L} \;=\; \tfrac12 \rho_0 \big(\partial_t \phi\big)^2 \;-\; \tfrac12 \rho_0 c^2 \big(\nabla \phi\big)^2.

Two terms. The first is the kinetic energy density of the local fluid motion (12ρ0v2\tfrac12 \rho_0 v'^2 with v=xϕv' = \partial_x \phi, but actually 12ρ0(tϕ)2\tfrac12 \rho_0 (\partial_t \phi)^2 in this potential formulation — see derivation). The second is the potential energy density stored in the compression. Subtracting potential from kinetic, as Lagrangian mechanics always does.

The Euler–Lagrange equation

For a field ϕ(r,t)\phi(\mathbf{r}, t) with Lagrangian density L(ϕ,tϕ,ϕ)\mathcal{L}(\phi, \partial_t \phi, \nabla \phi), the Euler–Lagrange equation is

tL(tϕ)  +  L(ϕ)    Lϕ  =  0.\frac{\partial}{\partial t} \frac{\partial \mathcal{L}}{\partial (\partial_t \phi)} \;+\; \nabla \cdot \frac{\partial \mathcal{L}}{\partial (\nabla \phi)} \;-\; \frac{\partial \mathcal{L}}{\partial \phi} \;=\; 0.

Apply to our L\mathcal{L}:

Putting it together:

ρ0t2ϕ    ρ0c22ϕ  =  0,\rho_0 \partial_t^2 \phi \;-\; \rho_0 c^2 \nabla^2 \phi \;=\; 0,

i.e.

    t2ϕ  =  c22ϕ.    \boxed{\;\;\partial_t^2 \phi \;=\; c^2\, \nabla^2 \phi.\;\;}

The acoustic wave equation, for the velocity potential. Since p=ρ0tϕp' = -\rho_0 \partial_t \phi, the same equation holds for pp' (apply ρ0t-\rho_0 \partial_t to both sides).

Where the Lagrangian density comes from

A self-contained justification: the linearised continuity and Euler equations are equivalent to a single equation for the velocity potential ϕ\phi. From Euler, ρ0tv=p\rho_0 \partial_t \mathbf{v}' = -\nabla p', and substituting v=ϕ\mathbf{v}' = \nabla \phi and p=ρ0tϕp' = -\rho_0 \partial_t \phi makes the equation an identity (both sides become ρ0tϕ-\rho_0 \nabla \partial_t \phi). From continuity, tρ=ρ0v=ρ02ϕ\partial_t \rho' = -\rho_0 \nabla \cdot \mathbf{v}' = -\rho_0 \nabla^2 \phi. Use p=c2ρp' = c^2 \rho' to get tρ=c2tp=c2ρ0t2ϕ\partial_t \rho' = c^{-2} \partial_t p' = -c^{-2} \rho_0 \partial_t^2 \phi. Combining, ρ02ϕ=c2ρ0t2ϕ\rho_0 \nabla^2 \phi = c^{-2} \rho_0 \partial_t^2 \phi, i.e. the wave equation for ϕ\phi.

A Lagrangian density that produces this wave equation via the Euler–Lagrange equation is, up to total time derivatives,

L  =  12ρ0(tϕ)2    12ρ0c2(ϕ)2.\mathcal{L} \;=\; \tfrac12 \rho_0 (\partial_t \phi)^2 \;-\; \tfrac12 \rho_0 c^2 (\nabla \phi)^2.

Physically the two terms are kinetic and potential energy densities of the perturbation field. The verification: compute the equations of motion, recover the wave equation.

What Noether gives us for free

Hamilton’s principle is the gateway to symmetries and conservation laws via Noether’s theorem. Three immediate fruits:

E  =  12ρ0(tϕ)2+12ρ0c2(ϕ)2.\mathcal{E} \;=\; \tfrac12 \rho_0 (\partial_t \phi)^2 + \tfrac12 \rho_0 c^2 (\nabla \phi)^2.

This is the acoustic energy density — kinetic plus potential. Its time evolution satisfies a continuity equation tE+S=0\partial_t \mathcal{E} + \nabla \cdot \mathbf{S} = 0, with energy flux S=ρ0c2(tϕ)(ϕ)=pv\mathbf{S} = -\rho_0 c^2 (\partial_t \phi)(\nabla \phi) = p' \mathbf{v}'. The product pvp' \mathbf{v}' is the acoustic intensity (we will use this name in chapter 5).

We will not pursue all of these. The point of route 4 is to make their existence visible, not to compute every consequence.

Why this is non-overlapping

Routes 1, 2, 3 are different starting points but they all eventually invoke F=maF = ma (route 1 directly, routes 2 and 3 through the chain or molecular bath). Route 4 starts from a different principle: that physical trajectories extremise an action functional. Newton’s law is a derived consequence, not the foundation. The equivalence of the two formulations is one of the deep facts of classical mechanics — but the variational form generalises in directions that F=maF = ma does not (gauge theories, general relativity, path-integral quantisation). For acoustics, the variational form’s payoff is the conservation laws.

Next lesson: all four routes give the same speed of sound — but each route gives that speed a different meaning.