Skip to content

The Action Principle and Field Equations

Stationary action turns a local density into differential equations only after the allowed variations and their boundary behavior have been specified. For a first-derivative action, one integration by parts separates the first variation into a bulk Euler–Lagrange term and a surface term. Vanishing of the bulk term for every compactly supported variation gives the local field equations; it does not by itself choose boundary conditions, prove that solutions exist, or make the stationary configuration a minimum.

This page derives that statement on a finite spacetime region and applies it to a real scalar field and the Maxwell potential. The design of boundary data and boundary functionals belongs to the next page; higher-derivative stability, PDE well-posedness, Hamiltonian constraints, and path-integral quantization are outside the present scope.

Helpful background. Fields, Configurations, Dimensions, and Local Dynamics distinguishes raw configurations, on-shell fields, and solutions of a posed problem. Field Variations and Boundary Terms develops the reusable variational calculus.

Let Ω\Omega be a spacetime region with sufficiently regular boundary, and let ΦA\Phi^A denote a collection of real field components. Consider

SΩ[Φ]=ΩddxL ⁣(x,ΦA,μΦA).S_\Omega[\Phi] = \int_\Omega \mathrm d^d x\, \mathcal L\!\left(x,\Phi^A,\partial_\mu\Phi^A\right).

A variation is a one-parameter family of admissible configurations

ΦεA=ΦA+εηA,\Phi_\varepsilon^A = \Phi^A+\varepsilon\eta^A,

where ηA\eta^A has the same tensor type and reality properties as ΦA\Phi^A. The first variation is the directional derivative on configuration space,

δηSΩ[Φ]=ddεSΩ[Φε]ε=0.\delta_\eta S_\Omega[\Phi] = \left. \frac{\mathrm d}{\mathrm d\varepsilon} S_\Omega[\Phi_\varepsilon] \right|_{\varepsilon=0}.

This δη\delta_\eta is not a spacetime derivative. It compares nearby configurations while holding the spacetime point fixed. For complex fields one may instead vary the real and imaginary parts, or vary a declared pair of independent variables; the choice must be stated before differentiating.

The action is stationary at Φ\Phi relative to a chosen class of variations when δηSΩ[Φ]=0\delta_\eta S_\Omega[\Phi]=0 for every allowed η\eta. Stationary does not mean smallest: the second variation may have positive, negative, or null directions. The field-theoretic action principle and its local equations are developed in Schwartz 2014, §§ 3.1–3.2, pp. 29–32 and Weinberg 1995, § 7.2, pp. 300–305.

Assume that differentiation with respect to ε\varepsilon may be passed through the integral and that the fields are regular enough for the product rule and divergence theorem. Direct differentiation gives

δηSΩ=Ωddx[LΦAηA+L(μΦA)μηA].\delta_\eta S_\Omega = \int_\Omega \mathrm d^d x\, \left[ \frac{\partial\mathcal L}{\partial\Phi^A}\eta^A + \frac{\partial\mathcal L} {\partial(\partial_\mu\Phi^A)} \partial_\mu\eta^A \right].

Define the derivative momentum and Euler–Lagrange expression by

ΠAμL(μΦA),EA(Φ)LΦAμΠAμ.\begin{aligned} \Pi_A^{\mu} &\equiv \frac{\partial\mathcal L} {\partial(\partial_\mu\Phi^A)}, \\ \mathcal E_A(\Phi) &\equiv \frac{\partial\mathcal L}{\partial\Phi^A} - \partial_\mu\Pi_A^{\mu}. \end{aligned}

The product rule,

ΠAμμηA=μ ⁣(ΠAμηA)(μΠAμ)ηA,\Pi_A^\mu\partial_\mu\eta^A = \partial_\mu\!\left(\Pi_A^\mu\eta^A\right) - \left(\partial_\mu\Pi_A^\mu\right)\eta^A,

then yields the central decomposition

δηSΩ=ΩddxEA(Φ)ηA+ΩdΣμΠAμηA.\boxed{ \delta_\eta S_\Omega = \int_\Omega \mathrm d^d x\, \mathcal E_A(\Phi)\eta^A + \int_{\partial\Omega} \mathrm d\Sigma_\mu\, \Pi_A^\mu\eta^A }.

