Hamilton's principle/Applications/Continuum systems: the vibrating string
The vibrating string is the simplest system with infinitely many degrees of freedom, and it is where the variational method makes its most consequential change of scope: from a finite set of coordinates to a field. This page derives the wave equation from the action, obtains it independently as a limit of a discrete chain, and works the free end, where the boundary term that Hamilton's principle/Mathematics/Boundary terms and natural boundary conditions studies is not zero.
The discrete chain

Begin with beads of mass spaced apart on a massless string under tension , displaced transversely by small amounts . For small displacements the extension of the segment between beads and is
so the Lagrangian is
This is an ordinary finite system, and Hamilton's principle/Mathematics/Several dependent variables applies. The equation for bead is
Taking the limit. Put with the linear density held fixed, and let . The bracket in (3) is , so
Equally, the sum in (2) becomes an integral with and :
The limit commutes with the variation. Varying then taking gives (4); taking the limit then varying gives (5) and, by Hamilton's principle/Mathematics/Several independent variables, the same equation. That agreement is not automatic for every system, and checking it is the honest way to introduce a field Lagrangian rather than postulating one.
The field derivation

The bracket in (5) is the Lagrangian density . Its Euler-Lagrange equation, from (7) of Hamilton's principle/Mathematics/Several independent variables, with , and , is
the wave equation, with speed
Conservation laws
contains neither nor explicitly, so Hamilton's principle/Mathematics/Noether's first theorem gives two divergence relations.
Time translation gives the energy density and its flux,
satisfying . Space translation gives the wave momentum similarly. Both are local statements — a density and a flux obeying a continuity equation — rather than the constants of the finite case, and that is the general form of Noether's result when the divergence has more than one component, as noted at the end of Hamilton's principle/Mathematics/Several independent variables.
The free end
Fix the string at and leave free. The admissible variations no longer vanish at the right end, and the surface term of Hamilton's principle/Mathematics/Boundary terms and natural boundary conditions survives. Its coefficient is , so stationarity requires
The string meets a free end with zero slope. This is the natural boundary condition, and it was not imposed — the variational problem produced it.
Its physical reading is the general one given on that page: the conjugate momentum vanishes at a free end. Here is the transverse force one part of the string exerts on the next, so (9) says a free end transmits no transverse force.
The two conditions give different normal modes:
| ends | conditions | modes | fundamental |
|---|---|---|---|
| both fixed | at both | ||
| one free | , |
A string free at one end has a fundamental an octave lower than the same string fixed at both, and its overtones are the odd harmonics only. That is why a closed organ pipe sounds an octave below an open one of the same length, and it is audible confirmation of a boundary term that a careless derivation would have discarded.
Separation and modes
Substituting into (6) gives , so each mode oscillates at with the spatial profile fixed by the boundary conditions. The general solution is a superposition, and the coefficients are set by the initial data.
This is the field-theoretic version of the normal-mode decomposition of a coupled oscillator system, and the discrete chain of (2) makes the connection concrete: its normal modes become the string's infinite set as . The chain's dispersion relation is
which reduces to only for . The continuum description is therefore an approximation valid for wavelengths long compared with the spacing — a fact with the same shape as the geometrical-optics approximation on Hamilton's principle/Applications/The optical-mechanical analogy, and the same kind of failure at short wavelength.
What generalises
Nothing in the derivation used the specific form of (5) beyond its being quadratic. Replacing the density by a general in several independent variables gives classical field theory, which is Hamilton's principle/Applications/Classical field theory. The string is that subject with one space dimension and one field, and every structural feature — the Euler-Lagrange equation, the Noether currents, the natural boundary condition — appears here in its simplest instance.
Provenance: every equation on this page is derived here. No primary source is cited and none is claimed.
Next
Hamilton's principle/Applications/Classical field theory generalises the construction.
References