Potential energy U(x) = -cos x (pendulum). Find stable and unstable equilibria using U''