Microcanonical Ensemble and Entropy
The microcanonical ensemble describes an isolated system whose energy, volume, and particle number are fixed macroscopically. It is the foundational ensemble in Schwabl's construction: equilibrium is postulated as equal weight over all accessible microstates in a narrow energy shell, and the other ensembles are derived by allowing a subsystem to exchange energy or particles with a much larger isolated environment.
Its central idea is Boltzmann's: entropy is the logarithm of accessible microscopic multiplicity. The logarithm converts multiplication of independent state counts into addition of entropies, which is exactly what thermodynamics requires for macroscopic subsystems.
Definitions
For a classical isolated system with Hamiltonian , define the energy-shell density of states
The factor makes the phase-space count dimensionless, and removes the Gibbs overcounting of identical classical particles. A related integrated volume is
For macroscopic systems, defining entropy using or differs only by subextensive corrections:
Thermodynamic variables are derivatives of entropy:
The microcanonical probability density is
with the same measure convention as above.
Key results
The equal a priori probability postulate says that all microstates compatible with the macroscopic constraints are assigned equal statistical weight. This is not a statement that all phase-space points are dynamically visited in a literal finite time; it is the equilibrium hypothesis for an isolated macrostate.
If two weakly interacting isolated systems and share total energy , the probability that has energy is proportional to
The maximum of satisfies
or . Thus equality of temperature is not added from thermodynamics; it follows from maximizing multiplicity.
The width of the distribution is obtained by expanding entropy around the maximum. Since heat capacities are extensive, the standard deviation of subsystem energy scales like while the energy scales like . This is the microcanonical root of ensemble equivalence.
For the classical ideal gas,
the momentum-space volume is a -dimensional sphere. The entropy becomes, after Stirling's approximation, the Sackur-Tetrode form
up to the usual convention about using or . Differentiating gives
These equations show the deductive structure Schwabl stresses: thermodynamics appears as derivatives of microscopic counting.
The choice between and is usually harmless in the thermodynamic limit but conceptually important in small systems. counts states on an energy shell, while counts states below an energy. Their logarithms differ by terms involving the density-of-states growth scale. For macroscopic systems with short-range interactions, entropy is extensive and such differences are negligible compared with . For few-body systems or systems with unusual spectra, however, the distinction can affect definitions of temperature and heat capacity.
The concavity of entropy is the statistical statement of thermodynamic stability. If two subsystems exchange energy, the total entropy
must have a maximum at equilibrium. The first derivative gives . The second derivative condition gives
For ordinary systems this is equivalent to positive heat capacities. Long-range interacting systems can violate the usual additivity assumptions and show microcanonical features, such as negative heat capacity, that are not compatible with the canonical ensemble.
The microcanonical ensemble also clarifies adiabatic invariance. For a quasistatic change of an external parameter, an isolated system remains on an energy shell whose enclosed phase-space volume changes in a controlled way. This is the mechanical root of reversible adiabatic thermodynamics. In practice, the wall motion or parameter change must be slow compared with microscopic equilibration but fast enough to avoid heat exchange with the environment.
A final caution is that "equal probability" applies to microstates in the correct measure, not to arbitrary macroscopic variables. For an ideal gas, equal weight in phase space does not mean equal probability for each particle speed. The speed distribution includes the geometric volume of momentum shells, which is why the Maxwell speed density contains .
The microcanonical ensemble is therefore both narrower and stronger than the slogan "all states are equally likely." It specifies the constraint surface, the measure on that surface, and the macroscopic equivalence class being described. If a container is split by an insulating wall, the relevant constraints include the separate energies of the two sides. If the wall conducts heat, only the total energy is fixed and the most probable energy division is found by maximizing total entropy. Changing constraints changes the ensemble.
This is the statistical version of thermodynamic preparation. The same Hamiltonian can represent different experiments depending on which quantities are controlled, isolated, or allowed to fluctuate.
Additivity is the hidden assumption behind most of the familiar thermodynamic conclusions. If two weakly coupled parts have entropies that add, then maximizing total entropy gives sharp equilibrium conditions. Surface terms, long-range interactions, and small-system corrections can spoil exact additivity. Schwabl's graduate-level presentation keeps these qualifications visible because they mark the boundary between textbook thermodynamics and active statistical-mechanics problems.
Visual
| Entropy derivative | Thermodynamic variable | Meaning |
|---|---|---|
| energy sharing at equilibrium | ||
| response to boundary displacement | ||
| cost of adding particles | ||
| second derivatives of | stability conditions | positive heat capacity, concavity |
Worked example 1: Temperature of a two-level spin system
Problem: independent spins in a magnetic field have energies and . If spins are in the upper level, find the microcanonical temperature.
Method:
- The total energy is
so
- The multiplicity is
- Stirling's approximation gives
- Differentiate with respect to :
Since ,
Checked answer: if , then . If , the logarithm is negative and the spin system has negative absolute temperature, possible because the spectrum is bounded above.
Worked example 2: Ideal gas pressure from entropy
Problem: Use the entropy dependence to derive the ideal-gas law.
Method:
- Start from the microcanonical pressure definition:
- Differentiate:
- Therefore
- Multiply by :
Checked answer: no kinetic-theory wall-collision argument was needed. The pressure is the entropy gain available when volume increases.
Code
import math
def spin_entropy(N, n, kB=1.0):
return kB * (math.lgamma(N + 1) - math.lgamma(n + 1) - math.lgamma(N - n + 1))
N = 200
eps = 1.0
for n in [60, 100, 140]:
E = eps * (2 * n - N)
# central difference in energy using n +/- 1
dS_dE = (spin_entropy(N, n + 1) - spin_entropy(N, n - 1)) / (4 * eps)
T = 1.0 / dS_dE if dS_dE != 0 else float("inf")
print(n, E, T)
Common pitfalls
- Omitting the factor for identical classical particles, which leads to the Gibbs paradox and nonextensive entropy.
- Treating the energy shell width as physically important for macroscopic thermodynamics. It affects normalization but not leading thermodynamic derivatives.
- Forgetting that negative temperatures require an upper-bounded spectrum; they do not occur for an ideal gas with unbounded kinetic energy.
- Confusing with . They are closely related for large systems but not identical in small-system calculations.
- Assuming the microcanonical ensemble is only classical. Quantum mechanically, it is a normalized projector onto an energy window.