Hamiltonian Density and Canonical Field Momentum
When we pass from a discrete chain of masses to a continuous field, the Lagrangian becomes a spatial integral of a Lagrangian density . To build a Hamiltonian description we must replace each discrete generalized momentum by a continuum object. The natural candidate is the momentum density , conjugate to the field at each point of space. The Hamiltonian density follows from the same Legendre transform that defines the discrete Hamiltonian: . Physically is the local energy density of the field. Integrated over all space it gives the total energy , conserved whenever carries no explicit time dependence — the continuum echo of energy conservation in particle mechanics. For the vibrating string is exactly the kinetic-plus-potential energy per unit length we would have written by elementary means, confirming that the formalism reproduces familiar physics while extending to arbitrary fields. The deeper structure is that energy density is one slot of the energy–momentum tensor , generated by Noether's theorem applied to spacetime translations. Time translation gives energy, with density ; space translations give field momentum, with density . Their conservation laws package energy and momentum balance into a single covariant statement. Subtleties separate field theory from particle mechanics: the Legendre transform fails when is independent of some (gauge systems), and the canonical need not be symmetric, motivating the Belinfante improvement and Dirac's constrained-Hamiltonian methods studied in field theory proper.
- For a field with Lagrangian density , the canonical momentum density conjugate to the field is , the continuum analogue of .
- The Hamiltonian density is the Legendre transform , and the total field energy is (or ).
- For the wave/elastic string, — manifest kinetic + potential energy density, conserved when has no explicit time dependence.
- Energy and momentum unify in the energy–momentum (stress–energy) tensor , whose component is and whose conservation follows from spacetime translation symmetry (Noether).
- Hamilton's field equations , reproduce the wave equation, and the equal-time bracket is the seed of canonical field quantization.
- The Legendre transform is delicate for fields: may not invertibly determine (gauge fields), and is the time–time component of a tensor, not a Lorentz scalar.
- Key idea: Replace the discrete conjugate momentum by the momentum density , then Legendre transform: is the local energy density, and unifies it with field momentum.
Where this lives today
The canonical pair is having a hardware moment: Hamiltonian simulation of quantum field theories is one of the flagship applications of 2026-era quantum processors. To put a field on qubits you must first put it in Hamiltonian form — truncate space to a lattice of sites each carrying , exactly the discrete limit in the table above, then encode the local Hilbert spaces and evolve under . Lattice-gauge-theory groups now benchmark small-scale scattering and string-breaking dynamics this way, and "Hamiltonian truncation" has become a standard classical tool for strongly coupled field theories where path-integral Monte Carlo struggles. The same structure underpins numerical relativity: the ADM formulation that gravitational-wave pipelines integrate is general relativity rewritten as Hamilton's equations for the spatial metric and its conjugate momentum density. And the stress–energy tensor assembled here is literally the right-hand side of Einstein's equations — the object that tells spacetime how to curve is the one this article taught you to build from . The quantum payoff of the bracket is the subject of the action-principle-to-QFT capstone.
The physical picture
Think of space as a dense grid of tiny oscillators. Each cell of width carries a discrete coordinate and a discrete momentum . Dividing by the cell size gives a density that survives the continuum limit — that is exactly . Phase space, which for the loaded string was a finite-dimensional arena, becomes an infinite-dimensional space of pairs of functions : one canonical pair per point of space.
The Hamiltonian density is bookkeeping for energy per unit volume. Where is large the field has kinetic energy; where is steep it has elastic potential energy. adds them locally, and the field equations shuffle energy between neighbouring points without creating or destroying it — that shuffling is the energy flux. In a standing wave the shuffle is global and rhythmic: twice per period the entire energy budget migrates between the kinetic ledger and the potential ledger.
Energy and momentum are not separate ledgers but two faces of one tensor. Just as a particle's form a four-vector, a field's energy density and momentum density form the time row of . A Lorentz boost mixes them: what looks like pure energy density in one frame carries momentum density in another.
The core equations
The gateway object is the continuum version of . Its pedigree is honest: on the discrete chain with spacing , only the on-site term of contains (gradients couple neighbours through , not ), so , and momentum per unit length stays finite as .
where: — canonical momentum density conjugate to (momentum per unit length in 1D, per volume in 3D); — Lagrangian density ; — time derivative of the field at fixed . For the transverse string, points ALONG the displacement (transverse), not along the propagation direction — see the FAQ for how it relates to the wave's momentum. With the momentum in hand, the passage to the Hamiltonian description is the same Legendre transform as at finite degrees of freedom — the legendre-transformation article's construction with densities in place of functions. Crucially, the transform trades for and NOTHING else.
where: — Hamiltonian (energy) density of the field; — the transform pairing. There is deliberately no term: the gradient is a configuration variable, not a velocity, and it rides through the transform untouched, reappearing as potential energy. Integrating the density over space recovers the single number that particle mechanics called — and with it, the familiar conservation statement, proved locally in Derivation A.
where: — total field energy, conserved if has no explicit time dependence and boundary fluxes vanish. The string makes everything concrete. Starting from its density (inherited from the Lagrangian-density article), invert for and substitute into (2): , giving the positive-definite result below.
where: — linear mass density; — tension; — local slope . Kinetic plus potential energy per unit length, exactly what an elementary force-and-work analysis of a string element yields — the formalism's sanity check. Dynamics in the Hamiltonian picture comes from the field version of Hamilton's canonical equations (the finite-DOF pair of the Hamilton's-canonical-equations article, upgraded with functional derivatives). Derivation C runs them on the string and recovers the wave equation.
where: — functional derivative: the change of per unit change of at one point, which automatically packages the by-parts gradient term. When contains no gradients of , the first equation reduces to an ordinary partial derivative. The canonical structure is completed by the equal-time Poisson bracket — the continuum limit of , with the Kronecker delta maturing into a Dirac delta.
where: — Dirac delta function; its units (inverse volume) are exactly what make the bracket of two densities consistent. Promoted to a commutator, this line is the axiom on which quantum field theory is built. Finally, energy density is only the first entry of Noether's ledger. Applying the translation-symmetry argument in all four spacetime directions produces the canonical energy–momentum tensor — derived component-wise in Derivations A and B.
where: — energy density; — field momentum density (sign convention metric-dependent); — energy flux, equal to for the string; — four local conservation laws for translation-invariant on shell.
Which object when:
| Question | Object | Why |
|---|---|---|
| How much energy is here right now | local, positive-definite for the string | |
| How fast is energy flowing past this point | continuity partner of | |
| How much momentum does the field carry | Noether charge of spatial translations | |
| Time evolution without a Lagrangian | Hamilton's equations (5) | first-order in time; numerics and quantization |
We show that when has no explicit time dependence, the total field energy is conserved, and we identify as the component of the Noether tensor. The strategy: compute the total time derivative of along a solution, use the field Euler–Lagrange equation to eliminate the force term, and reorganize everything into a continuity equation. Watch the distinction between total and explicit time dependence — the theorem lives entirely in that gap.
Step 1. Differentiate totally with respect to time along a solution:
Why: the chain rule threads through every slot; the absent explicit- term is precisely the symmetry assumption.
Step 2. Eliminate using the field Euler–Lagrange equation written in 3+1 form:
Why: conservation laws hold on shell — the dynamics is the only input that turns symmetry into conservation.
Step 3. Substitute and recognize product-rule pairs: the first two terms of Step 1 combine with the substituted expression into , and the gradient terms into a spatial divergence:
Why: this is the same regrouping as the particle-mechanics proof that is conserved, with one extra spatial-divergence column in the ledger.
Step 4. Move to the right and read off the continuity equation:
Why: the object under is exactly the Legendre transform — the Hamiltonian density has DERIVED itself as the conserved density of time translations.
Step 5. Integrate over space; the divergence term becomes a boundary flux that vanishes for decaying or periodic fields, so . Verified: for the string this gives and , matching the direct computation in the Lagrangian-density article; matches Goldstein §13.3 and the slot of equation (7).
Go deeper · Derivation B · 1 minField momentum from spatial translation symmetry
We derive the field momentum density as the Noether charge density of spatial translations. The strategy parallels Derivation A with time replaced by space: shift the field configuration rigidly, identify the current whose conservation the Euler–Lagrange equation guarantees, and read off the charge. The subtle point is the sign and the variation: shifting the FIELD (not the coordinates) by changes its value at a fixed point by minus the gradient.
Step 1. Under a rigid shift the translated configuration is , so at fixed :
Why: the field profile is carried along; the point now sees the value that used to live a distance upstream.
Step 2. Because the density has no explicit -dependence (homogeneous medium), this variation changes only by a total derivative, , so translations are a symmetry of the action. Noether's construction then yields the current
Why: the general Noether current pairs the momentum-slot partial with the field variation and subtracts the compensating total-derivative piece — that subtraction is the term, and it is why the stress–energy tensor and not some other object appears.
Step 3. The time component is the conserved charge density:
Why: charge densities are always the slots of Noether currents; with metric the physical momentum density carries a minus sign, — conventions shuffle the sign, the physics does not.
Step 4. Conservation and the charge:
Why: the same Euler–Lagrange elimination as Derivation A, run with a spatial index; an inhomogeneous medium (explicit in ) would break exactly this law, and only this law. *Verified: for a travelling string wave , — momentum flows in the propagation direction, averaging , the field analogue of . Consistent with Landau–Lifshitz Classical Theory of Fields §32.*
Go deeper · Derivation C · 1 minHamilton's field equations reproduce the wave equation
We verify the canonical formalism end to end by recovering from the string Hamiltonian density. The strategy: apply the two Hamilton equations (5) to , being careful that the functional derivative with respect to picks up the gradient term through integration by parts. This closes the loop: Lagrangian and Hamiltonian routes must agree, and do.
Step 1. First Hamilton equation — velocity from momentum:
Why: contains no gradients of , so the functional derivative collapses to an ordinary partial; this simply inverts the definition .
Step 2. Second Hamilton equation — force from the functional derivative:
Why: varying with respect to must account for 's dependence on the slope; the by-parts move deposits a on the slope-partial exactly as in the Euler–Lagrange derivation.
Step 3. Evaluate for the string: has no bare dependence and :
Why: the restoring force density on a string element is the divergence of the transverse tension component — Newton recovered from the canonical crank.
Step 4. Eliminate by differentiating Step 1 in time and inserting Step 3:
Why: two first-order canonical equations have fused into the familiar second-order wave equation, with . *Verified: identical to the Euler–Lagrange result in the field-EL article — the two formalisms agree, as the Lagrangian–Hamiltonian equivalence article guarantees at finite DOF. The first-order pair is also exactly the form used by numerical PDE integrators (leapfrog updates and alternately).*
Limiting cases
The Hamiltonian-density machinery specializes cleanly in several regimes:
| Case | Result | Meaning |
|---|---|---|
| Free scalar / wave field | Positive-definite kinetic + gradient energy; conserved, manifestly the string energy density. | |
| Static field () | All energy is potential; . Equilibria extremize — the principle of minimum elastic energy. | |
| Discrete limit (lattice) | Replacing and recovers the loaded-string Hamiltonian. | |
| Travelling wave | kinetic density potential density pointwise | Equality holds at every point for a single travelling wave; standing waves instead slosh globally between the two ledgers. |
| Relativistic field | , | Four conservation laws — energy and three momenta — from spacetime translation invariance. |
Worked examples
Example 1 — energy sloshing in a standing wave (confidence builder). A string with and is clamped at and and oscillates in its fundamental, with . Verify explicitly that the energy is all potential at , all kinetic a quarter period later, and equal in total.
Step 1. Mode parameters: ; ; ().
Step 2. At : , so everywhere — the kinetic ledger is empty. The potential ledger holds, using :
Compute: ; ; ; : .
Step 3. At : , so — the string is momentarily FLAT and the potential ledger is empty. But at full amplitude:
Compute: ; ; ; : .
Check: the two are equal because — the dispersion relation is exactly the exchange rate between the ledgers. Total energy , constant, sloshing wholly between kinetic and potential twice per period.
Example 2 — power and momentum carried by a travelling wave (exam level). On the same string (, , ), a travelling wave has amplitude and frequency . Find the time-averaged energy density, the average power transmitted, and the average field momentum density, and verify the relation.
Step 1. , .
Step 2. Both energy ledgers are equal pointwise for a travelling wave (each ), so the average energy density is
Step 3. Average power through any point: . Cross-check: — energy density times transport speed. ✓ consistent.
Step 4. Average field momentum density (Derivation B): (momentum per unit length).
Step 5. Verify the ratio: . The wave carries — energy and momentum locked in the ratio , exactly like photons, because both travel undistorted at the single speed .
Origins · 1 minWilliam Rowan Hamilton and how this was discovered
Hamilton reformulated mechanics twice before turning thirty: the 1834–35 essays introduced the characteristic and principal functions, the canonical equations, and the systematic trade of velocities for momenta that this article performs with densities. He never applied the scheme to continuous media — that took the century after him — but the formalism was built so tightly around the LOGIC of conjugate pairs, rather than around particles, that the generalization required only upgrading an index to a position label: . It was precisely this canonical skeleton that Heisenberg, Born and Jordan reached for in 1925–26 when they quantized the electromagnetic field mode by mode, making Hamilton's construction the load-bearing frame of quantum field theory. Ireland's Astronomer Royal at 22, he also gave physics the word — and the concept — "Hamiltonian," arguably the single most reused noun in theoretical physics.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics 3rd ed., Ch. 13 (Continuous Systems and Fields) · Landau & Lifshitz, Mechanics Vol. 1, §32 and Classical Theory of Fields §32–33 (energy–momentum tensor) · Morin, Introduction to Classical Mechanics, Ch. on coupled oscillators and continuum limit · Taylor, Classical Mechanics, Ch. 16 (Continuum Mechanics) · José & Saletan, Classical Dynamics, Ch. 9 (Continuum Dynamics)
Provenance. All equations are standard continuum-mechanics/field-theory results. A verifier should recompute: (1) the Legendre transform giving from ; (2) the energy continuity equation via the field EL equation (Derivation 1); (3) recovery of with from Hamilton's equations (Derivation 3); (4) the canonical tensor . Cross-check against Goldstein 3rd ed. Ch. 13, Landau–Lifshitz Classical Theory of Fields §32, and Taylor Ch. 16. No experimental numbers are quoted.
Builds on: Lagrangian Density and Continuum Lagrangian Formalism · Euler–Lagrange Equations for Fields · Discrete Loaded String and the Continuum Limit · The One-Dimensional Wave Equation Leads to: Four-Vectors and Minkowski Spacetime · Elastic Waves in Solids · Stress Tensor and Cauchy's Relation
The momentum density of a transverse string wave points transverse to the string, but the wave's momentum surely points along it. Which is which?
Both statements are right about different objects, and the collision is instructive. is the CANONICAL momentum density, conjugate to the field: for a transverse wave it points along the displacement. The MECHANICAL momentum the wave transports along the propagation direction is the Noether charge of spatial translations, with density — a product of the transverse velocity and the slope, which is nonzero on average for a travelling wave and points along the propagation axis. Derivation B builds it, and Worked example 2 shows . Rule of thumb: runs the canonical machinery; pushes on things.
Is the Hamiltonian density a Lorentz scalar like the Lagrangian density?
No — and this asymmetry is structural, not sloppy bookkeeping. can be a scalar because the action integrates it over the invariant measure . But is one component of a rank-two tensor: it is tied to a specific time direction, i.e. to a choice of frame. Under a boost, energy density mixes with momentum density and stress, just as a particle's energy mixes with its momentum. That is why relativistic QFT often prefers Lagrangian (path-integral) methods for manifest covariance, while Hamiltonian methods shine where a preferred frame is natural: lattice simulation, condensed matter, cosmology, numerical relativity.
What exactly does the functional derivative do that a partial derivative cannot?
depends on the whole function , so "differentiate with respect to at the point " needs care: perturb and measure the first-order response of . Because contains , the perturbation's derivative also contributes, and one integration by parts converts that into evaluated at the point. So : the functional derivative is the partial-derivative combination that already includes the by-parts bookkeeping. Your professor's expanded formula and the compact are the same object.
Why does the equal-time bracket produce a Dirac delta rather than a Kronecker delta?
Dimensional bookkeeping of the continuum limit. On the chain, with a momentum. Passing to densities divides by the cell size , so the bracket of with equals — which is exactly the discrete representation of : zero for different sites, and blowing up as on the diagonal so that its integral is 1. The Dirac delta is the Kronecker delta per unit volume, which is what pairing a field with a momentum density requires.
The static-field row of the table says the Hamiltonian density equals minus the Lagrangian density. Is that a typo?
No. With we get , so . And indeed for a static string (no kinetic term, potential enters negatively), so — the positive stored elastic energy, as it must be. The sign relation for statics is the density version of when while . Static equilibria minimize , which is why elastostatics is an energy-minimization discipline.
When the momentum cannot be inverted for the velocity, what actually goes wrong, and what is the fix?
The transform needs to be solvable for ; if is independent of some (electromagnetism: no in ), the corresponding momentum is identically zero — a constraint, not an equation of motion. Naive Hamilton's equations then contradict themselves. Dirac's fix (1950): keep the constraint as a condition on phase space, check its consistency under evolution (generating possibly further constraints), and replace the Poisson bracket by the Dirac bracket that respects them. This is not exotic: every gauge theory in the Standard Model runs on this machinery, which is why the overview flags it as the doorway out of naive canonical field theory.
Do Hamilton's field equations actually help solve anything, or are they a formal curiosity?
They are the workhorse form for computation. Numerically, the first-order pair , is what symplectic integrators (leapfrog/Verlet) march forward — they update and alternately and conserve a shadow energy exactly, which is why wave codes and molecular dynamics use them. Analytically, the Hamiltonian form is the entry point to canonical perturbation theory, to stability analysis (energy as a Lyapunov function), and above all to quantization: you cannot write until you know what is. The Lagrangian form is better for symmetry arguments; the Hamiltonian form is better for dynamics and quantum mechanics. You need both hands.