The Hamiltonian and the Constraints of Electrodynamics: Gauss's Law as a First-Class Constraint

----> Simplified version of this article

Introduction

The question. Maxwell's theory has four components of $A_\imath$ and two physical polarisations. Where do the other two go? The answer is not "they are gauged away" as a slogan: it is a constrained Hamiltonian system with two first-class constraints, and the count $4-2=2$ is arithmetic once the constraints are known.

The claim. $A_0$ has no canonical momentum, so $\Pi_0\approx0$ is a primary constraint. Gauss's law, $\partial_i\Pi_i=j_0$, is a secondary constraint, produced by requiring the primary one to be preserved in time. Both are first class — their Poisson brackets vanish on the constraint surface — so each removes two phase-space directions, and

$$ \boxed{\; \Pi_\imath=\frac{\partial\mathcal L}{\partial(\partial_0A_\imath)}=-F_{0\imath}, \qquad \Pi_0\approx0, \qquad G\equiv\partial_i\Pi_i-j_0\approx0, \qquad \text{DOF}=\tfrac12\bigl(4\times2-2\times2\bigr)=2 . \;} $$

What the two constraints are physically. $\Pi_0\approx0$ says that $A_0$ is not a dynamical variable: it is a Lagrange multiplier, and its equation of motion is Gauss's law. $G\approx0$ says that the electric field is not free to be anything: its divergence is fixed by the charge distribution at the same instant. The field has two radiative degrees of freedom and one constrained one, and the constrained one is the Coulomb field, which is not a wave.

What it does not do. It does not quantise the constrained system — the promotion slot does, and this article only states the physical-state condition that quantisation must satisfy. It does not solve the constraints; it counts them. And it does not treat the fermion's second-class structure beyond the one line it needs.

The Canonical Momenta

With the density $\mathcal L=-\tfrac14F^{2}+\bar\psi(i\gamma_\imath D_\imath-mc)\psi$ and the metric $\delta_{\imath\jmath}$,

$$ \Pi_\imath=\frac{\partial\mathcal L}{\partial(\partial_0A_\imath)}=-F_{0\imath}, $$

so $\Pi_i=E_i$ — the canonical momentum of the vector potential is the electric field, with a sign fixed by the density's sign convention. For the temporal component,

$$ \Pi_0=\frac{\partial\mathcal L}{\partial(\partial_0A_0)}=0 , $$

because $\partial_0A_0$ appears nowhere: $F_{00}=0$ and $F_{0i}$ contains only spatial derivatives of $A_0$. The vanishing is not a gauge choice; it is the statement that the density does not depend on the velocity of $A_0$.

The Legendre transform. The Hamiltonian density is

$$ \mathcal H=\Pi_\imath\partial_0A_\imath-\mathcal L =\tfrac12\bigl(\Pi_i\Pi_i+B_iB_i\bigr)-A_0\bigl(\partial_i\Pi_i-j_0\bigr), $$

and the second term is the interesting one. $A_0$ multiplies $G$ and appears nowhere else, so it is a Lagrange multiplier whose equation of motion is the constraint. The Hamiltonian is

$$ H=\int\mathrm d^{3}r\,\Bigl[\tfrac12\bigl(\vec\Pi^{2}+\vec B^{2}\bigr)-A_0\,G\Bigr], $$

and varying with respect to $A_0$ gives $G=0$.

The fermion's momenta. For the Dirac field the density is first order in $\partial_0\psi$, so $\Pi_\psi=i\psi^{\dagger}$ — the momentum is not independent of the field. That relation is a primary constraint of the fermionic sector, and it is second class: it can be solved, and solving it turns the Poisson bracket into the Dirac bracket, which is the anticommutator. The article records the structure and leaves the algebra to the promotion slot.

The Constraint Chain

Primary. $\Pi_0\approx0$. The symbol $\approx$ means "vanishes on the constraint surface", and the distinction from $=$ is the whole of the Dirac–Bergmann algorithm.

Secondary. The primary constraint must be preserved in time:

$$ \dot\Pi_0=\{\Pi_0,H\}=\partial_i\Pi_i-j_0=G\approx0 . $$

So Gauss's law is not put in by hand; it is forced by the requirement that $\Pi_0$ stay zero. This is the precise sense in which "the equation of motion of $A_0$ is Gauss's law": $A_0$'s equation is the statement that the primary constraint is preserved.

Tertiary: none. Check $\dot G$:

$$ \dot G=\partial_i\dot\Pi_i-\dot j_0 =\partial_i\bigl(\partial_jF_{ji}+j_i\bigr)-\dot j_0 =-\partial_i j_i-\partial_0j_0=0, $$

where the first equality uses $\dot\Pi_i=\partial_jF_{ji}+j_i$ (the spatial field equation) and the last uses current conservation. So the chain terminates: no new constraint, and the two constraints are the whole story. The termination is not automatic — in a theory with a non-conserved current it would produce a third constraint or an inconsistency — and here it is current conservation that closes the chain, which is the same identity the Noether article derived.

First class. Two constraints $C_1=\Pi_0$, $C_2=G$ are first class when their brackets vanish on the surface:

$$ \{\Pi_0(\vec r),\Pi_0(\vec r')\}=0,\qquad \{\Pi_0(\vec r),G(\vec r')\}=0,\qquad \{G(\vec r),G(\vec r')\}=0 . $$

All three hold: $G$ contains no $A_0$, and its dependence on $A_i$ is through $\Pi_i$ only, which commutes with itself. First-class constraints are the generators of gauge transformations, and this is why the theory has a gauge freedom rather than a set of second-class constraints that would remove variables physically.

The Count

The arithmetic. Four components of $A_\imath$, each with a momentum, give eight phase-space dimensions. Each first-class constraint removes two — one for the constraint and one for the gauge direction it generates — so $8-2\cdot2=4$ phase-space dimensions remain, which is two configuration-space degrees of freedom:

$$ \text{DOF}=\tfrac12\bigl(2\times4-2\times2\bigr)=\tfrac12(8-4)=2 . $$

Those two are the transverse polarisations, and the count is the same count the promotion slot will re-derive from the mode expansion. Two routes, one number.

What the count is not. It is not "four minus two". The subtraction is of constraint pairs, and a reader who subtracts two from four gets the right number by accident in this case and the wrong number in a theory with second-class constraints, where each removes one. The formula with the halves is the one that generalises.

The fermion's count. A Dirac field has four complex components, eight real, with the first-order structure halving the phase space; the physical count is four — two spin states for the particle and two for the antiparticle. The second-class constraint is what does the halving, and it is why the fermion's anticommutator is not the naive Poisson bracket of a second-order theory.

What the Constraints Generate

The gauge transformation. With the smeared constraints

$$ C[\alpha,\beta]=\int\mathrm d^{3}r\,\bigl(\alpha\,\Pi_0+\beta\,G\bigr), $$

the brackets with the fields are

$$ \delta A_0=\{\!A_0,C\!\}=\alpha,\qquad \delta A_i=\{\!A_i,C\!\}=\partial_i\beta,\qquad \delta\Pi_i=0 . $$

So $\Pi_0$ generates the shift of $A_0$ and $G$ generates the shift of $\vec A$ by a gradient. On shell the two are the same transformation — the gauge parameter $\Lambda$ with $\Lambda=\beta$ and $\dot\Lambda=\alpha$ — and off shell they are two functions. The split is the Hamiltonian's way of saying that the gauge symmetry has one arbitrary function and one arbitrary time derivative, and the two constraints are the two halves.

Gauss's law as a generator. $G$ generates the time-independent gauge transformations, and its vanishing is the statement that the state is invariant under them. In the quantum theory this becomes an operator condition:

$$ \bigl(\partial_i\hat\Pi_i-\hat j_0\bigr)\lvert\text{phys}\rangle=0 , $$

the Dirac condition for constrained quantisation. It is the sharpest statement of what "physical state" means in QED: a state on which Gauss's law holds, not a state on which it fails and is then projected.

The Coulomb Gauge and the Instantaneous Potential

The gauge. $\partial_iA_i=0$ solves $G$ for $A_0$: taking the divergence of $\vec E=-\nabla A_0-\partial_0\vec A$ and using Gauss's law,

$$ \nabla^{2}A_0=-j_0 \quad\Longrightarrow\quad A_0(\vec r)=\int\mathrm d^{3}r'\,\frac{j_0(\vec r')}{4\pi\lvert\vec r-\vec r'\rvert}, $$

the instantaneous Coulomb potential. The Coulomb field is not a propagating degree of freedom: it is the solution of a constraint, and its value at a point depends on the charge everywhere at the same instant. That is not a violation of causality, because $A_0$ carries no independent information: it is a functional of $j_0$, which is itself constrained.

The residual freedom. In the Coulomb gauge a residual time-independent gauge transformation survives, and the constraint $G$ is what removes it. The count in this gauge is manifest: $\vec A$ has two transverse components and $A_0$ is determined. Two degrees of freedom, no more.

The Hamiltonian in this gauge. Substituting $A_0$ back gives

$$ H=\int\mathrm d^{3}r\,\tfrac12\bigl(\vec\Pi^{2}+\vec B^{2}\bigr) +\frac12\int\mathrm d^{3}r\,\mathrm d^{3}r'\,\frac{j_0(\vec r)j_0(\vec r')}{4\pi\lvert\vec r-\vec r'\rvert}, $$

the transverse radiation Hamiltonian plus the instantaneous Coulomb energy. The second term is the constraint's price: eliminating a constraint from the Hamiltonian puts its solution back as an interaction. A reader who wonders where the Coulomb force lives in a theory of radiation has found it: it lives in the constraint, and it appears in the Hamiltonian when the constraint is solved.

The Energy Is the Stress Tensor's Component

The identification. The Hamiltonian above is $\int\mathrm d^{3}r\,\mathcal H$ with $\mathcal H=\tfrac12(\vec\Pi^{2}+\vec B^{2})-A_0G$, and on the constraint surface the last term drops. Comparing with the stress tensor of The Noether Current and the Traceless Stress Tensor,

$$ T_{00}=\tfrac12\bigl(\vec E^{2}+\vec B^{2}\bigr)+\bar\psi\,i\gamma_i\partial_i\psi , $$

gives $\mathcal H=T_{00}$ for the Maxwell part once $\Pi_i=E_i$. The identification is not a coincidence of two constructions: the Legendre transform of a density with no explicit time dependence produces the conserved energy, and the Noether procedure produces the same object from the time-translation invariance. The two routes give one number, and the equality is the statement that the Hamiltonian is the generator of time translations.

What the identification buys. The positivity. $\tfrac12(\vec E^{2}+\vec B^{2})\ge0$ termwise, so the Maxwell Hamiltonian is bounded below by zero, which is the statement the density's sign convention was chosen to secure. A reader who wants to know why $-\tfrac14F^{2}$ and not $+\tfrac14F^{2}$ has the answer here: the wrong sign gives a Hamiltonian unbounded below, and the theory has no ground state.

What it does not buy. The fermion's zero-point energy. The Dirac Hamiltonian, normal-ordered, gives $H=\sum_{\vec p}\omega_{\vec p}(a^{\dagger}a+b^{\dagger}b)$ with the vacuum at zero by construction; before the ordering it is $-\sum\omega_{\vec p}$, and the infinite constant is removed by the ordering and not by the constraint analysis. The Maxwell sector's ordering is the same story with $\tfrac12\sum\omega$ per mode.

The Count in Three Gauges

The degree-of-freedom count is gauge invariant; the bookkeeping is not. Three gauges, one number.

gauge the condition the free fields the count what is left over
Coulomb $\partial_iA_i=0$ $\vec A$ transverse, $A_0$ solved $2$ a residual time-independent $\beta$
Lorenz $\partial_\imath A_\imath=0$ four $A_\imath$, one scalar mode $4-2$ a residual harmonic $\Lambda$
axial $A_3=0$ $A_0,A_1,A_2$ with one constraint $3-1$ a residual line-dependent $\Lambda$

Why all three give two. In the Coulomb gauge the constraint $G$ is solved for $A_0$ and the transversality is a gauge condition on $\vec A$: two components survive directly. In the Lorenz gauge no component is removed from the field, but two of the four modes are unphysical — the scalar and the longitudinal — and their contributions cancel in every gauge-invariant amplitude, which is the statement the Gupta–Bleuler condition makes precise. In the axial gauge one component is set to zero and the constraint removes one more, and the leftover is a gauge freedom along a line that no physical quantity sees.

What the table is for. A reader who finds "two" derived three ways should conclude that the number is the theory's and not the gauge's. A reader who finds a gauge in which the count looks like four has found a gauge with indefinite metric, and the indefinite metric is the price of keeping the Lorentz covariance manifest. The two routes are The Two Propagators's gauge parameter $\xi$ read as a bookkeeping device: $\xi$ interpolates between the Lorenz family's members, and no observable depends on it.

The one count that is not two. On a space with a nontrivial boundary or a nontrivial topology the count can change: a compact direction supports a Wilson line, which is a physical zero mode of $A_\imath$ and not a gauge artefact. The corpus's category is on a frame with the trivial topology, so the count is two and the exception is named rather than hidden.

What the Constraints Do Not Do

They do not fix the gauge. A first-class constraint leaves a gauge freedom; fixing it is a further choice, and the choice is not physical. The count of degrees of freedom is gauge invariant; the count of fields in a gauge is not.

They do not remove the longitudinal field's energy. The Coulomb energy is real and is carried by the constrained field. A bookkeeping that dropped it would get the hydrogen spectrum wrong by the Coulomb splitting.

They do not survive quantisation unchanged. In a covariant gauge the constraint is imposed on states with an indefinite metric, and the physical subspace is defined by the condition above. The two polarisations that survive are the transverse ones, and the two that do not are the scalar and the longitudinal, which cancel in every observable.

Checks

  1. The momenta. $\Pi_i=-F_{0i}=E_i$; $\Pi_0=0$.
  2. The primary constraint. $\Pi_0\approx0$; $A_0$ has no velocity in the density.
  3. The secondary. $\dot\Pi_0=\partial_i\Pi_i-j_0=G$.
  4. The termination. $\dot G=-\partial_i j_i-\partial_0j_0=0$ by current conservation.
  5. First class. All three brackets vanish on the surface.
  6. The count. $(2\cdot4-2\cdot2)/2=2$.
  7. The generator. $\delta A_i=\partial_i\beta$; $\delta A_0=\alpha$.
  8. The quantum condition. $(\partial_i\hat\Pi_i-\hat j_0)\lvert\text{phys}\rangle=0$.
  9. The Coulomb gauge. $\nabla^{2}A_0=-j_0$; instantaneous potential.
  10. The Hamiltonian. Transverse radiation plus Coulomb energy.
  11. The fermion. $\Pi_\psi=i\psi^{\dagger}$; second class; Dirac bracket gives the anticommutator.
  12. The gauge fixing. A further choice; not physical.
  13. The energy. $\mathcal H=T_{00}$ on the surface; Maxwell part positive.
  14. The three gauges. Coulomb, Lorenz, axial: all give two.

Summary

$A_0$ has no canonical momentum, so $\Pi_0\approx0$ is primary; requiring it to be preserved gives Gauss's law as a secondary constraint; current conservation terminates the chain; and both constraints are first class. Four components minus two first-class constraints leave two physical modes, the transverse polarisations.

Gauss's law is not an equation of motion but a constraint on states, and its solution in the Coulomb gauge is the instantaneous potential whose energy appears in the Hamiltonian once the constraint is eliminated. The count of degrees of freedom is gauge invariant; the identification of the two survivors with the two helicities is the promotion slot's.

Summary of Notation

symbol meaning
$\Pi_\imath$ the canonical momentum, $\Pi_i=E_i$, $\Pi_0=0$
$G$ $\partial_i\Pi_i-j_0$, Gauss's law as a constraint
$\approx$ equality on the constraint surface
$C[\alpha,\beta]$ the smeared first-class constraint

Further Reading