Advanced Physics‹›⌂ 0:00 studied

Module 1 · 15 min read · Free chapter

Hamiltonian mechanics: Hamilton's equations, phase space, Poisson brackets and canonical transformations

In short

The Hamiltonian H = sum of p q-dot minus L, written in coordinates and momenta, gives first-order equations: q-dot = dH/dp and p-dot = -dH/dq. The time change of any quantity is its Poisson bracket with H plus its explicit time derivative. A transformation is canonical when the new pair has Poisson bracket 1. Liouville's theorem says phase-space volume is conserved.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: positions and momenta on equal footing

Lagrange's method describes a system by its coordinates and their rates of change. In 1833 Hamilton rewrote it using coordinates and momenta as independent variables. Instead of n second-order equations, one gets 2n first-order ones with a beautiful symmetry between q and p.

The state of the system becomes a single point in a 2n-dimensional phase space, and its whole future is a curve through that space. This picture is the language of statistical mechanics, of chaos theory and of quantum mechanics, where Hamilton's function H becomes the operator that drives the Schrödinger equation.

This chapter derives Hamilton's equations, solves standard UPSC problems, introduces Poisson brackets and canonical transformations, and ends with Liouville's theorem. It builds on Hamilton's principle and symmetries.

Derivation: from Lagrangian to Hamiltonian

Legendre transformation. Define the momenta pj=∂L∂q˙jp_j = \dfrac{\partial L}{\partial\dot q_j} and the Hamiltonian

H(q,p,t)=∑jpjq˙j−L(q,q˙,t)H(q, p, t) = \sum_jp_j\dot q_j - L(q, \dot q, t)

where every q˙j\dot q_j on the right is to be expressed in terms of q and p. This is the energy function h of the last chapter, now written as a function of momenta.

Two expressions for dH. As a function of (q, p, t),

dH=∑j(∂H∂qjdqj+∂H∂pjdpj)+∂H∂tdtdH = \sum_j\left(\frac{\partial H}{\partial q_j}dq_j + \frac{\partial H}{\partial p_j}dp_j\right) + \frac{\partial H}{\partial t}dt

From the definition, dH=∑j(q˙j dpj+pj dq˙j−∂L∂qjdqj−∂L∂q˙jdq˙j)−∂L∂tdtdH = \sum_j\left(\dot q_j\,dp_j + p_j\,d\dot q_j - \dfrac{\partial L}{\partial q_j}dq_j - \dfrac{\partial L}{\partial\dot q_j}d\dot q_j\right) - \dfrac{\partial L}{\partial t}dt. The dq˙jd\dot q_j terms cancel because pj=∂L∂q˙jp_j = \dfrac{\partial L}{\partial\dot q_j}, and Lagrange's equation gives ∂L∂qj=p˙j\dfrac{\partial L}{\partial q_j} = \dot p_j. So

dH=∑j(q˙j dpj−p˙j dqj)−∂L∂tdtdH = \sum_j\left(\dot q_j\,dp_j - \dot p_j\,dq_j\right) - \frac{\partial L}{\partial t}dt

Hamilton's canonical equations. Comparing coefficients,

q˙j=∂H∂pj,p˙j=−∂H∂qj,∂H∂t=−∂L∂t\dot q_j = \frac{\partial H}{\partial p_j}, \qquad \dot p_j = -\frac{\partial H}{\partial q_j}, \qquad \frac{\partial H}{\partial t} = -\frac{\partial L}{\partial t}

Along the motion, dHdt=∂H∂t\dfrac{dH}{dt} = \dfrac{\partial H}{\partial t}, so H is conserved when it does not contain t. A cyclic coordinate is missing from H as well as from L, and its momentum is constant.

Recipe. (1) Write L. (2) Find each pjp_j and solve for q˙j\dot q_j.

(3) Form H=∑pjq˙j−LH = \sum p_j\dot q_j - L in terms of q and p only. (4) Write the 2n equations. For a particle in a potential, H=p22m+VH = \dfrac{p^2}{2m} + V, the total energy.

Worked examples: oscillator and planetary motion (IFoS 2017)