The figure makes the logical fork explicit. Follow the solid branch when compact support is used to isolate the interior equation; follow the dashed branch when boundary variations remain and the chosen boundary-data space must be tested.

Integration by parts separates an interior Euler–Lagrange condition from an independent boundary-data condition

For a regular first-derivative action on a finite region, one integration by parts produces a bulk term and a surface one-form. Compactly supported variations test only the interior Euler–Lagrange equation; stationarity of the complete action additionally requires the residual surface one-form to vanish on every allowed boundary tangent variation. The diagram is schematic and does not assert a minimum or analytic PDE well-posedness.

Part of the variationAllowed variations or added dataConsequence of stationarity
Bulk term ΩEAηA\int_\Omega \mathcal E_A\eta^AEvery smooth compactly supported ηA\eta^AEA=0\mathcal E_A=0 in the interior by the fundamental lemma
Original surface term ΩdΣμΠAμηA\int_{\partial\Omega}\mathrm d\Sigma_\mu\,\Pi_A^\mu\eta^ADirichlet tangent variations with η=0\eta=0 at the boundaryThe original surface term vanishes on the allowed variation space
Original surface term with free boundary variationBoundary values are allowed to varyThe coefficient of each free variation supplies the intended natural boundary equation
Completed surface termAdd SΩS_{\partial\Omega} and test the original surface term plus δSΩ\delta S_{\partial\Omega} on the declared tangent variationsThe residual surface one-form must vanish; the chosen boundary variable and action are matched

Here dΣμ\mathrm d\Sigma_\mu is the outward-directed surface element. If η\eta has compact support in the interior of Ω\Omega, the surface integral vanishes. Stationarity then implies

ΩddxEA(Φ)ηA=0\int_\Omega \mathrm d^d x\, \mathcal E_A(\Phi)\eta^A =0

for every smooth compactly supported ηA\eta^A. The fundamental lemma of the calculus of variations gives the Euler–Lagrange equations

EA(Φ)=LΦAμL(μΦA)=0.\mathcal E_A(\Phi) = \frac{\partial\mathcal L}{\partial\Phi^A} - \partial_\mu \frac{\partial\mathcal L} {\partial(\partial_\mu\Phi^A)} =0.

The quantifier “for every allowed variation” matters. If a field obeys an algebraic constraint, the variations must be tangent to that constraint. If a gauge symmetry makes some variations redundant, the resulting Euler–Lagrange expressions satisfy identities; stationarity does not automatically fix a gauge.

Compact support is a clean way to derive the interior equations, but it deliberately avoids the boundary problem. With nonzero boundary variations, one must instead choose boundary data or add a boundary functional so that the complete surface variation vanishes. This action-plus-boundary-data formulation is explained in Harlow and Wu 2020, § 2.2, pp. 9–12 and developed here on Boundaries, Variations, and Well-Posed Actions.

A related qualification concerns total divergences. If

L=L+μBμ,\mathcal L' = \mathcal L+\partial_\mu B^\mu,

then

SΩSΩ=ΩdΣμBμ.S'_\Omega-S_\Omega = \int_{\partial\Omega} \mathrm d\Sigma_\mu\,B^\mu.

The two densities give the same interior Euler–Lagrange equations under compactly supported variations, but they need not define the same boundary variational problem. “Drop the total derivative” is therefore a conditional operation, not an algebraic identity between actions on arbitrary regions. The integration-by-parts step is displayed in Schwartz 2014, § 3.2, pp. 31–32, while its boundary-sensitive formulation is given in Harlow and Wu 2020, § 2.2, pp. 9–12.

The scalar field: Klein–Gordon from stationarity

Section titled “The scalar field: Klein–Gordon from stationarity”

For a real scalar with potential VV, take

SΩ[ϕ]=Ωddx[12μϕμϕV(ϕ)].S_\Omega[\phi] = \int_\Omega \mathrm d^d x\, \left[ \frac12\partial_\mu\phi\,\partial^\mu\phi -V(\phi) \right].

Under ϕϕ+εη\phi\mapsto\phi+\varepsilon\eta,

