01 / 21

The Partition
Function

Discover how a single mathematical function, \( q \), captures the statistical weight of every accessible energy state and unlocks all of thermodynamics.

Physical Chemistry 2

From Microstates to Macroscopic Properties

A macroscopic sample of gas contains roughly \( 10^{23} \) molecules. Tracking every particle is impossible, so we use statistical mechanics: we ask how probable each arrangement of energy is, and let probability do the heavy lifting.

Defining \( q \): The Molecular Partition Function

For a single molecule with discrete energy levels \( \varepsilon_i \), the molecular partition function is:

Each term \( g_i e^{-\varepsilon_i / k_BT} \) is called a Boltzmann factor: it tells us the relative probability that the molecule occupies level \( i \).

Visualizing the Boltzmann Weights

Energy
\(\varepsilon_0 = 0\)
\(\varepsilon_1\)
\(\varepsilon_2\)
\(\varepsilon_3\)
\(e^{-0/k_BT} = 1\)
\(e^{-\varepsilon_1/k_BT}\)
smaller tiny Boltzmann Weight

What Does \( q \) Actually Count?

\( q = 1 \)
Only the ground state is accessible: the system is frozen at very low \( T \).
\( q \approx 3 \)
About 3 energy levels are thermally accessible: moderate temperature.
\( q \gg 1 \)
Many states are populated: high temperature or closely spaced levels.

The Bridge to Thermodynamics

Once you know the canonical partition function \( Q \), you can derive every equilibrium thermodynamic quantity by differentiation:

1
Average energy: \( \langle E \rangle = k_B T^2 \left(\dfrac{\partial \ln Q}{\partial T}\right)_V \)
2
Entropy: \( S = k_B \ln Q + k_B T \left(\dfrac{\partial \ln Q}{\partial T}\right)_V \)
3
Helmholtz free energy: \( A = -k_B T \ln Q \)
4
Pressure: \( p = k_B T \left(\dfrac{\partial \ln Q}{\partial V}\right)_T \)

Molecular vs Canonical Partition Function

Molecular \( q \) Canonical \( Q \)
Scope One molecule Entire \( N \)-particle system
Sum over Single-molecule states All system microstates
Relation \( Q = \dfrac{q^N}{N!} \) for indistinguishable, independent particles
When to use Ideal gases, dilute systems General: interacting or dense

Factoring \( q \) by Degree of Freedom

If the different modes of motion are independent, the total molecular partition function factorises:

\( q_{\text{trans}} \)
Translation: particle in a box. Depends on mass, volume, \( T \).
\( q_{\text{rot}} \)
Rotation: rigid rotor. Depends on moment of inertia, \( T \).
\( q_{\text{vib}} \)
Vibration: harmonic oscillator. Depends on frequency \( \nu \), \( T \).
\( q_{\text{elec}} \)
Electronic: usually \( \approx g_0 \) since excited states are far above \( k_BT \).

How to Calculate a Partition Function

1
Identify the energy levels \( \varepsilon_i \) and their degeneracies \( g_i \) from the quantum-mechanical model.
2
Set the zero of energy: often choose \( \varepsilon_0 = 0 \) (ground state as reference).
3
Write out the sum \( q = \sum_i g_i e^{-\varepsilon_i / k_BT} \). For simple models, evaluate in closed form.
4
Take derivatives of \( \ln q \) with respect to \( T \) or \( V \) to extract thermodynamic quantities.

Example 1: Two-Level System

A molecule has only two non-degenerate states: \( \varepsilon_0 = 0 \) and \( \varepsilon_1 = \varepsilon \). Find \( q \).

\( k_BT / \varepsilon \)
\( q \)
1 2
Low \(T\): \(q\to1\)
High \(T\): \(q\to2\)

Example 2: Harmonic Oscillator

A quantum harmonic oscillator has evenly spaced, non-degenerate levels \( \varepsilon_n = n\hbar\omega \) (measuring from the ground state). Evaluate \( q_{\text{vib}} \).

Define the characteristic vibrational temperature \( \Theta_{\text{vib}} = \hbar\omega / k_B \). Then:

Example 3: Translational \( q_{\text{trans}} \)

For a particle of mass \( m \) in a cubic box of volume \( V = L^3 \), the energy levels are so closely spaced that the sum becomes an integral. The result is:

\( \Lambda \) meaning
The quantum "size" of the particle at temperature \( T \). Shrinks as \( T \) rises.
Typical value
For \(\text{N}_2\) at 298 K: \( \Lambda \approx 19\,\text{pm} \), \( q_{\text{trans}} \sim 10^{30} \).

From \( q \) to Populations

The probability that a molecule is found in state \( i \) is:

Since \( q \) is the sum of all Boltzmann factors, each individual factor divided by \( q \) gives a properly normalised probability (\( \sum_i p_i = 1 \)).

How Temperature Shapes \( q \)

Temperature \( T \)
\( q \)
\( q_{\text{trans}} \sim T^{3/2} \)
\( q_{\text{rot}} \sim T \)
\( q_{\text{vib}} \)
\( q_{\text{elec}} \approx g_0 \)

Common Mistakes

✕ Forgetting Degeneracy
Writing \( e^{-\varepsilon_i/k_BT} \) without the \( g_i \) factor. If a level has \( g_i = 3 \), it counts three times.
✕ Wrong Energy Zero
Mixing zero-point energy into \( \varepsilon_i \) inconsistently. Always state your reference clearly.
✕ Missing \( N! \)
Writing \( Q = q^N \) instead of \( Q = q^N / N! \) for indistinguishable particles. This leads to the Gibbs paradox.

Summary of Key Partition Functions

Mode Formula High-\(T\) Limit
Translation \( V / \Lambda^3 \) \( \propto T^{3/2} \)
Rotation (linear) \( \approx T / (\sigma \Theta_{\text{rot}}) \) \( \propto T \)
Vibration \( (1 - e^{-\Theta_{\text{vib}}/T})^{-1} \) \( \propto T / \Theta_{\text{vib}} \)
Electronic \( g_0 + g_1 e^{-\varepsilon_1/k_BT} + \cdots \) \( \approx g_0 \)

Question 1 of 5

What does the partition function \( q \) physically represent?

Question 2 of 5

For a non-degenerate two-level system with energy gap \( \varepsilon \), what is \( q \) as \( T \to \infty \)?

Question 3 of 5

The Helmholtz free energy \( A \) is related to the canonical partition function \( Q \) by:

Question 4 of 5

The canonical partition function for \( N \) indistinguishable, independent particles is:

Question 5 of 5

The vibrational partition function of a harmonic oscillator is \( q_{\text{vib}} = (1 - e^{-\Theta_{\text{vib}}/T})^{-1} \). In the high-temperature limit (\( T \gg \Theta_{\text{vib}} \)), \( q_{\text{vib}} \) approximates to: