 Subtracting the right hand side of (5) from the middle portion and rearranging gives

where the negative sign indicates heat ejected from the system.This relationship suggests the existence of a state function, "S", defined by

where the subscript indicates a reversible process.The change of this state function around any cycle is zero, as is necessary for any state function.