The whirling pendulum. Suppose that a simple pendulum is hanging downward, and that we give it an initial angular velocity $\Omega$, so that $\theta=0$, $\mathrm{d} \theta / \mathrm{d} t=\Omega$ when $t=0$. Show that the pendulum will only overshoot $\theta-\pi$ if
$$
\Omega>2(g / l)^{1 / 2} \text {. }
$$
Suppose now that friction is present and proportional to $\mathrm{d} \theta / \mathrm{d} t$, so that in place of (5.40) we have
$$
\frac{\mathrm{d}^2 \theta}{\mathrm{d} t^2}+k \frac{\mathrm{d} \theta}{\mathrm{d} t}+\frac{g}{l} \sin \theta=0 .
$$
If we write $\vec{i}=t(g / l)^{1 / 2}$ we obtain
$$
\ddot{\theta}+\tilde{k} \dot{\theta}+\sin \theta=0
$$
with $\dot{\theta}=\tilde{\Omega}$ at $\tilde{t}=0$, where $\tilde{\Omega}=\Omega(l / g)^{1 / 2}, \tilde{k}=k(l / g)^{1 / 2}$ and a dot denotes differentiation with respect to $\bar{t}$.
Use the program PENDANIM to solve this equation by a double-precision Runge-Kutta method and display a simple animation of the motion. For $\cdot \vec{k}=0.1$, say, how many complete revolutions about the pivot does the pendulum make when (i) $\Omega=4(\mathrm{~g} / \mathrm{l})^{1 / 2}$, (ii) $\Omega=10(\mathrm{~g} / \mathrm{l})^{1 / 2}$ ?