Next Contents Previous

1.2. Lagrangian and Hamiltonian formulations

The equations of Newtonian cosmology may be derived from Lagrangian and Hamiltonian formulations. The latter is particularly useful for treatments of phase space.

In the Lagrangian approach, one considers the trajectories x(tau) and the action S[x(tau)]. From elementary mechanics (with proper coordinates and no cosmology, yet), S = integL dt with Lagrangian L = T - W = 1/2 mv2 - mphi for a particle moving in a potential phi (T is the kinetic energy and W is the gravitational energy). We now write a similar expression in comoving coordinates, bearing in mind that the action must be a proper quantity:

Equation 1.8 (1.8)

where x dot = v is the peculiar velocity. We will show that eq. (1.8) is the correct Lagrangian by showing that it leads to the correct equations of motion.

Equations of motion for the trajectories follow from Hamilton's principle: the action must be stationary under small variations of the trajectories with fixed endpoints. Thus, we write x(tau) rightarrow x(tau) + deltax(tau), dx / dtau rightarrow dx / dtau + (d / dtau)deltax(tau). The change in the action is

Equation

where we have integrated by parts assuming (partialL / partialx dot) . deltax = 0 at tau = tau1 and tau2. Applying Hamilton's principle, deltaS = 0, we obtain the Euler-Lagrange equation (it works in cosmology, too!):

Equation 1.9 (1.9)

The reader may verify that substituting L from eq. (1.8) yields the correct equation of motion (1.7).

It is straightforward to extend this derivation to a system of self-gravitating particles filling the universe. The Lagrangian is

Equation 1.10 (1.10)

where the total gravitational energy excludes the part arising from the mean density:

Equation 1.11 (1.11)

where the factor 1/2 is introduced to avoid double-counting pairs of particles. For a continuous mass distribution we obtain

Equation 1.12 (1.12)

In the Hamiltonian approach one considers the trajectories in the single-particle (6-dimensional) phase space, {x(tau), p(tau)}. The aim is to obtain coupled first-order equations of motion for x(tau) and p(tau), known as Hamilton's equations, instead of a single second-order equation for x(tau).

The derivation of Hamilton's equations has several steps. First we need the canonical momentum conjugate to x:

Equation 1.13 (1.13)

Note that p is not the proper momentum measured by a comoving observer: mv is. In Hamiltonian mechanics, one must use the conjugate momentum and not the proper momentum.

The next step is to eliminate dx / dtau from the Lagrangian in favor of p. We then transform from the Lagrangian to a new quantity called the Hamiltonian, using a Legendre transformation:

Equation 1.14 (1.14)

Notice that we transform L to H and x dot to p (the latter through eq. 1.13). Why do we perform these transformations? The answer is that now Hamilton's principle gives the desired equations of motion for the phase-space trajectory {x(tau), p(tau)}. In phase space, Hamilton's principle says that the action S = integ L dtau = integ(p . x dot - H) dtau must be stationary under independent variations of all phase space coordinates: x(tau) rightarrow x(tau) + delta x(tau) and p(tau) rightarrow p(tau) + delta p(tau). As an exercise, the reader can show, using a method similar to the derivation of the Euler-Lagrange equation above,

Equation 1.15 (1.15)

provided that p . deltax = 0 at the endpoints of tau.

In our case, H = p2 / (2am) + amphi (getting the a's right requires using the Legendre transformation), yielding

Equation 1.16 (1.16)

These equations could be combined to yield eq. (1.7), but in the Hamiltonian approach we prefer to think of two coupled evolution equations. This is particularly useful when studying the evolution of a system in phase space, as we shall do in section 3 with hot dark matter.

Next Contents Previous