Harmonic oscillator. H=p22m+12mω2q2H = \dfrac{p^2}{2m} + \dfrac{1}{2}m\omega^2q^2 gives q˙=pm\dot q = \dfrac{p}{m} and p˙=−mω2q\dot p = -m\omega^2q, which together give q¨=−ω2q\ddot q = -\omega^2q. In the (q, p) plane each orbit is the ellipse H = E, with semi-axes 2Emω2\sqrt{\frac{2E}{m\omega^2}} and 2mE\sqrt{2mE}. Its area is 2πEω\dfrac{2\pi E}{\omega}. In the old quantum theory, setting this area equal to nh gave the oscillator energies.

Pendulum. H=p22ml2−mglcos⁡θH = \dfrac{p^2}{2ml^2} - mgl\cos\theta. Small energies give near-ellipses. At E = mgl the orbit, called the separatrix, just reaches the inverted position. Above it the pendulum whirls round, and the phase curves no longer close.

Planetary motion. For f=−kr2f = -\dfrac{k}{r^2} in plane polar coordinates,

L=12m(r˙2+r2θ˙2)+kr,pr=mr˙,pθ=mr2θ˙L = \frac{1}{2}m\left(\dot r^2 + r^2\dot\theta^2\right) + \frac{k}{r}, \qquad p_r = m\dot r, \qquad p_\theta = mr^2\dot\theta
H=pr22m+pθ22mr2−krH = \frac{p_r^2}{2m} + \frac{p_\theta^2}{2mr^2} - \frac{k}{r}

Hamilton's equations give r˙=prm\dot r = \dfrac{p_r}{m}, θ˙=pθmr2\dot\theta = \dfrac{p_\theta}{mr^2}, p˙θ=−∂H∂θ=0\dot p_\theta = -\dfrac{\partial H}{\partial\theta} = 0 and

p˙r=pθ2mr3−kr2⇒mr¨−pθ2mr3=−kr2\dot p_r = \frac{p_\theta^2}{mr^3} - \frac{k}{r^2} \quad\Rightarrow\quad m\ddot r - \frac{p_\theta^2}{mr^3} = -\frac{k}{r^2}

This is the differential equation of the orbit; with u=1ru = \dfrac{1}{r} it becomes d2udθ2+u=mkpθ2\dfrac{d^2u}{d\theta^2} + u = \dfrac{mk}{p_\theta^2}, whose solution is a conic (see the Kepler problem).

Areal velocity. θ is cyclic, so pθp_\theta is constant. The area swept per unit time is 12r2θ˙=pθ2m\dfrac{1}{2}r^2\dot\theta = \dfrac{p_\theta}{2m}, which is therefore constant: Kepler's second law.

Worked example: a Lagrangian with constant vectors (IFoS 2024)

Given L=12m(v⃗+a⃗)2+b⃗⋅v⃗−c⃗⋅r⃗L = \dfrac{1}{2}m\left(\vec v + \vec a\right)^2 + \vec b\cdot\vec v - \vec c\cdot\vec r, with a⃗\vec a, b⃗\vec b, c⃗\vec c constant vectors.

Momentum. p⃗=∂L∂v⃗=m(v⃗+a⃗)+b⃗\vec p = \dfrac{\partial L}{\partial\vec v} = m\left(\vec v + \vec a\right) + \vec b, so v⃗=p⃗−b⃗m−a⃗\vec v = \dfrac{\vec p - \vec b}{m} - \vec a.

Hamiltonian. Write u⃗=p⃗−b⃗=m(v⃗+a⃗)\vec u = \vec p - \vec b = m\left(\vec v + \vec a\right). Then p⃗⋅v⃗−b⃗⋅v⃗=u⃗⋅v⃗=u2m−u⃗⋅a⃗\vec p\cdot\vec v - \vec b\cdot\vec v = \vec u\cdot\vec v = \dfrac{u^2}{m} - \vec u\cdot\vec a, and 12m(v⃗+a⃗)2=u22m\dfrac{1}{2}m\left(\vec v + \vec a\right)^2 = \dfrac{u^2}{2m}. Hence

H=p⃗⋅v⃗−L=(p⃗−b⃗)22m−a⃗⋅(p⃗−b⃗)+c⃗⋅r⃗H = \vec p\cdot\vec v - L = \frac{\left(\vec p - \vec b\right)^2}{2m} - \vec a\cdot\left(\vec p - \vec b\right) + \vec c\cdot\vec r

Canonical equations.

