find the change in internal energy