The Partition
Function
Discover how a single mathematical function, \( q \), captures the statistical weight of every accessible energy state and unlocks all of thermodynamics.
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
What Does \( q \) Actually Count?
The Bridge to Thermodynamics
Once you know the canonical partition function \( Q \), you can derive every equilibrium thermodynamic quantity by differentiation:
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:
How to Calculate a Partition Function
Example 1: Two-Level System
A molecule has only two non-degenerate states: \( \varepsilon_0 = 0 \) and \( \varepsilon_1 = \varepsilon \). Find \( q \).
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:
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 \)
Common Mistakes
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: