the total energy is the sum of kinetic and potential