Hello! In our previous lessons, we developed the canonical ensemble to describe systems with a fixed number of particles () in thermal contact with a heat reservoir at a constant temperature (). This led us to the Boltzmann distribution and the powerful relation , which connects the microscopic partition function to the macroscopic Helmholtz free energy .
This framework is excellent for closed systems, but many physical and chemical processes occur in "open" systems that can exchange not only energy but also particles with their surroundings. Consider a gas adsorbing onto a surface, a chemical reaction where molecules are created or consumed, or the electron gas in a semiconductor connected to leads. To handle these situations, we need to generalize our statistical framework.
This lesson introduces the grand canonical ensemble, which describes systems in equilibrium with a reservoir that fixes both temperature and chemical potential. Our primary goal is to derive the probability distribution for a system in this ensemble. We will find that the probability of a microstate depends not only on its energy but also on its particle number, leading to a new "Boltzmann-like" factor and its corresponding normalization constant, the grand canonical partition function.
1. The Grand Canonical Setup: Open Systems
Imagine a system that can exchange both energy and particles with a very large reservoir . The combined entity forms an isolated system, so its total energy and total particle number are conserved.
Because the reservoir is vast, any exchange leaves its intensive properties unchanged. It acts as a heat bath, fixing the temperature of our system, and as a particle bath, fixing a new quantity called the chemical potential, denoted by . The macroscopic state of our system is therefore specified by the variables . In this ensemble, the system's energy and particle number are no longer fixed but are fluctuating quantities whose average values are determined by and .
Our task is to find the probability of finding the system in a specific microstate , which is now characterized by both its energy and its particle number .
2. Derivation via the Principle of Maximum Entropy
Just as we did for the canonical ensemble, we can derive the equilibrium distribution from a fundamental information-theoretic standpoint using the Principle of Maximum Entropy (MaxEnt), which you first encountered in Module 1. This principle states that the most unbiased probability distribution is the one that maximizes the Gibbs entropy, subject only to the constraints imposed by our knowledge of the system.
For the grand canonical ensemble, we have three constraints:
- Normalization: The probabilities must sum to one. .
- Mean Energy: The system is in thermal equilibrium with a reservoir at temperature , which fixes its average energy. .
- Mean Particle Number: The system is in diffusive equilibrium with a reservoir at chemical potential , which fixes its average particle number. .
Our goal is to maximize the entropy subject to these three constraints. This is a classic optimization problem solved using the method of Lagrange multipliers.
Statistical Physics—Section 2: Assignment of Probabilities ...
This document from the University of Edinburgh provides a clear, step-by-step derivation using the MaxEnt formalism. It first reviews the method of Lagrange multipliers and then applies it directly to the grand canonical case.
First, briefly review the general method of Lagrange multipliers in the section "Assignment of Probability" on page 5, particularly Example 2, which shows how to maximize entropy with multiple constraints. Next, read the section titled "Grand Canonical Ensemble" on page 7. This section applies the same method to derive the probability distribution for a system that can exchange both energy and particles. Focus on how the constraints on \langle E \rangle and \langle N \rangle lead to the final form of the probability, pi,N = (1/Zgc)exp(...). Note that the Lagrange multipliers (\lambda_E, \lambda_N) are not yet identified with physical quantities.
As you saw in the reading, maximizing the entropy subject to constraints on and yields a probability distribution of the form:
Here, and are the Lagrange multipliers associated with the energy and particle number constraints, respectively. The normalization constant, which we denote by (Greek letter "Ksi"), is the grand canonical partition function.
3. Identifying the Lagrange Multipliers
The expression above is general but not yet physical. To make the connection to thermodynamics, we must identify and . This requires comparing the statistical mechanical form of the first law of thermodynamics with its established thermodynamic form for an open system.
The fundamental thermodynamic relation, which you've seen in your prior studies, generalizes to open systems as:
This equation defines temperature and chemical potential as partial derivatives of the energy:
The chemical potential is the energy cost of adding one particle to the system while keeping entropy and volume constant.
By a careful argument that relates the statistical differential to the statistical entropy differential , one can show that the Lagrange multipliers must be:
Statistical Physics—Section 2: Assignment of Probabilities ...
The same notes you just read provide the elegant argument for identifying the Lagrange multipliers. This is a key step that connects the abstract mathematical framework to measurable thermodynamic quantities.
Please read the subsection "Grand Canonical distribution" on page 13. Follow the derivation that starts with the differential of energy, dE = ..., and compares it to the thermodynamic first law. This comparison directly leads to the identification of the multipliers, λE and λN, and the final, physically meaningful form of the grand canonical distribution.
Substituting these multipliers back into our probability expression and setting , we arrive at the grand canonical distribution:
This is the central result of our lesson. It gives the probability of finding the system in a microstate with energy and particle number when it is in contact with a reservoir at temperature and chemical potential . The term is the grand canonical Boltzmann factor.
4. An Alternative View: Analogy to the Canonical Ensemble
An alternative and intuitive way to derive this distribution is to directly follow the logic we used for the canonical ensemble. The probability must be proportional to the number of states available to the reservoir, , when our system is in state .
Taking the logarithm, we get . We can then perform a Taylor expansion of the reservoir's entropy around the total energy and particle number, since and :
From thermodynamics, we identify the derivatives as and . Plugging this into the expansion and exponentiating gives the probability:
This confirms our result from the MaxEnt approach. The following video provides a concise walkthrough of this line of reasoning.
Teach Yourself Statistical Mechanics In One Video | New & Improved
This video from the "Physics Daemon" channel offers a clear, visual derivation of the grand canonical distribution using the method of expanding the reservoir's entropy, which is a direct generalization of the canonical case.
Please watch the segment from the beginning of the derivation. This part covers the Taylor expansion of the logarithm of \Omega_R, the identification of the chemical potential \mu, and the final form of the distribution. The video also includes a nice proof that particles flow from high to low chemical potential, which you can watch from here to solidify your intuition about \mu.
5. The Grand Canonical Partition Function
The normalization constant , called the grand canonical partition function, ensures that . It is defined by summing the grand canonical Boltzmann factors over all possible microstates for the system:
It is crucial to understand the structure of this sum. The index runs over all microstates for all possible particle numbers. We can make this more explicit by writing it as a double summation: first, we sum over all possible particle numbers , from 0 to . Then, for each fixed , we sum over all microstates available to that -particle system.
We can factor out the term depending on from the inner sum:
The term in the parenthesis is precisely the canonical partition function for a system with a fixed number of particles . This gives us a fundamental and extremely useful relationship:
The quantity is called the fugacity. It acts as a weighting factor that controls the average number of particles in the system. High fugacity (high ) favors states with larger . Using the fugacity, the grand partition function takes the compact form:
This shows that the grand partition function is a "generating function" for the canonical partition functions.
Lecture 24-Grand Canonical Ensemble
This NPTEL lecture provides a very clear explanation of how the sum over all microstates in the grand canonical ensemble can be broken down into a sum over particle number N, where each term involves the canonical partition function for that N.
Watch the segment from deriving the partition function. The lecturer carefully transforms the unrestricted sum over all microstates into a restricted sum over states for a fixed particle number, explicitly showing how the canonical partition function Z_N emerges inside the sum for \Xi.
Conclusion
In this lesson, we have extended our statistical framework to accommodate open systems, which can exchange both energy and particles with their environment. This led us to the grand canonical ensemble.
Key Takeaways:
- The grand canonical ensemble describes systems at constant volume , temperature , and chemical potential . Energy and particle number are fluctuating quantities.
- The probability of finding the system in a microstate with energy and particle number is given by the grand canonical distribution:
- The normalization constant is the grand canonical partition function. It is found by summing the grand canonical Boltzmann factors over all microstates for all possible particle numbers.
- is related to the canonical partition functions via the fugacity :
Just as the canonical partition function gave us a bridge to the Helmholtz free energy , the grand partition function provides a bridge to another thermodynamic potential. In our next lesson, we will define this potential—the grand potential —and establish the final master equation for this ensemble, , completing our set of tools for equilibrium statistical mechanics.