This page was generated from notebooks/L4/2_Gibbs_Distribution.ipynb.
Open In Colab

Particle exchange and chemical potential#

So far, we have considered closed systems and derived and studied the Boltzmann distribution. Now our systems are open and the particle number might change. To derive the microstate probability distribution, we retrace the steps that led us to the Boltzmann distribution, except for allowing the system to trade particles with the bath.

1c00ca677aa64af8abba3667583bd7cc

The probability to find a system in a given microstate \(\nu_s\), in which the system has energy \(E_\mathrm{s}\) and \(N_\mathrm{s}\) particeles, is proportional to the number of available bath states,

\[P(\nu_s)\propto e^{k_\mathrm{B}^{-1}S_b(E-E_s,N-N_s)}\;.\]

Next we Taylor expand the entropy of the large bath,

\[k_\mathrm{B}^{-1}S_b(E-E_s,N-N_s)=\mathrm{const.}-\beta_b(E_s-\mu_b N_s)\;,\]

where we have the usual thermodynamic definition of temperature

\[T_b^{-1}\equiv\frac{\partial S_b}{\partial E}\]

and introduced the chemical potential

\[\mu_b\equiv-T_b \frac{\partial S_b}{\partial N}\;.\]

The chemical potential can be interpreted as the free energy added to the system when we inject one particle into the system.

With these definitions, we obtain the Gibbs distribution

\[P(\nu_s)=Z^{-1}e^{-\beta_b\left[E_s-\mu_b N_s\right]}\]

where the grand canonical partition function \(Z\) is given by the sum

\[Z=\sum_i e^{-\beta_b\left[E_s^{(i)}-\mu_b N_s^{(i)}\right]}\]

over all microstates \(i\).

To obtain the probability to find the system in any one of the states with energy \(E_s\) and particle number \(N_s\), we have to multiply the Gibbs distribution with the multiplicity of system states,

\[P(E_s,N_s)\propto e^{k_\mathrm{B}^{-1}S_s(E_s,N_s)}e^{-\beta_b\left[E_s-\mu_b N_s\right]}\;.\]

If the system is large, this distribution has a pronounced peak, such that the system will have an almost deterministic energy \(U\) and particle number \(N\). The conditions for the maximum imply

\[T_b=T_s\qquad \mu_b=\mu_s\;.\]

Thus, temperatures and chemical potentials of bath and system are equal at equilibrium.

Consideration of spontaneous processes shows that the equilibrium minimizes the grand potential

\[\Sigma=-k_\mathrm{B}T\ln Z=U-T S- \mu N.\]

Volume exchange and pressure#

In complete analogy, we can also treat the case where bath and system trade energy and volume, which we briefly summarize for completeness. One obtains the microstate distribution

\[P(\nu_s)\propto e^{-\beta_b\left[E_s+p_b dV_s\right]}\]

with the equilibrium condition of equal pressures \(p_b=p_s\).

Consideration of spontaneous processes shows that the equilibrium minimizes the Gibbs free energy

\[G=U-T S+PV=\sum_i \mu_i N_i \;,\]

where the last sum goes over all particle species \(i\).

[ ]: