For a real scalar field with Lagrangian density , the canonical momentum is . Its Hamiltonian density is the sum of momentum energy, gradient energy and potential energy. Hamilton's equations recover the Euler-Lagrange equation.
Hamiltonian density 2026-10-06
A Hamiltonian density is a local integrand for the field-theory Hamiltonian. For canonical fields with invertible velocity-momentum relation it is the Legendre transform in mechanics of the Lagrangian density, summing over all conjugate field components. Gauge theories require constraints and multiplier terms as well.