---
title: The Microcanonical Ensemble and Statistical Entropy
module: The Microcanonical Ensemble
moduleNumber: 3
lessonNumber: 1
order: 301
summary: >
  An isolated system holds its energy, volume, and particle number fixed, and
  the fundamental postulate assigns equal probability to every microstate on its
  energy shell. This lesson builds the microcanonical distribution, defines the
  enclosed phase-space volume $\Gamma(E)$, the surface density of states
  $\omega(E)=\d\Gamma/\d E$, and the shell count $\Omega(E)$, shows their
  logarithms agree to $O(\ln N)$ for large $N$, and reads the Boltzmann entropy
  $S=k\ln\Omega$ off the count. The measure factors $h^{3N}$ and $N!$ enter here
  and make $S$ extensive.
topics: [The Microcanonical Ensemble]
sources:
  - book: Reif
    ref: "Ch. 3 — Statistical Thermodynamics; §3.6–3.9"
  - book: Kardar (Statistical Physics of Particles)
    ref: "Ch. 4 — Classical Statistical Mechanics; §4.3–4.4"
  - book: Pathria & Beale
    ref: "Ch. 1 — The Statistical Basis of Thermodynamics; §1.1–1.4, and Ch. 2 — Elements of Ensemble Theory; §2.1–2.4"
draft: false
---

An isolated system exchanges neither energy nor matter with its surroundings. Its
total energy $E$, volume $V$, and particle number $N$ are constants of the motion,
and every microscopic configuration the system visits is confined to the surface
in phase space on which the Hamiltonian equals $E$. The microcanonical ensemble is
the probability distribution appropriate to this situation: a flat distribution
over that surface, expressing the one postulate on which equilibrium statistical
mechanics rests. From the flat distribution and a count of how much phase space it
covers, the entropy follows, and with it the entire thermodynamics of the isolated
system.

## The fundamental postulate

A classical system of $N$ particles has a microstate specified by the $3N$
canonical coordinates $q=(q_1,\dots,q_{3N})$ and the $3N$ conjugate momenta
$p=(p_1,\dots,p_{3N})$. This point $(q,p)$ lives in the $6N$-dimensional phase
space $\Gamma$, and it moves under Hamilton's equations along a trajectory
confined to the constant-energy surface $H(q,p)=E$. For an isolated system the
only information available is that the state lies somewhere on the accessible part
of this surface. Equilibrium statistical mechanics posits that no accessible
microstate is preferred over any other.

> **Postulate (Equal a priori probabilities).** For an isolated system in
> equilibrium, every microstate consistent with the fixed values of $E$, $V$, and
> $N$ is equally probable. The probability density in phase space is uniform over
> the accessible region and zero outside it.

The postulate is not derived from mechanics; it is the statistical input that
makes the theory predictive.[^reif-post] Its justification is partly the ergodic
expectation that a trajectory spends equal time in equal accessible volumes, and
mostly the overwhelming empirical success of the results it generates. Because the
constraint $H=E$ is one condition on a $6N$-dimensional space, the accessible set
is a surface of dimension $6N-1$. Measurements never resolve energy to a
mathematical point, and a surface has zero volume, so it is convenient to admit a
thin shell of energies between $E$ and $E+\delta E$ with $\delta E \ll E$. The
final thermodynamics will not depend on $\delta E$.

> **Definition (Microcanonical density).** With $H(q,p)$ the Hamiltonian, the
> microcanonical phase-space density is
> $$\rho(q,p) = \frac{1}{\Omega(E)}\begin{cases}1 & E \le H(q,p) \le E+\delta E,\\[2pt] 0 & \text{otherwise,}\end{cases}$$
> where $\Omega(E)$ normalizes the distribution to unit total probability.

Because $\rho$ depends on $(q,p)$ only through the conserved energy $H$, it is
stationary under the Hamiltonian flow: $\partial\rho/\partial t=0$ by Liouville's
theorem. A distribution built on a constant of the motion describes an equilibrium
that does not evolve, which is the property a candidate equilibrium ensemble must
have.

