Why does a gas spread through an available container? One part of the answer is counting: a nearly uniform macrostate can be realized by vastly more microstates than a macrostate with every particle crowded into one corner. Boltzmann's entropy formula turns that multiplicity into entropy. The useful insight is that a large entropy measures how many microscopic realizations fit a specified macroscopic description, rather than how untidy a picture looks.
For a specified macrostate containing accessible, equally likely microstates, write
Here is the Boltzmann constant, and is the natural logarithm, also written in this article's title. The count is dimensionless; entropy has units of energy divided by temperature. Always specify the macrostate, the constraints and the model's microscopic resolution before counting. A microcanonical ensemble provides a familiar equilibrium setting for the equal-probability assumption. [ref]
The natural logarithm compresses an enormous count into a manageable number and makes products of counts into sums of entropies; see additivity of Boltzmann entropy. With this counting convention, one allowed microstate has zero Boltzmann entropy. This zero refers to the chosen model and resolution; it does not by itself assign an absolute entropy to a real material.
The microcanonical ensemble describes an isolated system at fixed energy, volume and particle number. The canonical ensemble describes fixed particle number and volume with heat exchange at a prescribed temperature. The grand canonical ensemble additionally allows particles to exchange with a reservoir, prescribing temperature, volume and chemical potential. Their respective equilibrium probabilities are uniform on the accessible energy shell, proportional to , and proportional to . For stable short-range systems in the thermodynamic limit, concentration of relative energy and particle-number fluctuations and concavity of entropy make their bulk predictions equivalent; phase coexistence or nonadditive interactions require care.
For the microcanonical case restrict the allowed states to the fixed-energy shell of size , imposing outside it. Maximize the Gibbs entropy subject to . A Lagrange multiplier gives on the shell, so
For the canonical case impose both normalization and . Stationarity of gives . Thus
The last identification follows from . Entropy is strictly concave in the probabilities, so these stationary distributions are maxima.
For the independent three-level particles, put and . The full partition function is because the particles occupy labeled lattice sites. Differentiation gives
The heat capacity also equals , confirming positivity. As , the three occupations become equal:
As , all particles occupy their unique lowest state:
A negative temperature is possible because the total energy is bounded above. An equilibrated population inversion has more particles at than at . For example probabilities correspond to and mean energy . This is a macroscopic occupation pattern; an isolated individual microstate is not itself assigned a temperature. At the positive zero-temperature limit the ground state is unique, so the entropy tends to zero: the system obeys the third law of thermodynamics. The negative-temperature branch likewise approaches the unique highest-energy state as ; it does not introduce residual ground-state entropy.
The microcanonical ensemble assigns equal probability to accessible quantum states in a narrow energy shell of an isolated system with fixed energy, particle number and external parameters. To derive the canonical ensemble, put a small system in weak thermal contact with a much larger isolated bath. If the small-system state has energy , its probability is proportional to the number of bath states. Expanding the bath entropy gives , since . Negligible interaction energy and an effectively constant bath temperature therefore give . The microcanonical ensemble suits an isolated fixed-energy system; the canonical ensemble suits a system exchanging energy with a thermostat at fixed temperature, with particle number still fixed.
For one atom, summing the finite geometric series over gives the partition function
At the ratio is understood by continuity as . Logarithmic differentiation gives the mean magnetic dipole moment
This is odd in , has small- expansion , and saturates at . The requested common graph is plotted in units of : its ordinate is , so multiplication by gives . The normalized slopes at zero are and the limits are .
The magnetic susceptibility is
Equivalently it is . For , the apparent singular terms cancel, yielding Curie law
For fixed nonzero , and integer , the first excited magnetic level is separated from the aligned ground state by . Its exponentially small occupation gives
The moments are saturated, so changing the magnetic field hardly changes their alignment. This is a fixed-nonzero-field low-temperature limit. At exactly , differentiating first gives the Curie expression for every , which diverges as ; the two limits do not commute in this noninteracting model. For both moment and susceptibility vanish identically.
In the microcanonical ensemble, the microcanonical energy-shell entropy is the Boltzmann entropy
For a macroscopic system, changing the small energy resolution by a fixed factor changes only by a nonextensive additive term, while . Its relative effect therefore vanishes in the thermodynamic limit.
The thermodynamic temperature, pressure, and chemical potential are defined in the entropy representation by
Thus
or, equivalently, the first law of thermodynamics in fundamental form is
The microcanonical ensemble fixes energy, volume and particle number; the canonical ensemble fixes temperature, volume and particle number; and the grand canonical ensemble fixes temperature, volume and chemical potential while allowing particle exchange. For macroscopic systems with short-range interactions, away from phase coexistence and other nonconcave regimes, relative fluctuations vanish in the thermodynamic limit and the ensembles give equivalent local thermodynamics.
The microcanonical ensemble describes an isolated system with fixed energy, volume, and particle number. It assigns equal probabilities to the accessible microstates in the chosen narrow energy shell. The canonical ensemble describes a system in thermal contact with a large heat reservoir: its temperature, volume, and particle number are fixed, while its energy can fluctuate.
For the Gibbs entropy
first maximize subject only to over accessible microstates. A Lagrange multiplier gives
so every is equal. Normalization yields the microcanonical ensemble
For the canonical ensemble, impose both normalization and the mean-energy constraint . Stationarity of
gives . The canonical partition function fixes , so
Thermodynamic consistency identifies . This is the maximum-entropy derivation of equilibrium ensembles.
The microcanonical ensemble describes an isolated system at fixed energy , volume , and particle number , assigning equal weight to accessible states in a narrow energy shell.
The canonical ensemble describes a system that can exchange energy with a heat reservoir at fixed temperature , while and remain fixed. A microstate has probability
The grand canonical ensemble allows exchange of both energy and particles at fixed , , and chemical potential . Its state weights are
The choice is irrelevant for bulk thermodynamic observables in the thermodynamic limit when the system is additive, has sufficiently short-range interactions, and lies away from singular phase-coexistence regimes. Then relative energy and particle-number fluctuations vanish as the system size grows. These are the standard conditions for equivalence of statistical ensembles.
A microstate specifies the microscopic state: classically the positions and momenta of all particles, or quantum mechanically an allowed many-body state. A macrostate specifies a few coarse variables such as energy, volume and particle number. Many microstates can give the same macrostate. A statistical ensemble is a probability assignment over hypothetical copies prepared with the same macroscopic constraints; it does not require a sample to be literally divided into many physical copies. An observable's ensemble mean is , with an integral replacing the sum in classical phase space.
For an isolated system at fixed , the microcanonical ensemble assigns equal probability to accessible microstates in a narrow energy shell. If their number is , the Boltzmann entropy is . Thermal contact between two initially isolated systems allows energy to be shared while their sum stays fixed. The most probable division maximizes , so equilibrium requires equal . This gives the statistical temperature definition
For positive temperature, energy tends to flow from lower entropy slope to higher entropy slope until those slopes agree. The narrow energy-shell width represents macroscopic resolution; it must not exclude the physically accessible states.
For a small subsystem exchanging energy with a much larger bath, the bath has energy when subsystem microstate has energy . Expanding its entropy gives . Counting compatible bath states therefore yields the Boltzmann distribution and canonical ensemble:
The exponential weights individual microstates. An energy level of degeneracy has total probability ; a more degenerate excited level can outweigh one ground-state level even though each of its microstates is less probable. The Gibbs entropy gives . The equilibrium energy variance is , linking measurable fluctuations to a macroscopic response.
If particle exchange is also allowed, a reservoir fixes and chemical potential . The grand canonical ensemble weights a state by , with . Mean particle number is , while volume remains a constraint in this version. Thus the ensemble follows the physical exchange conditions: fixed energy, thermal contact, or thermal and particle contact.
In ordinary large short-range systems, relative fluctuations often decrease as and the ensembles give the same bulk thermodynamics away from singular limits. Finite systems, critical fluctuations and long-range interactions require care. Interpreting a time average as an ensemble average additionally requires appropriate sampling or mixing dynamics; it is not guaranteed solely by naming an ensemble. thermal equilibrium probability assignments do not describe every driven or relaxing state.
Entropy is a thermodynamic state function. For a reversible heat transfer, ; the Clausius inequality generalizes this to irreversible processes. The combined entropy of a system and its surroundings does not decrease. A subsystem can lose entropy by exporting heat or matter, so the second-law statement must specify the whole isolated combination. In a simple compressible system,
which identifies temperature, pressure and chemical potential as derivatives of the energy representation of the state function. Thermodynamic equilibrium maximizes entropy under fixed total energy, volume and particle number. A heat reservoir instead leads to minimizing the Helmholtz free energy at fixed , or the Gibbs free energy at fixed .
Statistical mechanics explains the state count. In a microcanonical ensemble, equally probable compatible microstates give Boltzmann's entropy formula, . With general discrete probabilities, the Gibbs entropy is
The microcanonical formula follows by setting every nonzero probability to . For a canonical ensemble, , so
This turns microscopic energy levels and their populations into a measurable thermodynamic quantity. Classical phase-space counting needs a consistent microscopic normalization and indistinguishability convention; quantum state counting supplies that normalization. Independent systems have multiplicative state counts and therefore additive entropies.
For an ideal gas freely expanding from volume to in an insulated enclosure, energy remains fixed while each particle gains twice the accessible position volume. The state count increases by , giving . The actual irreversible process transfers no heat. A reversible isothermal comparison path transfers heat and computes the same entropy change because the initial and final thermodynamic equilibrium states are the same.
Calorimetry supplies another connection to experiment: at fixed pressure and within one phase, , with latent-heat contributions at first-order transitions. The third law of thermodynamics fixes for an ideal perfect crystal with a unique ground state. Degeneracy or frozen disorder can produce residual entropy. Entropy thus links heat-capacity measurements, phase thermodynamic equilibrium and the number of accessible microscopic configurations.
An statistical ensemble specifies probabilities of microstates under particular macroscopic constraints. It represents statistical information about a system; the reservoir constraints of equilibrium ensembles specify what it can exchange with its surroundings.
The thermodynamic potentials generate mean quantities and response functions. For example, canonical energy variance is . With short-range interactions and stable bulk phases, relative fluctuations usually vanish for large systems and these ensembles give equivalent bulk predictions after matching their mean variables. Finite systems, constraints and long-range interactions require greater care; the ensembles retain different fluctuating variables.[ref]
An isolated energy shell gives the microcanonical ensemble; a heat bath fixes for the canonical ensemble; a heat and particle reservoir fixes for the grand canonical ensemble. Constraints determine the allowed fluctuations and which thermodynamic potential is useful.
Statistical ensemble 2026-10-14
A statistical ensemble describes hypothetical copies of the same system under specified constraints, with a probability distribution over their microstates. An ensemble average is an expected value across those copies. The canonical ensemble fixes temperature and particle number while allowing energy exchange; the microcanonical ensemble fixes energy, and the grand canonical ensemble also allows particle exchange. These choices specify different physical preparations. [ref]
Statistical mechanics 2026-10-13
Statistical mechanics connects microstates to macrostates through probability distributions. Its microcanonical ensemble, canonical ensemble and grand canonical ensemble specify different constraints on exchanges with the surroundings. An ensemble average describes repeated preparations under those constraints; it need not be the value in every individual preparation.
This makes the subject useful whenever tracking every microscopic detail would obscure the question being asked. To predict a heat capacity, we need how the expected value of energy changes with temperature, rather than a record of every unit's state. The partition function packages that calculation into one reusable object.
In his 1902 book, J. Willard Gibbs systematically developed the canonical ensemble. His preface contrasts following one system through time with studying a collection of systems with different microscopic conditions. Chapter IV defines the canonical ensemble through an exponential function of energy and establishes its normalization. This supplied a general strategy for predicting collective measurements by averaging over possible microscopic conditions, with the partition function organizing the calculation. [ref] [ref]