Ensemble equivalence#
What you will learn
Statistical Ensembles: Understanding the role of ensembles in statistical mechanics and how they describe macroscopic systems using probability distributions.
Microcanonical Ensemble (NVE): Definition, characteristics, and assumptions—fixed energy, volume, and particle number; statistical weight of microstates.
Equivalence of Ensembles: Conditions under which the microcanonical and canonical ensembles give equivalent thermodynamic predictions in the thermodynamic limit.
Canonical Ensemble (NVT): Definition and significance—fixed temperature, volume, and particle number; derivation of the Boltzmann factor.
Partition Function (\(Z\)): Role of the partition function in statistical mechanics, its connection to thermodynamic properties (free energy, entropy, internal energy).
Boltzmann Distribution: Probability of a system being in a given energy state at equilibrium, leading to macroscopic observables.
Thermodynamic Connections: How ensemble averages link to macroscopic properties such as energy, entropy, and pressure.
Fluctuations and Large System Limits: How energy fluctuations in the canonical ensemble become negligible for large systems, reinforcing ensemble equivalence.
Microcanonical Ensemble (NVE)#
A collection of all possible microscopic arrangements consistend with an equilibrium thermodynamic state is called statistical ensemble.
Ensemble defines sample space over microstates over which we define micro and macro-state probabilities
Consider an isolated fluid system with \(N=const\), \(V=const\) and \(E=const\). This is called a microcanonical ensemble
In the absence of any physical constraints, no micro state is more probable than any other. This is known as “principle of equal a priory probability”.

A priori equal probability
P(E) Probability of any microstate in the system with energy \(E\)
Boltzmann equation
\(\Omega\) is the number of micro-states consistent with a macrostate of our system.
\(S(N, V, E)\) is the entropy of an isolated system (we are in the NVE).
\(k_B =1.380649\cdot 10^{-23} J/K\), Boltzmann’s constant
Applications of NVE#
Two-state partciles
Cnsider a simple two-level system where lower level has energy \(0\) and upper level \(\epsilon\). Determine how the fraction of excited states \(f=\frac{n}{N}\) changes with temperature.
Solution
The total energy when we have a \(n\) number of particles in upper level is:
Number of microstaates is all possible ways of arranging N number of particles given fixed energy \(E\)
Taking log of binomial (see random walk section) we get expression of entropy
Since we have entropy as a function of energy \(n=E/\epsilon\) we can use thermodynamic relations to obain expression for how fraction of excited states changes with temperature:
Random polymer chain
Consider 1D polymer where \(N\) monomers are randomly oriended with \(+l\) and \(-l\) orientation along the \(x\) axis
Exchanging Energy#
Consider a small system in thermal contact with a large reservoir at temperature \( T \).
The total system (system + reservoir) is isolated, with a fixed at \( E_t \) hence we have a microcanonical ensemble.