$$
% caption: The accessible microstates fill a thin shell between the energy surfaces $H=E$ and $H=E+\delta E$ in phase space; the interior is the enclosed volume $\Gamma(E)$, and the microcanonical density is uniform inside the shell and zero outside.
\begin{tikzpicture}[>=Latex,font=\footnotesize,scale=1.0]
\definecolor{acc}{HTML}{4A6FA5}
\draw[very thick] (0,0) ellipse (3.3 and 2.3);
\draw[very thick] (0,0) ellipse (2.75 and 1.85);
\begin{scope}
\clip (0,0) ellipse (3.3 and 2.3);
\fill[acc!12] (0,0) ellipse (3.3 and 2.3);
\end{scope}
\begin{scope}
\clip (0,0) ellipse (2.75 and 1.85);
\fill[white] (-3.4,-2.4) rectangle (3.4,2.4);
\end{scope}
\draw[very thick] (0,0) ellipse (3.3 and 2.3);
\draw[very thick] (0,0) ellipse (2.75 and 1.85);
\node[black] at (3.9,2.1) {outer edge};
\node[black] at (3.5,1.0) {$H=E$};
\node[black] at (0,0) {enclosed};
\node[black] at (0,-0.55) {phase space};
\filldraw[black] (2.55,0.95) circle (1.6pt);
\filldraw[black] (-1.9,1.35) circle (1.6pt);
\filldraw[black] (0.6,2.05) circle (1.6pt);
\node[black] at (0,2.75) {thin shell};
\end{tikzpicture}
$$

## Phase-space volume, surface, and shell count

Three closely related measures of the accessible phase space appear throughout the
subject. Each is made dimensionless by dividing the raw coordinate–momentum volume
by $h^{3N}$, and made correct for identical particles by dividing by $N!$; both
factors are justified below.

> **Definition (Enclosed volume).** The dimensionless phase-space volume enclosed
> by the energy surface $H=E$ is
> $$\Gamma(E) = \frac{1}{h^{3N}N!}\int_{H(q,p)\le E} \d^{3N}q\,\d^{3N}p.$$

> **Definition (Density of states).** The structure function, or density of
> states, is the rate at which enclosed volume grows with energy,
> $$\omega(E) = \frac{\d\Gamma}{\d E} = \frac{1}{h^{3N}N!}\int \d^{3N}q\,\d^{3N}p\;\delta\!\left(E-H(q,p)\right).$$

> **Definition (Shell count).** The number of microstates in the shell of width
> $\delta E$ is
> $$\Omega(E) = \omega(E)\,\delta E = \Gamma(E+\delta E)-\Gamma(E).$$

The delta-function form of $\omega(E)$ follows from differentiating the step
function $\Theta(E-H)$ inside the integral for $\Gamma$. Physically $\omega(E)$
counts microstates per unit energy at energy $E$, and $\Omega(E)$ counts the
microstates actually accessible to a system whose energy is known to lie within
$\delta E$. The normalization constant in the microcanonical density is exactly
this shell count.

For a typical system the enclosed volume is a steeply rising power of the energy.
Writing $\Gamma(E)\propto E^{\alpha N}$ with $\alpha$ a number of order unity — the
monatomic ideal gas has $\alpha=3/2$, since $3N/2$ momentum dimensions each
contribute a half-power — gives
$$
\omega(E) = \frac{\d\Gamma}{\d E} = \frac{\alpha N}{E}\,\Gamma(E),
\qquad
\Omega(E) = \frac{\alpha N\,\delta E}{E}\,\Gamma(E).
$$
The density of states is the enclosed volume multiplied by the enormous factor
$\alpha N/E$, so $\omega$ rises even more steeply with energy than $\Gamma$ does.

$$
% caption: The enclosed volume $\Gamma(E)$ climbs as a high power $E^{\alpha N}$; its derivative, the density of states $\omega(E)$, rises even faster, so nearly all of $\Gamma$ sits in a thin skin just below the energy surface.
\begin{tikzpicture}[>=Latex,font=\footnotesize,scale=1.0]
\definecolor{acc}{HTML}{4A6FA5}
\draw[->,black] (0,0)--(5.8,0) node[right,black]{$E$};
\draw[->,black] (0,0)--(0,4.4) node[above,black]{value};
\draw[acc,very thick] plot[domain=0.3:4.6,samples=60] (\x,{0.09*(\x)^(2.6)});
\draw[black,very thick,densely dashed] plot[domain=0.3:3.75,samples=60] (\x,{0.045*(\x)^(3.6)});
\node[acc] at (5.2,2.55) {enclosed volume};
\node[black] at (3.15,3.85) {density of states};
\node[black,align=left] at (2.5,-0.75) {both grow as high powers of $E$};
\end{tikzpicture}
$$

