Lets write
the Hamiltonian and Hamilton's equations for a particle in Cartesian coordinates.
we know these momenta
check this time
gives us in terms of
gives us equation of motion
One equation defines the momentum and the other simply gives Newton's law in a potential.
The Hamiltonian is the total energy.
So, again, the
Hamiltonian formalism gives us the same results as does Newton's laws, however,
sometimes it is more convenient.