Covariant Euler-Lagrange Equations for Fields

The density is designed; now comes the crank. Given L\mathcal{L}, 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 ∂μ(∂L/∂(∂μϕ))=∂L/∂ϕ\partial_\mu\big(\partial\mathcal{L}/\partial(\partial_\mu\phi)\big) = \partial\mathcal{L}/\partial\phi does more than save ink: it makes manifest that the equation of motion transforms properly under Lorentz transformations whenever L\mathcal{L} 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 −14FμνFμν-\tfrac14 F_{\mu\nu}F^{\mu\nu} 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 ϕ\phi and ∂μϕ\partial_\mu\phi as independent slots of L\mathcal{L} when differentiating (the step every beginner fumbles once), and the index bookkeeping of differentiating quadratic forms like FμνFμνF_{\mu\nu}F^{\mu\nu} 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.

Key takeaways
  • For each field component ϕa\phi_a, stationarity of S=∫L d4xS = \int\mathcal{L}\,\mathrm{d}^4x gives one covariant Euler-Lagrange equation: ∂μ ⁣(∂L∂(∂μϕa))−∂L∂ϕa=0\partial_\mu\!\left(\frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\right) - \frac{\partial\mathcal{L}}{\partial\phi_a} = 0.
  • Multiple fields = multiple independent variations = one equation per component; internal indices ride along untouched by ∂μ\partial_\mu.
  • In the derivative rules, ϕ\phi and ∂μϕ\partial_\mu\phi are independent slots of the function L\mathcal{L} — differentiate one while freezing the other.
  • Real scalar with V(ϕ)V(\phi): the crank gives □ϕ+V′(ϕ)=0\Box\phi + V'(\phi) = 0 — Klein-Gordon for quadratic VV, nonlinear wave equations (sine-Gordon, ϕ4\phi^4) beyond.
  • Complex scalar: vary ϕ\phi and ϕ∗\phi^* independently; two Klein-Gordon equations plus, directly from them, a conserved current jμ=i(ϕ∗∂μϕ−ϕ ∂μϕ∗)j^\mu = i(\phi^*\partial^\mu\phi - \phi\,\partial^\mu\phi^*), ∂μjμ=0\partial_\mu j^\mu = 0 — charge before quantization.
  • Vector field: the Maxwell density −14FμνFμν−jμAμ-\tfrac14 F_{\mu\nu}F^{\mu\nu} - j^\mu A_\mu yields ∂μFμν=jν\partial_\mu F^{\mu\nu} = j^\nu — Maxwell's equations as one turn of the same crank, with current conservation forced by the antisymmetry of FF.
  • The covariant form guarantees: scalar L\mathcal{L} ⟹ field equations that transform covariantly — relativity is inherited, not re-checked.
  • Key idea: one variational crank — differentiate L\mathcal{L} 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.
The core insight

