← 2015 Paper 2

UPSC 2015 Maths Optional Paper 2 Q6b — Step-by-Step Solution

15 marks · Section B

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

Question

Solve the plane pendulum problem using the Hamiltonian approach and show that HH is a constant of motion.

Technique

Standard Lagrangian-to-Hamiltonian for a 1-DOF system; verify Hamilton’s equations recover the second-order ODE; show dH/dt=0dH/dt=0 using H/t=0\partial H/\partial t=0 (no explicit time dependence).

Solution

Setup. Pendulum of mass mm, rod length ll, swinging in a vertical plane. Generalized coordinate: θ\theta (angle from downward vertical).

Position: (x,y)=(lsinθ,lcosθ)(x,y)=(l\sin\theta,-l\cos\theta).

Velocity: x˙=lθ˙cosθ\dot x=l\dot\theta\cos\theta, y˙=lθ˙sinθ\dot y=l\dot\theta\sin\theta.

Step 1 — Lagrangian

Kinetic energy: T=12m(x˙2+y˙2)=12ml2θ˙2T=\tfrac{1}{2}m(\dot x^2+\dot y^2)=\tfrac{1}{2}ml^2\dot\theta^2.

Potential energy (taking pivot as V=0V=0, yy downward = negative height): V=mglcosθV=-mgl\cos\theta. Equivalently, taking lowest point as V=0V=0: V=mgl(1cosθ)V=mgl(1-\cos\theta). Either choice works; use V=mglcosθV=-mgl\cos\theta.

L=TV=12ml2θ˙2+mglcosθ.L=T-V=\tfrac{1}{2}ml^2\dot\theta^2+mgl\cos\theta.

Step 2 — Generalized momentum

pθ=Lθ˙=ml2θ˙    θ˙=pθml2.p_\theta=\dfrac{\partial L}{\partial\dot\theta}=ml^2\dot\theta\;\Longrightarrow\;\dot\theta=\dfrac{p_\theta}{ml^2}.

Step 3 — Hamiltonian

H=pθθ˙L=pθpθml212ml2pθ2m2l4mglcosθ.H=p_\theta\dot\theta-L=p_\theta\cdot\dfrac{p_\theta}{ml^2}-\tfrac{1}{2}ml^2\cdot\dfrac{p_\theta^2}{m^2 l^4}-mgl\cos\theta.

Simplify:

H=pθ2ml2pθ22ml2mglcosθ=pθ22ml2mglcosθ.H=\dfrac{p_\theta^2}{ml^2}-\dfrac{p_\theta^2}{2ml^2}-mgl\cos\theta=\dfrac{p_\theta^2}{2ml^2}-mgl\cos\theta.

Answer

  H=pθ22ml2mglcosθ.  \boxed{\;H=\dfrac{p_\theta^2}{2ml^2}-mgl\cos\theta.\;}
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.