Covariant Euler-Lagrange Equations for Fields
The density is designed; now comes the crank. Given , one mechanical procedure — vary the action, integrate by parts, set the coefficient of the arbitrary variation to zero — produces the field equations of any theory whatsoever. The continuum-mechanics chapter ran that procedure for a single field in one dimension and got the wave equation; the same machinery in covariant four-dimensional dress is the production line of fundamental physics, and this article operates it at full generality: many fields at once, complex fields, vector fields — one crank, every equation. The covariant packaging is where the payoff hides. Writing the Euler-Lagrange equation as does more than save ink: it makes manifest that the equation of motion transforms properly under Lorentz transformations whenever is a scalar — the guarantee, purchased in the previous article, that the physics is observer-independent. It also generalizes without friction. A multiplet of fields yields one equation per component, because independent fields suffer independent variations. A complex field, treated as two real ones in efficient notation, yields the Klein-Gordon equation and — directly from the equations of motion — a conserved current, the classical ancestor of electric charge. And a four-vector field with the Maxwell density yields, in three lines, the inhomogeneous Maxwell equations: the crown demonstration that the nineteenth century's crowning theory is one crank of the same handle. Two supporting skills come with the machinery: the discipline of treating and as independent slots of when differentiating (the step every beginner fumbles once), and the index bookkeeping of differentiating quadratic forms like with respect to a derivative that appears in several contractions. Both are drilled here on worked examples with numbers, because the crank is only trustworthy in hands that have turned it.
- For each field component , stationarity of gives one covariant Euler-Lagrange equation: .
- Multiple fields = multiple independent variations = one equation per component; internal indices ride along untouched by .
- In the derivative rules, and are independent slots of the function — differentiate one while freezing the other.
- Real scalar with : the crank gives — Klein-Gordon for quadratic , nonlinear wave equations (sine-Gordon, ) beyond.
- Complex scalar: vary and independently; two Klein-Gordon equations plus, directly from them, a conserved current , — charge before quantization.
- Vector field: the Maxwell density yields — Maxwell's equations as one turn of the same crank, with current conservation forced by the antisymmetry of .
- The covariant form guarantees: scalar ⟹ field equations that transform covariantly — relativity is inherited, not re-checked.
- Key idea: one variational crank — differentiate by each field and by its spacetime gradient, take the four-divergence of the latter, equate — produces the field equations of every classical theory, from the wave equation to Maxwell's.
Stationary action for a local density yields one covariant Euler-Lagrange equation per field component, — the single crank that generates Klein-Gordon, sine-Gordon, Maxwell, and every other classical field equation.
Where this lives today
The covariant crank is the daily instrument of theoretical physics — literally automated: computer-algebra packages (xAct, FieldsX, and the lattice-QFT toolchains) apply equation (2) to Lagrangians with dozens of fields, and gravitational-wave source modelling begins by cranking post-Newtonian actions too long to print. Numerical relativity and lattice field theory run the discrete crank: both communities vary the discretized action rather than discretizing the field equations, because the variational route preserves conservation laws exactly on the grid (symplectic/variational integrators — the same reason the standard map was such a faithful laboratory). The complex-scalar current of Derivation B is working technology in superfluidity and Bose-Einstein condensates, where is the measured particle current of the condensate wavefunction (Gross-Pitaevskii theory is the crank applied to a density); Josephson-junction arrays implement the sine-Gordon kink of the worked example as trapped flux quanta racing along transmission lines. And the "consistency forces conservation" lesson of the Maxwell derivation — the action refusing non-conserved sources — has become a general design principle: modern effective theories of everything from pions to phonons are built by writing all crank-compatible couplings, with the automatically enforced Ward-type identities doing real phenomenological work. Within the chapter: the crank consumed the density (previous article) and produced the equations; the functional-derivative article restates the whole operation as a single gradient in function space, — the notation the Hamiltonian formulation and the quantum capstone both speak.
The physical picture
Picture the action as a landscape over an unimaginably large space — one axis per field value per point of spacetime, the function space of the discrete-to-fields article — and the physical history as a stationary point of that landscape. The Euler-Lagrange equation is nothing but the statement "every partial derivative vanishes there," written economically. For a particle, "every axis" meant each coordinate at each time, and stationarity gave one ODE per coordinate. For a field, an axis is the field value at one spacetime point, and stationarity gives one condition per point: a PDE, the same law stamped everywhere. The crank's integration-by-parts step is precisely the bookkeeping that converts "derivative of along the -axis" into a local expression at — the next article makes that conversion into a calculus of its own (the functional derivative); here we operate it in the classic variational form. The mechanical content of the equation deserves one honest paragraph before the formalism, because it is the beads again. is the momentum of the point-oscillator at ; is the tension the neighbour-springs exert; is the force from the local well. The Euler-Lagrange equation says: the rate of change of the point's momentum equals the net spring force from its neighbours (the divergence term) plus the well force — Newton's second law per point of space, with the four-divergence packaging time and space bookkeeping into one symbol. Every exotic field equation this machinery will ever produce is that sentence with different well shapes and different tensor decorations.
The covariant notation earns its keep in three ways visible in the figure. Generality: nothing in the crank cares what index decorations carries — scalar, several scalars, complex pairs, four-vectors are all "components," and each gets its own equation. Inheritance: because the crank's output is built from acting on derivatives of a scalar , the output transforms correctly by construction — you will never derive a frame-dependent field equation from a scalar density, which is why theory papers state and rarely bother printing the equations of motion at all. Diagnostics: the object that the crank differentiates is itself physical — its time component is the canonical momentum density the Hamiltonian article will build on, and its role inside Noether's machinery makes it the carrier of every conservation law. Learn to compute quickly and half of classical field theory becomes finger exercise.
The crank, stated and operated
For a collection of fields , (the index may enumerate genuinely different fields or the components of one geometric object), the action and its stationarity condition read:
where: the variations are independent functions — nothing ties a wiggle of to a wiggle of — and this independence is what will produce one equation per component. The output of the crank, derived below, is the covariant Euler-Lagrange system:
where: — a four-vector per component (its slot is the canonical momentum density ); the repeated is summed. Read it as promised: four-divergence of the momentum-flux vector balances the local well force. For the rod's density this is the wave equation; for the Klein-Gordon density it is — both derived where those densities live (the continuum-mechanics field articles); the derivations below run the crank where it has not yet been run: multiplets, complex fields, vectors.
We derive equation (2) for fields at once, with two purposes beyond the result: to make explicit where the independence of the component variations enters (producing separate equations rather than one mixed one), and to justify the working rule that trips every newcomer — inside and , the field and its gradient are treated as unrelated variables even though, along any actual history, one determines the other. The variation is the standard Hamilton-principle computation; watch the two bookkeeping moves.
Step 1. Vary the action with the chain rule of the function — a function of ordinary slots (each , each ), into which field configurations are inserted:
Why the slots are independent: is a rule assigning a number to any values of its arguments — the physical relation "gradient of the field" is a property of the configurations we insert, not of the rule. Differentiating the rule slot-by-slot is ordinary multivariable calculus; the dynamics that links the slots is exactly what stationarity is about to impose.
Step 2. Commute variation and derivative: — both compare neighbouring histories at fixed , so they commute. Then integrate the second term by parts in each :
Step 3. The total-divergence piece integrates to the boundary (divergence theorem) where every : it dies. What remains:
Step 4. Localize twice. The are arbitrary independent functions: choosing nonzero only in a tiny ball around a chosen point, and zero for all , forces the bracket for that to vanish at that point — and the point and component were arbitrary. Hence the equations (2), one per component, each holding everywhere. Why independence was load-bearing: were the components constrained (say , a field living on a circle), the variations would not be free, only the tangential combination of brackets would vanish, and the equations would change — constrained field theories (sigma models, gauge-fixed theories) require exactly this care. *Verified: the computation reproduces Goldstein §13.2's single-field result at and matches the multi-field statement of Landau–Lifshitz Vol. 2 §32-context; localization argument is the fundamental lemma of the calculus of variations, as in the M4 calculus-of-variations article.*
The first new physics the multiplet machinery unlocks is a two-component field packaged as one complex one — and with it, the classical origin of charge:
Go deeper · Derivation B · 2 minThe complex scalar — two equations and a conserved current
We run the crank on the complex Klein-Gordon density, treating and its conjugate as the two independent components of the multiplet, and then extract — using nothing but the resulting equations of motion — a four-current with vanishing divergence. The current is the article's first conservation law, obtained before Noether's theorem systematizes such results; seeing it fall out of the field equations directly shows what the later theorem will organize. The trick of varying as if it knew nothing of is also a skill in itself: it is how every complex-field computation in physics is actually done.
Step 1. The density — the design-kit result for a complex field with the phase symmetry imposed (only -type invariants survive):
Why may serve as the independent pair: they are invertible linear combinations of the real components (), and a change of basis in the multiplet neither creates nor destroys equations. Varying or gives equivalent systems; the complex basis simply diagonalizes the bookkeeping.
Step 2. Crank with respect to (freeze ): and . Equation (2) delivers
and the -variation gives the conjugate equation : two Klein-Gordon equations, as the two real components demand.
Step 3. Build the current suggested by the phase symmetry and test it with the equations of motion:
The gradient cross-terms cancel identically; inserting and its conjugate, the remainder is :
where: — a density whose spatial integral is constant in time (integrate (3) over space; the flux term vanishes for localized fields): a conserved "charge," existing entirely within classical field theory. A real field has — no phase to rotate, no charge to carry — the classical shadow of why quantized real scalars describe neutral particles and complex ones charged pairs.
Step 4. Name the pattern for the road ahead: a continuous symmetry of (here the phase rotation) has produced a conserved current via the equations of motion. Noether's theorem — the next-door article in this chapter — proves this correspondence in complete generality; the stress-energy tensor of the continuum-mechanics chapter (from translations) and this current (from phase rotations) are its two flagship instances, both now seen from the ground. Verified: density, equations, and current are the standard complex-scalar results (any field-theory text; Goldstein §13.5-context); the cancellation in Step 3 is checked term by term above.
And the crown demonstration — the equation set that created field theory, regenerated by the crank in three moves:
Go deeper · Derivation C · 1 minMaxwell's equations from the field action
We apply the crank to the electromagnetic density, with the four-potential's components as the multiplet. The computation is the machinery's stress test: the field appears only through the antisymmetric combination , so differentiating with respect to a particular requires honest index bookkeeping — the skill this derivation drills. The output is the inhomogeneous Maxwell equations, with charge conservation forced as a consistency condition. (The physics of these equations is the electromagnetism track's territory; here they are the machinery's showpiece.)
Step 1. The density (design kit: gauge-and-Lorentz-invariant, two derivatives, plus a source coupling):
Step 2. The well term: (only the source term contains bare ).
Step 3. The momentum term — the bookkeeping move. Write with all indices explicit and differentiate with respect to the slot , remembering contains each twice (once per antisymmetric position):
Why the factors conspire: the product rule doubles (two 's), the antisymmetric delta-pair doubles again (), and . This "quadratic form with antisymmetry" pattern recurs throughout field theory; internalize the answer .
Step 4. Assemble equation (2) for each component :
where: the component is Gauss's law and the spatial components are Ampère–Maxwell — the inhomogeneous half of Maxwell's equations (the homogeneous half, , is an identity of the definition , true before any dynamics). Consistency bonus: applying to (4), the left side vanishes identically ( symmetric against antisymmetric), forcing — the action refuses to couple the field to a non-conserved current. Charge conservation is not an extra law but a solvency condition of the variational problem. Verified: computation per Landau–Lifshitz Vol. 2 §30; the delta-pair derivative and factor bookkeeping checked explicitly above; identification of components with Gauss/Ampère per the electromagnetism track's conventions.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| one real field, | Klein-Gordon; rod's wave equation at | |
| general | nonlinear wave equations — sine-Gordon, kinks | |
| static, one dimension | Newton's law in disguise (): soliton profiles | |
| complex field | two KG equations + conserved | phase symmetry ⟹ classical charge |
| vector field, | Maxwell; consistency forces | |
| with no -dependence | cyclic field ⟹ conserved current — mechanics' cyclic-coordinate rule, fieldified | |
| higher derivatives in | extra EL terms | possible but perilous (Ostrogradsky instability — see FAQ) |
Worked examples
1 · A sourced field and its Yukawa answer (confidence builder)
Run the crank on with a static point source . Solve the static equation and evaluate the range suppression at one and three range-lengths for the nuclear case .
Step 1. Crank: ; . Equation (2): . Static limit (): .
Step 2. Solve for the point source (spherical symmetry; the case must return Coulomb): — check by direct substitution: ✓. The Yukawa potential: Coulomb dressed with an exponential clock set by the mass term.
Step 3. Nuclear numbers. With MeV, the range is fm — Yukawa's 1935 inference, run backwards: the observed ~fm range of the nuclear force predicted a ~140 MeV/c² mediator, found (the pion) in 1947. Suppression relative to Coulomb: at fm, ; at fm, — a factor twenty inside two additional fm: mass in is short range in the world, quantitatively.
2 · The complex field's current, measured on a plane wave (exam level)
A complex Klein-Gordon field with carries with , (natural units). Compute , , verify the transport speed, and check conservation explicitly.
Step 1. Dispersion first (the wave must solve its own equation): .
Step 2. Current components from Derivation B: , so . Similarly .
Step 3. Transport speed: — exactly the group velocity of the previous article: the conserved charge flows at the speed energy flows, as it must for a single mode.
Step 4. Conservation check: — both components are constants for a single plane wave (uniform in space and time), so (3) holds trivially here; for a superposition of two modes the cross-terms oscillate and the check becomes nontrivial — carrying it out (insert and use each mode's dispersion) is a recommended five-line exercise in exactly the Step-3 cancellations of Derivation B.
3 · A nonlinear crank: the sine-Gordon kink (applied)
Run the crank on and exhibit a static solution.
Step 1. , so the crank gives the sine-Gordon equation — the pendulum chain's field equation (each point's well is the pendulum's ; the discrete-to-fields dictionary applied to coupled pendulums).
Step 2. Static, one dimension: — formally Newton's law for a "particle" at position , time , in the inverted potential . The trajectory rolling from one hilltop of to the next is the kink: , interpolating between adjacent vacua and over a width .
Step 3. Why it matters here: the kink is a localized, finite-energy, non-dispersing solution — a "particle" made of pure field, held together by the nonlinearity the crank handled without complaint. Solitons of exactly this equation propagate in Josephson junction arrays and coupled-pendulum chains; the machinery of this article covers them as effortlessly as free waves — the crank does not care that the answer is exotic.
Origins · 1 minLeonhard Euler and how this was discovered
The equation on this page carries Euler's name because he built the calculus it runs on. Working in the 1740s on the brachistochrone's descendants — curves extremizing integrals — Euler derived the stationarity condition by polygonal approximation, essentially the discrete-to-continuum limit of this chapter run inside the variational calculus itself; the young Lagrange then wrote to him (1755, aged nineteen) with the clean analytic method of variations , which Euler, with characteristic generosity, adopted, named ("calculus of variations"), and championed. Euler's productivity remains without parallel in mathematics — his collected works pass eighty volumes, produced through blindness in his last seventeen years ("fewer distractions," he reportedly said), with the aid of a prodigious memory and long-suffering assistants. To this article's machinery he contributed more than the ODE prototype: his work on elastic beams and membranes (with Daniel Bernoulli) applied variational reasoning to continuous media a century and a half before "field theory" was a phrase, deriving the elastica's equation from an energy functional — the first genuine field Euler-Lagrange computation in history. That the same condition, dressed in four-dimensional indices, today generates the Standard Model's equations is the kind of posthumous compounding of interest Euler's estate uniquely enjoys.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §13.2, 13.4–13.5 (field Euler-Lagrange equations, several fields) · Landau & Lifshitz, The Classical Theory of Fields (Vol. 2), §27–30, §32 (field action, Maxwell equations from the action) · José & Saletan, Classical Dynamics, ch. 9 · Yukawa, 'On the interaction of elementary particles' (1935), for the massive-field range argument
Provenance. The covariant Euler-Lagrange derivation follows Goldstein §13.2 extended to multiplets (independence and localization per the fundamental lemma, as in the calculus-of-variations article of the Lagrangian chapter); the complex-scalar current and its conservation are standard (checked term-by-term in Derivation B); the Maxwell derivation with the delta-pair bookkeeping follows Landau–Lifshitz Vol. 2 §30, including the forced conservation from antisymmetry. A verifier should: (1) recompute with explicit index bookkeeping; (2) verify the Yukawa solution against ; (3) recompute the worked-example numbers ( fm; , ; plane-wave current , , ratio ); (4) confirm the sine-Gordon kink solves . Scope note: the single-field variation and the stress-energy tensor are derived in the continuum-mechanics chapter's field articles; this article owns the multiplet, complex, and vector cases.
Builds on: From Discrete Systems to Continuous Fields · The Lagrangian Density and Field Action · Functional Derivatives and Field Variations · Calculus of Variations Leads to: Hamiltonian Formulation for Fields · Noether's Theorem for Continuous Symmetries · The Canonical Stress-Energy Tensor · Lorentz Covariance of Field Theory
Why does the equation for each field involve only a first-order derivative OF the momentum π^μ, when the field equations are second order?
Count the derivative layers. The canonical object is built from first derivatives of the field (for standard kinetic terms, — linear in the gradient), and the crank applies one more derivative to it: . Total: second order in the field, first order in the momentum — exactly the split Hamilton's equations will make explicit for fields ( from one equation, from the other, each first order). This layered structure is worth keeping visible because it localizes physical meaning: itself is the momentum-and-flux bookkeeping of the field (its time component is the density conjugate to ; its space components are the stress the neighbour-springs transmit), and the field equation just says this four-flux's divergence is balanced by the well force. The same layering is why boundary conditions in field problems come in the flavors they do — fixing on a boundary (Dirichlet) versus fixing the normal component of (Neumann, "free ends") are the two natural ways to terminate the integration-by-parts step, precisely as for the string's clamped versus free ends.
What happens if I put higher derivatives into the density — the crank looks like it would still work?
It does still work — the variation just integrates by parts twice, producing the extended equation — and the result is generically a disaster, for a reason worth knowing by name: the Ostrogradsky instability (1850!). A non-degenerate higher-derivative Lagrangian has an extra pair of canonical variables (the equation is fourth order, needing four initial data per point), and Ostrogradsky's construction shows the associated Hamiltonian is linear in one momentum — unbounded below, the ghost disease of the previous article's stability audit in its most virulent form. This single classical theorem does enormous modern work: it is the principled reason fundamental Lagrangians stop at first derivatives (second-order equations), the constraint that shapes viable modified-gravity theories (which must be cleverly degenerate — Horndeski-type constructions — to evade Ostrogradsky), and the reason higher-derivative terms in effective theories are treated only perturbatively, never as exact dynamics. The safe exceptions: total-derivative terms, and degenerate cases where the higher-derivative structure is fake (removable by field redefinition or integration by parts).
The complex field's conserved charge exists classically — but what IS it physically, before quantization?
Classically, is a real, exactly conserved functional of the field configuration with a transparent mechanical meaning: write (amplitude and phase as two real fields) and the current becomes — the charge density is (amplitude)² times the phase's rotation rate, and charge flows where phase gradients push it. So classically measures the net "phase circulation" the field carries: a complex field whose phase winds forward in time everywhere has positive charge; the conjugate configuration has negative; a real field (frozen phase) has none. This is not an analogy but the working physics of laboratory systems: in a superfluid or BEC described by the condensate field, is the particle density, the superfluid velocity, and this exact current is what flows through capillaries without friction; in nonlinear optics, the same is the classical photon-number-like invariant of an envelope field. Quantization then does one thing: it makes 's spectrum discrete (integers counting particles minus antiparticles) and ties it, via gauging, to electric charge. The conservation itself — the hard content — was already classical, sitting in Derivation B.
How does the crank interact with gauge freedom in the Maxwell derivation — A is not even unique?
Three facts coexist peacefully once ordered. First, the crank never asked for uniqueness of : it delivered , an equation for the gauge-invariant , and any two potentials differing by solve it together — the equation simply does not determine completely, which is consistency, not contradiction. Second, the flip side: as a PDE system for the equations are degenerate (the time component contains no — Gauss's law is a constraint, not an evolution equation), which is the canonical formalism's headache and the reason gauge theories need the constraint machinery hinted at in the Hamiltonian article. Third, the degeneracy is not a defect but the fingerprint of the symmetry: gauge invariance of guarantees, via Noether's second theorem, identities among the equations of motion (here ) — the same identity that forced current conservation. Practical protocol, in the order professionals apply it: crank the gauge-invariant action; read off constraints and identities; only then, if solving explicitly, spend the gauge freedom on a convenient condition (Lorenz gauge turns (4) into four clean wave equations ). Fixing the gauge inside the Lagrangian before cranking is exactly the ansatz-before-variation trap of the pitfall box unless done with the proper (Faddeev-Popov-style, or classical Lagrange-multiplier) care.
The derivation just discarded the boundary term — so where do real boundary conditions come from?
From the same term, read instead of discarded. Hamilton's principle chose to compare histories with fixed boundary data, which kills the surface integral by fiat — appropriate for fundamental theories on infinite spacetime where fields die at infinity. But in a finite region the boundary term is a menu of physically distinct problems: demanding it vanish can be arranged EITHER by fixing on the boundary ( there — Dirichlet: the clamped string, a conductor's fixed potential) OR by letting float and demanding the conjugate flux vanish, (Neumann — the free-ended string, where the variational principle itself derives the boundary condition rather than assuming it: "natural boundary conditions"). Mixed and more exotic choices (Robin conditions, boundary terms added to itself) fill out the menu, and the addition of explicit boundary actions is genuine physics — surface tension in fluids, the Gibbons–Hawking term in gravity, boundary degrees of freedom in condensed-matter systems all live there. The professional habit: when a variational problem is posed on a region with edges, do not throw the surface term away — itemize what must vanish, and recognize each option as a different physical system sharing one bulk equation.
Is there a shortcut for checking my cranked equation is right?
Four checks, in increasing strength, that catch essentially all crank errors. (1) Dimensions: every term of the equation must share the dimension of (energy² × field, in natural units); a term off by a power of mass signals a lost factor. (2) The free limit: set couplings and sources to zero — the equation must collapse to the free wave/KG equation for each component; leftover interaction debris means a slot was contaminated (the independence trap). (3) Known solutions: insert a plane wave with the free dispersion, or the static Coulomb/Yukawa profile for sourced cases — thirty seconds of algebra that instantly catches sign errors in or in the metric signature. (4) Conservation audit: the strongest check — compute the divergence of the currents your symmetries promise (energy-momentum for translations, for phase symmetry, the source-consistency identity for gauge fields) using your equation; failure to conserve pinpoints not just the presence but usually the location of the error, since each symmetry tests a specific subset of terms. Professionals run (1) and (2) reflexively while writing and (4) before trusting anything downstream; the habit is cheaper than any debugging session it prevents.