Liouvilles Theorem
From biophysics wiki
Hamiltons Equations of Motion define a velocity field in phase space

\begin{align} \dot{q}_i=\frac{\partial H}{\partial p_i} \end{align} \begin{align} \dot{p}_i=\frac{\partial H}{\partial q_i} \end{align} For each point we can define a vector $\mathbf{v}$ with components \begin{align} \mathbf{v}= \begin{pmatrix} q_1 \\ q_2 \\ \vdots \\ q_r \\ p_1 \\ p_2 \\ \vdots \\ p_r\end{pmatrix} \end{align} We choose let's say $1000$ different initial conditions that lie on and in a sphere in $2r$ dimensional space with volume $V$. We calculate the trajectory of each point, starting at time $t_0$. For some later time $t_1$ each point has now moved according to the laws of motion. As in general some points move fast/slower and into different directions, the sphere will be deformed at time $t_1$. There are two important questions to ask that are equivalent. (i) If we follow the points on the sphere in phase space, is the volume of the sphere conserved? (ii) If we keep the shape of the sphere fixed, are there as many states flowing into the sphere as flow out?
For frictionless systems that conserve energy (e.g. Harmonic Oscillator) the volume in phase space is also conserved. For dissipative systems the phase space volume contractes with time.
In the following lines we want to derive a theorem that gives an answer to question (ii). To make our statment more general we introduce the density of initial conditions $\rho$ in $V$. The flow of states through an infinitesimal surface area $d\mathbf{s}$ of the sphere is given by the product $\rho \cdot \mathbf{v}$. We denote the unit vector normal to $d\mathbf{s}$ with $\mathbf{n}$. The net flux out of the surface $S$ of the volume $V$ is given by the integral over all elements $d\mathbf{s}$ \begin{align} S= \int_S \rho \cdot \mathbf{v} \cdot \mathbf{n} \, d\mathbf{s} \end{align} The change in the number of states per unit time is given by the integral of the time derivative of the density of states over the volume of the sphere. \begin{align} \int_V \frac{\partial \rho}{\partial t} dV \end{align} For a positive flux of points out of the surface, the density of states decreases \begin{align} \int_V \frac{\partial \rho}{\partial t} dV=-\int_S \rho \cdot \mathbf{v} \cdot \mathbf{n} \, d\mathbf{s} \end{align} By convergence theorem we can make the integral over the surface an integral over volume \begin{align} \int_V \frac{\partial \rho}{\partial t} dV=-\int_S \nabla (\rho \cdot \mathbf{v}) \, dV \end{align} An infinitesimal volume element has the change in density \begin{align} \frac{\partial \rho}{\partial t}=-\nabla (\rho \cdot \mathbf{v}) \end{align}
If the same number of states flow into the volume as flow out, $\frac{\partial \rho}{\partial t}$ is zero and $\rho=const.$, in other words volume is preserved.
This equation is known as continuity equation. \begin{align} \frac{\partial \rho}{\partial t}+\nabla (\rho \cdot \mathbf{v}) =0 \end{align} We are interested in the rate of change in $\rho$ as the volume moves with time. This is given by the total derivative \begin{align} \frac{d \rho}{d t}=\frac{\partial \rho}{\partial t}+\sum_i \frac{\partial \rho}{\partial q_i} \dot{q}_i+\frac{\partial \rho}{\partial p_i} \dot{p}_i \end{align} If we plug in derivatives of the Hamiltonian for $\dot{q}_i$ and $\dot{p}_i$ and use Poisson Brackets \begin{align} \frac{d \rho}{d t}=\frac{\partial \rho}{\partial t}+\sum_i \frac{\partial \rho}{\partial q_i} \frac{\partial H}{\partial p_i}-\frac{\partial \rho}{\partial p_i} \frac{\partial H}{\partial q_i} \end{align} \begin{align} \frac{d \rho}{d t}=\frac{\partial \rho}{\partial t} +\{ \rho, H \} \end{align} Notice also that \begin{align} \nabla \mathbf{v}= \frac{\partial^2 H}{\partial p_i \partial q_i}- \frac{\partial^2 H}{\partial q_i \partial p_i}=0 \end{align} and we can write the total time derivative in vector notation \begin{align} \frac{d \rho}{d t}=\frac{\partial \rho}{\partial t}+\nabla(\rho \cdot \mathbf{v}) \end{align}
If states do not converge and the number of states and hence the density of states remains constant, the continuity equation \begin{align} \frac{\partial \rho}{\partial t}+\nabla(\rho \cdot \mathbf{v})=0 \end{align} is satisfied and volume is preserved.
We can also define the Liouville Operator
- $ 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]=\{\cdot, H \} $
In Classical and Statistical Mechanics the continuity equation in the context of the conservation of volume in phase space is also called Liouville Equation. With the Liouville Operator we can write the Liouville Equation as
- $ \frac{\partial \rho }{\partial t} = -{L}\rho $