Pendulum motion and kinetic energy