## Why the three measures share a logarithm

The choice among $\Gamma$, $\omega\,E$, and $\Omega=\omega\,\delta E$ looks
arbitrary, and the arbitrariness matters because entropy will be a logarithm of
one of them. The resolution is that for large $N$ the three logarithms differ by
terms of order $\ln N$, which are negligible beside a logarithm of order $N$.

Take $\Gamma(E)\propto E^{\alpha N}$, so $\ln\Gamma = \alpha N\ln E + \text{const}$,
a quantity of order $N$. Then
$$
\ln\Omega = \ln\Gamma + \ln\!\left(\frac{\alpha N\,\delta E}{E}\right)
= \ln\Gamma + \ln(\alpha N) + \ln\frac{\delta E}{E}.
$$
The first correction is $\ln(\alpha N)\sim \ln N$, and the second is a finite
number set by the experimental energy resolution. Dividing by $N$,
$$
\frac{1}{N}\ln\Omega = \frac{1}{N}\ln\Gamma + O\!\left(\frac{\ln N}{N}\right).
$$
For $N\sim 10^{22}$ the correction is smaller than the leading term by a factor of
about $10^{21}$. The same estimate applies to $\omega\,E$. All three prescriptions
therefore give the same entropy per particle in the thermodynamic limit, and the
value of $\delta E$ drops out. This insensitivity is what lets the microcanonical
count be defined loosely and still yield sharp thermodynamics.

The geometric content is that almost all of the volume of a high-dimensional body
sits in a thin skin near its surface. In $6N$ dimensions the shell of relative
thickness $\delta E/E$ holds essentially the entire enclosed volume, because the
volume of a $D$-ball scales as $R^{D}$ and the fraction within a skin of relative
thickness $\epsilon$ is $1-(1-\epsilon)^{D}\to 1$ as $D\to\infty$. Volume and shell
count coincide not by coincidence but because dimension is astronomically large.

$$
% caption: In a high-dimensional phase space the skin fraction $1-(1-\epsilon)^{D}$ of the enclosed volume lying within a shell of relative thickness $\epsilon$ below the surface rises to one as the dimension $D$ grows, so $\Gamma$ and the shell volume $\Omega$ become the same to leading order.
\begin{tikzpicture}[>=Latex,font=\footnotesize,scale=1.0]
\definecolor{acc}{HTML}{4A6FA5}
\draw[->,black] (0,0)--(5.8,0) node[right,black]{dimension $D$};
\draw[->,black] (0,0)--(0,3.9) node[above,black]{skin fraction};
\draw[black,dashed] (0,3.3)--(5.4,3.3) node[right,black]{$1$};
\draw[acc,very thick] plot[domain=0.1:5.4,samples=80] (\x,{3.3*(1-(0.82)^(6*\x))});
\node[acc] at (3.9,2.35) {rises to 1};
\node[black] at (2.4,0.55) {constant skin depth};
\end{tikzpicture}
$$

## The Boltzmann entropy

With the accessible count in hand, the entropy of the isolated system is defined
as its logarithm.

> **Definition (Boltzmann entropy).** The entropy of an isolated system with
> phase-space shell count $\Omega(E,V,N)$ is
> $$S(E,V,N) = k\ln\Omega(E,V,N),$$
> with $k=1.380\,649\times 10^{-23}\ \mathrm{J\,K^{-1}}$ the Boltzmann
> constant.[^nist]

By the equivalence just established, $S=k\ln\Gamma$ and $S=k\ln(\omega\,E)$ give
the same value to leading order in $N$, so the definition is unambiguous. Two
properties make this the right microscopic object to call entropy.

- **Additivity.** For two independent subsystems the number of joint microstates
  is the product $\Omega=\Omega_1\Omega_2$, because any microstate of the first
  can be combined with any microstate of the second. The logarithm turns the
  product into a sum, so $S=k\ln(\Omega_1\Omega_2)=S_1+S_2$. Entropy is extensive
  across independent parts precisely because it is a logarithm of a count.
- **The second law as counting.** When an internal constraint is relaxed — a
  partition removed, a chemical reaction allowed — the system explores a larger
  accessible region, so $\Omega$ can only grow or stay the same, and $S$ never
  decreases. The approach to equilibrium is the drift toward the macrostate of
  largest multiplicity, which the next lesson makes quantitative.