r⃗˙=∂H∂p⃗=p⃗−b⃗m−a⃗,p⃗˙=−∂H∂r⃗=−c⃗\dot{\vec r} = \frac{\partial H}{\partial\vec p} = \frac{\vec p - \vec b}{m} - \vec a, \qquad \dot{\vec p} = -\frac{\partial H}{\partial\vec r} = -\vec c

Combining, mr⃗¨=−c⃗m\ddot{\vec r} = -\vec c: motion under a constant force, like a projectile. The vectors a⃗\vec a and b⃗\vec b change the momenta but not the physics. The term b⃗⋅v⃗=ddt(b⃗⋅r⃗)\vec b\cdot\vec v = \dfrac{d}{dt}\left(\vec b\cdot\vec r\right) is a total time derivative, and the shift by a⃗\vec a is a change to a frame moving uniformly. Both leave the equations of motion unchanged, as the last chapter showed.

Worked example: an electron in crossed fields (Geo-Scientist 2023, 2026)

General Hamiltonian. From L=12mv2−qϕ+qA⃗⋅v⃗L = \dfrac{1}{2}mv^2 - q\phi + q\vec A\cdot\vec v, the canonical momentum is p⃗=mv⃗+qA⃗\vec p = m\vec v + q\vec A, and

H=(p⃗−qA⃗)22m+qϕH = \frac{\left(\vec p - q\vec A\right)^2}{2m} + q\phi

It is still kinetic plus potential energy, but written with the canonical momentum.

Fields B⃗=B0k^\vec B = B_0\hat k, E⃗=E0i^\vec E = E_0\hat i (2023). Choose ϕ=−E0x\phi = -E_0x and A⃗=B0x j^\vec A = B_0x\,\hat j, which give E⃗=−∇ϕ\vec E = -\nabla\phi and ∇×A⃗=B0k^\nabla\times\vec A = B_0\hat k. For an electron, q = −e:

H=px2+(py+eB0x)2+pz22m+eE0xH = \frac{p_x^2 + \left(p_y + eB_0x\right)^2 + p_z^2}{2m} + eE_0x

Canonical equations.

x˙=pxm,y˙=py+eB0xm,z˙=pzm,p˙x=−eB0m(py+eB0x)−eE0,p˙y=p˙z=0\dot x = \frac{p_x}{m}, \quad \dot y = \frac{p_y + eB_0x}{m}, \quad \dot z = \frac{p_z}{m}, \quad \dot p_x = -\frac{eB_0}{m}\left(p_y + eB_0x\right) - eE_0, \quad \dot p_y = \dot p_z = 0

y and z are cyclic, so pyp_y and pzp_z are constant: free motion along the magnetic field, and a conserved canonical momentum along y.

The drift. The x-equation becomes mx¨=−eB0y˙−eE0m\ddot x = -eB_0\dot y - eE_0, and my¨=eB0x˙m\ddot y = eB_0\dot x. Their solution is a circular gyration plus a steady drift with y˙=−E0B0\dot y = -\dfrac{E_0}{B_0}, that is

v⃗d=E⃗×B⃗B2=E0B0(i^×k^)B02=−E0B0j^\vec v_d = \frac{\vec E\times\vec B}{B^2} = \frac{E_0B_0\left(\hat i\times\hat k\right)}{B_0^2} = -\frac{E_0}{B_0}\hat j

The drift does not depend on the sign or size of the charge, so electrons and ions drift together, and no current flows from it. This E × B drift shapes plasma flow in the ionosphere and in fusion devices.

Fields B⃗=B0i^\vec B = B_0\hat i, E⃗=E0k^\vec E = E_0\hat k (2026). The same steps with A⃗=B0y k^\vec A = B_0y\,\hat k and ϕ=−E0z\phi = -E_0z give H=px2+py2+(pz+eB0y)22m+eE0zH = \dfrac{p_x^2 + p_y^2 + \left(p_z + eB_0y\right)^2}{2m} + eE_0z. Now x is cyclic, and the drift is E0B0(k^×i^)B02=E0B0j^\dfrac{E_0B_0\left(\hat k\times\hat i\right)}{B_0^2} = \dfrac{E_0}{B_0}\hat j.

Poisson brackets and constants of motion (Geo-Scientist 2023, 2025, 2026)

Definition and equation of motion. For any F(q, p, t), the chain rule and Hamilton's equations give

