← 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 H 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=0 using ∂H/∂t=0 (no explicit time dependence).
Solution
Setup. Pendulum of mass m, rod length l, swinging in a vertical plane. Generalized coordinate: θ (angle from downward vertical).
Position: (x,y)=(lsinθ,−lcosθ).
Velocity: x˙=lθ˙cosθ, y˙=lθ˙sinθ.
Step 1 — Lagrangian
Kinetic energy: T=21m(x˙2+y˙2)=21ml2θ˙2.
Potential energy (taking pivot as V=0, y downward = negative height): V=−mglcosθ. Equivalently, taking lowest point as V=0: V=mgl(1−cosθ). Either choice works; use V=−mglcosθ.
L=T−V=21ml2θ˙2+mglcosθ.
Step 2 — Generalized momentum
pθ=∂θ˙∂L=ml2θ˙⟹θ˙=ml2pθ.
Step 3 — Hamiltonian
H=pθθ˙−L=pθ⋅ml2pθ−21ml2⋅m2l4pθ2−mglcosθ.
Simplify:
H=ml2pθ2−2ml2pθ2−mglcosθ=2ml2pθ2−mglcosθ.
Answer
H=2ml2pθ2−mglcosθ.