The Physics Travel Guide

Hamilton's Equations

Prerequisites: Hamiltonian Formalism. Full path (13 pages)

q˙=∂H∂p,p˙=−∂H∂q\dot q = \frac{\partial H}{\partial p}, \quad \dot p = - \frac{\partial H}{\partial q}

Intuitive

Hamilton’s Equations show how the qiq_i's and pip_i's undergo a ‘dance to the music of time’, a dance in which, as some qiq_i's or pip_i's increase in value, others decrease in value, but always such as to keep the energy constant (in conservative systems), and always such as to keep the total action minimized, both instant by instant, and over the whole path between ‘surfaces-of-common-action’. This ‘dance’ is governed by one function, HH, - that is to say, while HH is different for different systems (orbiting planets, a statistical ensemble, an electrical circuit, positrons orbiting an atomic antinucleus, a spinning top, juggling pins, a flowing river and so on) yet within any one system there is just one overaching function (there is no need for individual functions, H1H_1, H2H_2,…,Hn)H_n). The Lazy Universe by Coopersmith

Now, how are we to visualize Hamilton's equations in terms of phase space? First, we should bear in mind what a single point Q of phase space actually represents. It corresponds to a particular set of values for all the position coordinates x1,x2,….x_1,x_2,\ldots. and for all the momentum coordinates p1,p2,…p_1,p_2, … That is to say, Q represents our entire physical system, with a particular state of motion specified for every single one of its constituent particles. Hamilton's equations tell us what the rates of change of all these coordinates are when we know their present values; i.e. it governs how all the individual particles are to move. Translated into phase-space language, the equations are telling us how a single point Q in phase space must move, given the present location of Q in phase space. Thus, at each point of phase space, we have a little arrow - more correctly a vector- which tells us the way that Q is moving, in order to describe the evolution of our entire system in time. The whole arrangement of arrows constitutes what is known as a vector field (Fig. .11). Hamilton's equations thus define a vector field on phase space.

Let us see how physical determinism is to be interpreted in tel filS of phase space. For initial data at time t = 0, we would have a particular set of values ~specified for all the position and momentum coordinates; that is to say, we have a particular choice of point Q in phase space. To find the evolution of the system in time. we simply follow the arrows. Thus the entire evolution of our system with time - no matter how complicated that system might be - is described in phase space as just a single point moving along following the particular arrows that it encounters. We can think of the arrows as indicating the "velocity" of our point Q in phase space. For a "long" arrow, Q moves along swiftly, but if the arrow is "short", Q's motion will be sluggish. To see what our physical system is doing at time t, we simply look to see where Q has moved to, by that time, by following arrows in this way. Clearly, this is a deterministic procedure. The way that Q moves is completely determined by, the Hamiltonian vector field.

page 174ff in "The Emperors new Mind" by R. Penrose

test

Concrete

Hamiltons equations are q˙=∂H∂pp˙=−∂H∂q\dot q = \frac{\partial H}{\partial p} \\ \dot p = - \frac{\partial H}{\partial q}

These equations tell you how to move a point in phase space infinitesimally given a scalar function H on the phase space. Such a transformation is an infinitesimal canonical transformation.


Time evolution of an Observable

In general, the time derivative of a function FF that is a function of generalized position and momentum coordinates, but not a direct function of time (which is often accurate) is

dFdt=∂F∂qdqdt+∂F∂pdpdt\frac{dF}{dt}=\frac{\partial F}{\partial q}\frac{dq}{dt}+\frac{\partial F}{\partial p}\frac{dp}{dt}

Using Hamilton's equation we get

dFdt=∂F∂q∂H∂p−∂F∂p∂H∂q≡{H,F},\frac{dF}{dt}=\frac{\partial F}{\partial q}\frac{\partial H}{\partial p}-\frac{\partial F}{\partial p}\frac{\partial H}{\partial q}\equiv \{H,F\},

where {H,F}\{H,F\} denotes the Poisson bracket. Take note that there is a close connection between this equation and the Heisenberg equation in quantum mechanics: dF^dt=−iℏ[F^,H^]+∂F^∂t.\frac{\mathrm{d}\hat F}{\mathrm{d}t} = -\frac{i}{\hbar}[\hat F,\hat H] + \frac{\partial \hat F}{\partial t}.


Symmetries of Hamiltons equations - Canonical Transformations