dFdt=∑j(∂F∂qj∂H∂pj−∂F∂pj∂H∂qj)+∂F∂t={F,H}+∂F∂t\frac{dF}{dt} = \sum_j\left(\frac{\partial F}{\partial q_j}\frac{\partial H}{\partial p_j} - \frac{\partial F}{\partial p_j}\frac{\partial H}{\partial q_j}\right) + \frac{\partial F}{\partial t} = \{F, H\} + \frac{\partial F}{\partial t}

F is a constant of motion if {F,H}+∂F∂t=0\{F, H\} + \dfrac{\partial F}{\partial t} = 0. The fundamental brackets are {qi,qj}={pi,pj}=0\{q_i, q_j\} = \{p_i, p_j\} = 0 and {qi,pj}=δij\{q_i, p_j\} = \delta_{ij}. Hamilton's equations themselves read q˙={q,H}\dot q = \{q, H\}, p˙={p,H}\dot p = \{p, H\}.

Properties. Brackets are antisymmetric, {F,G}=−{G,F}\{F, G\} = -\{G, F\}, linear, obey the product rule, and satisfy the Jacobi identity {F,{G,K}}+{G,{K,F}}+{K,{F,G}}=0\{F, \{G, K\}\} + \{G, \{K, F\}\} + \{K, \{F, G\}\} = 0.

Worked example 1 (2023). For H=p22m+12mω2q2H = \dfrac{p^2}{2m} + \dfrac{1}{2}m\omega^2q^2 and u=ln⁡(p+imωq)−iωtu = \ln\left(p + im\omega q\right) - i\omega t,

{u,H}=imωp+imωq⋅pm−1p+imωq⋅mω2q=iω(p+imωq)p+imωq=iω\{u, H\} = \frac{im\omega}{p + im\omega q}\cdot\frac{p}{m} - \frac{1}{p + im\omega q}\cdot m\omega^2q = \frac{i\omega\left(p + im\omega q\right)}{p + im\omega q} = i\omega

Since ∂u∂t=−iω\dfrac{\partial u}{\partial t} = -i\omega, dudt=0\dfrac{du}{dt} = 0: u is a constant of motion. It encodes the oscillator's phase.

Worked example 2: Poisson's theorem (2026). Let F and G be constants of motion. Then ddt{F,G}={{F,G},H}+∂∂t{F,G}\dfrac{d}{dt}\{F, G\} = \{\{F, G\}, H\} + \dfrac{\partial}{\partial t}\{F, G\}.

By the Jacobi identity, {{F,G},H}={F,{G,H}}−{G,{F,H}}\{\{F, G\}, H\} = \{F, \{G, H\}\} - \{G, \{F, H\}\}. Substituting {G,H}=−∂G∂t\{G, H\} = -\dfrac{\partial G}{\partial t} and {F,H}=−∂F∂t\{F, H\} = -\dfrac{\partial F}{\partial t}, this equals −{F,∂G∂t}−{∂F∂t,G}-\left\{F, \dfrac{\partial G}{\partial t}\right\} - \left\{\dfrac{\partial F}{\partial t}, G\right\}, which exactly cancels ∂∂t{F,G}\dfrac{\partial}{\partial t}\{F, G\}. So {F,G}\{F, G\} is also a constant of motion.

Worked example 3: angular momentum (2025). With Lx=ypz−zpyL_x = yp_z - zp_y and Ly=zpx−xpzL_y = zp_x - xp_z, only the pairs (z, p_z) contribute:

{Lx,Ly}=∂Lx∂z∂Ly∂pz−∂Lx∂pz∂Ly∂z=(−py)(−x)−(y)(px)=Lz\{L_x, L_y\} = \frac{\partial L_x}{\partial z}\frac{\partial L_y}{\partial p_z} - \frac{\partial L_x}{\partial p_z}\frac{\partial L_y}{\partial z} = \left(-p_y\right)(-x) - (y)\left(p_x\right) = L_z

By cyclic permutation, {Li,Lj}=εijkLk\{L_i, L_j\} = \varepsilon_{ijk}L_k. So if LxL_x and LyL_y are conserved, Poisson's theorem says LzL_z is too. In quantum mechanics the same relations become [L^x,L^y]=iℏL^z\left[\hat L_x, \hat L_y\right] = i\hbar\hat L_z.

