The Calculus of Variations
Ordinary calculus finds the point where a function is stationary; the calculus of variations finds the whole curve where an integral is stationary. Euler's differential equation is the necessary condition for an extremal, and it becomes integrable in three cases, solving the shortest-path, minimal-surface, and brachistochrone problems.
╌╌╌╌
Elementary calculus locates the points at which a function of one variable is largest or smallest: differentiate, set the derivative to zero, solve. The calculus of variations poses the same question one level up. The unknown is no longer a number but a whole function, and the quantity to be made stationary is not a function value but an integral whose integrand depends on that function and its derivative. The output of the method is a differential equation: many of the equations solved elsewhere in these notes — the cycloid of the brachistochrone, the catenary, the equations of motion of a mechanical oscillator — arise first as the condition that some integral be as small as possible.1
Problems that depend on a whole curve
Fix two points and in the plane and consider the family of functions
whose graphs join to . Three classical questions single out one member of this family by a minimizing property:
- Shortest path. Which curve joining and has the least arc length? The length of is .
- Minimal surface of revolution. Which curve, revolved about the -axis, sweeps out the surface of least area? The area is .
- Brachistochrone. Down which frictionless wire from to a lower point does a bead slide in the least time? With speed from energy conservation, the descent time is .
Each is a special case of one general problem: among all admissible functions joining and , find the one that gives a stationary value to the integral
The integrand carries the geometry or physics of the problem; the three questions above correspond to , , and .
Throughout, is assumed to have continuous second-order partial derivatives in its three arguments , , , which are treated as independent when the partials and are formed.
Euler's equation for an extremal
Suppose an admissible function makes stationary. To turn that supposition into an equation, compare with nearby admissible functions. Choose any variation with continuous second derivative that vanishes at the endpoints,
and form the one-parameter family . Every member joins to , and the whole family collapses onto the minimizing curve at . The deviation of a neighbor from is .
Substituting and into the integral turns into an ordinary function of the single number ,
Since minimizes the integral, has a minimum at , so . Differentiating under the integral sign and using the chain rule,
and setting gives
The derivative can be removed by integrating the second term by parts. Because vanishes at both endpoints the boundary term drops, leaving
This holds for every admissible variation . If the bracketed factor were nonzero — say positive — at some interior point, continuity would keep it positive on a small subinterval, and choosing an that is positive there and zero elsewhere would make the integral positive, a contradiction. The bracket must therefore vanish identically. That conclusion is the fundamental lemma of the calculus of variations, and it yields Euler's equation.2
Euler's equation is a necessary condition, not a sufficient one. Exactly as in ordinary calculus can signal a maximum, a minimum, or an inflection, a solution of Euler's equation only makes the integral stationary. Such a solution is called a stationary function or, when the boundary conditions are left off, an extremal; whether it actually minimizes must be settled by other means, usually the geometry or physics of the problem. Expanding the total derivative shows the equation is second order in general,
so its extremals form a two-parameter family, and the two constants are fixed by the boundary conditions. A second-order nonlinear equation of this kind is rarely solvable in closed form, but three recurring special forms of collapse it to something integrable.
Three solvable cases
The structure of determines which terms of Euler's equation remain.
| Case | Missing from | Euler's equation reduces to | Extremals |
|---|---|---|---|
| A | and | , so | straight lines |
| B | first integral | ||
| C | — | first integral |
The first integral in Case C follows from a total-derivative computation. When is absent from , the combination has zero total derivative along an extremal, because
and both the bracket (by Euler's equation) and (by assumption) vanish. The surviving first integral is the Beltrami identity, and it turns a second-order problem into a first-order one.
The same problem posed on a curved surface, where the shortest joining curve is called a geodesic, is the seed of differential geometry.
Whether the two constants can be chosen to thread both endpoints is delicate: for some placements of there are two catenaries, for others one, and for others none at all, in which case the smallest surface degenerates to two disks joined by a thread (the Goldschmidt solution).
The straight wire is the shortest path but not the fastest: a curve that plunges steeply at first trades extra length for early speed, giving a shorter descent time.
The cycloid also carries the tautochrone property discovered by Huygens: a bead released from any point of an inverted cycloidal arch reaches the bottom in the same time. Bernoulli exulted that the tautochrone of Huygens and his own brachistochrone were the same curve.
Several unknown functions
When the integrand depends on two functions and ,
the same argument with two independent variations , produces a system of Euler equations, one per unknown,
This extension carries the method into dynamics, where a configuration needs several coordinates.
Isoperimetric problems and Lagrange multipliers
A different class of problem fixes a second integral while making the first stationary. The prototype is the isoperimetric problem the Greeks posed: among all closed plane curves of a given length, which encloses the greatest area? The answer is a circle, and the general pattern — extremize one integral subject to a constraint that a second integral equal a prescribed value — takes its name from it.
The tool is the same Lagrange multiplier that handles constrained extrema in ordinary calculus. To find where is stationary subject to , one forms and treats its stationary values as unconstrained; the multiplier removes the constraint at the cost of one extra unknown, and it keeps the symmetry of and that eliminating a variable would destroy.4
The derivation mirrors the unconstrained one but disturbs with a two-parameter family , because a single variation would in general break the side condition . The parameters are then linked by the constraint — the setting Lagrange multipliers were built for.
Hamilton's principle
The method applies to mechanics, where it recasts Newton's law as the condition that a certain integral be stationary. Consider a particle of mass moving under a conservative force derived from a potential energy , so that . With kinetic energy , define the action over the motion from time to as
The integrand is the Lagrangian. For a single particle in rectangular coordinates,
and requiring the action to be stationary means the Euler equations must hold in each coordinate. Carrying out and its partners gives
that is, — Newton's second law.5
The equivalence runs both ways: assuming Newton's law yields Hamilton's principle, and assuming the principle yields Newton's law, so the vectorial and variational formulations of mechanics are the same physics in two languages. The variational form has one decisive advantage — it is written in energies alone, with no reference to any coordinate system.
For a system with constraints one drops rectangular coordinates in favor of generalized coordinates , one per degree of freedom. Hamilton's principle then reads off Lagrange's equations of motion,
a system of second-order equations whose solution is the motion. Conservation of energy falls out of them when has no explicit time dependence, using Euler's theorem on the homogeneous quadratic . Simmons records Planck's verdict that among all the laws of physics the principle of least action comes nearest to the ideal of condensing every natural phenomenon into a single statement; it extends unchanged from one particle to systems, rigid bodies, and continuous media, and reappears in electromagnetism, relativity, and quantum theory.
Footnotes
- Simmons, Differential Equations with Applications and Historical Notes, §66 — the shortest-path, minimal-surface-of-revolution, and brachistochrone problems as instances of minimizing , and the definition of admissible functions. ↩
- Simmons, §67 — the variation , the condition , integration by parts, the fundamental lemma, Euler's equation, and Cases A–C with the shortest-path, catenary, and cycloid examples. ↩
- Simmons, §6 — Bernoulli's optical (Snell's-law) solution of the brachistochrone leading to and the cycloid, and Huygens's tautochrone property. ↩
- Simmons, §68 — Lagrange multipliers for finite constraints, Euler's equation for under an integral side condition, the maximum-area arc, and the isoperimetric inequality . ↩
- Simmons, Ch. 12 Appendix B — the action , the Lagrangian , the derivation of Newton's law from stationary action, Lagrange's equations in generalized coordinates, and conservation of energy. ↩
╌╌ END ╌╌