The document discusses the second law of thermodynamics. It defines the second law as stating that some heat must always be rejected by a system, even though the net heat supplied equals the net work done according to the first law. The second law implies that the thermal efficiency of heat engines must always be less than 100% because the gross heat supplied must be greater than the net work done. The document also discusses heat pumps and how they operate in the reverse of heat engines, requiring work input to transfer heat from a cold to hot reservoir.