δηSΩ=Ωddx[μϕμηV(ϕ)η]=Ωddx[ϕ+V(ϕ)]η+ΩdΣμμϕη,\begin{aligned} \delta_\eta S_\Omega &= \int_\Omega \mathrm d^d x\, \left[ \partial^\mu\phi\,\partial_\mu\eta -V'(\phi)\eta \right] \\ &= -\int_\Omega \mathrm d^d x\, \left[\Box\phi+V'(\phi)\right]\eta \\ &\quad+ \int_{\partial\Omega} \mathrm d\Sigma_\mu\, \partial^\mu\phi\,\eta, \end{aligned}

where =μμ\Box=\partial_\mu\partial^\mu. For compactly supported η\eta, stationarity gives

ϕ+V(ϕ)=0.\Box\phi+V'(\phi)=0.

For V(ϕ)=12m2ϕ2V(\phi)=\tfrac12m^2\phi^2, this becomes the Klein–Gordon equation

(+m2)ϕ=0.(\Box+m^2)\phi=0.

This derivation and sign choice are checked in Schwartz 2014, § 3.2, pp. 31–32. The surface term also shows what compact support hid: fixing η\eta to vanish at the boundary removes it, while allowing arbitrary boundary values would require a different condition or a compensating boundary term. The scalar example is worked boundary-sensitively in Harlow and Wu 2020, § 3.2, p. 21.

The equation is a local differential condition on an on-shell configuration. It is not yet a solution: one must still specify compatible initial or boundary data and establish the relevant existence and uniqueness result. The mode structure of the free equation is developed on The Klein–Gordon Field and Its Modes.

Maxwell dynamics and the kinematic identity

Section titled “Maxwell dynamics and the kinematic identity”

For a real Maxwell potential, let

Fμν=μAννAμ,SΩ[A]=14ΩddxFμνFμν.\begin{aligned} F_{\mu\nu} &= \partial_\mu A_\nu-\partial_\nu A_\mu, \\ S_\Omega[A] &= -\frac14 \int_\Omega \mathrm d^d x\, F_{\mu\nu}F^{\mu\nu}. \end{aligned}

Write the variation as AμAμ+εaμA_\mu\mapsto A_\mu+\varepsilon a_\mu. Then

δFμν=μaννaμ.\delta F_{\mu\nu} = \partial_\mu a_\nu-\partial_\nu a_\mu.

Antisymmetry of FμνF^{\mu\nu} combines the two terms in δFμν\delta F_{\mu\nu}, so

δaSΩ=12ΩddxFμνδFμν=ΩddxFμνμaν=Ωddx(μFμν)aνΩdΣμFμνaν.\begin{aligned} \delta_a S_\Omega &= -\frac12 \int_\Omega \mathrm d^d x\, F^{\mu\nu}\delta F_{\mu\nu} \\ &= -\int_\Omega \mathrm d^d x\, F^{\mu\nu}\partial_\mu a_\nu \\ &= \int_\Omega \mathrm d^d x\, \left(\partial_\mu F^{\mu\nu}\right)a_\nu \\ &\quad- \int_{\partial\Omega} \mathrm d\Sigma_\mu\, F^{\mu\nu}a_\nu. \end{aligned}

Compactly supported variations therefore give the vacuum Maxwell equations

μFμν=0.\partial_\mu F^{\mu\nu}=0.

The other familiar relation,

[λFμν]=0,\partial_{[\lambda}F_{\mu\nu]}=0,

is not a second Euler–Lagrange equation. It follows identically from Fμν=μAννAμF_{\mu\nu}=\partial_\mu A_\nu-\partial_\nu A_\mu and commutativity of partial derivatives. The Maxwell action and its field equations are presented in Schwartz 2014, § 8.2.3, pp. 118–119.

Two checks expose the gauge structure without completing its constraint analysis. First, a gauge-direction variation aμ=μαa_\mu=\partial_\mu\alpha gives δFμν=0\delta F_{\mu\nu}=0, so the action is stationary in that direction even away from a solution. Second,

νμFμν=0\partial_\nu\partial_\mu F^{\mu\nu}=0

holds identically by antisymmetry. This identity relates the four displayed Euler–Lagrange expressions; it neither imposes μAμ=0\partial_\mu A^\mu=0 nor counts physical polarizations. Those questions belong to The Free Maxwell Field and Gauge Redundancy. If aμa_\mu is nonzero at Ω\partial\Omega, the remaining surface term must also be analyzed rather than silently discarded.

The argument proves a conditional implication:

