Canonical Ensemble and Boltzmann Distribution
The canonical ensemble describes a system that can exchange energy with a large heat reservoir while keeping its temperature, volume, and particle number fixed. It provides the statistical foundation for the Boltzmann distribution, which tells you the probability of finding a system in any particular microstate at a given temperature. Together, these concepts connect microscopic energy levels to the macroscopic thermodynamic quantities you can measure.
Canonical Ensemble Characteristics
A canonical ensemble is a collection of many copies of the same system, all in thermal equilibrium with a heat reservoir at temperature . Each copy has the same number of particles and volume , but the copies differ in their microscopic configurations because energy flows freely between each system and the reservoir.
- The system exchanges heat (but not particles) with the reservoir. This keeps constant while allowing the system's energy to fluctuate.
- The reservoir is assumed to be so large that any energy gained or lost by the system doesn't change the reservoir's temperature.
- Different microstates of the system have different energies . The probability of each microstate depends on and : lower-energy states are favored at low temperatures, while higher-energy states become increasingly accessible as temperature rises.
A concrete example: a gas sealed in a container that sits in a large water bath. The gas molecules constantly exchange energy with the bath through the container walls, but the bath is massive enough that its temperature stays effectively constant.
Derivation of the Boltzmann Distribution
The goal is to find the probability of the system occupying microstate with energy . The derivation uses constrained optimization: you maximize the entropy of the ensemble subject to two physical constraints.
-
Write the Boltzmann entropy as , where the sum runs over all microstates.
-
Impose two constraints:
- Normalization: (probabilities must add to 1).
- Fixed average energy: (the system is in thermal equilibrium, so the mean energy is well-defined).
-
Apply the method of Lagrange multipliers. Introduce multipliers and for the two constraints and set the variation of the constrained entropy to zero.
-
Solve for . The result is:
- The multiplier is identified with the inverse temperature: .
- The partition function serves as the normalization constant that guarantees .
This is the Boltzmann distribution. It applies to any system in thermal contact with a reservoir, from a single quantum harmonic oscillator to a macroscopic crystal.

Meaning of the Boltzmann Factor
The quantity is called the Boltzmann factor. It controls the relative weight of each microstate before normalization.
- Because the exponential is a decreasing function of , states with lower energy always have larger Boltzmann factors than states with higher energy at the same temperature.
- The ratio of probabilities for two microstates depends only on their energy difference:
This means you don't need to know to compare the relative likelihood of two states.
Temperature dependence:
- At low (large ), the exponential drops off steeply with energy. The system overwhelmingly occupies its ground state or the lowest-lying states.
- At high (small ), the exponential flattens out. Higher-energy states become nearly as probable as lower-energy ones, and the system samples a broad range of microstates.
- In the limit , and every microstate becomes equally likely. In the limit , only the ground state is occupied.
These trends explain real phenomena: at room temperature most hydrogen atoms sit in their electronic ground state, but in a stellar atmosphere at thousands of kelvin, excited electronic states carry significant population.
Microstate Probability Calculations
To find the probability of a specific microstate, follow these steps:
- Identify the energy of the microstate. This comes from the Hamiltonian of the system (kinetic + potential energy of all particles in that configuration).
- Compute the Boltzmann factor using .
- Evaluate the partition function by summing the Boltzmann factors over all microstates . For simple systems (two-level system, harmonic oscillator) this sum can be done analytically. For complex systems it may require approximation.
- Divide: .
Quick check: If a two-level system has states with energies and , the partition function is , and the probability of the excited state is . At very low , ; at very high , .
These calculations underpin a wide range of applications: predicting the population of excited states in a laser gain medium, comparing folded versus unfolded conformations of a protein, determining whether electrons in a semiconductor populate the conduction band, and deriving the Maxwell-Boltzmann speed distribution for gas molecules.