Relationship between kinetic and potential energy