In a homogeneous system in which only reversible processes or pure heat transfer are considered, the second law of thermodynamics gives δ Q = T d S , with T the absolute temperature and d S the infinitesimal change in entropy S of the system. Furthermore, if only p V work is done, δ W = p d V . As a result,