Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 39 · The Microcanonical and Canonical Ensembles

The Microcanonical Ensemble

Learn the microcanonical ensemble for isolated systems at fixed energy, volume and particle number, and derive the temperature of N two-level systems from S = k ln Omega.

So far we counted microstates for particular examples. An ensemble turns that into a general method. Imagine a huge number of mental copies of your system, all prepared in the same macrostate but each in a possibly different microstate. Averages over this collection stand for measurements on the real system. The first and simplest ensemble describes a perfectly isolated system.

The ensemble for isolated systems

The microcanonical ensemble describes a system with fixed energy E, volume V and particle number N, completely isolated from its surroundings. By the fundamental postulate every accessible microstate has the same probability:

Text
p_s = 1 / Ω(E, V, N)   for each microstate s with energy E,     p_s = 0 otherwise

Everything follows from the entropy S(E, V, N) = k_B ln Ω(E, V, N) and its derivatives:

Text
1/T = (∂S/∂E)_(V,N),     P/T = (∂S/∂V)_(E,N),     −μ/T = (∂S/∂N)_(E,V)

(Here μ is the chemical potential. We will meet P and μ again in later lessons; only T is needed now.)

In practice an exactly fixed energy is unrealistic: no system is perfectly isolated, and quantum energy levels are discrete. One uses a narrow energy window E to E + δE, and for large systems the answer hardly depends on δE.

Worked example: N two-level systems

Consider N distinguishable particles, each either in the ground state (energy 0) or excited (energy ε). The total energy is E = nε where n is the number of excited particles. The multiplicity is

Text
Ω(n) = C(N, n)

so, with Stirling's approximation and x = n/N:

Text
S = −N k_B [ x ln x + (1 − x) ln(1 − x) ]

The temperature follows from 1/T = ∂S/∂E = (1/ε) ∂S/∂n:

Text
1/T = (k_B/ε) ln((N − n)/n)

Solving for the fraction excited:

Text
n/N = 1 / (e^(ε/(k_B T)) + 1)

When the energy is low (few excited), T is low. When half are excited (n = N/2) the logarithm vanishes and 1/T = 0: infinite temperature.

Python Temperature of a two-level system from its entropy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Sampling the ensemble

The microcanonical ensemble can be sampled directly: pick, uniformly at random, one of the C(N, n) ways to choose which particles are excited. A shuffle of an array with n ones and N − n zeros does exactly that. We can then check that any particular particle is excited with probability n/N.

Python Sample the microcanonical ensemble

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

All particles come out with the same probability n/N, as symmetry demands.

Limitations of the microcanonical ensemble

The microcanonical ensemble is conceptually clean, but counting Ω(E, V, N) exactly is hard for anything with interactions. It also describes a situation rarely found in a laboratory: most real systems exchange energy with their surroundings. The more flexible canonical ensemble fixes the temperature instead of the energy, and it is the workhorse of the field.

When a system is large, the microcanonical and canonical ensembles give the same thermodynamics. Choose whichever makes the calculation easier; usually that is the canonical one.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What does the microcanonical ensemble describe?

    It describes an isolated system with fixed energy, volume and particle number.
  2. 2. In the microcanonical ensemble with Omega accessible microstates, the probability of each microstate is:

    All accessible microstates are equally probable, so each has probability 1/Omega.
  3. 3. For N two-level particles with n excited, 1/T equals:

    From S = k ln C(N, n) and U = n eps: 1/T = (1/eps) dS/dn = (k_B/eps) ln((N-n)/n).
  4. 4. What is the temperature when exactly half of the two-level particles are excited?

    At n = N/2 the logarithm is zero, so 1/T = 0 and the temperature is infinite.

Summary

  • The microcanonical ensemble describes an isolated system with fixed E, V, N; each accessible microstate has probability 1/Ω.
  • Entropy S = k_B ln Ω and its derivatives give T, P and μ.
  • For N two-level particles: 1/T = (k_B/ε) ln((N − n)/n), so n/N = 1/(e^(ε/k_BT) + 1).
  • It is clean in principle, but real systems usually fit the canonical ensemble better.

Next: The Canonical Ensemble and the Boltzmann Distribution