See also: Course-wide Conventions & Notation
Run the code: Notebook for Section 2.4, in which you can change and rerun the Python cells of this section in your browser.
Overview and Learning Objectives¶
Molecular partition functions extend the canonical framework from a single particle to many particles, and then to molecules with internal degrees of freedom. This section shows how distinguishability affects counting (and therefore ), introduces the correction for identical particles, and motivates factorization into translational, rotational, vibrational, and electronic contributions.
In Section 2.2 and Section 2.3, we derived the canonical partition function and ensemble averages for the microstates of a general system and applied them to a single two-state particle. Here we extend these ideas to closed systems of many identical, independent particles with internal degrees of freedom. We also introduce indistinguishability, which is central to quantum statistical mechanics.
Learning objectives:
Count many-particle microstates for distinguishable vs. indistinguishable particles under the stated single-occupancy assumption.
Derive the factorized form for independent (distinguishable) particles and for identical indistinguishable particles.
Explain why indistinguishability is essential for obtaining extensive thermodynamics (avoiding the Gibbs paradox).
Write the molecular partition function as within the Born–Oppenheimer, rigid-rotor, and harmonic-oscillator approximations.
Core Ideas and Derivations¶
Partition Function for Distinguishable Particles¶
Two Distinguishable Particles in a Four-State System
The -particle microstates of a system of two distinguishable particles in a four-state system are listed in the table below:
-Particle Microstate | One-Particle Microstate 1 | One-Particle Microstate 2 | One-Particle Microstate 3 | One-Particle Microstate 4 |
|---|---|---|---|---|
I | a | b | ||
II | a | b | ||
III | a | b | ||
IV | a | b | ||
V | a | b | ||
VI | a | b | ||
VII | b | a | ||
VIII | b | a | ||
IX | b | a | ||
X | b | a | ||
XI | b | a | ||
XII | b | a |
There are 12 -particle microstates in this example.
Here, we treat each of the four one-particle states as an exclusive “slot,” so two distinguishable particles must occupy different states, yielding arrangements rather than .
More generally, for distinguishable particles in a system with one-particle microstates (single occupancy), the number of -particle microstates is the number of permutations of particles in states:
This assumes no more than one particle per one-particle state.
We take the particles to be independent, meaning that they do not interact with one another. The energy of an -particle microstate is then the sum of the one-particle energies for the occupied states:
Here index the one-particle microstates occupied by particles , and indexes the corresponding -particle microstate of the system.
The canonical partition function for distinguishable, independent particles is given by the sum over all possible microstates:
where , , and are the canonical partition functions for the particles , , and , respectively.
If the particles share the same one-particle spectrum so that , then
Partition Function for Indistinguishable Particles¶
Particles are identical when they have the same intrinsic properties, such as mass and charge. Identical particles that move through the same volume, such as the molecules of a gas, are indistinguishable. Identical particles held at separate sites, such as the atoms of a crystal, can be labeled by their sites and are treated as distinguishable (Section 2.6).
Two Indistinguishable Particles in a Four-State System
The -particle microstates of a system of two indistinguishable particles in a four-state system are listed in the table below:
-Particle Microstate | One-Particle Microstate 1 | One-Particle Microstate 2 | One-Particle Microstate 3 | One-Particle Microstate 4 |
|---|---|---|---|---|
I | x | x | ||
II | x | x | ||
III | x | x | ||
IV | x | x | ||
V | x | x | ||
VI | x | x |
There are 6 -particle microstates in this example.
In general, for indistinguishable particles in a system with one-particle microstates (single occupancy), the number of -particle microstates is the number of combinations of particles in states:
This assumes no more than one particle per one-particle state.
Figure 2.4.1 places the two counts side by side. Each microstate of the indistinguishable particles corresponds to microstates of the distinguishable particles, which differ only by the exchange of the labels a and b.
Source
import sys
from itertools import combinations
import matplotlib.pyplot as plt
from matplotlib.patches import Circle, FancyBboxPatch, Rectangle
sys.path.append("..") # the book folder, which holds figstyle
import figstyle as fs
M = 4 # number of one-particle microstates
pairs = list(combinations(range(M), 2)) # the 6 ways to choose two of them, in the order of the tables
numerals = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII"]
CELL = 0.62 # width and height of one one-particle microstate
PITCH = 0.92 # distance between rows
X_FIRST, X_SECOND, X_SINGLE = 1.05, 4.75, 10.55 # left edges of the three columns of microstates
def draw_microstate(ax, c, x, y, numeral, particles):
"""One N-particle microstate: four one-particle microstates in a row; particles = {position: (label, color)}."""
ax.text(x - 0.22, y, numeral, ha="right", va="center", color=c.note)
for i in range(M):
ax.add_patch(Rectangle((x + i * CELL, y - CELL / 2), CELL, CELL, fc=c.ground, ec=c.ink, lw=1.0, zorder=2))
for i, (label, color) in particles.items():
center = (x + (i + 0.5) * CELL, y)
ax.add_patch(Circle(center, 0.21, fc=color, ec="none", zorder=3))
ax.text(*center, label, ha="center", va="center", color=fs.on(color), fontsize=fs.BASE - 1, zorder=4)
def draw(c):
fig, ax = plt.subplots(figsize=(fs.WIDTH, 3.55))
fig.subplots_adjust(left=0, right=1, bottom=0, top=1)
top = 5.35 # height of the first row
for row, (i, j) in enumerate(pairs):
y = top - row * PITCH
# the two microstates of a and b that belong together share a shaded band
ax.add_patch(FancyBboxPatch((0.2, y - 0.38), 7.25 - 0.2, 0.76, boxstyle="round,pad=0,rounding_size=0.14",
fc=c.fill, ec="none", zorder=1))
draw_microstate(ax, c, X_FIRST, y, numerals[row], {i: ("a", c.blue), j: ("b", c.vermilion)})
draw_microstate(ax, c, X_SECOND, y, numerals[row + 6], {i: ("b", c.vermilion), j: ("a", c.blue)})
fs.arrow(ax, (7.75, y), (9.25, y), c.muted, lw=1.2, scale=11)
draw_microstate(ax, c, X_SINGLE, y, numerals[row], {i: ("", c.gray), j: ("", c.gray)})
# one-particle microstates 1 to 4 above each column
for x in (X_FIRST, X_SECOND, X_SINGLE):
for i in range(M):
ax.text(x + (i + 0.5) * CELL, top + 0.56, str(i + 1), ha="center", va="center", color=c.muted,
fontsize=fs.BASE - 1)
ax.text((0.2 + 7.25) / 2, 6.78, "Distinguishable particles a and b\n12 microstates", ha="center", va="center",
linespacing=1.35)
ax.text(X_SINGLE + 2 * CELL, 6.78, "Indistinguishable particles\n6 microstates", ha="center", va="center",
linespacing=1.35)
ax.text(8.5, top + 0.56, "remove the labels", ha="center", va="center", color=c.muted, fontsize=fs.BASE - 1)
ax.set(xlim=(-0.2, 13.8), ylim=(0.2, 7.3), aspect="equal")
ax.axis("off")
return fig
fs.show(draw, alt="Six rows. Each row shows two arrangements of the labeled particles a and b in four boxes and, after "
"an arrow, one arrangement of two unlabeled particles in the same two boxes. The pairs are "
"microstates I and VII, II and VIII, III and IX, IV and X, V and XI, and VI and XII of the "
"distinguishable particles. Within a pair, the same two boxes are occupied, and a and b have "
"changed places. Twelve microstates of the distinguishable particles correspond to six microstates "
"of the indistinguishable particles.")Figure 2.4.1:Two particles in a system of four one-particle microstates, with at most one particle per one-particle microstate. Each row shows two microstates of the distinguishable particles a and b that differ only by the exchange of the labels, and the single microstate of indistinguishable particles to which both correspond. The Roman numerals are those of the two tables above. The 12 microstates of the distinguishable particles correspond to microstates of the indistinguishable particles.
If the particles are indistinguishable and identical, we can write the canonical partition function as
The factor of corrects an overcounting. In the -fold sum that defines , each choice of different one-particle states appears times, once for every way of assigning the labeled particles to those states. For indistinguishable particles, these terms describe a single microstate, so dividing by counts it once. The correction is not exact for terms in which two or more particles share a state, but such terms have a negligible effect on when the thermally accessible one-particle states far outnumber the particles. This condition holds for gases at ordinary temperatures and pressures (Section 2.5).
The Factor and Extensive Properties¶
The Helmholtz free energy, (Section 2.3), is extensive, so must double when the system is doubled at fixed temperature, that is, when and . For a gas, the one-particle partition function is proportional to the volume, , where depends only on the temperature and the particle mass (Section 2.5). Without the factor of ,
and doubling and gives , which is not twice the original value. With the factor of and Stirling’s approximation, ,
which is times a function of the ratio and therefore doubles when and double. The extra term in the first case would appear as an entropy increase of when two samples of the same gas at the same temperature and density are combined. This inconsistency is known as the Gibbs paradox, and treating identical particles as indistinguishable removes it.
Partition Function for Molecules¶
To a good approximation, the total energy of a molecule is the sum of translational, rotational, vibrational, and electronic energies. The translational motion of the center of mass separates exactly. The Born–Oppenheimer approximation separates the electronic motion from the nuclear motion, and the rigid-rotor and harmonic-oscillator models (Section 2.7 and Section 2.6) separate rotation from vibration. The result is
where , , , and label the translational, rotational, vibrational, and electronic states, respectively, and labels the microstate of the molecule, which is specified by all four.
The canonical partition function for a molecule is given by the sum over all possible microstates:
where , , , and are the canonical partition functions for the translational, rotational, vibrational, and electronic energies, respectively.
Worked Example¶
Counting microstates and the factor (single occupancy)¶
Two particles occupy one-particle microstates, with at most one particle per microstate.
Distinguishable particles
The number of distinct arrangements (permutations) is
Indistinguishable particles
Exchanging labels does not create a new microstate, so
Connection to partition functions
If each allowed arrangement has the same energy , then the canonical partition function is proportional to the count:
Comparison with
If each one-particle microstate has energy , then and
compared with from step 3. The formula divides all assignments of two labeled particles by , including the assignments in which both particles occupy the same microstate, which steps 1 to 3 exclude. For and , the same comparison gives and , so the difference is small when the microstates far outnumber the particles.
Result. The factor corrects overcounting for identical particles and changes the thermodynamics derived from .
Concept Checks¶
What physical experiment would fail to distinguish two microstates that differ only by swapping particle labels?
Why does factorize for independent particles but not for interacting particles?
What assumption about occupancy is built into the combinatorial formulas in this section?
How would the counting change if multiple occupancy were allowed?
Key Takeaways¶
Counting microstates depends on whether particles are distinguishable.
For identical particles, corrects overcounting and yields consistent extensive properties.
Molecular energies often separate into translation/rotation/vibration/electronic parts, motivating .
Partition functions are bookkeeping devices: changes in counting change and therefore the thermodynamics.