Solve the plane pendulum problem using the Hamiltonian approach and show that H is a constant of motion.
Approach : Assuming it means simple pendulum by plane pendulum, I have calculated Hamiltonian as a function of $\theta , l$ (Length of pendulum) ,$ \ p_\theta $
But what does it mean by H is a constant of motion ?
$$H=\frac{p^2}{2m\ell^2}+mg\ell(1-\cos\theta)$$
$H=T+V$ is the total energy of the system. Now Hamilton's equations will be: $$\dot p=-mg\ell\sin\theta\qquad\dot \theta=\frac{p}{m\ell^2}$$ A constant of motion is a quantity that is conserved throughout the motion.
$$ \frac{\mathrm dH(q,p,t)}{\mathrm dt}=\frac{\partial H}{\partial q}\dot q+\frac{\partial H}{\partial p}\dot p+\frac{\partial H}{\partial t}=-\dot p\dot q+\dot q\dot p+\frac{\partial H}{\partial t}=\frac{\partial H}{\partial t} $$ So the Hamiltonian is conserved if it does not depend explicitly on $t$.