Now we consider systems which are in contact with a heat bath at temperature and also in with a particle reservoir at chemical potential . The temperature is a measure of the decrease in entropy of the reservoir from giving up heat to the system (see here); the chemical potential is a measure of the energy decrease (and entropy increase) of the reservoir from giving up particles to the system
We want to find the probability that our system will be in a certain microstate with an energy and particle number .
The derivation follows that of the Boltzmann distribution closely. Again the probability
of the system
being in the given microstate depends on the number of microstates available to the reservoir with energy
and particle number . Expressing the number of microstates as the exponential of
the entropy, making a Taylor expansion of the entropy about , and expressing the derivatives of the
entropy in terms of and thus,
The new normalisation constant is called the grand partition function. Macroscopic functions of state are calculated via ensemble averages as usual; the relevant ensemble in this case is called the grand canonical ensemble.
The following properties are easily proved by analogy with the corresponding ones for the Boltzmann distribution (see here and here):
So whereas in an isolated system the entropy is the key (compare here) and in a system at constant temperature it is the Helmholtz free energy (compare here), here the grand potential is the key to the other functions of state.
See here for more details about .
References