Canonical transformations (Geo-Scientist 2025)

Idea. In Lagrangian mechanics we may change coordinates freely. In Hamiltonian mechanics we may go further and mix coordinates and momenta: (q, p) → (Q, P). Such a change is canonical if the new variables still obey Hamilton's equations, with some new Hamiltonian K(Q, P, t).

Poisson-bracket test. A transformation is canonical if and only if it preserves the fundamental brackets. For one degree of freedom, this means

{Q,P}q,p=∂Q∂q∂P∂p−∂Q∂p∂P∂q=1\{Q, P\}_{q,p} = \frac{\partial Q}{\partial q}\frac{\partial P}{\partial p} - \frac{\partial Q}{\partial p}\frac{\partial P}{\partial q} = 1

Geometrically, the map preserves areas in the phase plane.

Worked example (2025). For Q=p+iaqQ = p + iaq and P=bp+cqP = bp + cq:

{Q,P}=(ia)(b)−(1)(c)=iab−c\{Q, P\} = (ia)(b) - (1)(c) = iab - c

The transformation is canonical if and only if iab−c=1iab - c = 1. For instance, b = 0 and c = −1 gives Q = p + iaq, P = −q, a canonical map for any a.

Simple examples. Q = p, P = −q swaps the roles of coordinate and momentum: {Q,P}={p,−q}=1\{Q, P\} = \{p, -q\} = 1. This shows that in Hamiltonian mechanics "coordinate" and "momentum" are labels, not fixed physical types.

Why bother? A clever canonical transformation can make every new coordinate cyclic, so all the new momenta are constant and the problem is solved. The harmonic oscillator becomes trivial in action-angle variables, where J=EωJ = \dfrac{E}{\omega} and the angle increases uniformly. This is the route to Hamilton-Jacobi theory, perturbation theory of planetary orbits, and the classical limit of quantum mechanics.

Deep dive: Liouville's theorem

Take not one system but a cloud of copies, each starting from a slightly different point in phase space. As time passes, every point moves along its own trajectory and the cloud changes shape. Liouville's theorem says its volume in phase space never changes.

Proof in one line. The "velocity" of a phase point is (q˙,p˙)=(∂H∂p,−∂H∂q)\left(\dot q, \dot p\right) = \left(\dfrac{\partial H}{\partial p}, -\dfrac{\partial H}{\partial q}\right). Its divergence is

∂q˙∂q+∂p˙∂p=∂2H∂q ∂p−∂2H∂p ∂q=0\frac{\partial\dot q}{\partial q} + \frac{\partial\dot p}{\partial p} = \frac{\partial^2H}{\partial q\,\partial p} - \frac{\partial^2H}{\partial p\,\partial q} = 0

so the flow in phase space is incompressible, like water. The density of points ρ obeys ∂ρ∂t+{ρ,H}=0\dfrac{\partial\rho}{\partial t} + \{\rho, H\} = 0.

Consequences.

  • In a pendulum, a small square of starting states near the separatrix is stretched into a long thin filament, but its area stays fixed. Stretching plus folding is how chaos arises without breaking Liouville's theorem.
  • With friction the theorem fails: all trajectories spiral into the rest state and phase volume shrinks to a point.
  • In statistical mechanics, Liouville's theorem justifies giving equal weight to equal volumes of phase space, the foundation of the microcanonical ensemble.
  • Particle accelerators cannot shrink a beam's phase-space volume (its emittance) with magnets alone. Special cooling methods, which won Simon van der Meer a share of the 1984 Nobel Prize, are needed.

Critiques and debates: Lagrange or Hamilton?

For solving a typical mechanics problem, the Hamiltonian method is rarely quicker: you must first build L anyway. Its value lies in structure.

Feature Lagrangian Hamiltonian
Variables n coordinates q and velocities q̇ 2n independent q and p
Equations n second-order 2n first-order
Natural space configuration space phase space
Allowed changes of variable point transformations of q canonical transformations mixing q and p
Natural home field theory, relativity (Lorentz invariant) statistical mechanics, chaos, quantum mechanics
Quantum link path integral (Feynman) operators and commutators (Dirac)

