In Sec.
we noted that the condition at equilibrium (or rather the absence of internal constraints that impede particle exchanges between the two systems) implies that the distribution of the particles in the two systems is such that their chemical potentials, defined in
, are equal. If there is more than one specie in the system, then the discussion in Sec.
can be repeated separately for each specie, removing the constraint of impermeability to particle transfer one specie at a time. This leads to the definition of a different chemical potential for each specie, and to a generalisation of the fundamental thermodynamic relation to:
and
gives the Gibbs-Duhem relation:
which shows that the chemical potentials of the various species are not all independent from each other.
Let us consider now chemical equilibrium between two phases, for example a solid and a liquid. The second law states that if we fix the pressure and the temperature the Gibbs free energy of the system must be minimum and so, using
, we obtain a generalisation of
: