Hamiltonian Formulation for Fields
Classical mechanics has two complete languages, and this chapter has so far spoken only one. The Lagrangian story — density, action, variation — is where field theories are designed; the Hamiltonian story is where they live as dynamical systems: states, phase space, brackets, flows. This article completes the translation for fields, and the translation is the last classical stop before quantum field theory, because canonical quantization is nothing but this article's formalism with one substitution performed at the end. The construction is the chapter's dictionary applied to the machinery of the Hamiltonian chapters: every point of space carries a canonical pair — the field value and its conjugate momentum density — so the phase space is infinite-dimensional, with two functions' worth of coordinates. The Legendre transform proceeds pointwise; the Hamiltonian becomes a functional ; and Hamilton's equations pair the functional gradients of the previous article, , . The equal-time bracket is the continuum Kronecker delta of canonical pairs — one independent pair per point, as the bead picture always promised. The payoff move — the single most consequential calculation in this article — is diagonalization. Expand the free field in Fourier modes and the coupled infinity of point-oscillators becomes an uncoupled infinity of normal-mode oscillators, one per wavevector, with frequencies : the Hamiltonian is revealed as an infinite bank of independent harmonic oscillators. Every fact of the chapter converges here — the dispersion relation is the oscillator spectrum, the mass gap is the lightest oscillator, the mode counting of the second article is the size of the bank. And the door this opens is unmistakable: quantize each oscillator the way quantum mechanics quantizes one, and energy arrives in packets — particles. The capstone article walks through that door; this one builds it, entirely within classical mechanics.
- Each spatial point carries a canonical pair: the field and the momentum density (for Klein-Gordon, ); phase space is the space of pairs of functions.
- Pointwise Legendre transform: ; the total Hamiltonian is the functional — for the scalar field, kinetic + gradient + potential energy densities.
- Hamilton's field equations are paired functional gradients: , — first-order in time, equivalent to the Euler-Lagrange second-order equation.
- The canonical structure is the equal-time bracket ; any observable evolves by (full bracket formalism: next article).
- Fourier diagonalization: the free field is an infinite bank of independent harmonic oscillators, with .
- Normal variables evolve as pure phasors — the classical objects that quantization promotes to annihilation operators.
- Classical field theory is valid when mode occupations are large ( or macroscopic amplitudes); the oscillator bank is where "particle" will mean "one quantum of one mode."
- Key idea: Hamiltonian field theory equips every point of space with a canonical pair and every wavevector with an independent harmonic oscillator — the finished classical structure whose mode-by-mode quantization is quantum field theory.
The field's canonical formalism — pairs , functional-gradient Hamilton equations, equal-time bracket — diagonalizes in Fourier modes into an infinite bank of independent harmonic oscillators with : classical mechanics' final form for fields, and the doorstep of quantization.
Where this lives today
The oscillator-bank picture is the working ontology of modern physics. Particle physics reads equation (5) with on: every species is a field, every particle a mode quantum, and collider phenomenology is bookkeeping of energy exchanged between the banks of coupled fields. Condensed matter runs the same formalism at both large and small: phonons, magnons, photons in cavities — and quantum optics manipulates individual oscillators of the electromagnetic bank so cleanly that squeezed states of specific modes (deformed ellipses in exactly this article's mode phase planes) are engineering products, most famously injected into LIGO to beat the vacuum fluctuations of the modes that carry gravitational-wave signals. Numerical relativity and lattice field theory compute in the canonical formalism: the ADM equations evolving black-hole spacetimes are Hamilton's equations for the gravitational field (with Dirac's constraints enforced at every step), and Hamiltonian lattice gauge theory is the formulation of choice for the new quantum simulators — cold atoms and trapped ions realizing small oscillator banks that emulate field dynamics beyond classical computation. And cosmology's boldest measured prediction lives here: inflationary perturbation theory quantizes the mode bank of a scalar field on an expanding background, and the CMB's temperature speckles are, in the standard account, the stretched-out descendants of individual fluctuations — this article's phasors, photographed on the sky. Within the chapter, two doors remain: the Poisson-bracket article develops the algebra sketched at equation (4) into the full canonical toolkit, and the capstone — from the action principle to quantum field theory — performs the one substitution this article prepared and walks through.
The physical picture
The bead chain, one last time — because the Hamiltonian picture is where the chapter's founding metaphor becomes exact bookkeeping. Each bead of the discrete chain carried a coordinate and a momentum: a phase plane per bead, dimensions in all. The dictionary sends the bead index to the spatial label, so the field's phase space has a plane per point: the state of the field at one instant is the pair of functions — the configuration and the velocity profile, which is exactly the initial data the wave equation always demanded. Dynamics is a flow on this space: Hamilton's equations read the two functional gradients of and rotate each point's pair accordingly, coupled to its neighbours through the gradient energy.
Coupled — until you change basis. The physical picture that organizes everything: the position basis (one oscillator per point, coupled by springs) and the mode basis (one oscillator per wavevector, uncoupled) describe the same phase space, and the Fourier transform is the normal-mode diagonalization of the oscillations chapter performed on an infinite matrix. In the mode basis the field is an orchestra of strictly independent harmonic oscillators: mode has displacement , momentum , and spring constant — stiffer for shorter wavelengths, with the mass supplying the floor stiffness that even the mode feels. Each oscillator's phase point circulates on its own ellipse at its own frequency, forever, ignorant of all the others. Every classical solution of the free field — every pulse, packet, standing wave — is a chord: a fixed distribution of amplitude among the oscillators, each spinning at its own . This picture is worth possessing viscerally because of what happens when quantum mechanics arrives. A quantum harmonic oscillator of frequency has energy levels spaced ; quantizing the bank endows each mode with integer occupation — and a "particle of momentum " is precisely one quantum of oscillator , with energy (the dispersion relation is the relativistic energy-momentum relation, as the density article foretold). The field-versus-particle duality that vexed a century of physics dissolves into basis bookkeeping this article makes classical: fields are the position-basis description, particles count quanta in the mode basis, and the Hamiltonian formalism is the exact hinge between them.
The canonical machinery, pointwise
The construction shadows the Hamiltonian chapter of particle mechanics step for step, with the functional calculus supplying the derivatives. First, the momentum conjugate to the field at each point — a definition inherited directly from the previous article's :
where: for the scalar density this gives — each point-oscillator's momentum, in the bead reading (per unit volume: is a momentum density, dimensions bookkept by the lattice weight of the functional-derivative article). The Legendre transform then proceeds pointwise — trade for at each independently:
where: the three terms of are the chapter's energy anatomy — point-kinetic, neighbour-spring, local-well — and is a functional of the instantaneous state, constant along the motion for time-independent densities. (That is the component of the stress-energy tensor, and that its conservation follows from time-translation symmetry, is established in the continuum-mechanics chapter's Hamiltonian-density article and the stress-energy article of this chapter; here 's job is to generate the dynamics.)
We derive the canonical equations of motion for the field from the phase-space form of the action, obtaining and — mechanics' most symmetric equations, with functional gradients in place of partials. The derivation treats and as independent variational variables (the whole point of the phase-space formulation), and the two equations emerge from the two independent variations. We then verify the pair reproduces the Euler-Lagrange dynamics, closing the loop with the Lagrangian articles.
Step 1. Write the action in phase-space (first-order) form, using (2) to eliminate :
Why and are now independent: the Legendre transform's exchange is only complete if the momentum is freed from its definition and allowed to vary on its own; the definition must be RECOVERED as an equation of motion, not assumed — the standard subtlety of phase-space variational principles, inherited intact from particle mechanics.
Step 2. Vary (freely, no boundary conditions needed — no appears):
For the scalar field: , recovering — the Legendre definition returned as dynamics, on schedule.
Step 3. Vary (vanishing at temporal endpoints; integrate by parts in time, and the gradient terms of by parts in space per the functional-derivative article):
with the working component formula — for the scalar field, .
Step 4. Close the loop. Combine: — the Euler-Lagrange equation of the covariant-equations article, split into two first-order halves. The split is not cosmetic: initial data on one slice, evolution first-order in time, conserved generating the flow — the entire conceptual kit of the Hamiltonian chapters (flows, brackets, Liouville, canonical transformations) now applies to fields verbatim, with and partials functional derivatives.
Step 5. State the canonical structure that summarizes it all. Define the equal-time Poisson bracket of phase-space functionals (full development: the Poisson-brackets-for-fields article); its fundamental values on the coordinates themselves are
where: the delta is the continuum Kronecker of independent canonical pairs — the bead statement through the dictionary, and the object that quantization will replace by times the identity structure. Evolution of any functional: , with (3a)–(3b) the special cases .
The formalism is complete; now the calculation that reveals what it built:
Go deeper · Derivation B · 2 minDiagonalizing the free field — an infinite bank of harmonic oscillators
We expand the free scalar field in Fourier modes in a box and show the Hamiltonian separates into independent harmonic oscillators, one per allowed wavevector, with frequencies given by the dispersion relation. This is the normal-mode diagonalization of coupled oscillators performed on the continuum — the chapter's single most consequential computation, converting "a field" into "a spectrum of oscillators" exactly, and setting the stage for quantization. Watch the gradient coupling become a per-mode spring constant: the only place enters.
Step 1. Periodic box of volume , allowed wavevectors (the mode counting of the discrete-to-fields article). Expand both phase-space functions:
with (reality of the field); the pairs are the new canonical coordinates.
Step 2. Insert into and use the orthogonality . Each term diagonalizes — the gradient contributing :
where: each summand is a harmonic oscillator Hamiltonian in the canonical pair , with unit mass and spring constant . No cross terms survive: the modes are exactly independent — the translation invariance of the density guarantees the Fourier basis diagonalizes it, the continuum version of "symmetric matrices diagonalize in normal modes." Why the frequencies are the dispersion relation: the mode's spring constant collects the gradient penalty (neighbour-springs resisting short wavelengths) plus the well curvature (every point's local tether) — the third independent derivation of in this chapter, now as an oscillator spectrum.
Step 3. Solve the bank by the oscillator chapter's normal-variable trick. Define, per mode,
Each mode's phase point circulates uniformly; the general field solution is the superposition of phasors — plane waves with frozen complex amplitudes, i.e. every solution of the free field equation, now organized canonically. The energy per mode is : amplitude-squared times frequency, the classical precursor of " quanta of ."
Step 4. Open the door (and stop at the threshold). The bracket (4) transcribes to . Canonical quantization — the capstone article's business — performs one substitution: brackets to commutators, , making ladder operators, the mode energies , and the quanta — countable, indivisible excitations with energy-momentum — particles. Everything quantum about quantum field theory enters through that single substitution; everything else was already here, classical, in equation (5).
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| single point (no gradients) | one particle in a well: field theory contracts to mechanics | |
| free field, mode basis | independent oscillators, | the exact diagonalization (5) |
| : gapless bank | the rod/EM-like case; mode free, not oscillating | |
| at | for : growing modes | hilltop instability, mode by mode — re-expand at the true vacuum |
| interactions ( etc.) | mode oscillators couple; energy migrates between | no exact diagonalization: the hard, generic case |
| large occupations () | classical field description accurate | why this chapter's classical treatment is legitimate |
| gauge fields | constraints among ; naive brackets fail | Dirac's constrained formalism (see FAQ) |
Worked examples
1 · The canonical anatomy of one travelling mode (confidence builder)
The scalar field with (natural units) carries with , . (i) Give and verify Hamilton's first equation. (ii) Compute the cycle-averaged energy density and its budget. (iii) Confirm consistency with the density article's energetics.
Step 1. with . Hamilton's first equation : satisfied identically by construction — the content check is the second equation: compute: , while ✓ — equation (3b) verified on the nose.
Step 2. Energy budget, averaging : kinetic ; gradient ; well . Total per unit volume.
Step 3. Cross-check: identical numbers to the density article's example (computed there from the Lagrangian side) — as they must be, since is the same energy read through the Legendre transform. The kinetic share equals the sum of the other two (): the oscillator virial theorem, holding mode by mode in the bank.
2 · When is a field classical? Phonons versus Higgs (exam level)
(i) For the steel wire of the discrete-to-fields article ( m, m/s), find the lowest mode's frequency and its thermal occupation at K. (ii) Repeat the occupation estimate for one mode of a field with frequency floor GeV. (iii) Conclude.
Step 1. Lowest mode: rad/s. Energy quantum: J.
Step 2. Thermal budget per mode: J. Occupation quanta. With billions of quanta per mode, the discreteness is utterly invisible: the classical field description of this chapter is not an approximation of convenience but accurate to parts per billion — which is why classical elasticity, acoustics, and this chapter's mechanics work.
Step 3. Higgs-like mode: J, versus J at room temperature: — zero, beyond hyperbole. Such a field is never classically occupied in the current universe; it exists only through its quanta (produced two at a time at colliders) and its vacuum structure. Conclusion: one formalism, two regimes, decided by per mode: classical fields are the face of the oscillator bank, particles the few face — and equation (5) is the shared ledger.
Origins · 1 minPaul Dirac and how this was discovered
Dirac built more of the canonical bridge between this article and quantum field theory than anyone. His 1925 doctoral insight — that Heisenberg's mysterious noncommuting products shadow the Poisson bracket, commutator bracket — is the precise substitution this article's final derivation gestures at; "canonical quantization" is Dirac's recipe. Two years later he applied it to the electromagnetic field's oscillator bank, quantizing radiation mode by mode exactly in the manner of equation (5) and inventing, in that single 1927 paper, quantum electrodynamics, creation and annihilation operators, and the quantum theory of emission and absorption. When the naive Legendre transform failed for gauge fields — vanishing momenta, the constraint disease of this article's warning — Dirac again supplied the cure: his constrained-Hamiltonian formalism (1950s) and Dirac brackets remain the standard machinery for quantizing gauge theories and gravity, and his slim Lectures on Quantum Mechanics (1964) expounding it may be the most consequential 87-page book in theoretical physics. Famously economical of speech (colleagues defined a "dirac": one word per hour), he wrote physics the same way; asked once to summarize his philosophy, he went to a blackboard and wrote that physical laws should have mathematical beauty. The formalism of this article — pairs, brackets, oscillators, all waiting for one substitution — was, in his hands, exactly that.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., ch. 13 (Hamiltonian formulation for continuous systems) · Landau & Lifshitz, The Classical Theory of Fields, §32 · José & Saletan, Classical Dynamics, ch. 9 · Dirac, Lectures on Quantum Mechanics (1964) — constrained Hamiltonian systems Key relations: , , and . The Legendre transform cancels the terms cleanly; combining Hamilton's equations recovers ; and the bracket-evolution equivalence follows directly from . The mode diagonalization (5) and normal variables use the standard periodic-box setup with classical content only. Worked-example numbers: ; energy budget matching the Lagrangian-side computation; rad/s, J, at 300 K; GeV J.
Builds on: The Lagrangian Density and Field Action · Covariant Euler-Lagrange Equations for Fields · Functional Derivatives and Field Variations · From Discrete Systems to Continuous Fields Leads to: Poisson Brackets for Fields · The Canonical Stress-Energy Tensor · Noether's Theorem for Continuous Symmetries · From the Action Principle to Quantum Field Theory
If every mode is an independent oscillator, why is field theory considered hard?
Because independence dies with the first interaction term, and everything hard in the subject lives in the corpse. Add to the density and its Fourier transcription couples quartets of modes with : the bank becomes infinitely many oscillators, all talking, and no basis diagonalizes them again. Classically, this is where the chapter's other thread re-enters: mode-coupled oscillator systems are exactly the arena of resonances, near-integrability and chaos — the Fermi-Pasta-Ulam-Tsingou experiment, the founding computation of nonlinear science, was precisely a coupled mode bank refusing to thermalize on schedule, and wave turbulence theory is statistical mechanics for such banks. Quantum mechanically, the coupled bank is perturbation theory's home: free-oscillator states dressed order by order in , Feynman diagrams as the bookkeeping of mode-quartet interactions, renormalization as the discovery that the ultraviolet tail of the bank (the unbounded mode counting of the second article) back-reacts on every low- answer. So the honest summary: this article solves the free theory completely — and thereby defines the reference frame in which a century of work on interactions is organized. "Hard" starts one term later.
The Hamiltonian picks a time direction — does anything physical depend on the slicing choice?
No, and the statement can be made precise at three levels. Kinematically, phase spaces built on different simultaneity slices are related by canonical transformations: the boost generators (constructed from the stress-energy tensor's moments in the Poisson-brackets and stress-energy articles) implement the change of slicing within the formalism, and the Poincaré algebra's closure under brackets is the certificate that all slicings cohere. Dynamically, the evolution generated on any slice reproduces the same covariant field equations, so predictions about invariant questions — scattering outcomes, conserved charges, energies of bound configurations — are slicing-independent even though intermediate objects (equal-time brackets, the split of energy into kinetic/gradient/well) are not. Quantum mechanically the issue was historically sharper (equal-time commutators look frame-dependent), and its resolution — demonstrating that canonical QED's physical amplitudes are Lorentz invariant — was a genuine achievement (Schwinger and Tomonaga's covariant reformulations; the interaction picture on arbitrary spacelike surfaces). Two caveats define the boundary of the reassurance: on curved spacetimes without preferred slicings, mode banks defined by different time choices genuinely disagree about particle content (the Unruh and Hawking effects live exactly in that gap — "particle" is slicing-dependent even though the field is not); and numerically, bad slicings can make well-posed problems stiff — the art of gauge choice in numerical relativity is choosing time wisely inside a formalism that permits any choice.
What is the zero-point energy problem visible already at the classical-quantum threshold here?
Quantize the bank and each oscillator contributes ground-state energy ; summing over the modes — whose density, from the discrete-to-fields article, is , unbounded above — gives a vacuum energy density that diverges as the fourth power of the cutoff. This is the mode-counting infinity of the second article striking its first blow, and its status is instructively split. For differences and derivatives of the zero-point sum, the physics is real and measured: the Casimir effect (conducting plates modify the allowed mode bank between them; the vacuum-energy difference produces an attractive pressure, measured to percent accuracy) and Lamb-shift-type phenomena confirm that mode zero-point energies respond to boundaries exactly as the oscillator picture predicts. For the absolute value, the problem is the most famous open embarrassment in physics: gravity couples to total energy density, the observed cosmological constant corresponds to J/m³, and naive cutoff estimates at the Planck scale overshoot by orders of magnitude. Within this course's classical scope, the honest takeaways: the classical field's energy (2) is well-defined and cutoff-free; the divergence is purchased with times unbounded mode counting; and every modern approach (renormalization of the vacuum term, symmetry cancellations, anthropic selection) is a proposed rule for handling the bank's infinite basement.
How do the constraints of gauge theories concretely change this article's story?
Run the machinery on electromagnetism and watch where it stalls. The Lagrangian density yields momenta : the spatial components give (healthy — the electric field is the momentum conjugate to the vector potential), but identically — the Legendre transform cannot be inverted for , and the phase space is born with a constraint. Consistency of that constraint under evolution () generates a second one: — Gauss's law appears not as an evolution equation but as a restriction on allowed initial data, one constraint per point of space. Dirac's classification then organizes the repair: both constraints are "first class," generating gauge transformations rather than dynamics; physical states are equivalence classes; and one either works with the constrained brackets (Dirac brackets after gauge fixing) or keeps the constraints as operators annihilating physical states in the quantum theory. The scalar field's clean narrative — every pair independent, brackets (4) unmodified — is thus the unconstrained special case; gauge theories, gravity (where the entire Hamiltonian is constraints — the ADM that haunts quantum gravity), and even the relativistic particle live in the constrained general case. The conceptual headline survives everywhere: identify the true canonical pairs, and quantization is one substitution away.
Is the Hamiltonian always the energy — and is it always conserved?
For this chapter's fields, yes on both counts, but the identifications are theorems with hypotheses, not definitions, and knowing the hypotheses prevents real errors. energy requires the standard structure: a Lagrangian density quadratic in with no terms linear in it, and coordinates (here: the field variables themselves) chosen without explicit time dependence — then the Legendre transform reproduces kinetic-plus-potential, and matches the stress-energy tensor's energy density. conserved requires no explicit time dependence in : then along the flow (the base articles' energy theorem — one line via Hamilton's equations, with the two gradient terms cancelling pairwise). Both hypotheses fail in physically important settings. A field in a time-dependent background — the paradigm is a scalar field in an expanding universe, where the metric stretches the mode wavelengths — has an explicitly time-dependent mode Hamiltonian: is neither conserved nor unambiguously "the" energy, each mode behaves as an oscillator with slowly varying frequency, and the right conserved-ish quantities are the adiabatic invariants of the Hamiltonian chapters (, the classical seed of "comoving particle number"). Driven systems (a cavity field with moving mirrors) similarly trade -conservation for work done by the boundary — the dynamical Casimir setting. The reflex to keep: before quoting "energy conservation" for a field, check who owns the time dependence — the field's own dynamics (fine), or the stage it stands on (then reach for adiabatic invariants and pumping physics instead).
Classically the a-amplitudes are continuous — what physically forbids half a quantum after quantization, and is there classical residue of that discreteness?
The discreteness is spectral, not amplitudinal, and its origin is the same as in the one-oscillator quantum problem: the ladder structure of the operator algebra. Quantizing to makes have non-negative integer spectrum — a theorem of the algebra, with no classical counterpart because classical is a continuous coordinate, not an operator with a spectrum. Physical consequences follow the operator, not the expectation value: energy exchanged with matter comes in lumps (photoelectric threshold behaviour), correlation measurements register integer coincidences (a single photon never triggers two detectors), and "half a quantum" is not a state in the Hilbert space. The classical residue runs the other way: coherent states — eigenstates of with eigenvalue the classical amplitude — reproduce this article's phasor dynamics exactly, with quantum fluctuations of fixed absolute size ; at large (the regime of the worked example) those fluctuations are relatively negligible, and the classical field of this chapter emerges as the coherent-state limit of the quantum bank. So the classical theory is not overthrown but located: it is the large-amplitude face of the oscillator algebra, which is why every formula of this article survives inside QFT as the expectation-value skeleton.