Paul Dirac noticed in 1925 that the classical Poisson bracket {F,G}\{F, G\} becomes 1iℏ[F^,G^]\dfrac{1}{i\hbar}\left[\hat F, \hat G\right] in quantum mechanics. This single rule turns Hamiltonian mechanics into Heisenberg's matrix mechanics.

Concept clarifications: commonly confused ideas

Writing a 20-mark answer

Question: "Obtain Hamilton's canonical equations from the Lagrangian. Construct the Hamiltonian of an electron in uniform fields B⃗=B0k^\vec B = B_0\hat k and E⃗=E0i^\vec E = E_0\hat i, write the canonical equations and identify the conserved quantities." (20 marks)

  1. Legendre transform (6 marks). Define p and H; compare two forms of dH; the three results including ∂H∂t=−∂L∂t\dfrac{\partial H}{\partial t} = -\dfrac{\partial L}{\partial t}.
  2. Electron Hamiltonian (5 marks). Choice of φ and A⃗\vec A with a check of E⃗\vec E and B⃗\vec B; H=(p⃗+eA⃗)22m−eϕH = \dfrac{\left(\vec p + e\vec A\right)^2}{2m} - e\phi.
  3. Canonical equations (5 marks). Six equations; cyclic y and z.
  4. Interpretation (4 marks). Conserved pyp_y, pzp_z, H; E × B drift −E0B0j^-\dfrac{E_0}{B_0}\hat j independent of charge; Poisson-bracket check {py,H}=0\{p_y, H\} = 0.

Mains practice: questions to try

These are practice questions written by us, not past papers. The UPSC questions on this topic are shown in the previous year questions panel.

# Question Marks What it tests
1 Write the Hamiltonian of a particle in a central potential in spherical polar coordinates and identify the cyclic coordinate. 10 Hamiltonian construction
2 Show that {Lz,x}=−y\{L_z, x\} = -y and {Lz,px}=−py\{L_z, p_x\} = -p_y, and interpret them as rotations. 10 Poisson brackets
3 Show that Q=ln⁡(sin⁡pq)Q = \ln\left(\dfrac{\sin p}{q}\right), P=qcot⁡pP = q\cot p is canonical. 10 canonical test
4 Find the action-angle variables of the harmonic oscillator and recover its frequency. 15 action-angle
5 Show by direct calculation that the area of a small rectangle in the phase plane of a free particle is preserved in time. 10 Liouville

