Hamiltonian mechanics
Hamiltonians can be used to describe such simple systems as a bouncing ball, a pendulum or an oscillating spring in which energy changes between  kinetic and  potential energy and back again over time. Hamiltonians can also be used to study the orbits of planets and in the behaviour of atoms using the principles of quantum mechanics.