Comparing with dH=∑∂pj∂Hdpj+∑∂qj∂Hdqj+∂t∂Hdt:
q˙j=∂pj∂H,p˙j=−∂qj∂H,∂t∂H=−∂t∂L
■
4.6 Phase Space
Hamiltonian mechanics lives in phase space: the 2n-dimensional space with coordinates (q1,…,qn,p1,…,pn). Each point in phase space represents a complete state of the System (positions and momenta).
A phase portrait is the collection of trajectories in phase space. For a 1D harmonic oscillator, the trajectories are ellipses in the (x,p) plane.
4.7 Liouville’s Theorem
Theorem 4.2 (Liouville’s Theorem). The flow in phase space is incompressible: the phase space volume is conserved along trajectories. Equivalently, the phase space density ρ(q,p,t) satisfies:
dtdρ=∂t∂ρ+∑j(∂qj∂ρq˙j+∂pj∂ρp˙j)=0
Proof. Consider a volume Ω in phase space. The rate of change of the volume is:
dtd∫Ωρdqdp=∫Ω∂t∂ρdqdp
By the continuity equation in 2n dimensions:
∂t∂ρ+∇⋅(ρv)=0
Where v=(q˙1,…,q˙n,p˙1,…,p˙n) is the phase space velocity. Using Hamilton’s equations:
By equality of mixed partial derivatives. Therefore:
∂t∂ρ+ρ(∇⋅v)+v⋅∇ρ=∂t∂ρ+v⋅∇ρ=dtdρ=0
■
Intuition. Liouville’s theorem is the classical analogue of unitarity in quantum mechanics. It tells us that phase space volume is conserved --- like an incompressible fluid flowing through phase space. This underlies the ergodic hypothesis of statistical mechanics.
4.8 Poisson Brackets
Definition. The Poisson bracket of two functions f(q,p,t) and g(q,p,t) is:
{f,g}=∑j=1n(∂qj∂f∂pj∂g−∂pj∂f∂qj∂g)
Theorem 4.3 (Equations of Motion via Poisson Brackets). For any function f(q,p,t):
Expanding and collecting terms, the second-order mixed partial derivatives cancel in groups of three (by equality of mixed partials), yielding the Jacobi identity. ■
Theorem 4.5. A quantity f is a constant of motion if and only if ∂f/∂t+{f,H}=0. If f does not depend explicitly on time, f is conserved if and only if {f,H}=0.
Proof. Immediate from Theorem 4.3 with df/dt=0. ■
Fundamental Poisson Brackets:
{qj,qk}=0,{pj,pk}=0,{qj,pk}=δjk
4.9 The Hamilton-Jacobi Equation
Definition. Hamilton’s principal function S(q,t) is the action evaluated along the classical path from (q0,t0) to (q,t).
Theorem 4.6 (Hamilton-Jacobi Equation). The function S satisfies:
H(q1,…,qn,∂q1∂S,…,∂qn∂S,t)+∂t∂S=0
This is a first-order nonlinear PDE in n+1 variables.
Proof. The action from t0 to t is S=∫t0tLdt′. The total time derivative is:
dtdS=L
But S=S(q1(t),…,qn(t),t)So by the chain rule:
dtdS=∑j∂qj∂Sq˙j+∂t∂S=L
From the definition of the conjugate momentum, pj=∂L/∂q˙j=∂S/∂qj (this can be shown rigorously by varying the endpoint). Therefore:
L=∑jpjq˙j+∂t∂S=H+∂t∂S
Since dS/dt=L:
H+∂t∂S=L=∑jpjq˙j+∂t∂S
Which gives H+∂S/∂t=0. ■
Intuition. The Hamilton-Jacobi equation is the bridge between classical and quantum mechanics. Schrodinger’s equation can be obtained from it via the substitution S=−iℏlnψ (up to constants), making S the classical limit of the quantum phase.
Separation of Variables. If H does not depend explicitly on tWrite S(q,t)=W(q)−Et. Then the time-independent Hamilton-Jacobi equation is:
H(q1,…,qn,∂q1∂W,…,∂qn∂W)=E
Where W is Hamilton’s characteristic function and E is the constant energy.
4.10 Worked Example: Hamilton-Jacobi for the Harmonic Oscillator
Problem. Solve the Hamilton-Jacobi equation for a 1D harmonic oscillator with H=p2/(2m)+kx2/2.
Solution
Since H is time-independent, write S(x,t)=W(x)−Et. The HJ equation becomes:
2m1(dxdW)2+21kx2=E
dxdW=2mE−mkx2
Integrating:
W(x)=∫2mE−mkx2dx
Let x=2E/ksinαThen dx=2E/kcosαdα:
W=ω2E∫0αcos2α′dα′=ωE(α+21sin2α)
Where ω=k/m. The solution gives x(t)=2E/ksin(ωt+δ) as expected.
■
:::caution Common Pitfall The Lagrangian and Hamiltonian formulations are equivalent only when the Legendre transform from L To H is regular. If det(∂2L/∂q˙i∂q˙j)=0The system Has constraints and the Hamiltonian formulation requires special treatment (Dirac brackets or Constraint analysis).