Hamilton's equations can be written more compactly when we introduce the 2n-dimensional vector x≡(q1,q2,…,p1,p2,…)x\equiv ( q_1,q_2,\ldots, p_1,p_2,\ldots) and the (2N×2N)(2N \times 2N) matrix

J≡[0−ININ0]J\equiv \left[ \begin{array}{cc} 0 & -I_N \\ I_N & 0 \end{array} \right]

Then, the equations then read

x˙=J∂H∂x.\dot x = J \frac{\partial H}{\partial x} .

The question is now, which transformations

qi→Qi(q,p)andpi→Pi(q,p)q_i \to Q_i(q,p) \quad \text{and} \quad p_i \to P_i(q,p) are allowed without changing the equations. Since in the Hamiltonian formalism we put qiq_i and pip_i there are now even more symmetries than in the Lagrangian formalism.

Example: Oscillator

A simple example is the harmonic oscillator in 3 variables. SO(3) rotations act on the configuration variables, preserving the action, so Noether’s theorem gives you 3 conserved quantities, the angular momentum variables. The moment map point of view however gives you much more. The phase space is 6 dimensional (3 positions + 3 momenta) and the Lie group Sp(6,R) of linear symplectic transformations acts on it, with a subgroup U(3) preserving the Hamiltonian. The U(3) includes the SO(3) rotations as a subgroup, but it is much larger (9 dimensions vs. 3), so the moment map gives you many more conserved quantities. After quantization, you learn that energy eigenstates are U(3) representations, telling you much more about them than what angular momentum tells you.https://www.math.columbia.edu/~woit/wordpress/?p=7146

To analyze the type of transformations that are possible, we denote them as

xi→yi(x).x_i \to y_i(x).

We then have

y˙i=∂yi∂xjx˙j=∂yi∂xjJjk∂H∂yl∂yl∂xk\dot{y}_i = \frac{\partial y_i}{\partial x_j}\dot{x}_j = \frac{\partial y_i}{\partial x_j} J_{jk} \frac{\partial H}{\partial y_l}\frac{\partial y_l}{\partial x_k}

or in matrix notation y˙=(JJJT)∂H∂y,\dot{y} = (\mathcal{J} J \mathcal{J}^T) \frac{\partial H}{\partial y},

where Jij≡∂yi∂xj\mathcal{J}_{ij} \equiv \frac{\partial y_i}{\partial x_j} is the Jacobian of the transformation. We can now see that transformations which leave Hamiltons equations invariant are all those whose Jacobian J\mathcal{J} satisfies

JJJT=J∂yi∂xjJjk∂yl∂xk=Jil.\mathcal{J} J \mathcal{J}^T = J \quad \frac{\partial y_i}{\partial x_j} J_{jk} \frac{\partial y_l}{\partial x_k} = J_{il}.

We call a Jacobian J\mathcal{J} that fulfills this property symplectic. A transformation whose Jacobian is symplectic is called a canonical transformation.

Take note that also Poisson brackets are invariant under canonical transformations and in turn, all transformations that leave the Poisson bracket unchanged: {Qi,Qj}=0,{Pi,Pj}=0,{Qi,Pj}=δij\{ Q_i , Q_j\} =0 , \quad \{ P_i , P_j \} = 0 , \quad \{ Q_i , P_j \} = \delta_{ij} are called canonical transformations. For a proof, see page 104 here.

Example of a canonical transformation

q1=Q1cos⁡Q2q2=Q1sin⁡Q2p1=P1cos⁡Q2−P2Q1sin⁡Q2p2=P1sin⁡Q2+P2Q1cos⁡Q2\begin{array}{rcl} q_1 &=&Q_1\cos Q_2 \\ q_2 &=&Q_1\sin Q_2 \\ p_1 &=&P_1\cos Q_2-\frac{P_2}{Q_1}\sin Q_2 \\ p_2 &=&P_1\sin Q_2+\frac{P_2}{Q_1}\cos Q_2 \end{array}

The associated Jacobian matrix is given by

M=[ABCD]M=\left[ \begin{array}{cc} A & B \\ C & D \end{array} \right]

where

