# Liouville's theorem (Hamiltonian)

In physics, Liouville's theorem, named after the French mathematician Joseph Liouville, is a key theorem in classical statistical and Hamiltonian mechanics. It asserts that the phase-space distribution function is constant along the trajectories of the system—that is that the density of system points in the vicinity of a given system point traveling through phase-space is constant with time. This time-independent density is in statistical mechanics known as the classical a priori probability.[1]

There are related mathematical results in symplectic topology and ergodic theory; systems obeying Liouville's theorem are examples of incompressible dynamical systems.

There are extensions of Liouville's theorem to stochastic systems.[2]

## Liouville equations

Evolution of an ensemble of classical systems in phase space (top). Each system consists of one massive particle in a one-dimensional potential well (red curve, lower figure). Whereas the motion of an individual member of the ensemble is given by Hamilton's equations, Liouville's equations describe the flow of the whole distribution. The motion is analogous to a dye in an incompressible fluid.

The Liouville equation describes the time evolution of the phase space distribution function. Although the equation is usually referred to as the "Liouville equation", Josiah Willard Gibbs was the first to recognize the importance of this equation as the fundamental equation of statistical mechanics.[3][4] It is referred to as the Liouville equation because its derivation for non-canonical systems utilises an identity first derived by Liouville in 1838.[5][6] Consider a Hamiltonian dynamical system with canonical coordinates ${\displaystyle q_{i}}$  and conjugate momenta ${\displaystyle p_{i}}$ , where ${\displaystyle i=1,\dots ,n}$ . Then the phase space distribution ${\displaystyle \rho (p,q)}$  determines the probability ${\displaystyle \rho (p,q)\;\mathrm {d} ^{n}q\,\mathrm {d} ^{n}p}$  that the system will be found in the infinitesimal phase space volume ${\displaystyle \mathrm {d} ^{n}q\,\mathrm {d} ^{n}p}$ . The Liouville equation governs the evolution of ${\displaystyle \rho (p,q;t)}$  in time ${\displaystyle t}$ :

${\displaystyle {\frac {d\rho }{dt}}={\frac {\partial \rho }{\partial t}}+\sum _{i=1}^{n}\left({\frac {\partial \rho }{\partial q_{i}}}{\dot {q}}_{i}+{\frac {\partial \rho }{\partial p_{i}}}{\dot {p}}_{i}\right)=0.}$

Time derivatives are denoted by dots, and are evaluated according to Hamilton's equations for the system. This equation demonstrates the conservation of density in phase space (which was Gibbs's name for the theorem). Liouville's theorem states that

The distribution function is constant along any trajectory in phase space.

A proof of Liouville's theorem uses the n-dimensional divergence theorem. This proof is based on the fact that the evolution of ${\displaystyle \rho }$  obeys an 2n-dimensional version of the continuity equation:

${\displaystyle {\frac {\partial \rho }{\partial t}}+\sum _{i=1}^{n}\left({\frac {\partial (\rho {\dot {q}}_{i})}{\partial q_{i}}}+{\frac {\partial (\rho {\dot {p}}_{i})}{\partial p_{i}}}\right)=0.}$

That is, the 3-tuple ${\displaystyle (\rho ,\rho {\dot {q}}_{i},\rho {\dot {p}}_{i})}$  is a conserved current. Notice that the difference between this and Liouville's equation are the terms

${\displaystyle \rho \sum _{i=1}^{n}\left({\frac {\partial {\dot {q}}_{i}}{\partial q_{i}}}+{\frac {\partial {\dot {p}}_{i}}{\partial p_{i}}}\right)=\rho \sum _{i=1}^{n}\left({\frac {\partial ^{2}H}{\partial q_{i}\,\partial p_{i}}}-{\frac {\partial ^{2}H}{\partial p_{i}\partial q_{i}}}\right)=0,}$

where ${\displaystyle H}$  is the Hamiltonian, and Hamilton's equations as well as conservation of the Hamiltonian along the flow have been used. That is, viewing the motion through phase space as a 'fluid flow' of system points, the theorem that the convective derivative of the density, ${\displaystyle d\rho /dt}$ , is zero follows from the equation of continuity by noting that the 'velocity field' ${\displaystyle ({\dot {p}},{\dot {q}})}$  in phase space has zero divergence (which follows from Hamilton's relations).[7]

