Generalized ensembles#
Additional Readings for the Enthusiast#
Goals for today’s lecture#
For an arbitrary set of extensive and intensive variables, how can we construct an ensemble?
Preliminary notes: natural variables#
In the preceding three lectures, we presented derivations to describe
the microcanonical (
In each case, we equated a corresponding thermodynamic potential to a probability and a normalizing constant. What should also be noticed, however, is that the thermodynamic potential corresponding to each statistical ensemble is exactly the potential that has the same natural variables as the parameters held constant for each microstate of the corresponding ensemble. Recall that we can write as the fundamental relation for the entropy and its relationship to the microcanonical ensemble:
From inspection, we see that
Again, we see that
Based on this reasoning, we might like to have statistical ensembles to solve a problem where some other variable is held constant. This leads to the idea of deriving a
- generalized ensemble#
a statistical ensemble appropriate for any system that permits the exchange of some extensive variable with the environment
For example, consider the adsorption of a gas to a surface; equilibrium is established when the chemical potential of the gas in the bulk is equal to the chemical potential of the gas at the surface, and hence it would be intuitive to use a statistical ensemble in which the chemical potential (rather than the number of particles) is fixed in each microstate. While our example to date (polymer adsorption) has demonstrated that we can solve a particular problem using any statistical ensemble, it is also apparent that solutions can be obtained more easily if we choose an appropriate ensemble. Typically, it will be easier to solve problems if we choose an ensemble with the same natural variables as the variables that are constant for the system of interest. It is thus convenient to derive a generalized ensemble appropriate for any given set of natural varables.
Derivation of the generalized ensemble#
First, let us consider again the derivation of the canonical ensemble
presented in the previous lecture. We considered a single system
embedded within a bath; the total combined system had fixed
This notation matches the generalized definition of work from our previous lecture.
At equilibrium, the
temperature of the bath is equal to the temperature of the system and in
addition the generalized force,
We can now follow the same derivation performed previously for the
canonical ensemble to obtain a partition function for this generalized
system in which
The probability that the system samples a particular microstate with
As in the derivation of the canonical ensemble, this expression states
that the probability of finding the system in a particular microstate
Using the procedure similar to the last lecture, show that
[Show derivation]
We first take the logarithm of both sides:
Assuming that
We have substituted in expressions for the entropy of the bath microcanonical ensemble (for the given values of the system energy and number of particles). So far the equations should all look familiar.
We can now write the fundamental relation in the entropy representation
while adding the generic work term
We thus see that, for the bath (subscript
Substituting these relationships into the derivation above and letting
Substituting back into the original expression for the probability yields:
We now invoke the normalization condition
The partition function for the generalized ensemble, which we will give
the symbol
This general partition function looks quite similar to the canonical
partition function except that there is now the new work term in
the exponential. Note one subtlety, here - we include in this derivation
terms for both the internal energy,
Thermodynamic connection for the generalized ensemble#
Having established an expression for the generalized ensemble partition function, we can now derive a relationship between a thermodynamic potential and this generalized partition function, just as we have a relationship between the Helmholtz free energy and the canonical partition function. Doing so requires a new definition of the entropy, referred to as the Gibbs entropy:
You will shows this expression’s equivalence to the Boltzmann definition of the entropy on Problem Set 2. We now have the expressions:
which we will use to derive a thermodynamic connection. Using the Gibbs entropy formula and the expression for the probability of a microstate, we can write:
Here, we recognize that
Thus,the generalized ensemble with partition function
Let’s just check the self-consistency of this result by writing out thermodynamic relations.
Show that
[Show derivation]
First, write out the total derivative
of
Show that
Hints
Substitute the equation for
[Show derivation]
We can use
Thus, this checks out - we correctly find that the ensemble average is
equal to the thermodynamic parameter via the relationship between
Recipe for the generalized ensemble#
In the previous section, the thermodynamic potential that corresponds to
the log of the generalized ensemble partion function is exactly that
potential for which the thermodynamic variables conjugate to
Therefore, the thermodynamic potential
where
This observation suggests a general recipe for deriving a generalized ensemble:
Determine the natural variables of the system (e.g.,
, , ) as the variables that are either fixed due to the constraints of the system boundaries or are constant due to conditions of equilibrium (i.e., intensive variables conjugate to extensive variables that can exchange with the environment).Write a general partition function (
) of the form in Eq. (17), including all work terms that correspond to extensive variables that can exchange with the environment.For each extensive variable that is able to exchange with the environment, substract the product of the extensive variable and its conjugate variable from the internal energy
to obtain a thermodynamic potential with the correct natural variablesEquate
to the thermodynamic potential ( ) that is a function of the same natural variables.Derive other thermodynamic variables via appropriate derivatives of
.
The one caveat here is that for a system that can exchange energy with
the environment, we treat the extensive variable as the entropy,
Example: the grand canonical ensemble#
As a test of the generalized ensemble approach, we can derive the grand canonical ensemble, in which the energy and number of particles of a system are allowed to vary while the volume and temperature are held constant.
1. Determine the natural variables of the system.
[Click for answer]
Since
2. Write a general partition function.
[Click for answer]
The partition function (using the symbol
3. Substract the product of the extensive variable and its conjugate variable from the internal energy
[Click for answer]
We then determine the corresponding thermodynamic potential (using the symbol
This potential,
4. Equate
[Click for answer]
We can then equate this potential to the partition function as:
which we can use to derive various relations.
5. Derive other thermodynamic variables: what is the ensemble-average number of particles?
[Click for answer]
The ensemble-average number of particles in the system would be:
With explicit relations for
Example: the isothermal-isobaric ensemble#
As another example, we can derive the isothermal-isobaric ensemble, in which the energy and volume of a system are allowed to vary while the number of particles is held constant.
1. Determine the natural variables of the system.
[Click for answer]
In this case, the natural
variables at equilibrium are
2. Write a general partition function.
[Click for answer]
The partition function (using the symbol
3. Substract the product of the extensive variable and its conjugate variable from the internal energy
[Click for answer]
The corresponding thermodynamic potential is:
This potential,
4. Equate
[Click for answer]
We can then equate this potential to the partition function as:
which we can use to derive various relations.
5. Derive other thermodynamic variables: what is the ensemble-average volume of the system?
[Click for answer]
The ensemble-average volume of the system would be:
With explicit relations for
We now have discussed 4 explicit ensembles - microcanonical (