differentiate of kinetic and potential energy