Professional Documents
Culture Documents
• Stirling’s approximation
3.3 Announcements
• Pset 1 due next Thursday (9/19)
• Please fill out online polls to schedule make up lecture, final exam
We will now use an example to illustrate how the microcanonical ensemble can provide information
about the thermodynamic properties of a system. Consider a polymer chain that adsorbs to an
attractive surface. The chain is composed of N monomers that do not interact with each other.
1
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
The surface is attractive such that a single monomer adsorbs favorably with an energy −. If we
assume the energy of the free monomers is 0 and there are no monomer-monomer interactions, then
the total energy of the system for n adsorbed monomers is:
N
X
E= i = −n (3.1)
i
The question we will ask is - how does the energy of the system (or, equivalently, the number
of adsorbed monomers) depend on the temperature?
• S = kB ln Ω(E) from the definition of the entropy of the microcanonical ensemble using the
shorthand version of Ω(N, V, E)
Given these relationships, we can use the equations of the microcanonical ensemble to relate
the degeneracy to the entropy and then identify a relationship between the energy and temperature
from thermodynamics. Thus, we will describe our system as having a constant energy - that is,
we assume that n and E are fixed and then will derive a temperature dependence based on this
assumption. There may be another ensemble that is more appropriate - for example, we may
assume the temperature is constant, instead, and choose a different ensemble (e.g. the canonical
ensemble) to solve for the temperature dependence. If we are consistent in our assumptions and
mathematical framework, then any ensemble is fine (as long as the fixed thermodynamic variables
in the ensemble do not violate some feature of the system) and we will return to this problem with
alternative ensembles in future lectures.
We need to start by computing an expression for the degeneracy. Recalling previous sections,
we know that Ω(E) is defined as the number of microstates that have the same energy E = −n.
Since the number of total monomers, N , is greater than the number of adsorbed monomers, n,
there are many possible ways to choose the the set of n adsorbed monomers from the total set of N
monomers, but any set of n that we select will have the same energy. Therefore, the degeneracy of
this system is equal to the number of unique ways to select n monomers that adsorb to the surface
out of the possible set of N - or in other words, the number of unique ways to split the N monomers
into two groups (adsorbed and free). Computing this quantity will motivate a mathematical aside.
2
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
3.4.1 Combinatorics
Imagine that you have N objects. In general, objects can either be distinguishable, such as
playing cards, or indistinguishable, such as identical marbles. A common question we will face
is how many ways we can uniquely divide N distinguishable objects into groups. We can calculate
this using playing cards as an example. First, we can count the number of unique ways to shuffle
a deck of N distinguishable playing cards. We can imagine placing the first card on the top of the
deck; there are N possible choices for the first card. Next, we can imagine placing the next card
on the top of the deck. Since we have removed 1 card, there are now N − 1 choices remaining, so
there are N (N − 1) unique choices for placing the first two cards, and so on. This leads to:
If the playing cards were instead indistinguishable, then there would instead be only unique
1 arrangement of playing cards since switching the order of any two cards would not result in an
observable change to the order of the deck. Now, we consider the question how many ways there
are to divide N distinguishable playing cards into two groups, one containing n1 cards and the
second containing N − n1 cards. Following the same reasoning as above, for the first group we have
N options for the first card, N − 1 for the second, and so on, until for the last selection we have
N − n1 + 1 choices. The total number of arrangements for group 1 is thus:
N (N − 1)(N − 2) . . . (2)(1)
N (N − 1)(N − 2) . . . (N − n1 + 1) =
(N − n1 )(N − n1 − 1) . . . (2)(1)
N!
= (3.3)
(N − n1 )!
The second group has N − n1 ! choices for placing the remaining N − n1 cards, so that in total there
are [N !/(N − n1 )!] × (N − n1 )! = N ! arrangements of the two groups. However, the question asked
for how many ways there are to divide them into two groups; the arrangement of cards within
each group does not matter, as placing the same n1 cards in the group in any order is still the
same division. There are n1 ! ways to arrange the n1 cards in the first group and (N − n1 )! ways to
arrange the cards in the second group, so in total we have overcounted by n1 !(N − n1 )! since every
division into a group of n1 and N − N1 was counted an extra n1 !(N − n1 )! times associated with
different orders of the cards. Thus, the total number of unique ways of dividing the cards into two
groups if the order within each group doesn’t matter is:
N!
# of divisions = (3.4)
n1 !(N − n1 )!
This expression appears in the binomial expansion and is referred to as the binomial coefficient,
and can be expanded to any number of groups following similar reasoning.
3
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
N
X
ln N ! = ln m (3.5)
m=1
The value of this sum is equal to the total area of a series of rectangles, each with height ln m
and width dm = 1. That is, we can equate the sum to the integral of ln m using rectangular
integration. As N increases, the difference between successive terms in the sum will become very
small - if N 1, the difference in the terms becomes:
m+1
ln(m + 1) − ln m = ln ≈ ln 1 ≈ 0 for m 1 (3.6)
m
Therefore, for N 1 we can replace the sum over discrete values of m with an integral over
continuous values of m - effectively allowing the width of each rectangle (dm) to shrink to an
infinitesimal value. The error between the approximation using an integral and the exact sum over
integer values of m is very small once N is large. The resulting approximation allows us to write:
N
X
ln N ! = ln m
m=1
Z N
≈ ln mdm if N 1
1
= N ln N − N (3.7)
Equation 3.7 is Stirling’s approximation, and differs by less than 1% from ln N ! if N > 50.
We will make frequent use of Stirling’s approximation, and moreover we will often approximate
summations as integrals, throughout the course. We will return to solving the example using
Stirling’s approximation and combinatorics in the next lecture.
4
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
are not which defines the degeneracy of a microcanonical ensemble with hEi = n. We thus write
an expression for Ω(E) and the entropy based on the combinatorics expression above:
N!
Ω(E) = (3.8)
n!(N − n)!
S = kB ln Ω(E)
N!
= kB ln (3.9)
n!(N − n)!
To simplify the expression for the entropy, we can invoke Stirling’s approximation:
N!
S = kB ln (3.10)
n1 !(N − n)!
= kB [ln N ! − ln n! − ln(N − n)!] (3.11)
≈ kB ([N ln N − N ] − [n ln n − n] − [(N − n) ln(N − n) − (N − n)]) (3.12)
= kB (N ln N − n ln n − (N − n) ln(N − n)) (3.13)
Now we will simplify this expression with some algebra, defining n/N ≡ α for convenience:
Recognizing that entropy and energy that we define here are equvalent to their macroscopic
definitions (according to Postulate 1 and 2) we can use ∂E
∂S V = T and the chain rule to derive a
temperature dependence in terms of the total system energy, E = hEi = −n.
∂E
=T (3.18)
∂S V
∂S 1
− = (3.19)
∂(n) T
V
1 ∂S ∂α 1
− = (3.20)
∂α V ∂n V T
1 ∂S 1
− = (3.21)
N ∂α V T
kB 1
− (ln(1 − α) − ln α) = (3.22)
T
1−α
ln =− (3.23)
α kB T
1
= 1 + e−/kB T (3.24)
α
Finally, we simplify by recognizing that α = n/N :
5
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
N
= 1 + e−/kB T (3.25)
n
N
n= (3.26)
1 + e−/kB T
Equation 3.26 relates the number of adsorbed monomers to microscopic features (i.e. the adsorp-
tion energy per monomer and total number of monomers) as a function of the system temperature.
As T goes to 0, we expect the system to be in an energy-minimizing configuration with all monomers
bound - indeed, as T → 0, n → N , indicating that all monomers adsorb. In the opposite extreme,
as T → ∞, n → N/2, indicating that at infinite temperature exactly half of the monomers bind
to the surface. This makes conceptual sense - if we have infinite thermal energy, the energy for
adsorption is negligible so adsorbing or not adsorbing is equally likely for each monomer (we will
revisit this result in future lectures).
This example illustrates the basic principles of the statistical mechanics approach: we begin by
identifying a set of constant macroscopic thermodynamic variables for the system (N V E), choose
an appropriate statistical ensemble (microcanonical) corresponding to these variables, calculate the
value for a thermodynamic variable (entropy) from ensemble properties based on our microscopic
picture of the system, then use thermodynamic relations to get additional information about the
system (temperature). Note that our final result seems to contradict our assumption - we explicitly
derive a relationship between the energy and the temperature, showing that the energy is not, in
fact, constant. Recall, though, that the problem statement itself (i.e. the microscopic description
of the system) does not specific a constant energy - we choose to describe our system in such a
way that the energy is held constant, then apply the equations of the microcanonical ensemble
(consistent with our choice) to derive the temperature dependence. We also could have derived the
same result by assuming that the system is held at constant temperature and that the energy is
allowed to vary, and achieve the same result (we will do this next lecture). We will find several
variations of this basic approach, and will illustrate that the correct choice of thermodynamic
variables, even for the same system, can dramatically simplify problem solutions.
6
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
Let us consider a system of interest that is contact with surroundings that we will refer to as
the bath. The bath is significantly larger than the system of interest, so that the energy and
number of particles in the bath are also much larger than the energy and number of particles in the
system. Thermodynamic parameters associated with the system will be denoted with the subscript
S, parameters associated with the bath will be denoted with the subscript B, and parameters
associated with the total combination of system and bath will be denoted with the subscript T .
We assume that the walls of the system prevent the exchange of particles and volume so that
NS and VS are fixed; however, the energy, ES , can exchange with the surrounding bath. At
thermal equilibrium, the temperature of the bath and system are equivalent (TS = TB ≡ TT ). A
physical realization of such a system would be a sealed box with conducting walls that allows heat
to exchange with the outside environment. Finally, we assume that the total energy, ET , of the
bath plus the system is a constant (i.e., exchanges of energy between the bath and system obey
conservation of energy):
ET = ES + EB = constant (3.27)
The total combination of system and bath is isolated; this assumption is generally true of
the universe, for example. Microstates of the total isolated system belong to the microcanonical
ensemble, but the energy of each of these microstates is partitioned between the system of interest
and the bath. The canonical ensemble then refers to the ensemble of microstates describing the
system of interest, in which the energy may vary between microstates in the ensemble.
7
University of Wisconsin-Madison Lecture 3
CBE 710, Fall 2019 - Prof. R. C. Van Lehn September 12, 2019
Since the total isolated system is a microcanonical ensemble in which all microstates are equally
probable, the probability of observing a single microstate of the system j is equal to the number of
microstates of the total isolated system in which the system of interest is in microstate j divided
by the total number of microstates of the combined isolated system.
From the logic above, we can write the normalized probability of finding microstate j of the
system in terms of the degeneracy of the bath as:
Ω(NB , VB , ET − Ej )
pj = Psystem microstates (3.28)
j Ω(NB , VB , ET − Ej )
Ω(NB , VB , ET − Ej )
= (3.29)
C1
That is, the probability of finding a particular microstate in the canonical ensemble (of the
system) is related to the degeneracy of a bath described by a microcanonical ensemble with
energy ET − Ej . We use the constant C1 to refer to the normalization factor in the denominator
(this quantity will drop out later on in the derivation). We will proceed from here in the next
lecture by relating the degeneracy of the bath microcanonical ensemble to the entropy (following
our previous approach) and from there obtaining an expression for pj that does not depend on any
properties of the bath.