The most common ensemble encountered in doing statistical mechanics is the canonical ensemble. We will explore many examples of the canonical ensemble. The grand canonical ensemble is used in dealing with quantum systems. The microcanonical ensemble is not used much because of the difficulty in identifying and evaluating the accessible microstates, but we will explore one simple system (the ideal gas) as an example of the microcanonical ensemble.
![]() | (1) |
where the sum is over the accessible microstates. From the postulates of statistical mechanics that all microstates are equally probable, the probability of the system being in any microstate is a constant as long as the total energy is in the range E to E + δE. Assume there are ν such states, then
![]() | (2) |
The average value of any property of the system is
![]() | (3) |
where yr is the value of the property y when the system is in the rth microstate. The difficulty is that identifying the correct set of microstates is exceedingly difficult. If we think of phase space as consisting of all possible microstates of the system with all possible energies, then the microcanonical ensemble consists of the subset of phase space with microstates that have energy between E and E + δE. Picking out these states is difficult. For example consider an ideal gas. Let each gas particle be a “system”. Each system or particle is isolated and doesn’t interact with anything. The microcanonical ensemble would consist of those particles with kinetic energy between E and E + δE, i.e., it would consist of only those particles with a certain velocity. We could only sum over those particles, not all the particles. Picking out these particles is a pain.
Assume that system A is in thermal contact with a heat reservoir A′. Thermal contact means that only heat can be exchanged between A and A′. The energy of system A cannot be specified since it will fluctuate as heat is exchanged randomly between A and A′ (but E will be well defined). Let E r be the energy of a microstate of A. Then
![]() | (4) |
where E′ is the energy of the heat reservoir A′ and Eo is the total energy of the combined system A and A′. The probability P r of A being in microstate r is proportional to the number Ω′(E′ = Eo - E r) of microstates of the reservoir:
![]() | (5) |
where C′ is a constant determined by the normalization condition:
![]() | (6) |
Now assume Er ≪ Eo (i.e., assume that A′ is a heat reservoir) and expand about E′ = Eo:
![]() | (7) |
where we used = -E
r. But
![]() | (8) |
where T is the temperature of the reservoir. Thus
![]() | (9) |
or
![]() | (10) |
Thus
![]() | (11) |
where
![]() | (12) |
Finally
![]() | (13) |
This probability distribution is sometimes called the Boltzmann distribution. It tells us the probability that a microstate with energy Er will be occupied. Notice that if Er < kBT, then there is a good chance that the state will be occupied. But if Er is large compared to the temperature, then the chance that the rth state is occupied is exponentially small.
The average value of any parameter y is given by
![]() | (14) |
where yr is the value of the parameter y in the rth state. For example, the mean energy is
![]() | (15) |
The denominator arises quite frequently. So let
![]() | (16) |
Z is called the partition function. It acts like a generating function. For example,
![]() | (17) |
or
![]() | (18) |
The partition function Z is quite useful and we can use it to generate all sorts of information about the statistical mechanics of the system.
The advantage of the canonical ensemble should now be apparent. The sum is over all the microstates of the system. We don’t have the difficulty of finding only those microstates whose energy lies within some specified range.
Let us also calculate the dispersion (ΔE)2 of the energy:
![]() | (19) |
We have already computed E. We need now to compute E2:
![]() | (20) |
But
![]() | (21) |
And from the definition of the partition function Z
![]() | (22) |
This can be rewritten as
![]() | (23) |
Finally we obtain
![]() | (24) |
or
![]() | (25) |
We can relate this to the specific heat at constant volume in the following way. Recall that
![]() | (26) |
Let y = V , then at constant volume
![]() | (27) |
since dW = pdV = 0. Thus
![]() | (28) |
But
![]() | (29) |
Therefore
![]() | (30) |
Notice that the specific heat is related to the fluctuations in the internal energy or, equivalently, to the width of the distribution of E. In a numerical simulation, one way to calculate the specific heat is to calculate (ΔE)2.
We can also use Z to generate the mean generalized force X. Suppose now that we change some macroscopic parameter x. Then the energy changes by the amount
![]() | (31) |
and the macroscopic work done by the system is
![]() | (32) |
Now note that in the numerator
![]() | (33) |
Substituting in (32), we obtain
![]() | (34) |
Recall that
![]() | (35) |
where X is the generalized force associated with the parameter x:
![]() | (36) |
Thus, comparing (34) and (35) leads to
![]() | (37) |
If x is the volume, then X is the pressure p:
![]() | (38) |
Now let’s derive a relation between S and Z. Note that Z is a function of both β and x. Thus
![]() | (40) |
But since
![]() | (41) |
we obtain
![]() | (42) |
or
![]() | (43) |
or
![]() | (44) |
Recall that in thermodynamics F = E - TS where F is the Helmholtz free energy. Hence
![]() | (45) |
or
![]() | (46) |
This equation forms the bridge between the canonical ensemble of statistical mechanics and thermodynamics. We can use it to relate the microscopics of the system to the macroscopic parameters that we deal with in thermodynamics.
Notice that since
![]() | (47) |
we can write the mean pressure as
![]() | (48) |
We obtained this previously using
![]() | (49) |
We can also relate the specific heat to the Helmholtz free energy:
![]() | (50) |
Recall that
![]() | (51) |
implies that
![]() | (52) |
We got this when we derived F = F(T,V ) using a Legendre transformation. We can obtain the specific heat CV using
![]() | (53) |
This is equivalent to eq. (30).
We now see that the partition function contains the information about the system. Most quantities of interest are obtained from the appropriate derivatives of Z. The real task in statistical mechanics is to calculate the partition function. Once that is done, all that remains is differentiation.
Assume that system A can exchange both energy and particles with system A′. Assume
![]() | (55) |
where C′ is a constant. Since both E r ≪ Eo and N r ≪ No,
![]() | (56) |
Let
![]() | (57) |
and
![]() | (58) |
where μ is called the chemical potential. Note that both T and μ are properties of the reservoir and not the system A. If we use the chain rule, then
![]() | (59) |
This implies that
![]() | (60) |
This is consistent with the statement that the chemical potential is the energy required to add a particle or the difference in energy between having N′ and N′ + 1 particles. One way to think about chemical potential is in terms of energy levels of 2 pieces of metal. If the two pieces have different numbers of electrons, when they are put into contact, electrons will flow from one to the other because electrons in a higher energy level in one metal can lower their energy by going to a lower level in the other metal. This flow continues until the electrons are filled up to the same level. This “level” is the chemical potential.
Back to (56):
![]() | (61) |
and
![]() | (62) |
where
![]() | (63) |
It then follows that
![]() | (64) |
and
![]() | (65) |
Let
![]() | (66) |
Then
![]() | (67) |
Also
![]() | (68) |
or
![]() | (69) |
or
![]() | (70) |
The function is called the grand partition function. It is this function which is of primary
importance in the grand canonical ensemble. We will return to a consideration of the
grand canonical partition function when we begin our study of quantum statistical
mechanics.
Before we begin a discussion of the applications of these basic concepts, two useful remarks need to be made. The first is the definition of the partition function within classical mechanics. In clasical mechanics, the sum over microstates is replaced by an integral over phase space. That is
![]() | (71) |
A second remark concerns the partition function of two independent systems. Let A and B be two independent systems both in contact with the same reservoir A′. Let us label the microstates of system A by r and the microstates of system B by s. We will assume that the total energy Ers of system A in microstate r and system B in microstate s is
![]() | (72) |
The partition function of the combined system A plus B is
![]() | (74) |
The generalization to more than two systems is obvious. Assume we have N identical but independent systems. If ξ is the partition function of one system, then the total partition function of N systems is
![]() | (75) |
We will find that quantum mechanics will lead to a correction to this equation under certain conditions.