A=[cos⁡Q2−Q1sin⁡Q2sin⁡Q2Q1cos⁡Q2]B=[0000]C=[P1Q12sin⁡Q2−P1sin⁡Q2−P2Q1cos⁡Q2−P2Q12cos⁡Q2P1cos⁡Q2−P2Q1sin⁡Q2]D=[cos⁡Q2−sin⁡Q2Q1sin⁡Q1cos⁡Q2Q1]\begin{array}{rcl} A &=&\left[ \begin{array}{cc} \cos Q_2 & -Q_1\sin Q_2 \\ \sin Q_2 & Q_1\cos Q_2 \end{array} \right] \\ B &=&\left[ \begin{array}{cc} 0 & 0 \\ 0 & 0 \end{array} \right] \\ C &=&\left[ \begin{array}{cc} \frac{P_1}{Q_1^2}\sin Q_2 & -P_1\sin Q_2-\frac{P_2}{Q_1}\cos Q_2 \\ -\frac{P_2}{Q_1^2}\cos Q_2 & P_1\cos Q_2-\frac{P_2}{Q_1}\sin Q_2 \end{array} \right] \\ D &=&\left[ \begin{array}{cc} \cos Q_2 & -\frac{\sin Q_2}{Q_1} \\ \sin Q_1 & \frac{\cos Q_2}{Q_1} \end{array} \right] \end{array}

Using the fact that

[ABCD]T=[ATCTBTDT]\left[ \begin{array}{cc} A & B \\ C & D \end{array} \right] ^T=\left[ \begin{array}{cc} A^T & C^T \\ B^T & D^T \end{array} \right]

we check directly that MTJM=JM^TJM=J:

[ATCTBTDT][0−100−110010][ABCD]=[0−II0]\left[ \begin{array}{cc} A^T & C^T \\ B^T & D^T \end{array} \right] \left[ \begin{array}{cc} 0 & \begin{array}{cc} -1 & 0 \\ 0 & -1 \end{array} \\ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} & 0 \end{array} \right] \left[ \begin{array}{cc} A & B \\ C & D \end{array} \right] =\left[ \begin{array}{cc} 0 & -I \\ I & 0 \end{array} \right]


Generalized Hamilton's equations and infinitesimal canonical transformations

Next, we consider infinitesimal canonical transformations, which will help us to understand normal canonical transformations better.

We can write an infinitesimal transformation as

qi→Qi=qi+αFi(q,p)pi→Pi=pi+αEi(q,p),\begin{align} q_i \to Q_i &= q_i + \alpha F_i(q,p) \\ p_i \to P_i &= p_i + \alpha E_i(q,p) , \end{align} where α\alpha is infinitesimally small.

The question we now need to answer is: which functions Fi(q,p)F_i(q,p) and Ei(q,p)E_i(q,p) are allowed such that these transformations are indeed canonical? As we found out above, canonical transformations are defined through their Jacobian. Thus we now calculate the Jacobian of our infinitesimal transformation

J=[∂ij+α∂Fi/∂qjα∂Fi/∂pjα∂Ei∂ij+α∂Ei/∂pj].\mathcal{J} = \left[ \begin{array}{cc} \partial_{ij} + \alpha \partial F_i/\partial q_j & \alpha \partial F_i / \partial p_j \\ \alpha \partial E_i & \partial_{ij} + \alpha \partial E_i/\partial p_j \end{array} \right] . The defining condition for canonical transformations JJJT=!J\mathcal{J} J \mathcal{J}^T \stackrel{!}{=} J then tells us that

∂Fi∂qj=!−∂Ei∂pj\frac{\partial F_i}{\partial q_j} \stackrel{!}{=} - \frac{\partial E_i}{\partial p_j} must hold.

This equation is fulfilled if

Fi=∂G∂pi and Ei=−∂G∂qi,F_i = \frac{\partial G}{\partial p_i } \quad \text{ and } \quad E_i = - \frac{\partial G}{\partial q_i }, since partial derivatices commute:

∂Fi∂qj=∂∂G∂qj∂pi=!∂∂G∂pj∂qi=−∂Ei∂pj✓\frac{\partial F_i}{\partial q_j} = \frac{\partial \partial G}{\partial q_j\partial p_i } \stackrel{!}{=} \frac{\partial\partial G }{\partial p_j \partial q_i} = - \frac{\partial E_i}{\partial p_j} \checkmark

The functions G(q,p)G(q,p) therefore generate the infinitesimal transformations.

Next we can consider families of transformations qi→Qi(q,p;α) and pi→Pi(q,p;α).q_i \to Q_i (q,p; \alpha) \quad \text{ and } \quad p_i \to P_i (q,p; \alpha) . For each value of α\alpha we have a different transformation and

