Consider a system which is characterized by the extensive variables ##(U,V,N_1,...,N_m)##. For a quasistatic process which occurs in contact with some pressure reservoir and where the ##N_i## are constant, one has
$$dU = TdS -PdV \implies TdS = dQ,$$
where the implication follows from the First...