All lessons

Module 3: Classical mechanics · Lesson 3.2 · about 55 min

Canonical transformations and Hamilton-Jacobi theory

The Hamilton-Jacobi equation and Hamilton's principal and characteristic functions, solving problems by separation of variables, action-angle variables and frequencies without solving the motion, adiabatic invariants (pendulum, oscillator, gyrating charge, magnetic mirror), the Kepler problem and its degeneracy, Bohr-Sommerfeld quantisation and the link to the Schrödinger equation.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 3 · about 55 minutes. By the end you will be able to write and solve the Hamilton-Jacobi equation by separation of variables, find action variables and use them to get frequencies without solving the motion, apply adiabatic invariance to slowly changing systems, and connect all of this to the old quantum theory and to the Schrödinger equation.

This lesson builds on two GATE lessons; read them first if canonical transformations are new: Hamiltonian mechanics and Poisson brackets and canonical transformations (generating functions, the canonical test {Q,P}=1).

Choose new variables so cleverly that nothing changes in time. The function that does it, Hamilton's principal function, is the classical action, and its constant momenta (the actions) are exactly the quantities that survive slow changes and that the old quantum theory quantised.

1. The Hamilton-Jacobi equation

A type-2 generating function S(q,P,t) gives p=∂S/∂q, Q=∂S/∂P and the new Hamiltonian K=H+∂S/∂t. Demand K=0:

H(q1,…,qn,∂S∂q1,…,∂S∂qn,t)+∂S∂t=0

Then P˙=Q˙=0: the new momenta are constants αi, the new coordinates are constants βi=∂S/∂αi, and solving these n equations for qi(t) gives the motion. Along the true path dS/dt=∑piq˙i−H=L, so S is the action ∫Ldt.

For a time-independent H, put S=W(q,α)−Et. Hamilton’s characteristic function W obeys

H(q,∂W∂q)=E

Worked example: the oscillator. 12mW′2+12mω2q2=E gives W=∫2mE−m2ω2q2dq. Then

Differentiate with respect to E. ∂W/∂E = ∫ m dq / √(2mE − m²ω²q²) = (1/ω) arcsin(q √(mω²/2E)).

Set ∂S/∂E = β. ∂W/∂E − t = β, so arcsin(q √(mω²/2E)) = ω(t + β).

Solve. q = √(2E/mω²) sin ω(t + β): the familiar motion, with the constants E and β as amplitude and time origin.

2. Separation of variables

The equation is a nonlinear PDE, but it is often separable: try W=W1(q1)+W2(q2)+…. Each piece then obeys an ordinary equation with its own separation constant.

  • Cartesian: V=V1(x)+V2(y)+V3(z) separates, with E=α1+α2+α3.
  • Spherical: V=a(r)+b(θ)r2+c(ϕ)r2sin2⁡θ separates. A cyclic coordinate (here ϕ if c=0) gives ∂W/∂ϕ=pϕ = constant.
  • Parabolic: the Coulomb potential plus a uniform field, −k/r+Fz (the Stark problem).

Worked example: planar Kepler. 12m[Wr′2+Wθ′2r2]−kr=E. θ is cyclic, so Wθ=lθ with l the angular momentum, and Wr=∫2m(E+k/r)−l2/r2dr. Setting ∂W/∂l=β2 gives the conic orbit.

3. Action-angle variables

For a periodic motion, define the action

J=∮pdq

the area enclosed by the orbit in phase space (some books divide by 2π; then every frequency below gains a 2π). Use J as the new momentum: H=H(J), the conjugate angle w is cyclic, and

w˙=∂H∂J=ν(J),w=νt+β,dJdE=1ν=T

So the frequency comes from J(E) alone, without solving for q(t).

J = ∮ p dq
the action: the phase-space area inside the orbit, in J s (the units of ħ)
w
the angle variable: it increases by exactly 1 per cycle
ν = ∂H/∂J
the frequency of the motion, found by differentiating the energy as a function of the action
T = dJ/dE
the period: how fast the enclosed area grows as you raise the energy
Physical meaning
Each degree of freedom of an integrable system moves round a circle at a steady rate. The actions say which circle (they are constants), the angles say where on it. Quantum mechanics later made the circles discrete: J ≈ (n + ½)h.
System J(E) E(J) Period
oscillator 2πE/ω νJ 2π/ω, independent of E
particle in a box, width L 2L2mE J2/8mL2 2L/v
V=k|q| 82m3kE3/2 ∝J2/3 42mE/k
V∝|q|n ∝E1/2+1/n ∝J2n/(n+2) ∝E1/n−1/2
Phase-space orbits for V = |q|ⁿ. The shaded area is the action J at the chosen energy; the readout gives the period T = dJ/dE and the frequency. For the oscillator the area grows exactly in proportion to E, so the period never changes; for |q| it grows faster than E (periods lengthen), for q⁴ slower (periods shorten).

