# Hamiltonian system

A Hamiltonian system is a dynamical system governed by Hamilton's equations. In physics, this dynamical system describes the evolution of a physical system such as a planetary system or an electron in an electromagnetic field. These systems can be studied in both Hamiltonian mechanics and dynamical systems theory.

## Overview

Informally, a Hamiltonian system is a mathematical formalism developed by Hamilton to describe the evolution equations of a physical system. The advantage of this description is that it gives important insight about the dynamics, even if the initial value problem cannot be solved analytically. One example is the planetary movement of three bodies: even if there is no simple solution to the general problem, Poincaré showed for the first time that it exhibits deterministic chaos.

Formally, a Hamiltonian system is a dynamical system completely described by the scalar function ${\displaystyle H({\boldsymbol {q}},{\boldsymbol {p}},t)}$, the Hamiltonian.[1] The state of the system, ${\displaystyle {\boldsymbol {r}}}$, is described by the generalized coordinates 'momentum' ${\displaystyle {\boldsymbol {p}}}$ and 'position' ${\displaystyle {\boldsymbol {q}}}$ where both ${\displaystyle {\boldsymbol {p}}}$ and ${\displaystyle {\boldsymbol {q}}}$ are vectors with the same dimension N. So, the system is completely described by the 2N-dimensional vector

${\displaystyle {\boldsymbol {r}}=({\boldsymbol {q}},{\boldsymbol {p}})}$

and the evolution equation is given by the Hamilton's equations:

{\displaystyle {\begin{aligned}&{\frac {d{\boldsymbol {p}}}{dt}}=-{\frac {\partial H}{\partial {\boldsymbol {q}}}},\\[5pt]&{\frac {d{\boldsymbol {q}}}{dt}}=+{\frac {\partial H}{\partial {\boldsymbol {p}}}}.\end{aligned}}}

The trajectory ${\displaystyle {\boldsymbol {r}}(t)}$ is the solution of the initial value problem defined by the Hamilton's equations and the initial condition ${\displaystyle {\boldsymbol {r}}(0)={\boldsymbol {r}}_{0}\in \mathbb {R} ^{2N}}$.

## Time independent Hamiltonian system

If the Hamiltonian is not explicitly time dependent, i.e. if ${\displaystyle H({\boldsymbol {q}},{\boldsymbol {p}},t)=H({\boldsymbol {q}},{\boldsymbol {p}})}$, then the Hamiltonian does not vary with time at all:[1]

 derivation ${\displaystyle {\frac {dH}{dt}}={\frac {\partial H}{\partial {\boldsymbol {p}}}}\cdot {\frac {d{\boldsymbol {p}}}{dt}}+{\frac {\partial H}{\partial {\boldsymbol {q}}}}\cdot {\frac {d{\boldsymbol {q}}}{dt}}+{\frac {\partial H}{\partial t}}}$ ${\displaystyle {\frac {dH}{dt}}={\frac {\partial H}{\partial {\boldsymbol {p}}}}\cdot \left(-{\frac {\partial H}{\partial {\boldsymbol {q}}}}\right)+{\frac {\partial H}{\partial {\boldsymbol {q}}}}\cdot {\frac {\partial H}{\partial {\boldsymbol {p}}}}+0=0}$

and thus the Hamiltonian is a constant of motion, whose constant equals the total energy of the system, ${\displaystyle H=E}$. Examples of such systems are the pendulum, the harmonic oscillator or dynamical billiards.

### Example

One example of time independent Hamiltonian system is the harmonic oscillator. Consider the system defined by the coordinates ${\displaystyle {\boldsymbol {p}}=p}$ and ${\displaystyle {\boldsymbol {q}}=x}$ whose Hamiltonian is given by

${\displaystyle H={\frac {p^{2}}{2m}}+{\frac {1}{2}}kx^{2}.}$

The Hamiltonian of this system does not depend on time and thus the energy of the system is conserved.

## Symplectic structure

One important property of a Hamiltonian dynamical system is that it has a symplectic structure.[1] Writing

${\displaystyle \nabla _{\boldsymbol {r}}H({\boldsymbol {r}})={\begin{bmatrix}\partial _{\boldsymbol {q}}H({\boldsymbol {q}},{\boldsymbol {p}})\\\partial _{\boldsymbol {p}}H({\boldsymbol {q}},{\boldsymbol {p}})\\\end{bmatrix}}}$

the evolution equation of the dynamical system can be written as

${\displaystyle {\frac {d{\boldsymbol {r}}}{dt}}=S_{N}\cdot \nabla _{\boldsymbol {r}}H({\boldsymbol {r}})}$

where

${\displaystyle S_{N}={\begin{bmatrix}0&I_{N}\\-I_{N}&0\\\end{bmatrix}}}$

and IN the N×N identity matrix.

One important consequence of this property is that an infinitesimal phase-space volume is preserved.[1] A corollary of this is Liouville's theorem, which states that on a Hamiltonian system, the phase-space volume of a closed surface is preserved under time evolution.[1]

${\displaystyle {\frac {d}{dt}}\int _{S_{t}}d{\boldsymbol {r}}=\int _{S_{t}}{\frac {d{\boldsymbol {r}}}{dt}}\cdot d{\boldsymbol {S}}=\int _{S_{t}}{\boldsymbol {F}}\cdot d{\boldsymbol {S}}=\int _{S_{t}}\nabla \cdot {\boldsymbol {F}}\,d{\boldsymbol {r}}=0}$

where the third equality comes from the divergence theorem.