Lagrangian Mechanics
Newtonian mechanics is a bookkeeping of vectors: forces, accelerations, and — most awkwardly — the unknown reaction forces that constraints exert to keep a bead on its wire or a bob on its rod. Lagrangian mechanics throws that ledger away and replaces it with a single scalar. Choose generalized coordinates that independently label the configurations a constrained system can actually reach, write down one function, the Lagrangian , and the entire dynamics follows from a single demand: the action must be stationary against small deformations of the path. The payoff is structural, and it is large. First, workless constraint forces never appear — they are absorbed into the choice of coordinates, so you never solve for the tension in a pendulum string to find its swing. Second, the resulting Euler-Lagrange equations are covariant: they take the identical form in Cartesian, polar, rotating, or curvilinear coordinates, because they descend from a coordinate-free statement about a scalar. That makes the formalism the natural language for systems with symmetry and for motion on curved configuration spaces. Conceptually, Lagrangian mechanics is calculus of variations wearing a physicist's hat: the action is a functional on a space of paths, and its first variation, set to zero with the endpoints pinned, yields one Euler-Lagrange equation per coordinate. From there the same scalar-and-variation recipe generalizes verbatim to continuous fields, to relativistic particles, and to constrained problems via Lagrange multipliers, and it delivers Noether's theorem and the Legendre transform that opens the door to Hamiltonian and quantum mechanics.
- Lagrangian mechanics recasts Newtonian dynamics in terms of independent generalized coordinates and one scalar function, the Lagrangian .
- The equations of motion follow from demanding that the action be stationary, producing the Euler-Lagrange equations .
- Generalized coordinates absorb holonomic constraints, cutting the problem down to the true number of degrees of freedom and eliminating constraint forces.
- The equations are coordinate-covariant: unlike , they look the same in every admissible coordinate system.
- Symmetries of become conservation laws — a cyclic coordinate conserves its conjugate momentum, and conserves the Jacobi energy function.
- It is the variational bridge from Newton to the Hamiltonian, field-theoretic, and path-integral formulations.
- Key idea: encode all of a system's dynamics in one scalar written in independent generalized coordinates, then demand that the action be stationary; the Euler-Lagrange equations are the result, automatically eliminating constraint forces and holding in any coordinate system.
Where this lives today
The scalar-and-variation recipe is the working spine of modern physics and much of engineering. Every robot arm and spacecraft attitude controller is modelled by assembling a Lagrangian in joint coordinates and letting a computer algebra system grind out the equations of motion — the constraint-elimination that once saved a physicist a page of algebra now saves a control engineer an intractable free-body diagram. In molecular dynamics and lattice physics, the small-oscillations limit of a Lagrangian yields the phonon spectra and normal modes that set heat capacities and infrared spectra. Cosmology and particle physics are written natively in Lagrangian densities: the Standard Model is a Lagrangian, its conservation laws read off by Noether's theorem and its dynamics by Euler-Lagrange, and general relativity follows from the Einstein-Hilbert action by exactly the variation of this article, now taken over spacetime metrics. The deepest continuation is quantum: Feynman's path integral takes the very same action as its phase, weighting every path — so the classical stationary-action trajectory is just where neighbouring phases stop cancelling. Lagrangian mechanics is thereby the classical shadow of quantum dynamics, and the bridge every physicist crosses to reach it.
The physical picture
Imagine every path a system could conceivably trace between a fixed start and a fixed finish. Each candidate is a complete history , and each carries a number: its action . Nature is lazy in a precise sense — it selects the one path along which is stationary, meaning that any small wiggle of the path changes only at second order. Lagrangian mechanics is the calculus that isolates that special path, and the Euler-Lagrange equations are the local condition it must satisfy at every instant.
The Lagrangian is a running balance sheet between the tendency to move (kinetic energy ) and the tendency to be pulled (potential energy ). Stationarity of turns out to encode exactly Newton's — but stated in a form indifferent to which coordinates you use or whether the particle is pinned to a sphere, threaded on a wire, or viewed from a rotating frame. The deepest practical shortcut hides inside this: if fails to depend on some coordinate (only on its velocity ), that coordinate is cyclic and its conjugate momentum is conserved. Rotational symmetry hides an angle from , and angular momentum drops out for free. The second figure grounds all of this in one concrete system with real numbers.
Because the constraint force (the rod tension) does no virtual work — it points along the rod, perpendicular to the only motion the bead is permitted — choosing as the coordinate makes it vanish from the equations entirely. You get the swing without ever computing the tension. That single observation, promoted to a principle, is the whole engine of the subject.
The core equations
Everything begins with a functional, not a function. The action assigns one real number to an entire path, and the dynamics is the statement that the physical path is a critical point of this number.
where: — the action, a functional mapping each path to a real number; — the Lagrangian, a scalar function of coordinates, velocities, and time; — generalized coordinate as a function of time, ; — generalized velocity; — fixed endpoint times with prescribed configurations. Read it as: integrate along a path to get a number, and the physical path is the one that number is stationary about. For an ordinary ("natural") mechanical system the Lagrangian is the kinetic energy minus the potential energy — not their sum. This sign is the single most important convention in the subject.
where: — total kinetic energy, generally a positive-definite quadratic form in the velocities; — potential energy of the conservative forces, a function of the coordinates alone for a natural system. The metric-like coefficients carry all the geometry of the constraints. Demanding against endpoint-fixed variations produces, coordinate by coordinate, the Euler-Lagrange equations — a second-order ordinary differential equation for each degree of freedom.
where: — the generalized momentum conjugate to ; — the generalized force, equal to for a natural system. Read the equation as "rate of change of momentum equals force", but with both quantities computed from a single scalar and valid in any coordinates. The first term names an object worth its own definition: the momentum conjugate to a coordinate is whatever the velocity-derivative of produces, and it need not be .
where: — canonical momentum conjugate to ; it reduces to for a Cartesian free particle, to (an angular momentum) for the pendulum, and to in a magnetic field. When is cyclic (), equation (3) says is conserved. Time-translation symmetry has its own conserved quantity, the Jacobi energy function, which for natural systems is the total energy .
where: — the energy function; conserved whenever , and equal to when in addition is a homogeneous quadratic in the velocities and is velocity-independent. It is the Legendre transform of that becomes the Hamiltonian once expressed in momenta. The recipe survives even velocity-dependent potentials. A charged particle in an electromagnetic field is the canonical example, and it still fits with a generalized potential .
where: — electric charge (Gaussian units); — scalar potential; — vector potential with and ; — speed of light. The Euler-Lagrange equation for this reproduces the full Lorentz force. When forces are genuinely nonconservative, or constraints are imposed by multiplier rather than by coordinate choice, the right-hand side stops being zero.
where: — generalized force not derivable from a potential (friction, drives); — holonomic constraint ; — Lagrange multiplier, whose product is precisely the constraint force you chose not to hide. Setting and dropping the constraints recovers equation (3).
The Euler-Lagrange equations are the exact price of demanding that the action be stationary. We take a trial path agreeing with the true motion only at the two pinned endpoints, compute how the action changes to first order in the deformation, integrate the velocity-variation term by parts to strip the derivative off the arbitrary function, and invoke the fundamental lemma to conclude that the bracketed integrand must vanish at every instant — a local differential equation extracted from a global extremum principle.
Step 1. Deform the path, , with so the endpoints stay fixed, and expand the action to first order in :
Why: stationarity is a statement about the first-order response, so only the terms linear in the deformation and its rate can matter.
Step 2. The second term carries a we cannot factor out, so integrate it by parts:
Why: this shifts the time derivative off so that every surviving term multiplies itself; the boundary term dies because vanishes at both endpoints.
Step 3. Collect the pieces into a single integral against and apply the fundamental lemma:
Why: an integral that vanishes against every smooth, endpoint-vanishing test function can only do so if its continuous coefficient vanishes pointwise — which is equation (3), one per coordinate. *Verified: reproduces exactly (Stone & Goldbart Ch. 1; Arfken & Weber); the boundary term vanishes precisely because endpoints are held fixed.*
Go deeper · Derivation B · 1 minConservation of the Jacobi energy function
When the Lagrangian carries no explicit clock — enters only through the motion — the system has a conserved energy, and this derivation extracts it without assuming in advance what "energy" means. We differentiate the candidate quantity along an actual trajectory, expand by the chain rule, and watch the two contributions cancel by virtue of the equations of motion, leaving only the explicit time dependence. The conclusion: is conserved if and only if .
Step 1. Differentiate along a solution, applying the product rule to the first group of terms:
Why: is built from and the velocities, so its rate of change needs the time derivative of each factor before anything can cancel.
Step 2. Expand the total derivative of by the chain rule, keeping the explicit-time term separate:
Why: depends on time through , through , and possibly explicitly; only the last of these is a genuine violation of time-translation symmetry.
Step 3. Subtract, and use the Euler-Lagrange equation to replace with :
Why: the bracket is exactly the Euler-Lagrange combination, which vanishes on any solution, so the entire velocity-weighted sum collapses and is conserved precisely when has no explicit time dependence. *Verified: (Landau-Lifshitz §6); for a natural system with , Euler's homogeneous-function theorem gives , so .*
Go deeper · Derivation C · 1 minLagrange's equations from d'Alembert's principle
The variational route can feel like a postulate dropped from the sky; this derivation instead builds the same equations from Newton's law directly, revealing Lagrangian mechanics as a theorem rather than an axiom. We start from d'Alembert's principle — that applied and inertial forces together do no virtual work through any constraint-consistent displacement — project onto the independent generalized coordinates, and use a purely kinematic identity to convert the inertial term into derivatives of the kinetic energy. The constraint forces disappear because they are orthogonal to every allowed virtual displacement.
Step 1. Write each virtual displacement in terms of independent coordinate variations, , and insert into d'Alembert's principle . Why: expressing displacements through the automatically enforces the constraints and makes the independent, so their coefficients must vanish separately.
Step 2. Transform the inertial term with the kinematic identities and :
Why: these two identities are what let the awkward acceleration projection be repackaged entirely in terms of the scalar kinetic energy, which is the crux of the whole method.
Step 3. Collect the applied-force projection and, for conservative forces , fold into :
Why: because is velocity-independent, , so adding to changes only the coordinate-derivative term and reproduces equation (3) — with constraint forces already gone, having done no virtual work. *Verified: the classical d'Alembert derivation (Goldstein §1.4); it proves Lagrangian mechanics is logically equivalent to Newton's laws plus the assumption that constraint reactions do no virtual work.*
Limiting cases
The single framework degenerates, in instructive ways, into every elementary result it generalizes.
| Case | Result | Meaning |
|---|---|---|
| Free particle, | Euler-Lagrange collapses to Newton's first law: uniform straight-line motion. | |
| Cartesian, conservative force | recovers Newton's second law exactly. | |
| Cyclic coordinate | translational or rotational symmetry yields conserved linear or angular momentum. | |
| Time-independent | the Jacobi energy function is conserved; for natural systems . | |
| Add a total time derivative | gauge freedom: and give identical equations of motion, since the change to is a fixed boundary term. | |
| Small oscillations | normal modes from the generalized eigenvalue problem . |
Worked examples
1 · The plane pendulum, with numbers
A bob of mass hangs on a rigid massless rod of length in gravity . Find its equation of motion, its small-angle period, and how much longer it swings when released from .
Step 1. The rigid rod is one holonomic constraint, leaving one degree of freedom — take , the angle from the downward vertical. The Cartesian position is , , so and the energies are , . Hence .
Step 2. The conjugate momentum is (an angular momentum), and . The Euler-Lagrange equation gives , i.e. — the rod tension never entered.
Step 3. For small , and the motion is simple harmonic with , so .
Step 4. At finite amplitude the period grows. The exact result is , or to leading order . For this factor is , giving — about 1.7% longer than the small-angle value. The nonlinearity of the term, invisible to Newton's linearized treatment, falls straight out of the exact Lagrangian.
2 · Bead on a rotating hoop — an emergent equilibrium
A bead of mass slides frictionlessly on a circular wire hoop of radius that is forced to spin at constant angular velocity about its vertical diameter. Where does the bead sit, and what happens as increases?
Step 1. Let measure the bead's angle from the bottom of the hoop. It moves along the hoop with speed and is swept around the axis at radius with speed , so and . Because the hoop's rotation is imposed (not a dynamical coordinate), is a fixed parameter, and .
Step 2. Euler-Lagrange gives , i.e. . The rotation has produced a velocity-independent term that acts like an effective potential — the centrifugal contribution appearing automatically, with no fictitious force inserted by hand.
Step 3. Equilibria satisfy . The bottom is always a solution; a second, tilted equilibrium exists only when . The critical spin is .
Step 4. Spin at : then , so . Below the bead rests at the bottom; above it, the bottom becomes unstable and the bead climbs to a stable off-axis position — a pitchfork bifurcation read straight off the Lagrangian, and a mechanical rehearsal of spontaneous symmetry breaking.
Physics of the portrait
Lagrangian mechanics is the moment classical dynamics stopped being about forces and became about a single function and a principle of economy — a shift so complete its founder boasted his masterwork held not one diagram.
Origins · 1 minJoseph-Louis Lagrange and how this was discovered
Born Giuseppe Lodovico Lagrangia in Turin, Lagrange taught himself mathematics and, at nineteen, wrote to Leonhard Euler with a purely analytic method for extremal problems — the -algorithm that freed the young calculus of variations from Euler's geometric constructions. Euler generously held back his own results so the newcomer could publish first, and coined the name "calculus of variations." Over the next three decades Lagrange rebuilt all of mechanics on this foundation. His 1788 Mécanique analytique opens with a famous point of pride — that the reader will find no figures, only algebra — and reduces every problem of statics and dynamics to the manipulation of a single scalar function. He generalized d'Alembert's principle into a systematic engine, and introduced generalized coordinates and the multipliers that bear his name for handling constraints. The deeper reading of his equations as a stationary-action principle came later from Hamilton, and their symmetry content from Noether; but the decisive move — from Newton's vectors and forces to a coordinate-free scalar and a variational condition — is Lagrange's, and it is the template on which field theory, general relativity, and the path integral were all built.
Going further
Texts. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., Ch. 1–2 (d'Alembert, Lagrange's equations, velocity-dependent potentials) · Landau & Lifshitz, Mechanics, Vol. 1, §1–7 (the action principle from the ground up) · Stone & Goldbart, Mathematics for Physics, Ch. 1 (calculus of variations) · Arfken & Weber, Mathematical Methods for Physicists, the calculus-of-variations chapter · Hassani, Mathematical Physics, variational chapters · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, Ch. 22.
Provenance. A verifier should recompute: (1) the first-variation / integration-by-parts derivation of equation (3) (Stone & Goldbart Ch. 1); (2) the pendulum result , , , and the finite-amplitude factor at giving ; (3) the rotating-hoop bifurcation, and at ; (4) and the Euler-homogeneity argument ; (5) the d'Alembert derivation of Lagrange's equations (Goldstein §1.4). All sign conventions () and the EM Lagrangian (Gaussian units) are standard.
Prerequisites. Functionals and Function Spaces · First Variation and Stationarity · Euler-Lagrange Equation · Fundamental Lemma of the Calculus of Variations. Leads to. Hamilton's Principle of Stationary Action · Beltrami Identity and First Integrals · Constrained Variation and Lagrange Multipliers · Geodesics as Variational Problems.
Ask the tutor: ask me to derive the equations of motion for any system you name — a spherical pendulum, a double pendulum, a bead on a rotating wire, or a charged particle in a field — and I will build its Lagrangian and read off the conserved quantities with you.
Why is the Lagrangian T − V and not the total energy T + V?
Because the equations of motion, not the energy, are what the action must reproduce. Demanding that be stationary yields , which is exactly "mass times acceleration equals force." Had you used , the sign of the force would flip and objects would fall upward. The combination is genuinely important — it is the conserved energy — but it is a consequence of the dynamics, not the generator of it. A useful mnemonic: is what you integrate to get the action; is what the action's symmetry under time-shift conserves.
What exactly is a generalized coordinate, and how many do I need?
A generalized coordinate is any parameter that helps specify a system's configuration; a complete, independent set has one member per degree of freedom. For a bead on a wire that is one arc-length or angle; for a double pendulum, two angles; for a rigid body, three position and three orientation coordinates. The art is to choose coordinates that already respect the constraints — an angle for a fixed-length pendulum rather than plus a constraint — so the constraint forces vanish automatically and the equation count drops to the true number of freedoms. Coordinates need not be lengths: angles, areas, and dimensionless ratios all qualify, which is why the conjugate "momentum" can be an angular momentum or something stranger.
Do constraint forces really disappear, or are they just hidden?
They genuinely drop out of the equations of motion, but they are not lost — they are simply not needed to find the motion. A workless (ideal) constraint force is always perpendicular to the allowed virtual displacements, so its projection onto every generalized coordinate is zero and it cannot influence . If you actually want the constraint force — say, the tension in the rod to check it will not snap — you recover it by keeping the constraint explicit and reading off the Lagrange multiplier, equation (7): is precisely that force. So the formalism lets you ignore constraint forces when finding the trajectory and retrieve them on demand when engineering the structure.
When is energy conserved in Lagrangian mechanics?
The precise statement is about the Jacobi function : it is conserved whenever has no explicit time dependence, . This is subtly stronger and cleaner than "no time-dependent forces." A pendulum with a fixed pivot conserves ; the same pendulum on a support driven up and down does not, because then contains explicitly. Separately, equals the familiar only for a natural system — one where the kinetic energy is a homogeneous quadratic in the velocities (time-independent constraints) and the potential is velocity-independent. The rotating hoop is the cautionary case: its is conserved but is not , because the imposed rotation makes the constraint time-dependent in the lab frame.
Why do the Euler-Lagrange equations look the same in every coordinate system?
Because they are the vanishing condition of the first variation of a scalar, and a scalar does not care what coordinates you used to compute it. The action assigns the same number to a given physical path whether you parametrize it in Cartesian or polar coordinates, so its stationary points are the same paths in both descriptions. Under a change of coordinates and transform in exactly the compensating ways that keep equation (3) a genuine covector equation. Newton's , by contrast, is tied to Cartesian components and sprouts extra terms (centrifugal, Coriolis) the moment you leave them — terms the Lagrangian generates automatically.
Can Lagrangian mechanics handle friction and other dissipation?
Yes, but not through a plain , because friction is not derivable from a potential. Two standard routes exist. The direct one puts the nonconservative force on the right as a generalized force , as in equation (7). For linear (viscous) drag there is a tidier device, the Rayleigh dissipation function , entering as . Velocity-dependent forces that are derivable from a generalized potential — the magnetic Lorentz force above all — fit back inside itself. Only truly dissipative forces need the extra terms, and the price is that the energy function is then no longer conserved.