The goal of this post is to prove Liouville's Theorem that
states that volume in phase space is preserved by Hamiltonian
flows. I used the wonderful book Mathematical Methods of
Classical Mechanics by Arnold [1] as my
reference. For the interested reader I highly recommend
Spivak's rigorous treatment [2] on classical
mechanics.
The Lagrangian
I wrote about the Lagrangian and the Euler-Lagrange
equation in a previous post
covering an introduction to the Calculus of Variations, so in
this section we will only give an overview.
Let $L \colon \mathbb{R}^n \times \mathbb{R}^n \times \mathbb{R}
\to \mathbb{R}$ called the Lagrangian be $C^2$ and let
$J$ be defined as
with $\mathbf{q} \in C^2([t_0, t_1], \mathbb{R}^n)$. We call
$\mathbf{q}$ the generalized coordinate and
$\dot{\mathbf{q}}$ the generalized velocity. The
extrema of $J$ satisfies the Euler-Lagrange equation
Next we'll consider a mechanical system consisting of $N$ point
particles $\mathbf{x}_i \in \mathbb{R}^n$ with masses $m_i > 0$.
Let $U$ be a $C^2$ function of the $\mathbf{x}_i$'s called the
potential energy and let $T$ be defined as
That is $\ddot{\theta} = - \frac{g}{l}\sin\theta$.
The Hamiltonian
Before we can discuss the Hamiltonian of a Lagrangian system, we
first need to introduce the Legendre transform. Our
discussion of the Legendre transform will be extremely brief.
The curious reader will find more properties of the
transformation and the historical context in pages 513 - 519 of
[2].
Definition.
Let $U \subseteq \mathbb{R}^n$ with $f \colon U \to \mathbb{R}$
being convex. We define the Legendre transform $f^*
\colon U^* \to \mathrm{R}$ of $f$ such that
where vector multiplication is the standard dot product.
Note that if $f$ is $C^1$, then we see $g(\mathbf{x}) \defeq
\mathbf{p}\mathbf{x} - f(\mathbf{x})$ is maximized for when
$\mathbf{x}$ satisfies $Df(\mathbf{x}) = \mathbf{p}$. Oftentimes
in this case, is useful to write the Legendre transform as the
system
Definition.
Let the Lagrangian $L \colon \mathbb{R}^n \times \mathbb{R}^n
\times \mathbb{R} \to \mathbb{R}$ be $C^2$ and convex with
respect to $\dot{\mathbf{q}}$. The Hamiltonian
$H(\mathbf{p}, \mathbf{q}, t)$ is defined as the Legendre
transformation of $L$ with respect to $\dot{\mathbf{q}}$.
To be precise, we have the following relation:
Theorem (Hamilton's equations).
Let the Lagrangian $L(\mathbf{q}, \dot{\mathbf{q}}, t)$ be
convex in $\dot{\mathbf{q}}$ with $H(\mathbf{p}, \mathbf{q}, t)$
being the induced Hamiltonian. Then the system of Euler-Lagrange
equations is equivalent to the following Hamilton's
equations:
Hamilton's equations simply follow from the Euler-Lagrange
equation:
$$
\dot{\mathbf{p}} + \pd[H]{\mathbf{q}} = 0.
$$
Conversely suppose that we have a Hamiltonian system
$H(\mathbf{p}, \mathbf{q}, t)$ that is convex with respect to
$\mathbf{p}$. We define the Lagrangian as the Legendre
transformation with respect to $\mathbf{p}$:
and observe $\pd[L]{\dot{\mathbf{q}}} = \mathbf{p}$ and
$\pd[L]{\mathbf{q}} = - \pd[H]{\mathbf{q}}$ by expanding out
$dH$ like the previous argument. Therefore, we recover the
Euler-Lagrange equation
Observe that $\dot{\mathbf{q}} = \pd[H]{\mathbf{p}}$ is
independent of $L$ being a Lagrangian system and follows from
properties of Legendre transformations. Moreover this gives a
diffeomorphism between $\mathbf{p}$ and $\dot{\mathbf{q}}$.
Example.
We continue with the example of the simple pendulum. Recall
from the last example that the Hamiltonian of the simple
pendulum is
Now observe $\ddot{\theta} = \frac{\dot{p}}{l^2} = -
\frac{g}{l}\sin\theta$.
In physical systems the Hamiltonian is the total energy
of the system $H = T + U$ (i.e. kinetic + potential energy). Next
we show that the Hamiltonian is first integral.
Proposition (Conservation of Energy).
Let $\mathbf{p}(t)$ and $\mathbf{q}(t)$ be paths that satisfy
Hamilton's equations for an Hamiltonian $H(\mathbf{p},
\mathbf{q})$ that does not depend on time. Then
$H(\mathbf{p}(t), \mathbf{q}(t))$ is constant as a function of
$t$.
Let $\dot{\mathbf{x}} = \mathbf{f}(\mathbf{x})$ with
$\mathbf{x}(t) \defeq (x^1(t), x^2(t), \dots, x^n(t))$ be a
system of ordinary differential equations with $\phi_t$ being
the induced flow. By Taylor's Theorem, we can expand
$\phi_t$ at initial time $t_0$ as
Lemma.
Let $D$ be a region in the phase space and define $D_{t}$ as
$\phi_t(D)$, and let $v(t) \defeq \vol(D_{t})$ be the volume of
$D$ at time $t$. We have