differentiate potential and kinetic energy