Quick revision

  • H=∑pjq˙j−LH = \sum p_j\dot q_j - L in q, p; q˙=∂H∂p\dot q = \dfrac{\partial H}{\partial p}, p˙=−∂H∂q\dot p = -\dfrac{\partial H}{\partial q}; dHdt=∂H∂t\dfrac{dH}{dt} = \dfrac{\partial H}{\partial t}.
  • Oscillator ellipse area 2πEω\dfrac{2\pi E}{\omega}; pendulum separatrix at E = mgl.
  • Kepler: H=pr22m+pθ22mr2−krH = \dfrac{p_r^2}{2m} + \dfrac{p_\theta^2}{2mr^2} - \dfrac{k}{r}; pθp_\theta constant, areal velocity pθ2m\dfrac{p_\theta}{2m}.
  • Charge: H=(p⃗−qA⃗)22m+qϕH = \dfrac{\left(\vec p - q\vec A\right)^2}{2m} + q\phi; drift E⃗×B⃗B2\dfrac{\vec E\times\vec B}{B^2}.
  • dFdt={F,H}+∂F∂t\dfrac{dF}{dt} = \{F, H\} + \dfrac{\partial F}{\partial t}; {qi,pj}=δij\{q_i, p_j\} = \delta_{ij}; {Li,Lj}=εijkLk\{L_i, L_j\} = \varepsilon_{ijk}L_k; Poisson's theorem via Jacobi identity.
  • Canonical if {Q,P}=1\{Q, P\} = 1 (e.g. iab−c=1iab - c = 1); Liouville: phase volume conserved.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Derive Hamilton's canonical equations from the Lagrangian by a Legendre transformation.

    Show answer points
    • p_j = ∂L/∂q̇_j; H = Σ p q̇ - L in q, p
    • dH from definition: q̇ terms cancel
    • use ṗ = ∂L/∂q
    • q̇ = ∂H/∂p, ṗ = -∂H/∂q
    • ∂H/∂t = -∂L/∂t; dH/dt = ∂H/∂t
  2. Use Hamiltonian mechanics to find the equation of planetary motion under f = -k/r² and prove that the areal velocity is constant.

    Show answer points
    • H = p_r²/2m + p_θ²/2mr² - k/r
    • ṙ = p_r/m, θ̇ = p_θ/mr²
    • ṗ_r = p_θ²/mr³ - k/r²
    • θ cyclic: p_θ constant
    • areal velocity ½r²θ̇ = p_θ/2m constant
  3. Construct the Hamiltonian of an electron in uniform fields B = B0 k̂ and E = E0 î and write the canonical equations.

    Show answer points
    • φ = -E0 x, A = B0 x ĵ
    • H = [p_x² + (p_y + eB0x)² + p_z²]/2m + eE0 x
    • ẋ = p_x/m, ẏ = (p_y + eB0x)/m, ż = p_z/m
    • ṗ_x = -(eB0/m)(p_y + eB0x) - eE0, ṗ_y = ṗ_z = 0
    • drift E × B/B² = -(E0/B0) ĵ
  4. For L = ½m(v + a)² + b·v - c·r with constant vectors a, b, c, construct the Hamiltonian and the canonical equations.

    Show answer points
    • p = m(v + a) + b
    • v = (p - b)/m - a
    • H = (p - b)²/2m - a·(p - b) + c·r
    • ṙ = (p - b)/m - a, ṗ = -c
    • m r̈ = -c: constant force
  5. Show that u = ln(p + imωq) - iωt is a constant of motion for the harmonic oscillator H = p²/2m + ½mω²q².

    Show answer points
    • du/dt = {u, H} + ∂u/∂t
    • ∂u/∂q = imω/(p + imωq), ∂u/∂p = 1/(p + imωq)
    • {u, H} = (iωp - mω²q)/(p + imωq) = iω
    • ∂u/∂t = -iω
    • du/dt = 0
  6. Show that the Poisson bracket of two constants of motion is also a constant of motion, and find {L_x, L_y}.

    Show answer points
    • d{F,G}/dt = {{F,G},H} + ∂{F,G}/∂t
    • Jacobi: {{F,G},H} = {F,{G,H}} - {G,{F,H}}
    • use {G,H} = -∂G/∂t, {F,H} = -∂F/∂t: terms cancel
    • {L_x, L_y}: only z, p_z contribute
    • = x p_y - y p_x = L_z; {L_i, L_j} = ε_ijk L_k
  7. Define a canonical transformation using Poisson brackets and find the condition on a, b, c for Q = p + iaq, P = bp + cq to be canonical.

    Show answer points
    • canonical: Hamilton's equations keep their form
    • test {Q, P}_(q,p) = 1
    • {Q, P} = (∂Q/∂q)(∂P/∂p) - (∂Q/∂p)(∂P/∂q)
    • = (ia)(b) - (1)(c)
    • condition iab - c = 1
  8. State and prove Liouville's theorem and give two consequences.

    Show answer points
    • phase velocity (∂H/∂p, -∂H/∂q)
    • divergence ∂²H/∂q∂p - ∂²H/∂p∂q = 0
    • phase volume conserved; ∂ρ/∂t + {ρ, H} = 0
    • fails with friction: volume shrinks
    • statistical mechanics equal weights; beam emittance

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

How is the Hamiltonian obtained from the Lagrangian?

Define p = dL/dq-dot, form H = sum of p q-dot minus L, and remove every velocity using p. This Legendre transformation gives Hamilton's canonical equations.

What is a Poisson bracket used for?

It gives the time evolution of any quantity, dF/dt = {F, H} plus the partial time derivative of F. It also tests whether a transformation is canonical and whether quantities are conserved.

What is Poisson's theorem?

The Poisson bracket of two constants of motion is also a constant of motion. It follows from the Jacobi identity, and it gives L_z from L_x and L_y.

What does Liouville's theorem state?

For a Hamiltonian system, a cloud of points in phase space keeps its volume as it moves, though its shape may change. It fails with friction, and it underlies equal weights in statistical mechanics.

More in this module: Mechanics of particles

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-01 Elementary Mechanics and BPHCT-131 Block 4: Lagrangian and Hamiltonian formulations
  2. MIT OpenCourseWare 8.09 Classical Mechanics III, lecture notes on Hamiltonian mechanics