In the case of a refrigerator or heat pump, the work done on the system is the work required to run the refrigerator or heat pump, and the heat rejected is the heat transferred to the hot reservoir. Therefore, we can write the first law of thermodynamics
Show more…