Another illustration is to consider the trajectory of a cloud of points through phase space. It is straightforward to show that as the cloud stretches in one coordinate – ${\displaystyle p_{i}}$  say – it shrinks in the corresponding ${\displaystyle q^{i}}$  direction so that the product ${\displaystyle \Delta p_{i}\,\Delta q^{i}}$  remains constant.

## Other formulations

### Poisson bracket

The theorem above is often restated in terms of the Poisson bracket as

${\displaystyle {\frac {\partial \rho }{\partial t}}=-\{\,\rho ,H\,\}}$

or, in terms of the linear Liouville operator or Liouvillian,

${\displaystyle \mathrm {i} {\widehat {\mathbf {L} }}=\sum _{i=1}^{n}\left[{\frac {\partial H}{\partial p_{i}}}{\frac {\partial }{\partial q^{i}}}-{\frac {\partial H}{\partial q^{i}}}{\frac {\partial }{\partial p_{i}}}\right]=\{\bullet ,H\}}$

as

${\displaystyle {\frac {\partial \rho }{\partial t}}+{\mathrm {i} {\widehat {\mathbf {L} }}}\rho =0.}$

### Ergodic theory

In ergodic theory and dynamical systems, motivated by the physical considerations given so far, there is a corresponding result also referred to as Liouville's theorem. In Hamiltonian mechanics, the phase space is a smooth manifold that comes naturally equipped with a smooth measure (locally, this measure is the 6n-dimensional Lebesgue measure). The theorem says this smooth measure is invariant under the Hamiltonian flow. More generally, one can describe the necessary and sufficient condition under which a smooth measure is invariant under a flow[citation needed]. The Hamiltonian case then becomes a corollary.

### Symplectic geometry

We can also formulate Liouville's Theorem in terms of symplectic geometry. For a given system, we can consider the phase space ${\displaystyle (q^{\mu },p_{\mu })}$  of a particular Hamiltonian ${\displaystyle H}$  as a manifold ${\displaystyle (M,\omega )}$  endowed with a symplectic 2-form

${\displaystyle \omega =dp_{\mu }\wedge dq^{\mu }.}$

The volume form of our manifold is the top exterior power of the symplectic 2-form, and is just another representation of the measure on the phase space described above.

On our phase space symplectic manifold we can define a Hamiltonian vector field generated by a function ${\displaystyle f(q,p)}$  as

${\displaystyle X_{f}={\frac {\partial f}{\partial p_{\mu }}}{\frac {\partial }{\partial q^{\mu }}}-{\frac {\partial f}{\partial q^{\mu }}}{\frac {\partial }{\partial p_{\mu }}}.}$

Specifically, when the generating function is the Hamiltonian itself, ${\displaystyle f(q,p)=H}$ , we get

${\displaystyle X_{H}={\frac {\partial H}{\partial p_{\mu }}}{\frac {\partial }{\partial q^{\mu }}}-{\frac {\partial H}{\partial q^{\mu }}}{\frac {\partial }{\partial p_{\mu }}}={\frac {dq^{\mu }}{dt}}{\frac {\partial }{\partial q^{\mu }}}+{\frac {dp^{\mu }}{dt}}{\frac {\partial }{\partial p_{\mu }}}={\frac {d}{dt}}}$

where we utilized Hamilton's equations of motion and the definition of the chain rule.[8]

In this formalism, Liouville's Theorem states that the Lie derivative of the volume form is zero along the flow generated by ${\displaystyle X_{H}}$ . That is, for ${\displaystyle (M,\omega )}$  a 2n-dimensional symplectic manifold,

${\displaystyle {\mathcal {L}}_{X_{H}}(\omega ^{n})=0.}$

In fact, the symplectic structure ${\displaystyle \omega }$  itself is preserved, not only its top exterior power. That is, Liouville's Theorem also gives [9]

${\displaystyle {\mathcal {L}}_{X_{H}}(\omega )=0.}$

### Quantum Liouville equation

The analog of Liouville equation in quantum mechanics describes the time evolution of a mixed state. Canonical quantization yields a quantum-mechanical version of this theorem, the Von Neumann equation. This procedure, often used to devise quantum analogues of classical systems, involves describing a classical system using Hamiltonian mechanics. Classical variables are then re-interpreted as quantum operators, while Poisson brackets are replaced by commutators. In this case, the resulting equation is[10][11]

