Module 1 · 14 min read · Free chapter
Hamilton's principle, calculus of variations, cyclic coordinates and symmetries
Hamilton's principle says the true path makes the action S, the time integral of L, stationary for fixed end points. Varying the path and integrating by parts gives the Euler-Lagrange equations. A coordinate missing from L is cyclic, and its conjugate momentum is conserved. If L has no explicit time, the energy function h is conserved, and it equals T + V for fixed constraints.
Start from zero: nature's economy
Light going from air into water bends. In 1662 Pierre de Fermat explained the exact angle with a remarkable idea: light takes the path that takes the least time. It does not head straight for its target; it spends less time in the slow medium.
Could the motion of a ball, a planet or a pendulum be described the same way, by one quantity that the actual path makes smallest? In 1834 William Rowan Hamilton showed that it can. The quantity is the action, the time integral of the Lagrangian, and the true path makes it stationary.
This chapter develops the mathematics behind such statements, the calculus of variations, and derives Lagrange's equations from Hamilton's principle. It then shows the principle's most important consequence: every symmetry of a system gives a conserved quantity. The equations were first derived from Newton's laws in Lagrange's equations.
Derivation: the Euler-Lagrange equation of a functional
A functional assigns a number to a whole function. The length of a curve y(x) between two points, or the time to slide down it, are functionals:
Varying the path. Compare the path y(x) with a neighbour , where η vanishes at both ends so the end points stay fixed. Then
Integrating by parts. The second term becomes . The boundary term is zero because η vanishes at the ends. So
For J to be stationary this must vanish for every η, which forces
Beltrami identity. If f does not depend on x explicitly, the equation has a first integral, . This saves one integration in many problems.
Worked example: the shortest path (IFoS 2017). In a plane, , so . f does not contain y, so $\frac{\partial f}{\partial y'} = \frac{y'}{\sqrt{1 + y'^2}} = $ constant. Hence y′ is constant and y = ax + b: a straight line. In three dimensions, with , both y′ and z′ are constant and the conclusion is the same.
Hamilton's principle and Lagrange's equations (IFoS 2016, 2020; Geo-Scientist 2018)
Statement. For a system with Lagrangian L(q, q̇, t), of all the paths q(t) that start at and end at , the actual path makes the action
stationary: δS = 0.
Derivation for n degrees of freedom. Vary each coordinate, , with . Exactly as above,
If the system is holonomic and bilateral, with only potential forces, the n variations are independent and arbitrary. Choosing all but one to be zero shows that each bracket vanishes:
Can it be applied to non-holonomic systems? (IFoS 2020). Not in this simple form. Non-holonomic constraints restrict the velocities, so the are no longer independent and the step "each bracket vanishes" fails. For constraints of the form , the correct equations come from D'Alembert's principle with Lagrange multipliers:
Significance (IFoS 2016). (1) The whole of mechanics is packed into one scalar, L. (2) The principle does not depend on coordinates, so any generalised coordinates can be used.
(3) It extends to fields, to relativity and to electromagnetism, where Maxwell's equations follow from an action. (4) It leads directly to quantum mechanics through Feynman's sum over paths. (5) It makes the link between symmetries and conservation laws transparent.
A Lagrangian is not unique. If , then . The extra term is fixed by the end points, so δS′ = δS and the equations of motion are the same.
Worked example: the brachistochrone
In 1696 Johann Bernoulli challenged the mathematicians of Europe: along which curve does a bead slide from one point to a lower one in the least time? Newton, Leibniz, Jakob Bernoulli and L'Hôpital all sent solutions; the problem gave birth to the calculus of variations.
Setting up. Measure y downward from the starting point. Starting from rest, the speed at depth y is , so the time is
Solving. f does not contain x, so the Beltrami identity applies:
for some constant 2a. Substituting gives . This is a cycloid, the curve traced by a point on the rim of a wheel of radius a rolling along the line y = 0.
Two surprises. First, the straight line, though shortest, is not fastest: it is better to drop steeply at first and build up speed. Second, the brachistochrone is the same curve as the tautochrone of Lagrange's equations, on which a bead takes the same time to reach the bottom from any starting point.
Cyclic coordinates and conservation laws (IFoS 2022, 2025; Geo-Scientist 2023)
Generalised momentum. The momentum conjugate to is . For a Cartesian coordinate it is ordinary momentum ; for an angle it is angular momentum .
Cyclic coordinates. If does not appear in L, Lagrange's equation reads , so is constant. A coordinate missing from L means L is unchanged when that coordinate is shifted: a symmetry. This is the simplest form of Noether's theorem (see conservation laws and Noether).
| Symmetry of L | Cyclic coordinate | Conserved quantity |
|---|---|---|
| shift along a direction | Cartesian coordinate along it | linear momentum along it |
| rotation about an axis | angle about that axis | angular momentum about it |
| shift in time | none, but | energy function h |
Worked example 1 (IFoS 2022; Geo-Scientist 2023). A particle moves in . In cylindrical coordinates,
Both z and φ are cyclic, and L has no t. So , and the energy E = T + V are conserved. The x and y components of momentum and of angular momentum are not, because V changes under shifts in x or y and under rotations about the x or y axis.
Worked example 2 (IFoS 2025). . The coordinate is cyclic, so is conserved. L has no explicit t, and T is quadratic in the velocities, so the energy is conserved. The symmetry is invariance under ; with the system is a particle in a central potential with as radius and as polar angle, and is its angular momentum.
Time symmetry: the energy function
Derivation. Take the total time derivative of L(q, q̇, t):
Using Lagrange's equation to replace by , the bracket becomes . Rearranging,
So if L does not contain t explicitly, h is conserved. This is also called the Jacobi integral.
When is h the energy? If the constraints do not depend on time, T is a homogeneous quadratic function of the velocities. Euler's theorem then gives , so h = 2T − (T − V) = T + V.
When it is not: the rotating hoop. For the bead on a hoop spinning at constant ω (Lagrange's equations), has no explicit t, so
is conserved. But T + V has the centrifugal term with a plus sign, so it is not conserved. The motor keeping ω constant feeds energy in and out as the bead moves; h, the energy in the rotating frame including the centrifugal potential, is what stays fixed.
Velocity-dependent potentials: a charge in a field (Geo-Scientist 2025)
The magnetic force depends on velocity and cannot come from an ordinary potential. It can, however, come from a velocity-dependent one. In SI units the Lagrangian is
where φ and are the scalar and vector potentials, with and . Lagrange's equations reproduce .
Canonical and kinetic momentum. . This canonical momentum, not , is what is conserved when a coordinate is cyclic, and it is the momentum that becomes in quantum mechanics.
Worked example (Geo-Scientist 2025). The question gives, in Gaussian units, . In these units . Comparing, φ = 0 and . Then
and . The particle moves in a uniform magnetic field of strength 2 (in the units of the problem) along the y-axis, with no electric field. Note that y is cyclic, so is conserved: motion along the field is free.
Deep dive: why nature finds the stationary path
Hamilton's principle can sound as if a particle "looks ahead" and chooses its path. Quantum mechanics removes the mystery. In Richard Feynman's 1948 formulation, a particle takes every possible path, each contributing a wave with phase .
For a large object, S is enormous compared with Planck's constant J s. Neighbouring paths then have wildly different phases and cancel out, except near the path where S is stationary: there, small changes of path barely change S, and the contributions add up. The classical path is simply where the waves reinforce.
The same reasoning explains Fermat's principle: light also takes all paths, and only those near the stationary-time path survive. This is why stationary, not least, is the correct word. For long times, or on curved surfaces, the true path can be a saddle point of S rather than a minimum, as for light reflected from a concave mirror.
Hamilton himself was guided by the analogy between rays of light and paths of particles. A century later Louis de Broglie and Erwin Schrödinger used the same analogy in the other direction, giving particles a wave nature.
Critiques and debates: purpose or mathematics?
When Pierre-Louis Maupertuis proposed a "principle of least action" in 1744, he presented it as proof that nature acts with economy and wisdom. Critics, Voltaire among them, mocked the idea that a falling stone has a purpose.
| View | Claim | Assessment |
|---|---|---|
| Teleological (Maupertuis) | nature minimises action by design | rejected: the action is often not a minimum |
| Equivalent reformulation | δS = 0 is just Newton's laws rewritten | true for holonomic systems with potentials |
| Deeper principle | the action is more fundamental than forces | supported by field theory and the path integral |
| Limited principle | fails for friction and non-holonomic constraints | true in its simple form; needs extensions |
Today the action is the starting point for nearly every theory in physics, from general relativity to the Standard Model. Physicists usually write down an action that respects the required symmetries, and the equations and conservation laws follow.
Concept clarifications: commonly confused ideas
Writing a 20-mark answer
Question: "State Hamilton's principle and derive Lagrange's equations from it for a holonomic system with n degrees of freedom. What are cyclic coordinates? Can the principle be applied to non-holonomic systems?" (20 marks)
- Statement (3 marks). Action, fixed end points, δS = 0; stationary not least.
- Derivation (8 marks). Variation, integration by parts, vanishing boundary term, independence of , result.
- Cyclic coordinates (4 marks). conserved; translation and rotation examples; energy function h.
- Non-holonomic (3 marks). Variations not independent; Lagrange multipliers from D'Alembert.
- Significance (2 marks). Coordinate-free, extends to fields, path integral.
Mains practice: questions to try
These are practice questions written by us, not past papers. The UPSC questions on this topic are shown in the previous year questions panel.
| # | Question | Marks | What it tests |
|---|---|---|---|
| 1 | Find the curve joining two points that, when rotated about the x-axis, gives the least surface area. | 15 | catenary |
| 2 | Show that the shortest path on the surface of a sphere is an arc of a great circle. | 15 | geodesics |
| 3 | A particle moves in the potential plus a uniform field along z. Which components of momentum and angular momentum are conserved? | 10 | symmetry |
| 4 | Show that adding to a Lagrangian does not change the equation of motion. | 10 | gauge freedom |
| 5 | Write the Lagrangian of a charge in a uniform magnetic field using and find the conserved quantities. | 15 | velocity-dependent potential |
Quick revision
- Euler-Lagrange: ; Beltrami $f - y'\frac{\partial f}{\partial y'} = $ constant.
- Shortest path: straight line; brachistochrone: cycloid (Bernoulli 1696).
- δS = 0 with fixed end points gives Lagrange's equations for holonomic systems; non-holonomic need multipliers.
- Cyclic : conserved; translation → momentum, rotation → angular momentum.
- conserved if ; h = T + V only for fixed constraints.
- Charge: , ; gives same equations.