Hamiltonian field theory

In theoretical physics, Hamiltonian field theory is the field-theoretic analogue to classical Hamiltonian mechanics. It is a formalism in classical field theory alongside Lagrangian field theory.

The transition from Hamiltonian mechanics to Hamiltonian field theory can be thought of as generalizing the formalism from a finite number of particles to a field, which has an infinite number of degrees of freedom. In Hamiltonian mechanics, you usually deal with a system of N particles, and the state of the system is described by position q=(q1,q2,,qN) and momentum p=(p1,p2,,pN) coordinates. The Hamiltonian function H(q,p,t) then generates the time evolution of the system via Hamilton's equations:

q˙i=Hpi,p˙i=Hqi

for i=1,2,,N.
In Hamiltonian field theory, instead of having discrete N particles, you have a field ϕ(x,t), which can be thought of as having a continuum of degrees of freedom indexed by the spacetime point x. Analogous to positions and momenta, in field theory, you introduce field variables ϕ(x) and their conjugate momenta π(x). The Hamiltonian density H[ϕ(x),π(x),x] now plays a similar role to the Hamiltonian H in particle mechanics. The equations of motion are then derived in a way analogous to Hamilton's equations but with partial derivatives replacing ordinary derivatives and integrals replacing sums.

The conjugate momentum π(x) associated with the field ϕ(x) is defined as:

π(x)=Lϕ˙(x)

where L=L(ϕ,ϕ˙,x) is the Lagrangian density of the field theory. This calculation can be duly formalized in the context of jet bundles.

Once π(x) is defined, the Hamiltonian density is obtained via the Legendre transformation:

H=π(x)ϕ˙(x)L.

The Hamiltonian for the entire field configuration is obtained by integrating the Hamiltonian density over all space:

H[ϕ,π]=d3xH[ϕ(x),π(x),x].

The equations of motion for ϕ(x) and π(x) are the field-theoretic versions of Hamilton's equations:

ϕ˙(x)=δHδπ(x),π˙(x)=δHδϕ(x).

Here, δHδϕ(x) and δHδπ(x) are functional derivatives, which are the field-theoretic analogs of partial derivatives.

The initial conditions for these equations would then indeed be the field and its conjugate momentum at t=0:

ϕ(x,t=0)=ϕ0(x),π(x,t=0)=π0(x).

So we obtain evolution equations for the fields.

Example: Klein--Gordon field

Start with N coupled harmonic oscillators arranged in a lattice, with positions qi and momenta pi. The Hamiltonian for this system can be written as:

H=i=1N[pi22m+12mω2qi2+k2(qi+1qi)2],

where m is the mass of each oscillator, ω is the natural frequency, and k is the spring constant coupling adjacent oscillators.
For the continuum limit we introduce a continuous field ϕ(x) such that qiϕ(xi), where xi=ia, and a is the spacing between oscillators. In the limit a0 (with x treated as continuous and the number of oscillators N), the discrete differences qi+1qi become derivatives:

qi+1qiaϕ(x)x.

If we replace sums over i with integrals over x, and rewrite the Hamiltonian in terms of ϕ(x):

H[ϕ,π]=dx[π(x)22+12(ϕ(x)x)2+12m2ϕ(x)2],

where π(x) is the conjugate momentum field and m2 (related to ω2 and k) plays the role of the "mass" term for the field.
In this process:

Let's calculate the equations of motion for ϕ(x) derived from this Hamiltonian. First, let's compute δHδπ(x). From Hamilton's equations, this will give us ϕ˙(x). I know that δHδπ(x) is interpreted as the measure of the variation of the functional H when we uniquely modify the value of the function π at the particular value x. We can write

δHδπ(x)=ddϵH[ϕ,π+ϵδx]|ϵ=0

where δx(y)=δ(yx) is the Dirac delta. Observe that

H[ϕ,π+ϵδ(xy)]=dx[(π(x)+ϵδ(xy))22+(terms independent of π)].

Expanding the square and keeping only terms linear in ϵ (since we're taking a derivative), we get:

H[ϕ,π+ϵδ(xy)]H[ϕ,π]+ϵdxπ(x)δ(xy)+O(ϵ2).

The functional derivative is then:

δHδπ(y)=π(y).

Thus, the first Hamilton's equation gives:

ϕ˙(y)=π(y).

Now, let's compute δHδϕ(x). This will give us π˙(x). We have:

H[ϕ+ϵδ(xy),π]=dx[12((ϕ(x)+ϵδ(xy))x)2+12m2(ϕ(x)+ϵδ(xy))2].

Expanding and keeping only terms linear in ϵ, we get:

H[ϕ+ϵδ(xy),π]H[ϕ,π]+ϵdx[ϕ(x)xδ(xy)x+m2ϕ(x)δ(xy)],

where δ(xy)x is symbolic. But using integration by parts, we get:

dxϕ(x)xδ(xy)x=dx2ϕ(x)x2δ(xy)=2ϕ(y)y2.

Thus, the functional derivative is:

δHδϕ(y)=2ϕ(y)y2+m2ϕ(y).

and Hamilton equations are

ϕ˙(y)=π(y),π˙(y)=2ϕ(y)y2m2ϕ(y).

Which is nothing other than the Klein--Gordon equation:

2ϕt22ϕx2+m2ϕ=0.