The Kepler problem. For bound orbits, H=−2π2mk2(Jr+Jθ+Jϕ)2. All three frequencies are equal: the orbit closes, and T∝J3∝a3/2 (Kepler’s third law). Any extra force, such as a 1/r3 term from general relativity, separates the frequencies and the ellipse precesses.

4. Adiabatic invariants

If a parameter of H (a length, a spring constant, a field) changes slowly compared with the period, the energy changes but the action stays constant. This is the most useful result of the lesson for NET.

Worked example: the shortening pendulum. A small-amplitude pendulum’s string is pulled from 1 m to 0.25 m.

Invariant. J = E/ν stays fixed, and ν ∝ l−1/2, so E ∝ l−1/2: the energy doubles.

Amplitude. E = ½ m g l θ₀², so θ₀² ∝ E/l ∝ l−3/2 and θ₀ ∝ l−3/4.

Number. θ₀ grows by 43/4 = 2.83: the swing widens as the string shortens.

Other cases: an oscillator whose frequency is raised keeps E/ω, so its energy rises in proportion. A gas particle in a box with a slowly receding wall keeps J=2Lp, so E∝L−2. A charge gyrating in a magnetic field keeps its magnetic moment μ=mv⟂2/2B (equivalently the flux through its orbit), so K⟂∝B. In a magnetic mirror, with constant speed, sin2⁡α/B is fixed, and a particle at the centre is reflected only if sin2⁡α0>B0/Bmax⁡; smaller pitch angles form the loss cone.

“The energy is conserved when the change is slow.” No: the Hamiltonian depends on time, so energy is not conserved, however slow the change. What survives is the action. Doubling an oscillator’s frequency slowly doubles its energy; the work is done by whatever changes the parameter. The quantum version is the adiabatic theorem: the system stays in the same level n while that level’s energy moves.

5. From Hamilton-Jacobi to quantum mechanics

Put ψ=AeiS/ℏ into the Schrödinger equation. The terms of order ℏ0 give exactly the Hamilton-Jacobi equation for S, and the next order gives a continuity equation for A2. Classical trajectories are the rays perpendicular to the wavefronts S = constant, as light rays are to optical wavefronts: this is the WKB (semiclassical) limit.

The old quantum theory quantised the actions, ∮pdq=nh. The WKB rule adds the Maslov correction: J=(n+12)h for two soft turning points, which gives the oscillator exactly, E=(n+12)ℏω. For hard walls the phases cancel and J=nh gives the box levels n2h2/8mL2 exactly.

  • HJ equation: H(q,∂S/∂q,t)+∂S/∂t=0; new variables αi, βi=∂S/∂αi are constants; dS/dt=L.
  • Time-independent: S=W−Et, H(q,∂W/∂q)=E; separate coordinate by coordinate.
  • Action J=∮pdq (phase-space area); ν=∂H/∂J; period T=dJ/dE.
  • Oscillator J=2πE/ω; box E=J2/8mL2; V∝|q|n: E∝J2n/(n+2).
  • Adiabatic invariance: slow changes keep J. Pendulum θ0∝l−3/4; gyration μ fixed; mirror loss cone sin2⁡α0=B0/Bmax⁡.
  • Kepler: H depends on Jr+Jθ+Jϕ only, so orbits close; T∝J3.
  • ψ∼eiS/ℏ: HJ is the ℏ→0 limit of Schrödinger; J=(n+12)h.

Practise: exam questions on this lesson

They start easy and climb to top-rank level. More on the practice page.

Next: lesson 3.3, phase space, fixed points and stability. For central forces and orbits see the GATE lesson on central forces and scattering, and for the quantum side the GATE lesson on one-dimensional potentials.

Check yourself

1An oscillator's frequency is increased slowly from 2 Hz to 6 Hz. If its energy was 1 J, its energy afterwards is
2In Hamilton-Jacobi theory the new Hamiltonian is chosen to be
3For a particle in a box of width L, the action is J = ∮ p dq = 2Lp. If L is doubled slowly, the energy becomes

Sources

  • H. Goldstein, C. Poole and J. Safko, Classical Mechanics, 3rd ed. (2002), chapter 10
  • L. D. Landau and E. M. Lifshitz, Mechanics, 3rd ed. (1976), chapter 7
  • J. V. José and E. J. Saletan, Classical Dynamics: A Contemporary Approach (1998), chapter 6
  • CSIR-UGC NET Physical Sciences syllabus, Classical Mechanics (Poisson brackets, canonical transformations, Hamilton-Jacobi)

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Not affiliated with CSIR, UGC or the National Testing Agency. Check the official CSIR NET website for the current pattern. All questions are original.