Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

2.2. Canonical Ensemble

See also: Course-wide Conventions & Notation

Run the code: Notebook for Section 2.2, in which you can change and rerun the Python cells of this section in your browser.

Overview and Learning Objectives

The canonical ensemble describes a closed system in thermal contact with a large heat bath at fixed temperature. Its central result is the Boltzmann assignment pi∝e−βEip_i \propto e^{-\beta E_i}, normalized by the partition function. This section derives and interprets that probability distribution and introduces a two-state system as a concrete model.

In a closed system (energy exchange allowed, matter exchange forbidden) in thermal contact with a heat bath, the appropriate statistical description is the canonical ensemble (panel (b) of Figure 2.1.1).

Learning objectives:

Core Ideas and Derivations

Probability of a Microstate in the Canonical Ensemble

Consider an ensemble of A\mathcal{A} identical closed systems in thermal contact with a heat bath at temperature TT. A heat bath is an environment so large that it can absorb or release energy with negligible change in temperature.

Population ratios depend only on energy differences

Intuition tells us that a system is more likely to be found in lower-energy microstates.

Let a1a_1 and a2a_2 denote the numbers of systems in microstates 1 and 2. We assume the population ratio depends only on the energy difference:

a2a1=f(E1,E2)=f(E1−E2),\frac{a_2}{a_1} = f \left( E_1, E_2 \right) = f \left( E_1 - E_2 \right),

where E1E_1 and E2E_2 are the corresponding microstate energies.

Finding an Acceptable Form for ff

Because ratios multiply, we can write

a3a1=a2a1 a3a2f(E1−E3)=f(E1−E2) f(E2−E3).\begin{align*} \frac{a_3}{a_1} &= \frac{a_2}{a_1}\,\frac{a_3}{a_2} \\ f \left( E_1 - E_3 \right) &= f \left( E_1 - E_2 \right)\, f \left( E_2 - E_3 \right). \end{align*}

If ff is well behaved (e.g., continuous, measurable), it must be of the form

f(Em−En)=eβ(Em−En),f \left( E_m - E_n \right) = e^{\beta \left( E_m - E_n \right)},

where β\beta is a constant that this argument does not determine. The dropdown “Alternative derivation roadmap” below shows that β=1/(kBT)\beta = 1/(k_\text{B} T), where TT is the temperature of the heat bath. Because kBTk_\text{B} T is an energy, β\beta has units of inverse energy. Since T>0T > 0, β\beta is positive, in agreement with the intuition that lower-energy microstates are more probable.

Converting ff to a Probability

The same argument applies to any pair of microstates mm and nn, so

anam=f(Em−En)=eβEmeβEn.\frac{a_n}{a_m} = f \left( E_m - E_n \right) = \frac{e^{\beta E_m}}{e^{\beta E_n}}.

Separating the indices mm and nn,

ameβEm=aneβEn=C,a_m e^{\beta E_m} = a_n e^{\beta E_n} = \mathcal{C},

where C\mathcal{C} is a constant. Because the equality holds for every pair of microstates, the product ameβEma_m e^{\beta E_m} has the same value for all of them. Therefore, the number of systems in a microstate with energy EmE_m is

am=Ce−βEm.a_m = \mathcal{C} e^{-\beta E_m}.

The constant C\mathcal{C} is determined by the normalization condition

∑nan=A=C∑ne−βEn.\sum_n a_n = \mathcal{A} = \mathcal{C} \sum_n e^{-\beta E_n}.

Solving for C\mathcal{C} and substituting into the expression for ama_m gives

pm=amA=e−βEm∑ne−βEn=e−βEmQ,p_m = \frac{a_m}{\mathcal{A}} = \frac{e^{-\beta E_m}}{\sum_n e^{-\beta E_n}} = \frac{e^{-\beta E_m}}{Q},

where pmp_m is the probability of finding the system in microstate mm and

Q=∑ne−βEnQ = \sum_n e^{-\beta E_n}

is the partition function. The sum runs over all microstates of the system.

The argument above does not show how the heat bath enters the result. The alternative derivation below starts from the isolated combination of the system and the reservoir, and it identifies β\beta with the temperature of the heat bath.

Two-State System

Consider a system with two microstates (two “levels”): state 1 with energy E1E_1 and state 2 with energy E2E_2. We label the states so that E2>E1E_2 > E_1, which makes state 1 the lower-energy state.

Table 2.2.1:Chemical Contexts Where a Two-State Approximation Might be Appropriate

Chemical Context

State 1

State 2

Electronic transitions in atoms or molecules

Ground state

Excited state

Donor–acceptor electron transfer

Reduced state

Oxidized state

Molecular isomerization

Reactant

Product

Defects in solids

Defect-free

Defective

Protein folding

Folded