Qi(q,p;0)=qi and Pi(q,p;0)=pi.Q_i (q,p; 0) = q_i \quad \text{ and } \quad P_i (q,p; 0) = p_i .

Starting in one state of the system (q,p)(q,p) we can use canonical transformations to get to another state of the system, i.e. a different point in phase space. As we vary α\alpha continuously we trace out a path in phase space.

We can then put our generating function GG into the formulas for a general infinitesimal transformation that we started with

qi→Qi(q,p;α)=qi+αFi(q,p)=qi+α∂G∂pipi→Pi(q,p;α)=pi+αEi(q,p)=pi−α∂G∂qi.\begin{align} q_i \to Q_i (q,p; \alpha) &= q_i + \alpha F_i(q,p) = q_i + \alpha \frac{\partial G}{\partial p_i } \\ p_i \to P_i(q,p; \alpha) &= p_i + \alpha E_i(q,p) = p_i - \alpha \frac{\partial G}{\partial q_i } . \end{align}

we rewrite this as

Qi(q,p;α)−qiα=∂G∂piPi(q,p;α)−piα=−∂G∂qi.\begin{align} \frac{Q_i (q,p; \alpha) - q_i}{\alpha} &= \frac{\partial G}{\partial p_i } \\ \frac{P_i(q,p; \alpha) - p_i}{\alpha} &= - \frac{\partial G}{\partial q_i } . \end{align}

Therefore, as we take α→0\alpha \to 0 we get the derivative with respect to α\alpha

dqidα=∂G∂pi and dpidα=−∂G∂qi.\frac{ dq_i}{d\alpha} = \frac{\partial G}{\partial p_i} \quad \text{ and } \quad \frac{ dp_i}{d\alpha} = - \frac{\partial G}{\partial q_i}. (α\alpha is the parameter that parametrizes our curve in phase space.)

These look exactly like Hamilton's equations, but instead of the Hamiltonian we have the general generating function GG and instead of the time, we have the general parameter α\alpha.

We can now understand that Hamilton's equations as written above are just a special case where we consider time-translations as our transformation. The corresponding generating function is the Hamiltonian.

Another example would be where G=pkG= p_k, i.e. the momentum along the kk axis. Then, our canonical infinitesimal transformation reads qi→qi+αδikq_i \to q_i + \alpha \delta _{ik} and pi→pip_i \to p_i which is simply a translation. Therefore, we can say that translations are generated by the conjugate momentum.

Abstract

If a first order ODE can be written in the form s˙=J∂H∂s\dot s = \mathbb J \frac{\partial H}{\partial s}

where S\mathcal S is a 2n2n dimensional manifold, and J\mathbb J a 2n×2n2n\times 2n symplectic matrix of the form J=(0In×n−In×n0)\mathbb J = \left( \begin{matrix} 0 & \mathbb{I}_{n\times n} \\ -\mathbb{I}_{n\times n} & 0 \end{matrix}\right) for some function H:S→RH:\mathcal S \to \mathbb R, it is said that the equations form a Hamiltoinian System with Hamiltonian Funciton HH.

Why is it interesting?

Hamilton's Equations are a way of rewriting Newton's Second Law of Motion on a first-order system of differential equations, i.e, it only has first derivatives in time.

This comes at the cost of doubling the size of the system.


[E]verybody loves Hamilton’s equations: there are just two, and they summarize the entire essence of classical mechanics.

John Baez

You get equations like Hamilton's whenever a system *extremizes something subject to constraints*. A moving particle minimizes action; a box of gas maximizes entropy. John Baez

Origin

"Hamilton’s equations and the Maxwell relations—are mathematically just the same. They both say simply that partial derivatives commute." See https://johncarlosbaez.wordpress.com/2012/01/19/classical-mechanics-versus-thermodynamics-part-1/ and Classical Mechanics versus Thermodynamics (Part 2) | Azimuth

Path to this page

  1. Calculus
  2. Linear Algebra
  3. Functional
  4. Legendre Transformation
  5. Newton's Second Law
  6. Vector Calculus
  7. Newtonian Mechanics
  8. Variational Calculus
  9. Configuration Space
  10. Euler-Lagrange Equations
  11. Lagrangian Formalism
  12. Phase Space
  13. Hamiltonian Formalism

Leads to: Liouville's theorem.