The Boltzmann constant $k$ is a units conversion, fixing the size of the entropy
quantum so that $S=k\ln\Omega$ matches the thermodynamic entropy measured in
$\mathrm{J\,K^{-1}}$. Were entropy measured in bits, $k$ would be replaced by
$1/\ln 2$ and the formula would read $S=\log_2\Omega$, the Shannon content of a
uniform distribution over $\Omega$ outcomes.

$$
% caption: Two independent subsystems have joint multiplicity $\Omega_1\Omega_2$; the logarithm converts the product of counts into a sum of entropies, so $S=S_1+S_2$.
\begin{tikzpicture}[>=Latex,font=\footnotesize,scale=1.0]
\definecolor{acc}{HTML}{4A6FA5}
\draw[acc,very thick,fill=acc!10] (0,0) rectangle (2.3,2.0);
\node[acc] at (1.15,1.45) {system 1};
\node[black] at (1.15,0.75) {multiplicity};
\draw[black,very thick,fill=black!6] (3.5,0) rectangle (5.8,2.0);
\node[black] at (4.65,1.45) {system 2};
\node[black] at (4.65,0.75) {multiplicity};
\node[black] at (2.9,1.0) {$+$};
\draw[->,black] (6.2,1.0)--(7.4,1.0);
\node[black,align=left] at (9.35,1.35) {counts multiply};
\node[black,align=left] at (9.35,0.65) {$S=S_1+S_2$};
\end{tikzpicture}
$$

## The measure factors and extensivity

The raw integral over coordinates and momenta carries dimensions of
$(\text{action})^{3N}$ and treats the particles as labelled. Two factors correct
both defects, and though their full justification is quantum, they are fixed here
by the requirements the classical theory must meet.

- **The $h^{3N}$ factor** divides the phase-space volume by Planck's constant once
  per conjugate coordinate–momentum pair, rendering $\Gamma$, $\omega$, and
  $\Omega$ pure numbers. Its value $h=6.626\,070\times 10^{-34}\ \mathrm{J\,s}$
  sets the size of the elementary phase-space cell $\Delta q\,\Delta p\sim h$
  demanded by the uncertainty principle: a classical cell finer than $h$ has no
  quantum meaning, so states are counted in units of $h$ per degree of
  freedom.[^kardar-measure] Any other constant with the units of action would
  shift $\ln\Omega$ by an $N$-dependent constant and alter the entropy by an
  additive term; matching the classical entropy to the quantum count of states in
  a box fixes the constant to be $h$.
- **The $N!$ factor** divides out the permutations of identical particles.
  Labelled counting treats an exchange of two identical atoms as a distinct
  microstate, overcounting each physical configuration by the $N!$ ways of
  permuting the labels. Dividing by $N!$ is _correct Boltzmann counting_. Without
  it the entropy of a classical ideal gas fails to be extensive and produces a
  spurious entropy of mixing for identical gases — the Gibbs paradox, taken up
  when the Sackur–Tetrode entropy is derived.

Extensivity is the concrete test. A thermodynamic entropy must satisfy
$S(\lambda E,\lambda V,\lambda N)=\lambda S(E,V,N)$: doubling the system doubles the
entropy. The enclosed volume of an ideal gas without the $N!$ is
$\Gamma\propto V^{N}E^{3N/2}$, whose logarithm contains $N\ln V$, a term that grows
faster than linearly in $N$ at fixed density $V/N$ and so is not extensive.
Inserting $1/N!$ and using Stirling's approximation $\ln N!\approx N\ln N-N$
converts $N\ln V$ into $N\ln(V/N)$, a function of the intensive density that scales
linearly in $N$. The two measure factors are what make $S=k\ln\Omega$ a genuine
thermodynamic entropy rather than a labelled counting artifact.

