< Classical Mechanics
In addition to the Lagrangian description of the system, the Hamiltonian description can also be used.
The Hamiltonian can be constructed as follows