Calculus of variations

Extremising functionals — the Euler–Lagrange equation and the principle of least action.

Ordinary calculus finds the number xx that minimises a function f(x)f(x): set f(x)=0f'(x) = 0 and solve. The calculus of variations asks the harder and deeper question — find the function y(x)y(x) that minimises a quantity depending on the whole function at once. What shape does a hanging chain take? Along what path does a bead slide down fastest? What curve encloses the most area for a given perimeter? Each answer is a function selected from an infinite-dimensional space of candidates by a single stationarity condition, and that condition — the Euler–Lagrange equation — turns every such problem into a differential equation.

This is the mathematics beneath the variational formulation of physics. Fermat’s principle (light takes the fastest path), Hamilton’s principle (a system follows the path of stationary action), the shape of soap films, the geodesics of general relativity, and the field equations of acoustics and electromagnetism are all Euler–Lagrange equations for an appropriate functional. The fourth route to the wave equation and the whole of Lagrangian mechanics rest on the machinery this chapter builds. Get the variational idea and a large part of theoretical physics stops being a list of equations and becomes one principle applied over and over.

The chapter extends single-variable calculus and produces, as its Euler–Lagrange equations, the ODEs and PDEs the rest of the bookshelf solves.