A Hamiltonian system always has an even number of dimensions N, since and are defined as conjugate variables. Therefore, integrals specify a trajectory. Hamilton's equations are
their conjugate momenta, L is the Lagrangian, and the Hamiltonian H is defined by
where Einstein summation Eric Weisstein's World of Math has been used.
Hamiltonian, Hamiltonian Mechanics