Course:PHYS350/Hamilton's Equations

From UBC Wiki

Hamilton's equations provide a new and equivalent way of looking at classical mechanics. Generally, these equations do not provide a new, more convenient way of solving a particular problem but rather they provide deeper insights into the structure of classical mechanics in general and its connection to quantum mechanics.

Deriving Hamilton's Equations

We can derive Hamilton's equations by looking at how the Lagrangian changes as you change the time and the positions and velocities of particles.

Now the generalized momenta were defined as and Lagrange's equations tell us that where is the generalized force. We can rearrange this to get and substitute the result into the variation of the Lagrangian

We can rewrite this as

and rearrange again to get

The term on the left-hand side is just the Hamiltonian that we have defined before, so we find that

where the second equality holds because of the defintion of the partial derivatives.

Hamilton's Equations

The result encourages us to think of the Hamiltonian not just a function of coordinates, velocities and time, but alternatively as a function of coordinates, momenta and time. We have

The first two relativions give 2n first-order differential equations called Hamilton's canonical equations of motion.

Using Hamilton's Equations

1) First write out L = T - V. Express T and V as though you we re going to use Lagrange's equation.

2) Calculate the momenta by differentiating the Lagrangian.

3) Express the velocities in terms of the momenta by inverting the expressions in step (2).

4) Calculate the Hamiltonian using the usual definition Substitute for the velocities using the results in step (3).

5) Apply Hamilton's equations.

Hamilton's Equations of a Pendulum

A pendulum of mass m is suspended by a string of length l. Let's use Hamilton's equations to find the equations of motion.

We have so and

Now let's calculate the Hamiltonian

and apply Hamilton's equations. There are no external forces so we have

Notice how the second relation just gave us back what we already knew from the inversion in the previous step. I could combine these expressions by take the time derivative of the second expression and substituting in the first one. I get a single second order differential equation

that is the same as the one I would have gotten had I used the Lagrange technique. Hey, I never promised that Hamilton's equations would make solving specific problems easier.