$$
% caption: The two measure factors: dividing by $h$ per coordinate–momentum pair makes the count dimensionless, and dividing by $N!$ removes the overcount from permuting identical particles, together restoring extensivity.
\begin{tikzpicture}[>=Latex,font=\footnotesize,scale=1.0]
\definecolor{acc}{HTML}{4A6FA5}
\draw[very thick] (0,0.4) rectangle (3.0,1.7);
\node[black,align=center] at (1.5,1.35) {raw integral};
\node[black,align=center] at (1.5,0.8) {action$^{3N}$; labelled};
\draw[->,acc,very thick] (3.1,1.05)--(4.5,1.05);
\node[acc,above] at (3.8,1.1) {$\frac{1}{h^{3N}}$};
\draw[very thick] (4.6,0.4) rectangle (7.0,1.7);
\node[black,align=center] at (5.8,1.35) {dimensionless};
\node[black,align=center] at (5.8,0.8) {still labelled};
\draw[->,acc,very thick] (7.1,1.05)--(8.5,1.05);
\node[acc,above] at (7.8,1.1) {$\frac{1}{N!}$};
\draw[very thick] (8.6,0.4) rectangle (11.0,1.7);
\node[black,align=center] at (9.8,1.35) {extensive $S$};
\node[black,align=center] at (9.8,0.8) {indistinguishable};
\end{tikzpicture}
$$

## The microcanonical recipe

The microcanonical ensemble reduces the thermodynamics of an isolated system to a
counting problem with a fixed sequence of steps.

```algorithm
Given the Hamiltonian H(q,p) and fixed E, V, N:
  1. Form the enclosed volume
        Gamma(E) = (1 / h^{3N} N!) * integral over H <= E of dq dp.
  2. Differentiate to get the density of states
        omega(E) = d Gamma / d E,
     and the shell count Omega(E) = omega(E) * deltaE.
  3. Take the entropy
        S(E, V, N) = k * ln Omega(E, V, N),
     using ln Omega = ln Gamma to leading order in N.
  4. Read all thermodynamics from the derivatives of S:
        1/T   = (partial S / partial E) at fixed V, N,
        P/T   = (partial S / partial V) at fixed E, N,
        -mu/T = (partial S / partial N) at fixed E, V.
```

Step 4 is the content of the next lesson: the derivatives of the entropy with
respect to its natural variables $E$, $V$, and $N$ define temperature, pressure,
and chemical potential, and reproduce the fundamental relation of thermodynamics.
The microcanonical program is thus complete in principle — every equilibrium
property of an isolated system is a derivative of a single counting function — even
where the counting integral is too hard to do in closed form.

## Summary

- The fundamental postulate assigns equal probability to every microstate on the
  energy shell $E\le H\le E+\delta E$ of an isolated system, giving the uniform
  microcanonical density $\rho=1/\Omega$ inside the shell.
- Three measures of accessible phase space — the enclosed volume $\Gamma(E)$, the
  density of states $\omega(E)=\d\Gamma/\d E$, and the shell count
  $\Omega=\omega\,\delta E$ — have logarithms that agree to $O(\ln N)$, so the
  entropy is insensitive to which is chosen and to the value of $\delta E$.
- The Boltzmann entropy $S=k\ln\Omega$ is additive across independent systems and
  non-decreasing when constraints are relaxed, recovering the second law as the
  growth of multiplicity.
- The measure factors $h^{3N}$ (dimensionless counting, one cell of size $h$ per
  degree of freedom) and $N!$ (indistinguishability) make $S$ extensive; without
  the $N!$ the ideal-gas entropy is non-extensive and the Gibbs paradox appears.

[^reif-post]: Reif, _Fundamentals of Statistical and Thermal Physics_ (Waveland reprint, 2009), Ch. 3 §3.6–3.7 states the postulate of equal a priori probabilities and the role of accessible states; <https://www.waveland.com/browse.php?t=650>.

[^kardar-measure]: Kardar, _Statistical Physics of Particles_ (Cambridge, 2007), Ch. 4 §4.3–4.4; the $h^{3N}$ and $N!$ measure factors and the microcanonical entropy are developed from MIT OCW 8.333, <https://ocw.mit.edu/courses/8-333-statistical-mechanics-i-statistical-mechanics-of-particles-fall-2013/>. See also Pathria & Beale, _Statistical Mechanics_ (4th ed., Elsevier, 2021), §1.4 and §2.1–2.4.

[^nist]: CODATA recommended values: $k=1.380\,649\times10^{-23}\ \mathrm{J\,K^{-1}}$ (exact, SI 2019) and $h=6.626\,070\,15\times10^{-34}\ \mathrm{J\,s}$ (exact); NIST, <https://physics.nist.gov/cuu/Constants/>.
