The math optional, made finite.

← 2025 Paper 2

UPSC Maths 2025 Paper 2 Q8c-ii — Solution

10 marks · Section B

Question

Consider the Lagrangian L=mx˙y˙mω02xyL = m\dot{x}\dot{y} - m\omega_0^2 xy where mm and ω0\omega_0 are constants. Find the Hamiltonian and Hamilton’s equations of motion. Identify the system.

Technique

Take the Legendre transform of this cross-coupled Lagrangian: compute the conjugate momenta, invert them, form H=pxx˙+pyy˙LH = p_x\dot x + p_y\dot y - L, write Hamilton’s equations, and decouple via the equations of motion to identify the system.

Solution

Canonical momenta

px=Lx˙=my˙,py=Ly˙=mx˙.p_x = \frac{\partial L}{\partial\dot x} = m\dot y,\qquad p_y = \frac{\partial L}{\partial\dot y} = m\dot x.

Note the cross structure: pxp_x depends on y˙\dot y and pyp_y on x˙\dot x. Invert: x˙=pym,y˙=pxm.\dot x = \frac{p_y}{m},\qquad \dot y = \frac{p_x}{m}.

Hamiltonian

H=pxx˙+pyy˙L=pxpym+pypxm(mx˙y˙mω02xy).H = p_x\dot x + p_y\dot y - L = p_x\frac{p_y}{m} + p_y\frac{p_x}{m} - \Big(m\dot x\dot y - m\omega_0^2 xy\Big). Now mx˙y˙=mpympxm=pxpymm\dot x\dot y = m\cdot\frac{p_y}{m}\cdot\frac{p_x}{m} = \frac{p_x p_y}{m}, so H=2pxpympxpym+mω02xy=pxpym+mω02xy.H = \frac{2p_x p_y}{m} - \frac{p_x p_y}{m} + m\omega_0^2 xy = \frac{p_x p_y}{m} + m\omega_0^2 xy.

H=pxpym+mω02xy.\boxed{H = \frac{p_x p_y}{m} + m\omega_0^2\,xy.}

Hamilton’s equations

x˙=Hpx=pym,y˙=Hpy=pxm,\dot x = \frac{\partial H}{\partial p_x} = \frac{p_y}{m},\qquad \dot y = \frac{\partial H}{\partial p_y} = \frac{p_x}{m}, p˙x=Hx=mω02y,p˙y=Hy=mω02x.\dot p_x = -\frac{\partial H}{\partial x} = -m\omega_0^2\,y,\qquad \dot p_y = -\frac{\partial H}{\partial y} = -m\omega_0^2\,x.

Identify the system

Differentiate x˙=py/m\dot x = p_y/m and use p˙y=mω02x\dot p_y = -m\omega_0^2 x: x¨=p˙ym=ω02x    x¨+ω02x=0.\ddot x = \frac{\dot p_y}{m} = -\omega_0^2 x \implies \ddot x + \omega_0^2 x = 0. Similarly y¨=p˙xm=ω02y    y¨+ω02y=0.\ddot y = \dfrac{\dot p_x}{m} = -\omega_0^2 y \implies \ddot y + \omega_0^2 y = 0.

So xx and yy each execute independent simple harmonic motion of angular frequency ω0\omega_0. Although the Lagrangian/Hamiltonian is written in coupled (bilinear) form, the dynamics decouples: the system is two independent one-dimensional harmonic oscillators, each of angular frequency ω0\omega_0.

Answer

H=pxpym+mω02xy,H = \frac{p_x p_y}{m} + m\omega_0^2 xy, x˙=pym,y˙=pxm,p˙x=mω02y,p˙y=mω02x.\dot x = \frac{p_y}{m},\quad \dot y = \frac{p_x}{m},\quad \dot p_x = -m\omega_0^2 y,\quad \dot p_y = -m\omega_0^2 x. The equations of motion are x¨+ω02x=0\ddot x + \omega_0^2 x = 0 and y¨+ω02y=0\ddot y + \omega_0^2 y = 0: the system is two independent simple harmonic oscillators of angular frequency ω0\omega_0.

We've mapped all 13 years of this exam. Get new solutions, tools, and guides as we release them — free.