Write Hamiltonian for spherical pendulum.
Aryan Yadav, AIR 31, 2025
[a spherical pendulum: a line of length $l$ from the pivot O at the top to a bob on a dashed horizontal circle below, the angle $\theta$ marked between the line and the vertical and the angle $\varphi$ marked in the horizontal plane from an axis arrow]
(in spherical coordinates)
Position vector is $l\,\hat{r} + \theta\,\hat{\theta} + \varphi\,\hat{\varphi}$ (spherical coordinates)
(Velocity) $\vec{v} = \frac{dl}{dt}\,\hat{r} + l\frac{d\theta}{dt}\,\hat{\theta} + l\sin\theta\frac{d\varphi}{dt}\,\hat{\varphi}$
$= l\dot{\theta}\,\hat{\theta} + l\sin\theta\,\dot{\varphi}\,\hat{\varphi}$ (As $l$ is constant)
$V(PE) = -mgl\cos\theta$ ($\theta$ being pt of O PE)
$P_\theta, P_\varphi$ are generalized momenta
Required Hamiltonian