Start with the definition of action across some path where is the Lagrangian density.
From the principle of least action the path should be a minimum, so the variational derivative should be zero given an perturbation that preserves the same start and end points so
Assume we can swap the derivative and integral.
Create a dummy value.
See these are just definitions for partial derivaitves (gradients).
Integrate by parts on left side.
Remember .
Since this must be true for arbitrary
which is the Euler Lagrange equation. Next we define a Hamiltonian where , usually interpreted as momentum.
So we get Hamiltons equations.
We postulate that there exists an operator that
So that it becomes exact in the limit that approaches zero. Start with a Taylor series expansion on both sides
And multiply out
split the integral
And simplify
Then we can see that
And canceling common terms
So in position basis the Hamiltonian operator is defined as
In dimensional spacetime we define each point of a lattice to be indexed by elements of the set
where is the set of natural numbers smaller than
Create a field configuration assigning a real number to each point on the lattice (although this can be trivialy generalized to spinors, vectors, tensors etc). It can be represented by a dimensional vector space over the real numbers
A field configuration gives a real number for each point in the lattice
And the field configuration can be indexed by a point on the lattice
So given a classical action defined by it's Lagrangian density
We can write it like
Where .
To discreetize it to a lattice we define to be the length of the lattice in each direction. Make a discrete version of the action. Defined a discreete derivative where the spacing of the lattice points in each direction are and a basis vector in each direction so
Then
When the indices go off the edge of the lattice it just loops around, called periodic boundary conditions. Here is a chosen direction (usually time) The path integral is now defined as below. (You can also take the limit as the 's go to infinity so the lattice covers the whole universe).
So the path integral is defined as the limit of
Split the "time" direction off from the others, so .
An exponent of sums becomes a product of exponent
Define a transfer matrix . Define each element of the matrix to be
for (intuitively 3d time slices of 4d spacetime). So the whole matrix is defined by one-hot vectors (more generally any orthonormal basis). So the time derivative is now the difference between the two, while the spacial derivatives are the same. Back to the integral its now just equal to
The elements of the matrix can also be extracted with one-hot vectors where is a one-hot vector with a single 1 at
so the path integral can now be written as
Move the integrals around
Because it forms an orthonormal basis so all the middle terms disappear.
the path integral simplifies to
But remember we assumed that it was periodic as if it was in a repeating box so and the integral is actually just over one of them.
Instead we can fix the endpoints in time to some field configuration. Here and the time direction would be non periodic.
Or more concicely below.
Most of quantum field theory can be derived from this.
We now define another orthogonal basis. Using the previous orthonormal basis of elements like . Each element of the new basis is defined
And you can prove they're orthogonal by
If we expand the notation
We see that these are really just a bunch of (unnormalized) Dirac delta functions.
Because they're unnormalized we define the measure to be
So that
We will mess around with this
Insert the momentum basis identity
And from construction of the momentum basis
and then insert another identity, using position basis this time
And again from the construction of the momentum basis, and the exponent is negatived since its conjugated.
And then from the definition of the transfer matrix
And
Rewrite as
Then just move it over
Move the terms that don't depend in front
So now we have
(TODO make this more rigorous) In the limit that so that the integral on the right will converge to just the stationary points where the derivative with respect to the components of are zero. If the derivative isn't zero then the "swirling" of the exponent gets infinitely fast and cancells out. So the derivative of the exponent is
And in the limit the term goes to zero
So for the derivative to be zero, this restricts to the field configurations where
Let and in the limit as delta t is small. So then
If an inverse function exists (this assumption is adding an extra requirement to the Lagrangian) so that
And now the "velocity" can be written as a function of the "position" and "momentum". The whole equality now simplifies to
(TODO get an expression for it) Here is some constant depending on how flat the stationary point is.
Now we define a Hamiltonian density defined by the Legedre transform of the Lagrangian density
So now its