Unfolded

Partition Function for a Two-State System

The partition function Qtwo-stateQ_\text{two-state} for a two-state system is

Qtwo-state=e−βE1+e−βE2=e−βE1(1+e−βΔE),\begin{align*} Q_\text{two-state} &= e^{-\beta E_1} + e^{-\beta E_2} \\ &= e^{-\beta E_1} \left( 1 + e^{-\beta \Delta E} \right), \end{align*}

where ΔE=E2−E1\Delta E = E_2 - E_1 is the energy difference between the two states.

Probability of Finding the System in State 1

The probability of finding the system in state 1 is

p1=e−βE1Qtwo-state=11+e−βΔE=11+e−ΔEkBT.p_1 = \frac{e^{-\beta E_1}}{Q_\text{two-state}} = \frac{1}{1 + e^{-\beta \Delta E}} = \frac{1}{1 + e^{-\frac{\Delta E}{k_\text{B} T}}}.

Probability of Finding the System in State 2

The probability of finding the system in state 2 is

p2=1−p1.p_2 = 1 - p_1.

Partition Function as the Effective Number of Thermally Accessible Microstates

When energies are measured from the lowest state (E1=0E_1 = 0), every Boltzmann factor e−βEme^{-\beta E_m} is at most 1, and the factor for the lowest state equals 1. The partition function therefore lies between 1 and the total number of microstates, and it can be read as the effective number of microstates that are thermally accessible at temperature TT. Figure 2.2.1 shows Qtwo-stateQ_\text{two-state} and the two probabilities as functions of temperature for E1=0E_1 = 0 and ΔE=0.01 eV\Delta E = 0.01\ \mathrm{eV}. The dashed lines in panel (a) mark the low- and high-temperature limits of Qtwo-stateQ_\text{two-state}.

Source
Loading...

Figure 2.2.1:Two-state system with E1=0E_1 = 0 and ΔE=0.01 eV\Delta E = 0.01\ \mathrm{eV} as a function of temperature. (a) The partition function Qtwo-stateQ_\text{two-state} rises from 1, where only state 1 is thermally accessible, toward 2, where both states are. (b) Probabilities p1p_1 and p2p_2 of finding the system in state 1 and in state 2.

Computational Studio: Two-State System

In Figure 2.2.2, you can change the energy difference between the two states and follow the probabilities, the heat capacity, and the partition function as the temperature rises.

Figure 2.2.2:Two-state system with E1=0E_1 = 0 and E2=ΔEE_2 = \Delta E as a function of temperature. Panel (a) shows the probabilities p1p_1 and p2p_2 of the two states, panel (b) the heat capacity of one particle, CV/kBC_V/k_\text{B}, and panel (c) the partition function QQ. Energies and kBTk_\text{B}T are in units of an arbitrary energy ε\varepsilon.

You can also open the studio in a new tab: Two-State System Studio.

Worked Example

Two-state system probabilities

A single particle has two states with energies E1=0E_1=0 and E2=εE_2=\varepsilon, where ε=0.010 eV\varepsilon=0.010\ \mathrm{eV}. Find p1p_1 and p2p_2 at T=300 KT=300\ \mathrm{K}.

Use pi=e−βEi/Qp_i = e^{-\beta E_i}/Q, Q=1+e−βεQ=1+e^{-\beta\varepsilon}, and kB=8.617×10−5 eV/Kk_\text{B}=8.617\times 10^{-5}\ \mathrm{eV/K}.

  1. Compute βε\beta\varepsilon

    βε=εkBT=0.010 eV(8.617×10−5 eV/K)(300 K)=0.387.\beta\varepsilon=\frac{\varepsilon}{k_\text{B}T} =\frac{0.010\ \mathrm{eV}}{(8.617\times10^{-5}\ \mathrm{eV/K})(300\ \mathrm{K})}=0.387.
  2. Compute the Boltzmann factor

    e−βε=e−0.387=0.679.e^{-\beta\varepsilon}=e^{-0.387}=0.679.
  3. Normalize

    Q=1+0.679=1.679,p1=1Q=0.596,p2=0.679Q=0.404.Q=1+0.679=1.679, \qquad p_1=\frac{1}{Q}=0.596, \qquad p_2=\frac{0.679}{Q}=0.404.

Result. At 300 K300\ \mathrm{K}, about 40%40\% of systems occupy the higher-energy state (state 2) for this energy gap.

Concept Checks

  1. Why must the argument of the exponential in e−βEe^{-\beta E} be dimensionless?

  2. What happens to p2/p1p_2/p_1 as T→0T\to 0? As T→∞T\to\infty?

  3. Which part of the canonical derivation relies on the reservoir being much larger than the system?

  4. How does shifting all energies by a constant affect pip_i, and why?

Key Takeaways