Two systems A and B, of identical composition, are brought together and allowed to exchange both energy and particles, keeping volumes VA and VB const. Show that the minimum value of the quantity (dEA/dNA) is given by
TB−TAμATB−μBTA,
where the μ and the T are the respective chemical potentials and temperatures.