Kinetic and Potential Energy in Swinging Motion