The canonical ensemble

A canonical ensemble is a collection of identical, non-interacting copies of a physical system, each with a fixed number of particles \(N\), fixed volume \(V\), and constant temperature \(T\) (maintained by thermal equilibrium with a heat bath), in which particles within each system may interact.

The word “canonical” means “according to a rule”, which, in this case, refers to fixed \(N\), \(V\) and \(T\). As mentioned in the above definition, a canonical ensemble clearly states that even though the individual systems in the ensemble are identical from a thermodynamic perspective, they may not be identical at the molecular level. Such a theoretical construct serves to connect the microscopic behaviour of systems (governed by quantum mechanics or classical mechanics) to the macroscopic thermodynamic properties.

 

Question

Why do we only consider three parameters for each system?

Answer

While a physical system, such as a salt solution, may involve many microscopic variables (like individual particle positions and velocities), its macroscopic behaviour can often be fully characterised by a small set of thermodynamic parameters. In the canonical ensemble, fixing \(N\), \(V\) and \(T\) is sufficient to statistically describe the equilibrium properties of the system.

 

All thermodynamic properties are, in essence, measured as averages. Consider each system in the ensemble as a rigid container holding a gas. The pressure of the gas in each system is the time average of countless rapid collisions of gas particles with the walls of the container. The force on the wall fluctuates constantly, but a pressure gauge cannot register each individual fluctuation. Instead, the gauge averages the force over a short time to provide a stable reading. Similarly, while the kinetic energy of individual molecules varies moment to moment, the temperature reflects the average kinetic energy of all molecules at thermal equilibrium.

Due to fluctuations in properties such as pressure, kinetic energy or even quantum-mechanical variables, each system can occupy many possible energy states (microstates) at any given moment. In quantum mechanical systems, the energy corresponding to each microstate is determined by solving the Schrodinger equation \(\hat{H}\psi_i=E_i\psi_i\), where \(\psi_i\) is the wavefunction that describes the quantum state resulting from the positions and momenta of all \(N\) particles in the system, and \(E_i\) is the total energy of system for the \(i\)-th microstate.

If the number of systems \(\tilde N\) in the ensemble is taken to be infinitely large, we postulate that:

Postulate 1

 The macroscopic properties of a system are given by statistical averages over all possible microstates in the ensemble at any given moment (ensemble average).

For example, the thermodynamic internal energy \(U\) is equal to the statistical average energy of the systems \(\langle E\rangle\) in the ensemble:

$$U=\langle E\rangle=\sum_ip_iE_i\;\;\;\;\;\;\;\;120$$

where \(p_i\) is the probability that a system in the ensemble is in the \(i\)-th microstate with energy \(E_i\).

To determine \(p_i\), we further postulate that:

Postulate 2

All microstates with equal energy have equal probability of occurring for any system of fixed volume, composition and temperature.

Therefore, if we consider any such system in thermal equilibrium with a constant temperature heat bath, and identify two of its microstates, 1 and 2, with energies \(E_1\) and \(E_2\) respectively, the corresponding probabilities are given by \(p_1=\frac{\tilde N_1}{\tilde N}=f(E_1)\) and \(p_2=\frac{\tilde N_2}{\tilde N}=f(E_2)\), where \(\tilde N_i\) is the number of systems with energy \(E_i\). It follows that the relative probability is:

$$\frac{\tilde N_2}{\tilde N_1}=f(E_1,E_2)\;\;\;\;\;\;\;\;121$$

In thermodynamics and quantum mechanics, energy is always referenced to a zero of energy \(E_0\), which can be defined in different ways. Since the function \(f(E_1,E_2)\equiv f(E_1-E_0,E_2-E_0)\) represents a physical quantity, it must yield the same result regardless of how \(E_0\) is defined. This is only possible if the function \(f(E_1,E_2)\) depends on the difference between \(E_1\) and \(E_2\), i.e. \(f(E_1,E_2)= f(E_1-E_2)\).

 

Question

Show that the function \(f(E_1-E_2)\) is invariant to \(E_0\).

Answer

Let \(E_3=E_1-E_0\) and \(E_4=E_2-E_0\). We have \(E_3-E_4=E_1-E_2\), which does not depend on \(E_0\).

 

Multiplying \(\frac{\tilde N_2}{\tilde N_1}=f(E_1-E_2)\) by \(\frac{\tilde N_3}{\tilde N_2}=f(E_2-E_3)\) and using \(\frac{\tilde N_3}{\tilde N_1}=f(E_1-E_3)\) gives:

$$f(E_1-E_3)=f(E_1-E_2)f(E_2-E_3)\;\;\;\;\;\;\;\;122$$

Letting \(E_5=E_1-E_2\) and \(E_6=E_2-E_3\), we can rewrite eq122 as:

$$f(E_5+E_6)=f(E_5)f(E_6)\;\;\;\;\;\;\;\;123$$

Taking the natural logarithm on both sides of eq123 and then differentiating with respect to \(E_5\) yields:

$$\biggr[\frac{\partial lnf(E_5+E_6)}{\partial E_5}\biggr]_{E_6}=\frac{d lnf(E_5)}{d E_5}$$

Using the chain rule,

$$\frac{dlnf(E_5+E_6)}{d(E_5+E_6)}\biggr[\frac{\partial (E_5+E_6)}{\partial E_5}\biggr]_{E_6}=\frac{d lnf(E_5)}{d E_5}$$

$$\frac{dlnf(E_5+E_6)}{d(E_5+E_6)}=\frac{d lnf(E_5)}{d E_5}\;\;\;\;\;\;\;\;124$$

Similarly, taking the natural logarithm on both sides of eq123 and then differentiating with respect to \(E_6\) yields:

$$\frac{dlnf(E_5+E_6)}{d(E_5+E_6)}=\frac{d lnf(E_6)}{d E_6}\;\;\;\;\;\;\;\;125$$

Equating eq124 and eq125 results in:

$$\frac{d lnf(E_5)}{d E_5}=\frac{d lnf(E_6)}{d E_6}\;\;\;\;\;\;\;\;126$$

Each side of eq126 is a function of a different independent variable. The only way eq126 can be valid for all values of \(E_5\) and \(E_6\) is if both functions are equal to the same constant \(\beta\):

$$\frac{d lnf(E_5)}{d E_5}=\frac{d lnf(E_6)}{d E_6}=\beta\;\;\;\;\;\;\;\;127$$

Integrating \(\frac{d lnf(E_5)}{d E_5}=\beta\), i.e. \(\int d lnf(E_5)=\int\beta dE_5\), gives \(lnf(E_5)=\beta E_5+c\) or equivalently,

$$f(E_5)=ae^{\beta E_5}\;\;\;\;\;\;\;\;128$$

where \(a=e^c\).

Accordingly, we have:

$$f(E_h-E_i)=ae^{\beta (E_h-E_i)}\;\;\;\;\;\;\;\;129$$

Substituting eq129 into \(\frac{\tilde N_i}{\tilde N_h}=f(E_h-E_i)\) yields \(\frac{\tilde N_i}{\tilde N_h}=ae^{\beta (E_h-E_i)}\) or:

$$\tilde N_i=Ce^{-\beta E_i}\;\;\;\;\;\;\;\;130$$

where \(C=\tilde N_hae^{\beta E_h}\).

\(C\) can be evaluated by summing both sides of eq130 over \(i\):

$$\sum_i\tilde N_i=C\sum_ie^{-\beta E_i}$$

Since \(\sum_i\tilde N_i=\tilde N\),

$$C=\frac{\tilde N}{\sum_ie^{-\beta E_i}}\;\;\;\;\;\;\;\;131$$

Substituting eq131 back into eq130 results in:

$$p_i=\frac{e^{-\beta E_i}}{\sum_ie^{-\beta E_i}}\;\;\;\;\;\;\;\;133$$

where \(p_i=\frac{\tilde N_i}{\tilde N}\).

Eq133 represents the general probability of finding a system, which is in thermal equilibrium with a constant temperature heat bath, in a specific microstate \(i\) with energy \(E_i\). Its derivation relies on fundamental principles of probability and the nature of equilibrium, not on the specific nature of the particles themselves (e.g., whether they’re distinguishable or indistinguishable). In other words, eq133 is applicable to both classical and quantum mechanical systems. Therefore, eq120 becomes:

$$U=\langle E\rangle=\frac{\sum_iE_ie^{-\beta E_i}}{Q}\;\;\;\;\;\;\;\;134$$

where

$$Q=\sum_je^{-\beta E_j}\;\;\;\;\;\;\;\;135$$

is known as the canonical partition function.

The fact that eq133 yields the same expression as the Boltzmann distribution is not a coincidence. It demonstrates that the Boltzmann distribution naturally emerges from the statistical treatment of systems in thermal equilibrium, and illustrates the deep consistency between thermodynamic principles and statistical reasoning.

 

Question

Can two different microstates have the same energy?

Answer

Yes. Consider a system with two particles. In one microstate, particle A has an energy of 1 unit, and Particle B has an energy of 2 units. In another microstate, particle A has an energy of 2 units, while Particle B has an energy of 1 unit. These two distinct microstates (or configurations) clearly have the same total energy of 3 units. Microstates that share the same energy are called degenerate states.

 

Since different microstates can be degenerate, the probability that a system has energy \(E_i\) is:

$$p(E_i)=\frac{g_ie^{-\beta E_i}}{\sum_je^{-\beta E_j}}\;\;\;\;\;\;\;\;136$$

where \(g_i\) is the degeneracy of \(E_i\).

 

Next article: canonical partition function
Previous article: Statistical thermodynamics (overview)
Content page of statistical thermodynamics
Content page of advanced chemistry
Main content page

Leave a Reply

Your email address will not be published. Required fields are marked *

Mono Quiz