← 2023 Paper 2

UPSC 2023 Maths Optional Paper 2 Q5d — Step-by-Step Solution

10 marks · Section B

Hamilton's equations · Mechanics & Fluid Dynamics · asked 10× in 13 yrs · Read the full method →

Question

A planet of mass mm is revolving around the sun of mass MM. The kinetic energy TT and the potential energy VV of the planet are given by T=12m(r˙2+r2θ˙2)T=\tfrac12 m(\dot r^2+r^2\dot\theta^2) and V=GMm(12a1r)V=GMm\bigl(\tfrac{1}{2a}-\tfrac{1}{r}\bigr), where (r,θ)(r,\theta) are the polar coordinates of the planet at time tt, GG is the gravitational constant and 2a2a is the major axis of the ellipse (the path of the planet). Find the Hamiltonian and the Hamilton equations of the planet’s motion.

Technique

Standard Legendre transform from L(q,q˙)L(q,\dot q) to H(q,p)H(q,p); the system is natural so H=T+VH=T+V.

Solution

Generalised coordinates. (q1,q2)=(r,θ)(q_1,q_2)=(r,\theta).

Step 1 — Lagrangian and generalised momenta.

L=TV=12m(r˙2+r2θ˙2)GMm ⁣(12a1r).L=T-V=\tfrac12 m\bigl(\dot r^{2}+r^{2}\dot\theta^{2}\bigr)-GMm\!\left(\frac{1}{2a}-\frac{1}{r}\right).

Momenta:

pr=Lr˙=mr˙,pθ=Lθ˙=mr2θ˙.p_r=\frac{\partial L}{\partial\dot r}=m\dot r,\qquad p_\theta=\frac{\partial L}{\partial\dot\theta}=mr^{2}\dot\theta.

Invert: r˙=prm,θ˙=pθmr2\dot r=\dfrac{p_r}{m},\quad\dot\theta=\dfrac{p_\theta}{mr^{2}}.

Step 2 — Hamiltonian.

For a holonomic, scleronomic system (constraints time-independent and kinetic energy quadratic in velocities), H=T+VH=T+V expressed in terms of (q,p)(q,p):

T=12m ⁣(r˙2+r2θ˙2)=pr22m+pθ22mr2,T=\tfrac12 m\!\left(\dot r^{2}+r^{2}\dot\theta^{2}\right)=\frac{p_r^{2}}{2m}+\frac{p_\theta^{2}}{2mr^{2}}, V=GMm ⁣(12a1r).V=GMm\!\left(\frac{1}{2a}-\frac{1}{r}\right).   H(r,θ,pr,pθ)=pr22m+pθ22mr2+GMm ⁣(12a1r).  \boxed{\;H(r,\theta,p_r,p_\theta)=\frac{p_r^{2}}{2m}+\frac{p_\theta^{2}}{2mr^{2}}+GMm\!\left(\frac{1}{2a}-\frac{1}{r}\right).\;}

Step 3 — Hamilton’s equations.

r˙=Hpr=prm,\dot r=\frac{\partial H}{\partial p_r}=\frac{p_r}{m}, θ˙=Hpθ=pθmr2,\dot\theta=\frac{\partial H}{\partial p_\theta}=\frac{p_\theta}{mr^{2}}, p˙r=Hr=pθ2mr3GMmr2,\dot p_r=-\frac{\partial H}{\partial r}=\frac{p_\theta^{2}}{mr^{3}}-\frac{GMm}{r^{2}}, p˙θ=Hθ=0.\dot p_\theta=-\frac{\partial H}{\partial\theta}=0.

(The last equation says angular momentum pθp_\theta is conserved — Kepler’s second law in disguise.)

Answer

  r˙=prm,θ˙=pθmr2,p˙r=pθ2mr3GMmr2,p˙θ=0.  \boxed{\;\dot r=\frac{p_r}{m},\quad\dot\theta=\frac{p_\theta}{mr^{2}},\quad\dot p_r=\frac{p_\theta^{2}}{mr^{3}}-\frac{GMm}{r^{2}},\quad\dot p_\theta=0.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.