Stationary action for a local density L(ϕa,∂μϕa)\mathcal{L}(\phi_a, \partial_\mu\phi_a) yields one covariant Euler-Lagrange equation per field component, ∂μ(∂L/∂(∂μϕa))=∂L/∂ϕa\partial_\mu\big(\partial\mathcal{L}/\partial(\partial_\mu\phi_a)\big) = \partial\mathcal{L}/\partial\phi_a — 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 jμj^\mu is the measured particle current of the condensate wavefunction (Gross-Pitaevskii theory is the crank applied to a ∣ϕ∣4|\phi|^4 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, δS/δϕ=0\delta S/\delta\phi = 0 — 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 SS along the ϕ(x)\phi(x)-axis" into a local expression at xx — 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. ∂L/∂ϕ˙\partial\mathcal{L}/\partial\dot\phi is the momentum of the point-oscillator at xx; ∂L/∂(∇ϕ)\partial\mathcal{L}/\partial(\nabla\phi) is the tension the neighbour-springs exert; ∂L/∂ϕ\partial\mathcal{L}/\partial\phi 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.

Figure
The covariant crank as a production line — one density in, one field equation per component out
one crank, one equation per component ℒ(φ_a, ∂φ_a) — one scalar density real scalar φ πᵘ = ∂ᵘφ □φ + V′(φ) = 0 Klein-Gordon / sine-Gordon complex pair φ, φ* vary each independently □φ + m²φ = 0 ×2 + conserved current jᵘ vector A_ν πᵘν = −Fᵘν ∂_μ Fᵘν = jν Maxwell — ∂·j forced the crank: ∂_μ ( ∂ℒ/∂(∂_μφ_a) ) = ∂ℒ/∂φ_a — for every component a scalar ℒ in ⟹ covariant equations out; symmetries in ⟹ conserved currents out the same variational machinery, fed three different multiplets: the free scalar's wave, the complex field's charge, and Maxwell's equations are one procedure differing only in the index decorations of φ_a

The covariant notation earns its keep in three ways visible in the figure. Generality: nothing in the crank cares what index decorations ϕa\phi_a 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 ∂μ\partial_\mu acting on derivatives of a scalar L\mathcal{L}, 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 L\mathcal{L} and rarely bother printing the equations of motion at all. Diagnostics: the object πaμ≡∂L/∂(∂μϕa)\pi^\mu_a \equiv \partial\mathcal{L}/\partial(\partial_\mu\phi_a) 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 πaμ\pi^\mu_a quickly and half of classical field theory becomes finger exercise.

The crank, stated and operated

For a collection of fields ϕa(x)\phi_a(x), a=1,…,Na = 1, \dots, N (the index may enumerate genuinely different fields or the components of one geometric object), the action and its stationarity condition read:

S[ϕ]=∫ΩL(ϕa, ∂μϕa) d4x,δS=0  for all δϕa vanishing on ∂Ω(1)S[\phi] = \int_\Omega \mathcal{L}\big(\phi_a,\, \partial_\mu\phi_a\big)\,\mathrm{d}^4x, \qquad \delta S = 0 \ \ \text{for all } \delta\phi_a \text{ vanishing on } \partial\Omega \qquad (1)

where: the variations δϕa(x)\delta\phi_a(x) are independent functions — nothing ties a wiggle of ϕ1\phi_1 to a wiggle of ϕ2\phi_2 — and this independence is what will produce one equation per component. The output of the crank, derived below, is the covariant Euler-Lagrange system:

∂μ ⁣(∂L∂(∂μϕa))−∂L∂ϕa=0,a=1,…,N(2)\partial_\mu\!\left(\frac{\partial \mathcal{L}}{\partial(\partial_\mu\phi_a)}\right) - \frac{\partial \mathcal{L}}{\partial \phi_a} = 0, \qquad a = 1, \dots, N \qquad (2)

where: ∂L/∂(∂μϕa)≡πaμ\partial\mathcal{L}/\partial(\partial_\mu\phi_a) \equiv \pi^\mu_a — a four-vector per component (its μ=0\mu = 0 slot is the canonical momentum density πa=∂L/∂ϕ˙a\pi_a = \partial\mathcal{L}/\partial\dot\phi_a); the repeated μ\mu 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 □ϕ+m2ϕ=0\Box\phi + m^2\phi = 0 — 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.

Derivation AThe covariant crank for a multiplet — and why the slots are independent

We derive equation (2) for NN fields at once, with two purposes beyond the result: to make explicit where the independence of the component variations enters (producing NN separate equations rather than one mixed one), and to justify the working rule that trips every newcomer — inside ∂L/∂ϕ\partial\mathcal{L}/\partial\phi and ∂L/∂(∂μϕ)\partial\mathcal{L}/\partial(\partial_\mu\phi), 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 L\mathcal{L} — a function of 5N5N ordinary slots (each ϕa\phi_a, each ∂μϕa\partial_\mu\phi_a), into which field configurations are inserted:

δS=∫Ω∑a[∂L∂ϕa δϕa+∂L∂(∂μϕa) δ(∂μϕa)]d4x\delta S = \int_\Omega \sum_a \left[ \frac{\partial\mathcal{L}}{\partial\phi_a}\,\delta\phi_a + \frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\,\delta(\partial_\mu\phi_a) \right] \mathrm{d}^4x

Why the slots are independent: L\mathcal{L} 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: δ(∂μϕa)=∂μ(δϕa)\delta(\partial_\mu\phi_a) = \partial_\mu(\delta\phi_a) — both compare neighbouring histories at fixed xx, so they commute. Then integrate the second term by parts in each xμx^\mu:

∂L∂(∂μϕa) ∂μ(δϕa)=∂μ ⁣(∂L∂(∂μϕa) δϕa)−∂μ ⁣(∂L∂(∂μϕa))δϕa\frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\,\partial_\mu(\delta\phi_a) = \partial_\mu\!\left(\frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\,\delta\phi_a\right) - \partial_\mu\!\left(\frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\right)\delta\phi_a

Step 3. The total-divergence piece integrates to the boundary ∂Ω\partial\Omega (divergence theorem) where every δϕa=0\delta\phi_a = 0: it dies. What remains:

δS=∫Ω∑a[∂L∂ϕa−∂μ ⁣(∂L∂(∂μϕa))]δϕa  d4x\delta S = \int_\Omega \sum_a \left[ \frac{\partial\mathcal{L}}{\partial\phi_a} - \partial_\mu\!\left(\frac{\partial\mathcal{L}}{\partial(\partial_\mu\phi_a)}\right) \right] \delta\phi_a\;\mathrm{d}^4x

Step 4. Localize twice. The δϕa(x)\delta\phi_a(x) are arbitrary independent functions: choosing δϕb\delta\phi_b nonzero only in a tiny ball around a chosen point, and zero for all a≠ba \neq b, forces the bracket for that bb to vanish at that point — and the point and component were arbitrary. Hence the NN equations (2), one per component, each holding everywhere. Why independence was load-bearing: were the components constrained (say ϕ12+ϕ22=1\phi_1^2 + \phi_2^2 = 1, 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 N=1N = 1 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
Derivation BThe complex scalar — two equations and a conserved current

We run the crank on the complex Klein-Gordon density, treating ϕ\phi and its conjugate ϕ∗\phi^* 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 ϕ∗\phi^* as if it knew nothing of ϕ\phi 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 ϕ→eiαϕ\phi \to e^{i\alpha}\phi imposed (only ∣ϕ∣2|\phi|^2-type invariants survive):

L=∂μϕ∗ ∂μϕ−m2 ϕ∗ϕ\mathcal{L} = \partial_\mu\phi^*\,\partial^\mu\phi - m^2\,\phi^*\phi

Why ϕ,ϕ∗\phi, \phi^* may serve as the independent pair: they are invertible linear combinations of the real components ϕ1,2\phi_{1,2} (ϕ=(ϕ1+iϕ2)/2\phi = (\phi_1 + i\phi_2)/\sqrt2), and a change of basis in the multiplet neither creates nor destroys equations. Varying (ϕ1,ϕ2)(\phi_1, \phi_2) or (ϕ,ϕ∗)(\phi, \phi^*) gives equivalent systems; the complex basis simply diagonalizes the bookkeeping.

Step 2. Crank with respect to ϕ∗\phi^* (freeze ϕ\phi): ∂L/∂ϕ∗=−m2ϕ\partial\mathcal{L}/\partial\phi^* = -m^2\phi and ∂L/∂(∂μϕ∗)=∂μϕ\partial\mathcal{L}/\partial(\partial_\mu\phi^*) = \partial^\mu\phi. Equation (2) delivers

□ϕ+m2ϕ=0\Box\phi + m^2\phi = 0

and the ϕ\phi-variation gives the conjugate equation □ϕ∗+m2ϕ∗=0\Box\phi^* + m^2\phi^* = 0: 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:

jμ=i(ϕ∗ ∂μϕ−ϕ ∂μϕ∗)j^\mu = i\big(\phi^*\,\partial^\mu\phi - \phi\,\partial^\mu\phi^*\big)
∂μjμ=i(∂μϕ∗ ∂μϕ+ϕ∗□ϕ−∂μϕ ∂μϕ∗−ϕ □ϕ∗)=i(ϕ∗□ϕ−ϕ □ϕ∗)\partial_\mu j^\mu = i\big(\partial_\mu\phi^*\,\partial^\mu\phi + \phi^*\Box\phi - \partial_\mu\phi\,\partial^\mu\phi^* - \phi\,\Box\phi^*\big) = i\big(\phi^*\Box\phi - \phi\,\Box\phi^*\big)

The gradient cross-terms cancel identically; inserting □ϕ=−m2ϕ\Box\phi = -m^2\phi and its conjugate, the remainder is i(−m2ϕ∗ϕ+m2ϕϕ∗)=0i(-m^2\phi^*\phi + m^2\phi\phi^*) = 0:

∂μjμ=0(3)\partial_\mu j^\mu = 0 \qquad (3)

where: j0=i(ϕ∗ϕ˙−ϕϕ˙∗)j^0 = i(\phi^*\dot\phi - \phi\dot\phi^*) — 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 jμ≡0j^\mu \equiv 0 — 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 L\mathcal{L} (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
Derivation CMaxwell's equations from the field action

We apply the crank to the electromagnetic density, with the four-potential's components AνA_\nu as the multiplet. The computation is the machinery's stress test: the field appears only through the antisymmetric combination Fμν=∂μAν−∂νAμF_{\mu\nu} = \partial_\mu A_\nu - \partial_\nu A_\mu, so differentiating with respect to a particular ∂μAν\partial_\mu A_\nu 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):

L=−14FμνFμν−jμAμ,Fμν=∂μAν−∂νAμ\mathcal{L} = -\tfrac{1}{4}F_{\mu\nu}F^{\mu\nu} - j^\mu A_\mu, \qquad F_{\mu\nu} = \partial_\mu A_\nu - \partial_\nu A_\mu

Step 2. The well term: ∂L/∂Aν=−jν\partial\mathcal{L}/\partial A_\nu = -j^\nu (only the source term contains bare AA).

Step 3. The momentum term — the bookkeeping move. Write −14FαβFαβ-\tfrac14 F_{\alpha\beta}F^{\alpha\beta} with all indices explicit and differentiate with respect to the slot ∂μAν\partial_\mu A_\nu, remembering FF contains each ∂A\partial A twice (once per antisymmetric position):

∂Fαβ∂(∂μAν)=δαμδβν−δβμδαν⟹∂L∂(∂μAν)=−14⋅2 Fαβ (δαμδβν−δβμδαν)=−Fμν\frac{\partial F_{\alpha\beta}}{\partial(\partial_\mu A_\nu)} = \delta^\mu_\alpha \delta^\nu_\beta - \delta^\mu_\beta \delta^\nu_\alpha \quad\Longrightarrow\quad \frac{\partial\mathcal{L}}{\partial(\partial_\mu A_\nu)} = -\tfrac{1}{4}\cdot 2\,F^{\alpha\beta}\,(\delta^\mu_\alpha\delta^\nu_\beta - \delta^\mu_\beta\delta^\nu_\alpha) = -F^{\mu\nu}

Why the factors conspire: the product rule doubles (two FF's), the antisymmetric delta-pair doubles again (Fμν−Fνμ=2FμνF^{\mu\nu} - F^{\nu\mu} = 2F^{\mu\nu}), and 2×2×14=12 \times 2 \times \tfrac14 = 1. This "quadratic form with antisymmetry" pattern recurs throughout field theory; internalize the answer ∂(−14F2)/∂(∂μAν)=−Fμν\partial(-\tfrac14 F^2)/\partial(\partial_\mu A_\nu) = -F^{\mu\nu}.

Step 4. Assemble equation (2) for each component AνA_\nu:

∂μFμν=jν(4)\partial_\mu F^{\mu\nu} = j^\nu \qquad (4)

where: the ν=0\nu = 0 component is Gauss's law ∇ ⁣⋅ ⁣E=ρ\nabla\!\cdot\!\mathbf{E} = \rho and the spatial components are Ampère–Maxwell — the inhomogeneous half of Maxwell's equations (the homogeneous half, ∂[λFμν]=0\partial_{[\lambda}F_{\mu\nu]} = 0, is an identity of the definition F=∂A−∂AF = \partial A - \partial A, true before any dynamics). Consistency bonus: applying ∂ν\partial_\nu to (4), the left side vanishes identically (∂ν∂μ\partial_\nu\partial_\mu symmetric against FμνF^{\mu\nu} antisymmetric), forcing ∂νjν=0\partial_\nu j^\nu = 0 — 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.

Figure
Two harvests of the crank, computed — the Yukawa potential of a sourced massive field and the sine-Gordon kink
Yukawa vs Coulomb (m = 1 units) Coulomb 1/r Yukawa e^(−mr)/r r = 1/m r → sine-Gordon kink (worked example 3) vacuum φ = 0 vacuum φ = 2π (m/√λ units) width ~ 1/m x → two solutions of cranked equations, computed: mass in the density = exponential range suppression (left); a nonlinear well admits a localized kink interpolating between vacua — a particle made of field (right)

Limiting cases

CaseResultMeaning
one real field, V=12m2ϕ2V = \tfrac12 m^2\phi^2□ϕ+m2ϕ=0\Box\phi + m^2\phi = 0Klein-Gordon; rod's wave equation at m=0m = 0
general V(ϕ)V(\phi)□ϕ+V′(ϕ)=0\Box\phi + V'(\phi) = 0nonlinear wave equations — sine-Gordon, ϕ4\phi^4 kinks
static, one dimensionϕ′′=V′(ϕ)\phi'' = V'(\phi)Newton's law in disguise (x↔tx \leftrightarrow t): soliton profiles
complex fieldtwo KG equations + conserved jμj^\muphase symmetry ⟹ classical charge
vector field, −14F2−j ⁣⋅ ⁣A-\tfrac14 F^2 - j\!\cdot\!A∂μFμν=jν\partial_\mu F^{\mu\nu} = j^\nuMaxwell; consistency forces ∂ ⁣⋅ ⁣j=0\partial\!\cdot\!j = 0
L\mathcal{L} with no ϕb\phi_b-dependence∂μπbμ=0\partial_\mu \pi^\mu_b = 0cyclic field ⟹ conserved current — mechanics' cyclic-coordinate rule, fieldified
higher derivatives in L\mathcal{L}extra EL terms +∂μ∂ν(∂L/∂(∂μ∂νϕ))+\partial_\mu\partial_\nu(\partial\mathcal{L}/\partial(\partial_\mu\partial_\nu\phi))possible but perilous (Ostrogradsky instability — see FAQ)

Worked examples

1 · A sourced field and its Yukawa answer (confidence builder)

Run the crank on L=12∂μϕ ∂μϕ−12m2ϕ2−ρ(x) ϕ\mathcal{L} = \tfrac12\partial_\mu\phi\,\partial^\mu\phi - \tfrac12 m^2\phi^2 - \rho(x)\,\phi with a static point source ρ=q δ3(x)\rho = q\,\delta^3(\mathbf{x}). Solve the static equation and evaluate the range suppression at one and three range-lengths for the nuclear case m=mπm = m_\pi.

Step 1. Crank: πμ=∂μϕ\pi^\mu = \partial^\mu\phi; ∂L/∂ϕ=−m2ϕ−ρ\partial\mathcal{L}/\partial\phi = -m^2\phi - \rho. Equation (2): □ϕ+m2ϕ=−ρ\Box\phi + m^2\phi = -\rho. Static limit (□→−∇2\Box \to -\nabla^2): ∇2ϕ−m2ϕ=ρ\nabla^2\phi - m^2\phi = \rho.

Step 2. Solve for the point source (spherical symmetry; the m=0m = 0 case must return Coulomb): ϕ(r)=−q e−mr4πr\phi(r) = -\dfrac{q\,e^{-mr}}{4\pi r} — check by direct substitution: ∇2(e−mr/r)=m2e−mr/r−4πδ3(x)\nabla^2(e^{-mr}/r) = m^2 e^{-mr}/r - 4\pi\delta^3(\mathbf{x}) ✓. The Yukawa potential: Coulomb dressed with an exponential clock set by the mass term.

Step 3. Nuclear numbers. With mπc2=140m_\pi c^2 = 140 MeV, the range is ℏ/mπc=ℏc/(mπc2)=197.3/140=1.41\hbar/m_\pi c = \hbar c/(m_\pi c^2) = 197.3/140 = \mathbf{1.41} 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 r=1.41r = 1.41 fm, e−1=0.368e^{-1} = \mathbf{0.368}; at r=4.2r = 4.2 fm, e−3=0.050e^{-3} = \mathbf{0.050} — a factor twenty inside two additional fm: mass in L\mathcal{L} 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 m=2.0m = 2.0 carries ϕ=A ei(kz−ωt)\phi = A\,e^{i(kz - \omega t)} with A=0.10A = 0.10, k=1.5k = 1.5 (natural units). Compute j0j^0, jzj^z, verify the transport speed, and check conservation explicitly.

Step 1. Dispersion first (the wave must solve its own equation): ω=k2+m2=2.25+4=2.50\omega = \sqrt{k^2 + m^2} = \sqrt{2.25 + 4} = \mathbf{2.50}.

Step 2. Current components from Derivation B: ∂0ϕ=ϕ˙=−iωϕ\partial^0\phi = \dot\phi = -i\omega\phi, so j0=i(ϕ∗ϕ˙−ϕϕ˙∗)=i(−iω−iω)∣A∣2=2ω∣A∣2=2(2.5)(0.01)=0.050j^0 = i(\phi^*\dot\phi - \phi\dot\phi^*) = i(-i\omega - i\omega)|A|^2 = 2\omega|A|^2 = 2(2.5)(0.01) = \mathbf{0.050}. Similarly jz=i(ϕ∗∂zϕ−c.c.)=2k∣A∣2=2(1.5)(0.01)=0.030j^z = i(\phi^*\partial^z\phi - \mathrm{c.c.}) = 2k|A|^2 = 2(1.5)(0.01) = \mathbf{0.030}.

Step 3. Transport speed: jz/j0=k/ω=1.5/2.5=0.60j^z/j^0 = k/\omega = 1.5/2.5 = \mathbf{0.60} — exactly the group velocity vg=k/ωv_g = k/\omega of the previous article: the conserved charge flows at the speed energy flows, as it must for a single mode.

Step 4. Conservation check: ∂0j0+∂zjz=0+0\partial_0 j^0 + \partial_z j^z = 0 + 0 — 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 ϕ=A1ei(k1z−ω1t)+A2ei(k2z−ω2t)\phi = A_1e^{i(k_1z-\omega_1 t)} + A_2 e^{i(k_2z-\omega_2t)} 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 L=12∂μϕ ∂μϕ+m4λ[cos⁡(λ ϕ/m)−1]\mathcal{L} = \tfrac12\partial_\mu\phi\,\partial^\mu\phi + \tfrac{m^4}{\lambda}\big[\cos(\sqrt{\lambda}\,\phi/m) - 1\big] and exhibit a static solution.

Step 1. V′(ϕ)=m3λsin⁡(λ ϕ/m)V'(\phi) = \tfrac{m^3}{\sqrt\lambda}\sin(\sqrt\lambda\,\phi/m), so the crank gives the sine-Gordon equation □ϕ+m3λsin⁡(λ ϕ/m)=0\Box\phi + \tfrac{m^3}{\sqrt{\lambda}}\sin(\sqrt{\lambda}\,\phi/m) = 0 — the pendulum chain's field equation (each point's well is the pendulum's cos⁡\cos; the discrete-to-fields dictionary applied to coupled pendulums).

Step 2. Static, one dimension: ϕ′′=V′(ϕ)\phi'' = V'(\phi) — formally Newton's law for a "particle" at position ϕ\phi, time xx, in the inverted potential −V-V. The trajectory rolling from one hilltop of −V-V to the next is the kink: ϕ(x)=4mλarctan⁡emx\phi(x) = \tfrac{4m}{\sqrt{\lambda}}\arctan e^{m x}, interpolating between adjacent vacua 00 and 2πm/λ2\pi m/\sqrt\lambda over a width ∼1/m\sim 1/m.

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
LE
Leonhard Euler
1707–1783 · Basel and St. Petersburg

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 δ\delta, 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.

History
1744
— Euler's Methodus inveniendi: the stationarity equation for integral-extremizing curves, by discrete approximation.
1755
— Lagrange's δ\delta-method letter to Euler: variations become an algebra; Euler names the field.
1760
s — Euler and Lagrange extend the method to double integrals — variational equations for surfaces and media.
1865
— Maxwell's field equations; their action formulation follows within decades (Larmor, Lorentz).
1915
— Hilbert derives the equations of general relativity by the covariant crank on the curvature scalar — the method's greatest single harvest.

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 ∂νjν=0\partial_\nu j^\nu = 0 from antisymmetry. A verifier should: (1) recompute ∂(−14F2)/∂(∂μAν)=−Fμν\partial(-\tfrac14 F^2)/\partial(\partial_\mu A_\nu) = -F^{\mu\nu} with explicit index bookkeeping; (2) verify the Yukawa solution against ∇2(e−mr/r)=m2e−mr/r−4πδ3\nabla^2(e^{-mr}/r) = m^2e^{-mr}/r - 4\pi\delta^3; (3) recompute the worked-example numbers (ℏc/mπc2=197.3/140=1.41\hbar c/m_\pi c^2 = 197.3/140 = 1.41 fm; e−1=0.368e^{-1} = 0.368, e−3=0.050e^{-3} = 0.050; plane-wave current j0=2ω∣A∣2=0.050j^0 = 2\omega|A|^2 = 0.050, jz=0.030j^z = 0.030, ratio 0.60=k/ω0.60 = k/\omega); (4) confirm the sine-Gordon kink ϕ=(4m/λ)arctan⁡emx\phi = (4m/\sqrt\lambda)\arctan e^{mx} solves ϕ′′=V′(ϕ)\phi'' = V'(\phi). 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 πaμ=∂L/∂(∂μϕa)\pi^\mu_a = \partial\mathcal{L}/\partial(\partial_\mu\phi_a) is built from first derivatives of the field (for standard kinetic terms, πμ=∂μϕ\pi^\mu = \partial^\mu\phi — linear in the gradient), and the crank applies one more derivative to it: ∂μπμ\partial_\mu\pi^\mu. Total: second order in the field, first order in the momentum — exactly the split Hamilton's equations will make explicit for fields (ϕ˙\dot\phi from one equation, π˙\dot\pi from the other, each first order). This layered structure is worth keeping visible because it localizes physical meaning: πμ\pi^\mu itself is the momentum-and-flux bookkeeping of the field (its time component is the density conjugate to ϕ\phi; 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 ϕ\phi on a boundary (Dirichlet) versus fixing the normal component of πμ\pi^\mu (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 ∂L/∂ϕ−∂μ(∂L/∂(∂μϕ))+∂μ∂ν(∂L/∂(∂μ∂νϕ))=0\partial\mathcal{L}/\partial\phi - \partial_\mu(\partial\mathcal{L}/\partial(\partial_\mu\phi)) + \partial_\mu\partial_\nu(\partial\mathcal{L}/\partial(\partial_\mu\partial_\nu\phi)) = 0 — 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, Q=∫j0 d3xQ = \int j^0\,\mathrm{d}^3x is a real, exactly conserved functional of the field configuration with a transparent mechanical meaning: write ϕ=ρ eiθ/2\phi = \rho\, e^{i\theta}/\sqrt2 (amplitude and phase as two real fields) and the current becomes jμ=ρ2 ∂μθj^\mu = \rho^2\,\partial^\mu\theta — the charge density is (amplitude)² times the phase's rotation rate, and charge flows where phase gradients push it. So classically QQ 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, ρ2\rho^2 is the particle density, ∂μθ\partial^\mu\theta the superfluid velocity, and this exact current is what flows through capillaries without friction; in nonlinear optics, the same QQ is the classical photon-number-like invariant of an envelope field. Quantization then does one thing: it makes QQ'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 AμA_\mu: it delivered ∂μFμν=jν\partial_\mu F^{\mu\nu} = j^\nu, an equation for the gauge-invariant FF, and any two potentials differing by ∂νχ\partial_\nu\chi solve it together — the equation simply does not determine AA completely, which is consistency, not contradiction. Second, the flip side: as a PDE system for AνA_\nu the equations are degenerate (the time component contains no A¨0\ddot A_0 — 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 L\mathcal{L} guarantees, via Noether's second theorem, identities among the equations of motion (here ∂ν(∂μFμν−jν)≡0\partial_\nu(\partial_\mu F^{\mu\nu} - j^\nu) \equiv 0) — 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 □Aν=jν\Box A^\nu = j^\nu). 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 ∮πμ δϕ dΣμ\oint \pi^\mu\,\delta\phi\,\mathrm{d}\Sigma_\mu is a menu of physically distinct problems: demanding it vanish can be arranged EITHER by fixing ϕ\phi on the boundary (δϕ=0\delta\phi = 0 there — Dirichlet: the clamped string, a conductor's fixed potential) OR by letting ϕ\phi float and demanding the conjugate flux vanish, nμπμ=0n_\mu\pi^\mu = 0 (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 SS 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 □ϕ\Box\phi (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 V′V' or in the metric signature. (4) Conservation audit: the strongest check — compute the divergence of the currents your symmetries promise (energy-momentum for translations, jμj^\mu 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.

Before this

Where this leads