← thecodex.expert
Classical Mechanics Hub Physicist Biographies
Definition Curious Exploring Deep Dive Sources
Analytical Mechanics · Concept

Euler-Lagrange Equations

Reading time: 9 minConfidence: HighLast verified: October 2026

For a functional S[q] = ∫L(q, q̇, t) dt, the Euler–Lagrange equations d/dt(∂L/∂q̇i) − ∂L/∂qi = 0 (one for each generalised coordinate qi) are necessary conditions for S to be stationary under variations with fixed endpoints. In mechanics, with L = T − V, they reproduce Newton's second law in any coordinate system. Developed by Euler (1744) and Lagrange (1755 onward), they are the central equations of the calculus of variations, used also in optics, geometry (geodesics) and field theory.

Curious

One sentence that captures itThe Euler–Lagrange equations are the recipe that turns “make the action as small as possible” into ordinary equations you can solve.

Finding the shortest route between two points, the quickest slide, or the shape of a hanging chain are all problems of choosing the best curve. In 1696 Johann Bernoulli challenged mathematicians to find the curve down which a bead slides fastest between two points: the brachistochrone. The answer, a cycloid, was found by Newton, Leibniz, Jakob Bernoulli and others, and the methods inspired Euler and the young Lagrange to create a general technique.

Their equation works for any problem of making an integral stationary. In mechanics it takes the Lagrangian and outputs the equations of motion (see Principle of Least Action).

Exploring

Worked examples(1) Recovering Newton: for a particle in a potential, L = ½mẋ² − V(x); ∂L/∂ẋ = mẋ, ∂L/∂x = −dV/dx, so the equation is mx¨ = −dV/dx = F. (2) Brachistochrone: a bead released from rest slides from the origin to a point π m across and 2 m down. Along the cycloid (generating circle radius 1 m) the time is π√(r/g) ≈ 1.00 s; along the straight line it takes about 1.19 s, nearly 19% longer, though the straight path is shorter. (Computed in Python, frictionless.)
ProblemQuantity made stationarySolution
Shortest path in a planeLength ∫dsStraight line
BrachistochroneTime ∫ds/vCycloid
Hanging chainPotential energyCatenary (cosh curve)
Light in mediaOptical path ∫n dsSnell's law
MechanicsAction ∫L dtNewton's laws
Common mistake — Commonly ConfusedThe Euler–Lagrange equations are necessary conditions for a stationary action, not proof of a minimum; distinguishing minima, maxima and saddle points needs second-variation analysis. Also, the partial derivatives treat q and q̇ as independent variables, while the d/dt is a total time derivative along the path, a frequent source of algebraic errors.

Deep Dive

Primary sourceEuler, L. (1744). Methodus inveniendi lineas curvas maximi minimive proprietate gaudentes. Lausanne and Geneva: Bousquet; Lagrange, J.-L. (1788). Mécanique analytique. Paris: Veuve Desaint.

Cyclic coordinates and conservation. If L does not depend on qi, the equation reduces to d/dt(∂L/∂q̇i) = 0, so the generalised momentum pi is conserved. If L has no explicit time dependence, the energy function h = Σq̇i∂L/∂q̇i − L is conserved (Beltrami identity); it becomes the Hamiltonian (see Hamiltonian Mechanics).

Geodesics. Applied to the length of a curve in curved space, the equations give geodesics; in general relativity free particles follow spacetime geodesics, derived this way from the metric (see Schwarzschild Metric).

Fields. For a field φ(x, t) with Lagrangian density ℒ, the equations become ∂μ(∂ℒ/∂(∂μφ)) − ∂ℒ/∂φ = 0, producing wave equations, Maxwell's equations and the equations of the Standard Model (see Maxwell's Equations).

Sources

  • Euler, L. (1744). Methodus inveniendi lineas curvas. Lausanne.
  • Lagrange, J.-L. (1788). Mécanique analytique. Paris: Veuve Desaint.
  • Goldstein, H., Poole, C., Safko, J. (2002). Classical Mechanics (3rd ed.). Addison Wesley.
Last verified: October 2026 · Source: Euler (1744); Lagrange (1788); Goldstein et al. (2002) · Confidence: high