Hamiltonian treatment of the rigid pendulum problem.
Posted by peeterjoot on October 7, 2009
[Click here for a PDF that incorporates this post with nicer formatting]
The bob speed for a stiff rod of length is
, and our potential is
. The Lagrangian is therefore
The constant term can be dropped, and our canonical momentum conjugate to
is
, so our Hamiltonian is
We can now compute the Hamiltonian equations
Only in the neighborhood of a particular angle can we write this in matrix form. Suppose we expand this around . The sine is then
The linear approximation of the Hamiltonian equations after a change of variables become
A change of variables that scales the factors in the matrix to have equal magnitude and equivalent dimensions is helpful. Writing
one finds
To tidy this up, we want
Or
The result of applying this scaling is quite different above and below the horizontal due to the sign difference in the cosine. Below the horizontal where we get
and above the horizontal where we get
Since has the characteristics of an imaginary number (squaring to the negative of the identity) the homogeneous part of the solution for the change of the phase space vector in the vicinity of any initial angle in the lower half plane is trigonometric. Similarly the solutions are necessarily hyperbolic in the upper half plane since
squares to identity. And around
something totally different (return to this later). The problem is now reduced to solving a non-homogeneous first order matrix equation of the form
But we have the good fortune of being able to easily exponentiate and invert this matrix . The homogeneous problem
has the solution
Assuming a specific solution for the non-homogeneous equation, one finds
. The complete solution with both the homogeneous and non-homogeneous parts is thus
Going back to the pendulum problem, lets write
Below the horizontal we have
Whereas above the horizontal we have
In both cases we have
(where the real angle was ). Since in this case
and
commute, we have below the horizontal
Expanding out the terms and doing the same for above the horizontal we have respectively (below and above)
The only thing that is really left is re-insertion of the original momentum and position variables using the inverse relation
Will that final insertion do anything more than make things messier? Observe that the only has a momentum component when expressed back in terms of the total angle
. Also recall that
, so we have
If this is somehow mystically free of all math mistakes then we have the final solution
A qualification is required to call this a solution since it is only a solution is the restricted range where is close enough to
(in some imprecisely specified sense). One could conceivably apply this in a recursive fashion however, calculating the result for a small incremental change, yielding the new phase space point, and repeating at the new angle.
The question of what the form of the solution in the neighborhood of has also been ignored. That’s probably also worth considering but I don’t feel like trying now.