Pendulum problem explanation