Hamiltonian mechanics is an especially elegant and powerful way to derive the equations of motion for complicated systems. Integrating the equations of motion to derive a solution can be a challenge. ...Hamiltonian mechanics is an especially elegant and powerful way to derive the equations of motion for complicated systems. Integrating the equations of motion to derive a solution can be a challenge. Hamilton recognized this difficulty, so he proposed using generating functions to make canonical transformations which transform the equations into a known soluble form.