δηSΩ=0for every ηCc(Ω)EA(Φ)=0in the interior of Ω.\begin{gathered} \delta_\eta S_\Omega=0 \quad \text{for every }\eta\in C_c^\infty(\Omega) \\ \Longrightarrow \\ \mathcal E_A(\Phi)=0 \quad \text{in the interior of }\Omega. \end{gathered}

Its hypotheses carry the real content: the action must be differentiable on the declared field space, integrations by parts must be legitimate, and the test variations must be rich enough for the fundamental lemma. For fields with constrained target spaces, corners, singularities, nonlocal terms, or higher derivatives, this simple formula must be modified or applied with additional care.

The converse is also boundary-sensitive. A field satisfying the bulk equations makes the bulk part of δS\delta S vanish, but the complete action is stationary only if the remaining surface variation vanishes for the allowed data. Nor does either statement establish a well-posed PDE problem. The next two chapter pages separate these questions: Boundaries, Variations, and Well-Posed Actions treats differentiability at the boundary, while Hamiltonian Initial Data and Phase Space reorganizes the dynamics as initial-value evolution.

“Least action” does not guarantee a minimum. The first variation tests stationarity. Stability requires information from the second variation, the Hamiltonian, and the allowed perturbations.

A total derivative is not simply zero. It becomes a boundary integral. It may be harmless for compact support or specified falloff, but it can change boundary conditions, charges, and the differentiability of the action.

A gauge variation is not a gauge choice. The Maxwell action is invariant along aμ=μαa_\mu=\partial_\mu\alpha. That degeneracy does not impose Lorenz or Coulomb gauge.

The Bianchi identity is not the Maxwell equation. [λFμν]=0\partial_{[\lambda}F_{\mu\nu]}=0 follows from the definition of FF. The equation μFμν=0\partial_\mu F^{\mu\nu}=0 follows from stationary action.

An equation is not a solved problem. Euler–Lagrange equations identify on-shell configurations locally. Initial or boundary data, regularity, existence, uniqueness, and gauge reduction remain separate tasks.

  1. Add a source term J(x)ϕ(x)J(x)\phi(x) to the scalar density and derive the field equation.

    Solution

    The source contributes ΩddxJη\int_\Omega \mathrm d^d x\,J\eta to the first variation. The bulk coefficient becomes [ϕ+V(ϕ)J]-[\Box\phi+V'(\phi)-J], so stationarity gives

    ϕ+V(ϕ)=J.\Box\phi+V'(\phi)=J.

    The kinetic surface term is unchanged.

  2. Show directly that replacing L\mathcal L by L+μBμ(Φ,x)\mathcal L+\partial_\mu B^\mu(\Phi,x) leaves the interior Euler–Lagrange equations unchanged for compactly supported variations.

    Solution

    The action changes by ΩdΣμBμ\int_{\partial\Omega}\mathrm d\Sigma_\mu B^\mu. Its variation is also supported on Ω\partial\Omega, so it vanishes when η\eta has compact support in the interior. Therefore the bulk coefficient multiplying arbitrary interior ηA\eta^A is unchanged. This does not assert equivalence for nonzero boundary variations.

  3. Insert aμ=μαa_\mu=\partial_\mu\alpha into the Maxwell variation before integrating by parts.

    Solution

    Commutativity of partial derivatives gives

    δFμν=μνανμα=0.\delta F_{\mu\nu} = \partial_\mu\partial_\nu\alpha - \partial_\nu\partial_\mu\alpha =0.

    Hence δS=0\delta S=0 identically along the gauge direction. This is an off-shell invariance, not the dynamical equation μFμν=0\partial_\mu F^{\mu\nu}=0.

The action principle has now done exactly one job: it converted a differentiable local action and a declared class of variations into bulk field equations plus an explicit surface term. The next page asks what must happen to that surface term when the boundary cannot be ignored.

  • Harlow, Daniel, and Jie-qiang Wu. “Covariant Phase Space with Boundaries.” Journal of High Energy Physics 2020, no. 10 (2020): 146. DOI.
  • Schwartz, Matthew D. Quantum Field Theory and the Standard Model. Cambridge: Cambridge University Press, 2014. DOI.
  • Weinberg, Steven. The Quantum Theory of Fields. Volume I: Foundations. Cambridge: Cambridge University Press, 1995. DOI.