Introduction to Hamiltonian Systems

Example 1: Mass on a spring with no friction

Total energy is conserved

Hamilton's equations

The Hamiltonian

Hamilton's equations

In general:

For the spring

Taking the partial derivatives of gives back our equations of motion:

Phase space trajectories

Initial position =

Parameters

Example 2: Pendulum with no friction

Pendulum phase space

Initial state
Parameters

Liouville's theorem: spring

Area of the disk:

Liouville's theorem: pendulum

Area of the disk: