Use units and the Minkowski metric . The canonical momentum of the real scalar field is . Canonical quantization replaces the classical fields by operator-valued distributions and imposes the equal-time canonical commutation relations
These relations are imposed on an initial slice, with smeared fields understood. In the Heisenberg picture, simultaneous unitary time evolution of both operators preserves their commutators. Since the momentum is , the requested equal-time commutator is .
The Legendre transform in mechanics, applied pointwise, gives the canonical Hamiltonian density of a real scalar field. Thus
To obtain its dynamics rather than assume them, use the Heisenberg equation of motion . The momentum-square term gives . The field-square term gives , while differentiating the Dirac delta function in the gradient term and integrating by parts gives . Consequently
Boundary terms vanish for suitably decaying smeared fields. This is the Klein-Gordon equation as an operator identity.
A spatial Fourier transform reduces the Klein-Gordon equation to , where . Its two frequency branches and the Hermitian adjoint condition give
The invariant-normalized scalar mode extraction can be written particularly simply as
Substituting the mode expansion of a free field proves these inversion formulas: the opposite-frequency coefficient is proportional to and vanishes after spatial Fourier inversion. Alternatively they are the corresponding Klein-Gordon inner products. Taking their commutators using the equal-time fields gives in the mixed case. In the two equal-type cases the delta function enforces , multiplying . Therefore
Conversely these mode commutators reproduce : the two frequency contributions each supply half the spatial Dirac delta function.
For the covariant oscillator Hamiltonian of a real scalar field, insert the mode expansion of a free field into . Spatial integration sets the two momenta equal in the mixed terms and opposite in the two-creator or two-annihilator terms. The latter have coefficient . The mixed terms give
The constant is the divergent zero-point energy; a finite box and a momentum cutoff make its meaning explicit. Normal ordering sets the free vacuum energy to zero and leaves all commutators unchanged. Directly applying the mode commutators to the mixed expression yields
Choose the Fock vacuum by . Each creation operator adds a boson of energy and four-momentum , while each annihilation operator removes one. Products of commuting creation operators give bosonic statistics from commuting creation operators and unrestricted occupation numbers. The real scalar field has one spin-zero species, identical to its antiparticle. Its one-particle states obey , precisely the relativistic normalization of a one-particle state.
For the Feynman propagator, put and contract the two fields in the Fock vacuum. Only survives, giving the Wightman function
The stipulated time-ordered product convention is . In a contour integral over , the Feynman i-epsilon prescription places the positive-energy pole just below the real axis and the negative-energy pole just above it. For close below, clockwise, obtaining ; for close above, obtaining . Changing in the second contribution therefore proves
Acting with multiplies the integrand by . The remaining factor tends to as a distribution, so Fourier inversion gives
The sign also follows from the derivative jump of a free scalar time-ordered two-point function: the first time derivative of jumps by , so that of jumps by .
Use natural units and the Minkowski metric . A real scalar field assigns a real variable to each spatial point. Its Lagrangian density can be taken to be
The principle of stationary action gives the Euler-Lagrange equation . With , this is the Klein-Gordon equation. An additional nonlinear part of describes interactions.
The canonical momentum is . The Legendre transform in mechanics gives the canonical Hamiltonian density of a real scalar field
The Hamiltonian equations and recover the same field equation. In canonical quantization, the fields become operators satisfying the equal-time canonical commutation relations
A spatial lattice makes the analogy with many coupled quantum-mechanical coordinates precise. Each lattice field value is a coordinate, with its own conjugate momentum. The path integral is another representation of the same quantum evolution.
To see its origin, first consider one coordinate with . Split a time interval into steps of length and insert position and momentum resolutions of the identity. The short-time kernel is
Multiplying the kernels and integrating over intermediate positions gives the phase-space path integral
The endpoints of are fixed. The momentum integrals are Gaussian integrals; completing the square produces the configuration-space path integral
At finite slicing its normalization contains . This fixes the composition law and the initial delta-function kernel. One sums over all paths, not merely solutions of the classical equation. Restoring replaces the weight by ; stationary phase explains the emergence of classical trajectories.
For the field, use scalar field configuration eigenstates , satisfying . Insert their completeness relations on every time slice. This gives
The endpoint field configurations are fixed. Integrating the Gaussian momentum variables leaves the scalar field path integral . The functional measure means a regulated product over the field variables. A spacetime lattice or another ultraviolet cutoff makes this product finite before the continuum limit; interacting continuum calculations may require renormalization. The oscillatory Minkowski weight is an amplitude, not a positive probability density.
For vacuum expectation values, the boundaries must select the vacuum rather than arbitrary field configurations. Long imaginary-time evolution suppresses excited states: , so after normalization only the lowest-energy component remains as . This is vacuum projection by imaginary time. The corresponding Feynman i-epsilon prescription in the real-time integral specifies the vacuum boundary conditions and the poles of the propagator. With , the Euclidean path integral has the weight , where
It is often a useful regulated starting point; analytic continuation returns the vacuum time-ordered quantities.
Introduce a classical source and define the normalized vacuum generating functional
with the same vacuum prescription in numerator and denominator. A functional derivative brings down . The order of the time slices makes the operator insertion time-ordered. Thus source differentiation inserts time-ordered field operators:
The denominator removes vacuum diagrams and gives normalized expectation values. It is essential that these are time-ordered products; differentiating this vacuum functional does not directly give every possible operator ordering.
The free theory illustrates the method. Its quadratic kernel is with the vacuum pole prescription, and completing the square gives the Gaussian evaluation of a free scalar generating functional
Two source derivatives give . Higher derivatives give all pairings, the content of Wick theorem. For an interaction , one may use path-integral perturbation by source derivatives:
Expanding this expression generates Feynman diagrams and their Wick contractions. The connected generating functional retains connected contributions; in particular . These functionals turn the computation of field-operator expectations into source differentiation of an ordinary regulated integral.