In a thermodynamic process involving a closed system (no transfer of matter), the increment in the internal energy is equal to the difference between the heat accumulated by the system and the thermodynamic work done by it.