## Reformulating NewtonEdit

In the last chapter we saw how to reformulate Newton's laws as a set of second order ordinary differential equations using arbitrary coordinates:

It is often far easier to solve a problem by starting with the Lagrangian than by explicitly using Newton's laws. The Lagrangian is also more useful for theoretical analysis.

However, the Lagrangian approach is not the only useful way to reformulate Newton. There is a second, related, approach which is also highly useful for analysis; namely, writing the equations of motion as a set of first order ordinary differential equations in a particularly natural way.

To do this we will use a standard technique, familiar from your calculus studies.

## DerivationEdit

Consider the function

where the are the generalised coordinates, the are a set of new variables whose meaning we will soon see, is to be a function of the 's and 's alone, and the summation convention is being used.

Then we have

but, since *H* is a function of the *p*‘s and *q*‘s alone we can also write

For these two equations to both be true the coefficients of the differentials must be equal.

Equation (2) does not contain a term in , so the coefficient of that term in equation (1) must be zero. I.e,

which gives us a definition of the *p*_{i}. Using this in Lagrange's equations gives

and equation (1) simplifies to

A comparison of coefficients with equation (2) now gives the desired set of first order equations for the motion,

These are called *Hamilton's equations* and *H* is called the *Hamiltonian.*

## Physical meaning of H and pEdit

To see what *H* and the *p*_{i}'s actually are, let's consider a few typical cases.

*First,* let's look at a free particle, one subject to no forces. This will let us see what the *p*_{i}'s mean, physically.

If we use Cartesian coordinates for the free particle, we have

The *p*_{i}'s are the differential of this with respect to the velocities.

These are the components of the momentum vector.

If we use cylindrical coordinates, we have

and

This time, *p*_{z} is the component of momentum is the *z* direction, *p*_{r} is the radial momentum, and *p*_{θ} is the angular momentum, which we've previously seen is the equivalent of momentum for rotation.

Since, in these familiar cases, the *p*_{i}'s are momenta, we generalise and call the *p*_{i}'s *conjugate momenta*.

Note that from Hamilton's equations, we see that if *H* is independent of some coordinate, *q*, then

so the momentum conjugate to *q* is conserved. This connection between conservation laws and coordinate independence lies at the heart of much physics.

*Secondly*, to see the physical meaning of *H*, we'll consider a particle moving in a potential *V*, described using Cartesian coordinates.

This time the Lagrangian is

We find that the *p*_{i}'s are

so, again, they are the momenta

Now lets calculate *H*.

so *H* is the total energy, written as a function of the position and momentum.

This is not always true, but it will be true for all common systems which conserve energy.

In general, if we know how the energy of a systems depends on speeds and positions, we know everything about the system.

Physicists will often start work on a problem by writing down an expression for *H*, or *L*, and never bother calculating the actual forces.

## Deeper meaningEdit

If we compare Hamilton's equations,

with the equations of geometrical optics.

we see that both sets of equations have the same form.

If we made a substitution of the form,

for any α, the two sets of equations would become identical.

Now, geometrical optics is an approximation to the full solution of any wave equation, valid when the wavelength is small.

Since classical mechanics is just like geometrical optics, classical mechanics could also be small wavelength approximation to a more accurate wave theory.

This is not a proof, *could be* is not the same as *is*, but it does show that classical mechanics is compatible with wave theories, contrary to intuition.

We will see later that this is not a coincidence, classical mechanics really is a small wavelength approximation to a more accurate wave theory, namely quantum mechanics, and that, in that theory, the energy of matter waves is proportional to frequency and the momentum to wave number, just as the substitution above requires.

Hamilton's equations can also be used to construct a mathematical gadget, called a Poisson bracket, which lets us write the equations of classical mechanics in a way which makes the connections with quantum mechanics even clearer, but an explanation of how would be beyond the scope of this book.

Since classical mechanics is just like geometrical optics, there should be an analog to Fermat's principle, that light takes the quickest path, and there is.

Where light takes the quickest path from *a* to *b*, matter takes the path of *least action*, where the action is defined as

It can be proved that this integral takes extremal values if and only if the system obeys Lagrange's equations. Saying matter takes the path of least action is equivalent to saying it obeys Lagrange's equations, or Newton's laws.

Furthermore, it turns out that in general relativity, the action is proportional to the time taken, so matter is also really taking the quickest path between two points.