For a system with Lagrangian , express the velocities in terms of the momenta and define the Hamiltonian as the Legendre transform
a function of the coordinates and the momenta. The -dimensional space of the is the phase space; one point of it — one state — determines the entire future and past of the system through the canonical equations of Theorem 2.2.
Examples
Example 2.4 (Two Hamiltonians)
Mass on a spring: , so
the canonical equations , are the familiar pair. Pendulum: and
In both cases is the energy, constant on each motion: the motions are the level curves of in the plane.