Write Hamiltonian for spherical pendulum.
Tarun Kumar Yadav, AIR 49, 2025
For a spherical pendulum of
- mass - $m$ - coordinates: $(r, \theta, \phi)$ - reference point - lowest point on trajectory
[a sketch of a spherical pendulum of mass m on a string, with a reference point below, and a set of axes with z up showing the angle $\theta$ from the z axis and the angle $\phi$ in the xy plane]
$T = \frac{1}{2}m\left[\dot{r}^2 + r\dot{\theta}^2 + r\sin\theta\,\dot{\phi}^2\right]$
$V = mgz = mg r\cos\theta$
($T, V \to$ kinetic & potential energy)
Langrangian: $\mathcal{L} = T - V$
$\therefore$ Since langrangian is independent of time (explicitity), we can write hamiltonian as
$H = T+V$
Also by Langrangian eq^n:
$p_r = \frac{\partial L}{\partial \dot q_r} = m\dot r$, $\quad p_\theta = \frac{\partial L}{\partial \dot q_\theta} = mr\dot\theta$, $\quad p_\phi = \frac{\partial L}{\partial \dot q_\phi} = mr\sin\theta\,\dot\phi$
thus
Substituting in ① we get
$\llcorner$ required Hamiltonian