Consider a system in thermal equilibrium with its surroundings at a temperature T. When a change in the system occurs and there is a transfer of energy as heat between the system and the surroundings, the Clausius inequality (dS≥dq/T, eqn 3.12) reads