The total number of microstates for the combined system is:
\[ \Omega_t(E_t) = \sum_E \Omega(E) \Omega_r(E_t - E) \]where:
\( \Omega(E) \) is the number of microstates available to the system when it has energy \( E \).
\( \Omega_r(E_t - E) \) is the number of microstates available to the reservoir when the system has energy \( E \).
The probability of the system being in a macrostate that is, having energy \(E\) is:
\[ p(E) = \frac{\Omega(E) \Omega_r(E_t - E)}{\sum_E \Omega(E) \Omega_r(E_t - E)} \]The system is more likely to be in a macrostate \( E \) if the reservoir has many ways to accommodate the remaining energy \( E_t - E \).
Constant temperature ensemble (NVT)#
Since the reservoir is much larger than the system \( E \ll E_t \), its entropy or log of microstates is a smooth function of energy:
\[log\Omega_r(E_t-E) \approx log\Omega_r(E_t) - \frac{\partial log \Omega_r}{\partial E}E = const - \beta E\]First factor is constnatn independent of energy and the reservoir influence is now only described by the coefficient which is related to temperature!
We find that number of microstates of large reservoir decrease exponentially when system borrows energy \(E\)
Boltzmann distribution (NVT)
Probability of a Macrostate
Probability of a Microstate
Parition Function
The partition function \(Z\) keeps the normalization of the ratio and is a sum over all micro or macrostates weighted by exponential Boltzman factor.
MaxEnt Derivation of NVT
We can derive the Botlzman distribution by Maximizing Entropy with a constraint placed on fixed average energy \(\langle E\rangle =U\)
Partition Functions and Thermodynamic limit#
The number of states grows exponentially with system size \( N \), \( \Omega(E) = e^{\frac{S}{k_B}} \sim e^{N}\) while the Boltzmann factor decays exponentially with energy \(e^{-\beta E} \sim e^{-N}\)
These competing exponential behaviors determine the dominant contribution to the partition function.
In the thermodynamic limit (large \( N \) and \( V \)), only energies that significantly contribute to \( Z \) survive. This allows rewriting the integral as:
where:
\( U = \langle E \rangle \) is the average energy, with fluctuations of order \( O(N^{1/2}) \).
\( F = U - TS \) is the Helmholtz free energy.
Examples of using NVT#
Two-state partciles (NVT)
Cnsider a simple two-level system where lower level has energy \(0\) and upper level \(\epsilon\). Determine how the fraction of excited states \(f=\frac{n}{N}\) changes with temperature.
Solution
Solving a two-state particle system in an NVT ensemble is much easier because the partition function decouples into single particle contributions.
Free energy and macrostate probabilities#
Microstates: The relative population of microstates is dictated by the ratio of Boltzmann weights which depends on energy difference \(\Delta E\)
Macrostates: Probability of macrostates with energy \(E_A\) is obtained by summing over all microstates with energy E_A or simply by multiplying by \(\Omega_A\). The latter is related to entropy, which ends up turning the numerator into the free energy of a macrostate \(A\): \(F_A = E_A-TS_A\)
The relative population of macrostates is dictated by the ratio of entropic term times Boltzmann weights which depends on free energy difference \(\Delta F\)
Derivation of Average Energy and Fluctuations#
The probability of the system being in microstate i is given by the Boltzmann distribution:
The ensemble average energy can be related to the derivative of log of partition function:
Moments of Energy in NVT ensemble
Fluctuation-response and ensemble equivalence#
We can now show that heat capaicty is related to energy fluctuations a result known as fluctuation-response theorem
Fluctuation-Response Theorem
Relative energy fluctuations scale as:
\[ \frac{\sigma_E}{\langle E \rangle} = \frac{(k_B T^2 C_V)^{1/2}}{\langle E \rangle} \sim O(N^{-1/2}) \]In the thermodynamic limit \(N\rightarrow \infty \), fluctuations become negligible, justifying ensemble equivalence.
More examples#
Temperature dependence of magnetization (NVE)
Consider a set of \(N= N_{\uparrow} + N_{\downarrow}\) spins pointing up and down in an external magnetic field \(B\) with energy \(\epsilon = \pm \mu B\) where \(\mu\) magnetic moment of the spin. DefiningDefine \(M = N_{\uparrow} - N_{\downarrow}\) as the overall magnetization and \(m = M/n\) magnetization per spin. Using NVE ensemble of spins with fixed energy \(E\) find the temperature dependence of \(m(T)\).
We start by writing down the number of microstates for a given \(E\) we need to find a number of ways to partition \(N_{\uparrow}\) and \(N_{\downarrow}\) spins.
Find temperature dependence by using \(\frac{1}{T} = \frac{\partial S}{\partial E}|_N\)
magnetization per spin \(m=-U/\mu NB\) is given by:
Temperature dependence of magnetization (NVT)
Solve the same problem but now using NVT ensemble of spins coupled to a heat bath at fixed \(T\)t emperature instead
Partition function of a single spin
Partition function of N spins
Free energy
Entropy
Magnetization
Magnetization \(M\) (extensive quantity) or magnetization per particle \(m=M/N\) (intensive quantity) is given as another free energy derivative:
Magnetizatic susceptibility
In the context of paramagnet, we have another response function in the form of magnetic susceptibility.
which leads to a well-known Curie Law
Finally, as a consistency check we can combine entropy and free energy expressions to obtain internal energy:
Problems#
Shottky defects#
Schotky defects are vacancies in a lattice of atoms. Creating a single vacancy costs an energy \(\epsilon\). Consider a lattice with \(N\) atoms and \(n\) vacacnies. In this model the total energy is solely a function of defects: \(E=n\epsilon\)
Write down number of states and compute the entropy via Boltzmann formula. Plot number of states as a function of energy. You can use log of number of states for plotting.
Compute how the temperature would affect the fraction of vacancies on the lattice. Plot fraction of vacancies as a function of temperature.
How would the total energy depend on temperature \(T\). Derive expression for the high temeprature limit (\(\frac{\epsilon}{k_b T} \gg 1\)).
Plot total energy as a function of temperature E(T)
Lattice gas#
Consider a lattice gas of N particles distributed among V cells (with \(N\geq V\)). Suppose that each cell may be either empty or occupied by a single particle. The number of microscopic states of this syste will be given by:
Obtain an expression for the entropy per particle \(s(v)=\frac{1}{N} \cdot S(N,V)\) where \(v=\frac{V}{N}\).
From this simple fundamental equation, obtain an expression of equation of state \(p/T\).
Write an expansion of \(p/T\) in terms of density \(1/v\). Show that the first term gives Boyle law of ideal gases.
Sketch a graph of \(\mu/T\), where \(\mu(\rho)\) is a chemical potential as a function of density. Comment on \(\rho\rightarrow 0\) and \(\rho\rightarrow 1\) limits.
Polymer Elasticity#
Solve the problem 2.7 from the book.