# The Canonical Ensemble
This framework describes a system in thermal equilibrium with a heat reservoir. Unlike the Microcanonical ensemble (fixed \(E\)), here the Temperature \(T\) is fixed, and energy fluctuates.
1. Derivation of the Canonical Probability
System Setup
We consider a composite system \(A^0\) which is isolated (Microcanonical) with total energy \(E^0\). It is divided into two parts:
- System \(A\): The small system of interest (energy \(E_r\)).
- Reservoir \(A'\): A large heat bath (energy \(E'\)).
The conservation of energy requires: \( E_r + E' = E^0 \implies E' = E^0 - E_r \).
The Probability Condition
We ask: What is the probability \(P_r\) of finding system \(A\) in a specific microstate \(r\) with energy \(E_r\)?
According to the principle of equal a priori probability, \(P_r\) is proportional to the number of microstates available to the reservoir when system \(A\) is in state \(r\).
where \(\Gamma'(E')\) is the density of states of the reservoir.
Taylor Expansion (The "Heat Bath" Limit)
Since the reservoir is much larger than the system (\(E^0 \gg E_r\)), we can expand the logarithm of the density of states around \(E^0\):
We identify the derivative with the definition of temperature parameter \(\beta\):
Substituting this back:
Exponentiating gives the probability distribution:
Normalization & The Partition Function
The total probability must sum to 1: \(\sum_r P_r = 1\).
This allows us to determine the constant \(C\) (or \(1/Z\)). We define the Partition Function (\(Z\)):
Thus, the canonical probability is:
Note: This is the Boltzmann factor normalized by the partition function.
2. Macroscopic Quantities from Z
The partition function \(Z\) acts as a "generating function" for thermodynamic variables.
Mean Energy (\(\overline{E}\))
The average energy is the ensemble average:
We can express this as a derivative of \(Z\):
Generalized Force & Work
Suppose the energy levels \(E_r\) depend on an external parameter \(x\) (e.g., Volume \(V\), Magnetic Field \(H\)). The macroscopic work done when \(x\) changes by \(dx\) is:
Substituting \(P_r = \frac{e^{-\beta E_r}}{Z}\) and noting that \(\frac{\partial e^{-\beta E_r}}{\partial x} = -\beta \frac{\partial E_r}{\partial x} e^{-\beta E_r}\):
This defines the Generalized Force (\(\overline{F}_{gen}\)):
Examples:
- Pressure (\(P\)): Parameter \(x = V\). \[ \overline{P} = \frac{1}{\beta} \frac{\partial \ln Z}{\partial V} \]
- Magnetization (\(M\)): Parameter \(x = H\). \[ \overline{M} = \frac{1}{\beta} \frac{\partial \ln Z}{\partial H} \]
3. Application: Ideal Paramagnet
We apply the canonical formalism to evaluate the partition function of an ideal paramagnet.
System Parameters
- Temperature: \(\beta = 1/kT\)
- Magnetic Field: \(H\)
- Energy: \(E = -\mu_B H (N_+ - N_-)\)
Calculating Z
The total partition function sums over all configurations of spins \(\{\sigma_1, \dots, \sigma_N\}\):
Since the spins are non-interacting, the sum factorizes into a product of \(N\) single-spin sums:
Using the identity \(e^x + e^{-x} = 2 \cosh x\):
Macroscopic Observables
Log of Z: \(\ln Z = N \ln [2 \cosh(\beta \mu_B H)]\)
Magnetization:
Mean Energy: \(\overline{E} = -H \overline{M} = -N \mu_B H \tanh(\beta \mu_B H)\)
4. Recovering the Laws of Thermodynamics
We verify the consistency of Statistical Mechanics with Thermodynamics by analyzing the total differential of \(\ln Z\).
Consider \(\ln Z\) as a function of \(\beta\) and the external parameter \(x\):
Substituting our physical identifications (\(\overline{F} = \frac{1}{\beta}\frac{\partial \ln Z}{\partial x}\) and \(\overline{E} = -\frac{\partial \ln Z}{\partial \beta}\)):
Rearranging terms to group exact differentials:
From the First Law, \(dW + d\overline{E} = dQ\) (Heat). Thus:
Since \(dQ = T dS\) and \(\beta = 1/kT\), we identify the quantity in parentheses as Entropy \(S/k\):
Rearranging gives the definition of Helmholtz Free Energy (\(F\)):
We have successfully recovered the Second Law of Thermodynamics purely from Statistical Mechanics.