Explanation pendulum energy problem