${\displaystyle {\frac {\partial \rho }{\partial t}}={\frac {1}{i\hbar }}[H,\rho ]}$

where ρ is the density matrix.

When applied to the expectation value of an observable, the corresponding equation is given by Ehrenfest's theorem, and takes the form

${\displaystyle {\frac {d}{dt}}\langle A\rangle =-{\frac {1}{i\hbar }}\langle [H,A]\rangle }$

where ${\displaystyle A}$  is an observable. Note the sign difference, which follows from the assumption that the operator is stationary and the state is time-dependent.

In the phase space formulation of quantum mechanics, substituting the Moyal brackets for Poisson brackets in the phase-space analog of the von Neumann equation results in compressibility of the probability fluid, and thus violations of Liouville's theorem incompressibility. This, then, leads to concomitant difficulties in defining meaningful quantum trajectories.[citation needed]

## Examples

### SHO Phase Space Volume

The time evolution of phase space for the simple harmonic oscillator (SHO). Here we have taken ${\displaystyle m=\omega =1}$  and are considering the region ${\displaystyle p,q\in [-1,1]}$ .

Consider an ${\displaystyle N}$  particle system in three dimensions, and focus on only the evolution of ${\displaystyle \mathrm {d} {\mathcal {N}}}$  particles. Within phase space, these ${\displaystyle \mathrm {d} {\mathcal {N}}}$  particles occupy an infinitesimal volume given by

${\displaystyle \mathrm {d} \Gamma =\displaystyle \prod _{i=1}^{N}d^{3}p_{i}d^{3}q_{i}.}$

We want ${\displaystyle {\frac {\mathrm {d} {\mathcal {N}}}{\mathrm {d} \Gamma }}}$  to remain the same throughout time, so that ${\displaystyle \rho (\Gamma ,t)}$  is constant along the trajectories of the system. If we allow our particles to evolve by an infinitesimal time step ${\displaystyle \delta t}$ , we see that each particle phase space location changes as

${\displaystyle {\begin{cases}q_{i}'=q_{i}+{\dot {q_{i}}}\delta t\\p_{i}'=p_{i}+{\dot {p_{i}}}\delta t,\end{cases}}}$

where ${\displaystyle {\dot {q_{i}}}}$  and ${\displaystyle {\dot {p_{i}}}}$  denote ${\displaystyle {\frac {dq_{i}}{dt}}}$  and ${\displaystyle {\frac {dp_{i}}{dt}}}$  respectively, and we have only kept terms linear in ${\displaystyle \delta t}$ . Extending this to our infinitesimal hypercube ${\displaystyle \mathrm {d} \Gamma }$ , the side lengths change as

${\displaystyle {\begin{cases}dq_{i}'=dq_{i}+{\frac {\partial {\dot {q_{i}}}}{\partial q_{i}}}dq_{i}\delta t\\dp_{i}'=dp_{i}+{\frac {\partial {\dot {p_{i}}}}{\partial p_{i}}}dp_{i}\delta t.\end{cases}}}$

To find the new infinitesimal phase space volume ${\displaystyle \mathrm {d} \Gamma '}$ , we need the product of the above quantities. To first order in ${\displaystyle \delta t}$ , we get the following.

${\displaystyle dq_{i}'dp_{i}'=dq_{i}dp_{i}\left[1+\left({\frac {\partial {\dot {q_{i}}}}{\partial q_{i}}}+{\frac {\partial {\dot {p_{i}}}}{\partial p_{i}}}\right)\delta t\right]}$

So far, we have yet to make any specifications about our system. Let us now specialize to the case of ${\displaystyle N}$  ${\displaystyle 3}$ -dimensional isotropic harmonic oscillators. That is, each particle in our ensemble can be treated as a simple harmonic oscillator. The Hamiltonian for this system is given by

${\displaystyle H=\displaystyle \sum _{i=1}^{3N}\left({\frac {1}{2m}}p_{i}^{2}+{\frac {m\omega ^{2}}{2}}q_{i}^{2}\right)}$

By using Hamilton's equations with the above Hamiltonian we find that the term in parentheses above is identically zero, thus yielding

${\displaystyle dq_{i}'dp_{i}'=dq_{i}dp_{i}.}$

From this we can find the infinitesimal volume of phase space.

${\displaystyle \mathrm {d} \Gamma '=\displaystyle \prod _{i=1}^{N}d^{3}q_{i}'d^{3}p_{i}'=\prod _{i=1}^{N}d^{3}q_{i}d^{3}p_{i}=\mathrm {d} \Gamma }$

Thus we have ultimately found that the infinitesimal phase space volume is unchanged, yielding

${\displaystyle \rho (\Gamma ',t+\delta t)={\frac {\mathrm {d} {\mathcal {N}}}{\mathrm {d} \Gamma '}}={\frac {\mathrm {d} {\mathcal {N}}}{\mathrm {d} \Gamma }}=\rho (\Gamma ,t),}$

demonstrating Liouville's Theorem holds for this system.[12]

The question remains of how the phase space volume actually evolves in time. Above we have shown that the total volume is conserved, but said nothing about what it looks like. For a single particle we can see that its trajectory in phase space is given by the ellipse of constant ${\displaystyle H}$ . Explicitly, one can solve Hamilton's equations for the system and find

{\displaystyle {\begin{aligned}q_{i}(t)&=Q_{i}\cos {\omega t}+{\frac {P_{i}}{m\omega }}\sin {\omega t}\\p_{i}(t)&=P_{i}\cos {\omega t}-m\omega Q_{i}\sin {\omega t},\end{aligned}}}

where ${\displaystyle Q_{i}}$  and ${\displaystyle P_{i}}$  denote the initial position and momentum of the ${\displaystyle i^{\mathrm {th} }}$  particle. For a system of multiple particles, each one will have a phase space trajectory that traces out an ellipse corresponding to the particle's energy. The frequency at which the ellipse is traced is given by the ${\displaystyle \omega }$  in the Hamiltonian, independent of any differences in energy. As a result a region of phase space will simply rotate about the point ${\displaystyle (\mathbf {q} ,\mathbf {p} )=(0,0)}$  with frequency dependent on ${\displaystyle \omega }$ .[13] This can be seen in the animation above.

### Damped Harmonic Oscillator

The evolution of phase space volume for the damped harmonic oscillator. The same values of parameters are used as in the SHO case, with ${\displaystyle \gamma =0.5\;(\alpha =0.25)}$ .

One of the foundational assumptions of Liouville's Theorem is that the system obeys the conservation of energy. In the context of phase space, this is to say that ${\displaystyle \rho }$  is constant on phase space surfaces of constant energy ${\displaystyle E}$ . If we break this requirement by considering a system in which energy is not conserved, we find that ${\displaystyle \rho }$  also fails to be constant.

As an example of this, consider again the system of ${\displaystyle N}$  particles each in a ${\displaystyle 3}$ -dimensional isotropic harmonic potential, the Hamiltonian for which is given in the previous example. This time, we add the condition that each particle experiences a frictional force. As this is a non-conservative force, we need to extend Hamilton's equations as

{\displaystyle {\begin{aligned}{\dot {q_{i}}}&={\frac {\partial H}{\partial p_{i}}}\\{\dot {p_{i}}}&=-{\frac {\partial H}{\partial q_{i}}}-\gamma p_{i},\end{aligned}}}

where ${\displaystyle \gamma }$  is a positive constant dictating the amount of friction. Following a very similar procedure to the undamped harmonic oscillator case, we arrive again at

${\displaystyle dq_{i}'dp_{i}'=dq_{i}dp_{i}\left[1+\left({\frac {\partial {\dot {q_{i}}}}{\partial q_{i}}}+{\frac {\partial {\dot {p_{i}}}}{\partial p_{i}}}\right)\delta t\right].}$

Plugging in our modified Hamilton's equations, we find

{\displaystyle {\begin{aligned}dq_{i}'dp_{i}'&=dq_{i}dp_{i}\left[1+\left({\frac {\partial ^{2}H}{\partial q_{i}\partial p_{i}}}-{\frac {\partial ^{2}H}{\partial p_{i}\partial q_{i}}}-\gamma \right)\delta t\right]\\&=dq_{i}dp_{i}\left[1-\gamma \delta t\right].\end{aligned}}}

Calculating our new infinitesimal phase space volume, and keeping only first order in ${\displaystyle \delta t}$  we find the following result.

${\displaystyle \mathrm {d} \Gamma '=\displaystyle \prod _{i=1}^{N}d^{3}q_{i}'d^{3}p_{i}'=\left[1-\gamma \delta t\right]^{3N}\prod _{i=1}^{N}d^{3}q_{i}d^{3}p_{i}=\mathrm {d} \Gamma \left[1-3N\gamma \delta t\right]}$

We have found that the infinitesimal phase space volume is no longer constant, and thus the phase space density is not conserved. As can be seen from the equation as time increases, we expect our phase space volume to decrease to zero as friction affects the system.

As for how the phase space volume evolves in time, we will still have the constant rotation as in the undamped case. However, the damping will introduce a steady decrease in the radii of each ellipse. Again we can solve for the trajectories explicitly using Hamilton's equations, taking care to use the modified ones above. Letting ${\displaystyle \alpha \equiv {\frac {\gamma }{2}}}$  for convenience, we find

{\displaystyle {\begin{aligned}q_{i}(t)&=e^{-\alpha t}\left[Q_{i}\cos {\omega _{1}t}+B_{i}\sin {\omega _{1}t}\right]&&\omega _{1}\equiv {\sqrt {\omega ^{2}-\alpha ^{2}}}\\p_{i}(t)&=e^{-\alpha t}\left[P_{i}\cos {\omega _{1}t}-m(\omega _{1}Q_{i}+2\alpha B_{i})\sin {\omega _{1}t}\right]&&B_{i}\equiv {\frac {1}{\omega _{1}}}\left({\frac {P_{i}}{m}}+2\alpha Q_{i}\right),\end{aligned}}}

where the values ${\displaystyle Q_{i}}$  and ${\displaystyle P_{i}}$  denote the initial position and momentum of the ${\displaystyle i^{\mathrm {th} }}$  particle. As the system evolves the total phase space volume will spiral in to the origin. This can be seen in the figure above.

## References

1. ^ Harald J. W. Müller-Kirsten, Basics of Statistical Physics, 2nd ed., World Scientific (Singapore, 2013)
2. ^ Kubo, Ryogo (1963-02-01). "Stochastic Liouville Equations". Journal of Mathematical Physics. 4 (2): 174–183. Bibcode:1963JMP.....4..174K. doi:10.1063/1.1703941. ISSN 0022-2488.
3. ^ J. W. Gibbs, "On the Fundamental Formula of Statistical Mechanics, with Applications to Astronomy and Thermodynamics." Proceedings of the American Association for the Advancement of Science, 33, 57–58 (1884). Reproduced in The Scientific Papers of J. Willard Gibbs, Vol II (1906), p. 16.
4. ^
5. ^ Liouville, Joseph. "Sur la Theorie de la Variation des constantes arbitraires" (PDF). Journal de mathématiques pures et appliquées. 3: 342–349.
6. ^ Ehrendorfer, Martin. "The Liouville Equation: Background - Historical Background". The Liouville Equation in Atmospheric Predictability (PDF). pp. 48–49.
7. ^ Harald J.W. Müller-Kirsten, Introduction to Quantum Mechanics: Schrödinger Equation and Path Integral, 2nd ed., World Scientific (Singapore, 2012).
8. ^ Nakahara, Mikio (2003). Geometry, Topology, and Physics (2 ed.). Taylor & Francis Group. pp. 201–204. ISBN 978-0-7503-0606-5.
9. ^ Nash, Oliver (8 January 2015). "Liouville's theorem for pedants" (PDF).
10. ^
11. ^
12. ^ Kardar, Mehran (2007). Statistical Physics of Particles. University of Cambridge Press. pp. 59–60. ISBN 978-0-521-87342-0.
13. ^ Eastman, Peter (2014–2015). "Evolution of Phase Space Probabilities".
14. ^ For a particularly clear derivation see Tolman, R. C. (1979). The Principles of Statistical Mechanics. Dover. pp. 48–51. ISBN 9780486638966.
15. ^ "Phase Space and Liouville's Theorem". Retrieved January 6, 2014. Nearly identical to proof in this Wikipedia article. Assumes (without proof) the n-dimensional continuity equation.
16. ^ "Preservation of phase space volume and Liouville's theorem". Retrieved January 6, 2014. A rigorous proof based on how the Jacobian volume element transforms under Hamiltonian mechanics.
17. ^ "Physics 127a: Class Notes" (PDF). Retrieved January 6, 2014. Uses the n-dimensional divergence theorem (without proof).
18. ^ Nash, Oliver (January 8, 2015). "Liouville's theorem for pedants" (PDF). Retrieved October 1, 2015. Proves Liouville's theorem using the language of modern differential geometry.