The Physics Travel Guide

Hamiltonian Mechanics

Prerequisites: Hamiltonian Formalism, Symplectic Structure. Full path (16 pages)

Best explanations

see also hamiltonian_formalism and hamiltons_equations

Intuitive

Hamiltonian mechanics describes a system by where it is and how much momentum it carries. Instead of tracking positions and velocities and asking what forces act, we collect all positions and all momenta into one point of a larger space, the phase space. One number attached to each point of that space, the Hamiltonian, which for most systems is the total energy, then tells the point how to move.

A picture that helps is a hiking map with contour lines of equal energy. The state of the system is a dot on the map. The Hamiltonian makes the dot slide along a contour line, so the energy stays the same, and the steepness of the terrain sets how fast it slides. For a pendulum the contours are closed loops for small swings and open wavy lines for a pendulum that goes over the top. Reading off which kind of contour you are on tells you the motion without solving anything.

The reason to use this description is that it treats positions and momenta on equal footing. That makes it easy to change to cleverer variables (canonical transformations), to see conservation laws, to describe a cloud of many possible states at once as in statistical mechanics, and to pass to quantum mechanics, where positions and momenta become operators.

Concrete

A system with nn degrees of freedom is described by generalized coordinates qaq^a and conjugate momenta pap_a, a=1,…,na = 1,\dots,n. Starting from a Lagrangian L(q,q˙,t)L(q,\dot q,t) the momenta are pa=∂L/∂q˙ap_a = \partial L/\partial \dot q^a, and the Hamiltonian is the Legendre transform H(q,p,t)=paq˙a−L(q,q˙,t),H(q,p,t) = p_a \dot q^a - L(q,\dot q,t), where q˙a\dot q^a is expressed through qq and pp (this needs the matrix ∂2L/∂q˙a∂q˙b\partial^2 L/\partial \dot q^a \partial \dot q^b to be invertible). The equations of motion are Hamilton's equations q˙a=∂H∂pa,p˙a=−∂H∂qa,\dot q^a = \frac{\partial H}{\partial p_a}, \qquad \dot p_a = -\frac{\partial H}{\partial q^a}, 2n2n first-order equations in place of nn second-order Euler-Lagrange equations. Along a solution dH/dt=∂H/∂tdH/dt = \partial H/\partial t, so HH is conserved when it has no explicit time dependence.

For L=12mx⃗˙2−V(x⃗)L = \frac12 m \dot{\vec x}^2 - V(\vec x) we get p⃗=mx⃗˙\vec p = m\dot{\vec x} and H=p⃗22m+V(x⃗)H = \frac{\vec p^2}{2m} + V(\vec x). Hamilton's equations give x⃗˙=p⃗/m\dot{\vec x} = \vec p/m and p⃗˙=−∇V\dot{\vec p} = -\nabla V, which together are Newton's law.

Example: the pendulum. For a pendulum of mass mm and length ll with angle θ\theta, L=12ml2θ˙2+mglcos⁡θL = \frac12 m l^2 \dot\theta^2 + mgl\cos\theta, so pθ=ml2θ˙p_\theta = ml^2\dot\theta and H=pθ22ml2−mglcos⁡θ.H = \frac{p_\theta^2}{2ml^2} - mgl\cos\theta . Since HH is conserved, every trajectory lies on a curve H(θ,pθ)=EH(\theta,p_\theta) = E in the (θ,pθ)(\theta,p_\theta) plane. For −mgl<E<mgl-mgl < E < mgl these curves are closed (oscillation), for E>mglE > mgl they wind around in θ\theta (rotation), and E=mglE = mgl is the separatrix through the unstable point θ=π\theta = \pi.

Poisson brackets. With the convention {f,g}=∂f∂qa∂g∂pa−∂f∂pa∂g∂qa,\{f,g\} = \frac{\partial f}{\partial q^a}\frac{\partial g}{\partial p_a} - \frac{\partial f}{\partial p_a}\frac{\partial g}{\partial q^a}, the time evolution of any function f(q,p,t)f(q,p,t) along a solution is dfdt={f,H}+∂f∂t,\frac{df}{dt} = \{f,H\} + \frac{\partial f}{\partial t}, and {qa,pb}=δba\{q^a,p_b\} = \delta^a_b. A function with no explicit time dependence is conserved exactly when its bracket with HH vanishes. Some books, including the Abstract section below, use the opposite overall sign for the bracket; then df/dt={H,f}+∂f/∂tdf/dt = \{H,f\} + \partial f/\partial t.

Canonical transformations are changes of variables (q,p)→(Q,P)(q,p) \to (Q,P) that preserve the brackets, {Qa,Pb}=δba\{Q^a,P_b\} = \delta^a_b, {Qa,Qb}={Pa,Pb}=0\{Q^a,Q^b\} = \{P_a,P_b\} = 0. They keep Hamilton's equations in the same form with a transformed Hamiltonian. Finding one in which the new Hamiltonian depends only on the momenta PP solves the problem, since then PP is constant and QQ grows linearly in time. This is the idea behind action-angle variables and the Hamilton-Jacobi equation.


Reading Recommendations

Abstract

Lagrangian mechanics can be formulated geometrically using fibre bundles.

The Hamiltonian function is defined on the cotangent bundle T⋆(C)T^\star(C), which is called phase space.

In contrast, the Lagrangian function is defined on the tangent bundle T(C)T(C) of the configuration space CC.

The map from T⋆(C)↔T(C)T^\star(C) \leftrightarrow T(C) is called Legendre transformation.

The phase space is endowed with a symplectic structure, which defines the Poisson Bracket. The Poisson Bracket is an operation that eats two scalar fields Φ\Phi, Ψ\Psi on the manifold and spits out another scalar field θ\theta:

θ={Φ,Ψ}=∂Φ∂pa∂Ψ∂qa−∂Φ∂qa∂Ψ∂pa.\theta = \{ \Phi,\Psi \}= \frac{\partial \Phi}{\partial p_a}\frac{\partial \Psi}{\partial q^a}-\frac{\partial \Phi}{\partial q^a}\frac{\partial \Psi}{\partial p_a}.

With this sign convention {qa,pb}=−δba\{q^a, p_b\} = -\delta^a_b; many texts use the opposite sign.

If we leave the Ψ\Psi slot blank, we can use the Poisson bracket to define a differential operator {Φ, }\{\Phi,\ \}. This is a vector field and when it acts on Ψ\Psi, we get {Φ,Ψ}\{\Phi, \Psi \}. If we use instead of Φ\Phi, the Hamiltonian HH, we get an differential operator {H, }\{H,\ \} that 'points along' the trajectories in phase space T⋆(C)T^\star(C) and describes exactly the evolution that we get from Hamilton's equations.

In this sense, the dynamical evolution of a given system is completely described by the Hamiltonian (= a scalar function).




a ‘Hamiltonian’ H:T∗Q→RH : T^* Q \to \mathbb{R} or a ‘Lagrangian’ L:TQ→RL : T Q \to \mathbb{R}

Instead, we started with Hamilton’s principal function S:Q→RS : Q \to \mathbb{R} where QQ is not the usual configuration space describing possible positions for a particle, but the ‘extended’ configuration space, which also includes time. Only this way do Hamilton’s equations, like the Maxwell relations, become a trivial consequence of the fact that partial derivatives commute.

Classical Mechanics versus Thermodynamics (Part 2) | Azimuth

Path to this page

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