The Euler–Lagrange equation from Hamilton's principle
D-001 euler-lagrange-equation Home PU-201 Threads symmetry · energy Depends on — verified
Statement
A path that makes the action stationary satisfies a second-order differential equation in each generalised coordinate, and that equation is the equation of motion.
Why it matters
Newton's second law requires you to identify every force, including constraint forces you do not care about. Hamilton's principle requires only a single scalar function and the coordinates you choose. Every constraint force disappears from the problem automatically. This is not a reformulation for elegance — it is the only practical route into rigid bodies, field theory and general relativity.
Assumptions
Derivation
Result
Reading. One second-order equation per degree of freedom. The first term is the rate of change of the generalised momentum conjugate to qi; the second is the generalised force. So the equation says exactly what Newton's second law says — but in coordinates you chose for convenience, with constraint forces already eliminated.
Units check. ∂L/∂q̇ has units of [energy]·[time]/[q]; its time derivative gives [energy]/[q], matching ∂L/∂q. For a Cartesian coordinate both reduce to newtons.
Limiting cases and special structures
- If L does not contain qi at all, the coordinate is cyclic and ∂L/∂q̇i is immediately conserved. Half of all mechanics problems are solved by spotting this.
- If L does not contain t explicitly, a different quantity is conserved — see D-002.
- Adding a total time derivative dF(q,t)/dt to L changes the action only by boundary terms and leaves the equations untouched. The Lagrangian is therefore not unique, which matters when you later gauge-fix.
Breaks when
- Constraints are non-holonomic (rolling without slipping in three dimensions, for instance) — coordinates are no longer independent and multipliers are required.
- Dissipative forces are present. Friction has no potential, so it cannot enter L; a Rayleigh dissipation function must be bolted on.
- The action is stationary but not minimal. Beyond a conjugate point the true path is a saddle. "Principle of least action" is a misnomer often enough to matter.
Failure modes
- Treating the boundary term as automatically zero when the endpoints are not in fact fixed — the error that hides the entire content of Noether's theorem in field theory.
- Differentiating L with respect to t when only the explicit dependence is meant. ∂L/∂t and dL/dt are different objects and the distinction carries D-002 entirely.
- Assuming L = T − V is a definition. It is a result that holds for a large class of systems, not the meaning of the Lagrangian.
Worked number — does it reproduce Newton?
Take L = ½mẋ² − V(x). Then ∂L/∂ẋ = mẋ and ∂L/∂x = −V′(x). The result gives mẍ = −V′(x). That is F = ma, recovered without ever drawing a force.
Run the check → symbolic EL generator vs. the double pendulum
Discussion
The Euler–Lagrange equation is what a global statement about an entire path looks like when you make it local. Hamilton's principle is a single sentence about the whole trajectory: of all the ways the system could get from its start to its finish, the physical one makes the action S stationary. That is a statement about a curve in configuration space, not about any one instant. The derivation's whole job is to squeeze that global condition down to something a differential equation can test point by point. The bracket that emerges, ∂L/∂q − d/dt(∂L/∂q̇), is precisely the functional derivative δS/δq(t): it is the gradient of the action with respect to wiggling the path at time t. Setting it to zero at every t is the infinite-dimensional analogue of setting ∇f = 0 to find a stationary point of an ordinary function.
The equation is second order in time, and that is not an accident of any particular L — it is forced by Assumption 2. Because L carries q̇ but not q̈, the term d/dt(∂L/∂q̇) differentiates a function of (q, q̇, t) once, producing at most q̈. Second order is exactly what a mechanical initial-value problem needs: give position and velocity now and the future is fixed. The two pieces also have a clean identity. The quantity pi = ∂L/∂q̇i is the generalised momentum conjugate to qi, and ∂L/∂qi is the generalised force. The equation reads dpi/dt = (generalised force): Newton's second law wearing coordinate-independent clothes.
The deeper reason to prefer this formulation is covariance. The Euler–Lagrange operator transforms as a covector under any smooth, possibly time-dependent change of coordinates q → Q(q, t): if the equations hold in one chart they hold in every chart, with no fictitious-force bookkeeping. This is why the same three lines generate geodesics on a curved manifold (take L = ½gij(q)q̇iq̇j and the result is the geodesic equation with Christoffel symbols), classical fields (promote t to the four coordinates xμ, replace d/dt by ∂μ, and ∂μ(∂L/∂(∂μφ)) − ∂L/∂φ = 0 is the field equation), and the whole of general relativity from the Einstein–Hilbert action. The same variational skeleton, with the boundary term of step 5 kept alive instead of killed, is Noether's theorem: a symmetry of L makes a specific combination of ∂L/∂q̇ conserved. And the Legendre transform H = pq̇ − L converts this one second-order equation into Hamilton's two first-order equations, the gateway to phase space, Poisson brackets and canonical quantisation.
Common misconceptions. First, "least action" is a misnomer: the action is stationary, and past a conjugate point the true path is a saddle, not a minimum (see Breaks-when). Second, d/dt here is a total time derivative — it acts on q(t) and q̇(t) inside ∂L/∂q̇, so it generically produces cross terms in q̈, q̇ and q, not just ∂/∂t. Third, L = T − V is not the definition of the Lagrangian; it is a form that happens to work for a broad class of systems. Fourth, the Lagrangian is not unique — adding any total derivative dF(q,t)/dt leaves every equation of motion unchanged, which is the classical seed of gauge freedom.
Worked examples
Example 1 — The plane pendulum from a single coordinate. A bob of mass m hangs on a rigid massless rod of length ℓ and swings in a vertical plane. The rod constraint is holonomic, so one generalised coordinate — the angle θ from the downward vertical — suffices, and the (unknown) rod tension never appears. Find the equation of motion and the small-oscillation period for ℓ = 0.25 m, g = 9.81 m s−2.
Answer. The equation of motion is θ̈ = −(g/ℓ) sinθ, independent of mass, and the small-amplitude period is T = 2π√(ℓ/g) = 1.00 s. The rod tension — a constraint force — never entered the calculation.
Example 2 — Bead on a rotating hoop: an off-axis equilibrium. A bead of mass m slides without friction on a circular wire of radius R that is forced to spin about its vertical diameter at constant angular velocity Ω. Let θ be the bead's angle from the lowest point. The spin is imposed, so θ is the one true degree of freedom. Find the equation of motion and the stable equilibrium angle for R = 0.20 m, Ω = 12 rad s−1, g = 9.81 m s−2.
Answer. The equation of motion is θ̈ = sinθ(Ω2 cosθ − g/R). Above the critical spin Ωc = √(g/R) = 7.00 rad s−1 the bottom position θ = 0 turns unstable and the bead settles at θ0 = 70.1°. This pitchfork bifurcation drops straight out of the Euler–Lagrange equation with no free-body diagram of the wire's reaction force.
Problems
- Free particle. For L = ½mẋ2, apply the Euler–Lagrange equation and interpret the conserved quantity.
Solution
∂L/∂ẋ = mẋ, so d/dt(mẋ) = mẍ; ∂L/∂x = 0. The equation gives mẍ = 0, i.e. ẍ = 0. Since x is absent from L it is a cyclic coordinate, so its conjugate momentum p = mẋ is conserved — this is exactly conservation of linear momentum for a free particle.
- Projectile in uniform gravity. With L = ½m(ẋ2 + ẏ2) − mgy, find both equations of motion and identify which momentum is conserved.
Solution
x: ∂L/∂ẋ = mẋ, ∂L/∂x = 0 ⇒ mẍ = 0, so ẍ = 0. y: ∂L/∂ẏ = mẏ, ∂L/∂y = −mg ⇒ mÿ = −mg, so ÿ = −g. Because L has no explicit x, the horizontal momentum px = mẋ is conserved; the vertical direction has a force, so py is not.
- Harmonic oscillator, with numbers. For L = ½mẋ2 − ½kx2 with m = 0.50 kg and k = 20 N m−1, derive the equation of motion and compute the oscillation period.
Solution
∂L/∂ẋ = mẋ ⇒ d/dt = mẍ; ∂L/∂x = −kx. Euler–Lagrange: mẍ + kx = 0, i.e. ẍ = −(k/m)x. Then ω = √(k/m) = √(20/0.50) = √40 = 6.32 rad s−1, and T = 2π/ω = 2π/6.32 = 0.993 s.
- Atwood machine. Two masses m1 = 3.0 kg and m2 = 5.0 kg hang over a massless, frictionless pulley on an inextensible string. Using the single coordinate x (the descent of m2), find the acceleration by the Euler–Lagrange method. Note how the string tension is bypassed.
Solution
The constraint ties both speeds to ẋ. Kinetic energy T = ½(m1 + m2)ẋ2; potential (taking m2 descending, m1 rising) V = −m2gx + m1gx. So L = ½(m1+m2)ẋ2 + (m2−m1)gx. Euler–Lagrange: (m1+m2)ẍ = (m2−m1)g, giving ẍ = (m2−m1)g/(m1+m2) = (2.0)(9.81)/8.0 = 2.45 m s−2. The internal tension is a constraint force and never appears because a single unconstrained coordinate was chosen.
- Central force in polar coordinates (harder). A particle of mass m moves in a plane under a central potential V(r). With L = ½m(ṙ2 + r2φ̇2) − V(r), obtain both equations of motion, identify the conserved quantity, and reduce the radial motion to a one-dimensional problem with an effective potential.
Solution
φ-equation: ∂L/∂φ̇ = mr2φ̇, ∂L/∂φ = 0. Since φ is cyclic, d/dt(mr2φ̇) = 0, so the angular momentum ℓ = mr2φ̇ is conserved. r-equation: ∂L/∂ṙ = mṙ ⇒ d/dt = mr̈; ∂L/∂r = mrφ̇2 − V′(r). Euler–Lagrange: mr̈ = mrφ̇2 − V′(r). Eliminate φ̇ = ℓ/(mr2): mr̈ = ℓ2/(mr3) − V′(r) = −dVeff/dr with Veff(r) = V(r) + ℓ2/(2mr2). The radial motion is thus that of a single particle in the effective potential Veff, whose extra term is the centrifugal barrier — a direct consequence of the conserved ℓ that the cyclic φ handed us.