Boltzmann distribution Created 2026-09-28 Updated 2026-10-14
The Boltzmann distribution assigns probabilities to individual microstates in a canonical ensemble, a statistical ensemble for thermal contact. The system exchanges energy with a thermal reservoir at fixed positive absolute temperature , while its particle number and external parameters, such as volume, stay fixed. The thermal reservoir is large enough that these exchanges barely change its temperature; the coupling permits thermal equilibrium but contributes negligible interaction energy. All the microstates considered have the same . No chemical potential term is needed in their weights; fixed does not imply that the chemical potential is zero.
For a finite discrete set of microstates with energies , write
Here is the Boltzmann constant, is the inverse temperature, is a Boltzmann factor, and is the partition function. The Boltzmann factor is a weight; dividing by the partition function makes it a probability. [ref]
The useful surprise is that a fixed temperature still permits thermal fluctuations in the system's energy. The Boltzmann distribution predicts their probabilities and expected values without tracking every microscopic exchange. Its exponential function also makes rare excited microstates sensitive to temperature: an energy gap much larger than gives strong Boltzmann suppression, while warming increases their relative populations. A population ratio can therefore reveal a gap or serve as a thermometer, provided thermal equilibrium and the relevant state degeneracies are known.
Historically, Josiah Willard Gibbs's Elementary Principles in Statistical Mechanics (1902) presents the canonical ensemble in Chapter IV. His equations 90–92 give an exponential function of energy and its normalization, in classical phase space. This classical formulation exhibits the same weighting principle. [ref] [ref]
Group microstates by their energy . The state degeneracy counts how many microstates have that energy; their aggregate probability is
Here is the probability of the macrostate retaining only energy, while is the probability of one individual microstate. For two such macrostates,
Counting more microstates can compensate for a smaller Boltzmann factor. Omitting the state degeneracy confuses a sum over microstates with a sum over distinct energies. [ref]
Consider two distinguishable, noninteracting two-level systems, each with energies and . Their four microstates have total energies . Thus the three energy macrostates have state degeneracies . This is a stipulated finite model, not a measured material.
Set . The four individual Boltzmann factors are , so the partition function and aggregate probabilities are
Each of the two middle microstates has probability , while their shared energy macrostate has probability .
At the temperature satisfying , the Boltzmann factor is and the partition function is . Therefore
The middle energy is as likely as the ground state energy because its state degeneracy is twice as large. Yet each individual middle microstate is only half as likely as the ground state microstate. The diagram places the four energies beside their individual probabilities, then shows the sums within each macrostate.
Figure 1.
Four microstates and three energy macrostates at a gap of
. Details.
The expected value of energy follows directly by weighting the three possible energies:
At this is . An individual energy measurement still returns , or ; the expected value describes the ensemble average, rather than a fourth possible measured energy.
Keep the gap fixed and vary positive temperature. With , the Boltzmann factor is . In the four-microstate example, as , : the unique ground state has probability tending to one, and the other microstates have probabilities tending to zero. If several microstates instead shared the lowest energy, their state degeneracy would split that limiting population equally.
As in this fixed finite model, all four individual Boltzmann factors tend to one, so all four individual microstates have probability tending to . The three aggregate probabilities instead approach
The equal-population limit applies to this finite set of microstates. An infinite collection of microstates cannot all have the same positive normalized probability, so the statement cannot be extended to an unbounded energy spectrum. Real systems may also acquire additional accessible microstates as temperature rises.
The plotted crossing occurs at , where . For larger positive temperatures, the middle macrostate is more probable than the lowest-energy macrostate, although the lowest-energy individual microstate remains more probable than either individual middle microstate. The expected value of energy rises from zero toward in this finite model.
Canonical partition function Created 2026-09-24 Updated 2026-10-14
The partition function is the sum of the Boltzmann weights over individual microstates. Dividing by it makes their probabilities sum to one. When summing distinct energies instead, include the state degeneracy: . For two independent distinguishable two-level systems,
The middle coefficient counts two microstates, exactly as in the preceding figure. For such units, ; this factorization requires additive energy and independence, and generally fails with interactions.
The usefulness goes beyond normalization. For fixed energies, derivatives of the natural logarithm of the partition function yield measurable quantities:
Here is internal energy, the second expression is the energy variance, and is Gibbs entropy. For one two-level system at fixed , its heat capacity and entropy are
At , these give , and . For independent units, all three quantities add.
The figure shows why heat capacity peaks. At low temperature, the excited energy is rarely occupied; at high temperature, the probabilities are almost equal and further warming barely changes internal energy. The largest response lies between these limits, at , where . Meanwhile entropy rises from zero toward , reflecting two equally likely alternatives. This high-temperature limit belongs to the stipulated two-level system; extra accessible energy eigenstates would change it.
Equipartition theorem Created 2026-09-24 Updated 2026-10-20
The equipartition theorem says that each independent quadratic term in a Hamiltonian described by classical mechanics has mean energy in a canonical ensemble. Here is the Boltzmann constant and the absolute temperature. Count terms in the energy, rather than vaguely counting everything that can move: one harmonic oscillator has one position degree of freedom but TWO quadratic terms, one in momentum and one in displacement.
A precise sufficient setting is with , where is one of the canonical variables, denotes all remaining variables, and the phase space integration measure factors as . The range of is the whole real line, independently of ; there is no constraint coupling its allowed values to other variables. The partition function must be finite, and the relevant expected values must exist. The Boltzmann factor then gives
The probability density function is a normal distribution with variance . A larger coefficient narrows the fluctuations enough to cancel its greater energy cost. This is why the mean contribution is independent of mass or spring constant.[ref]
For a proof outline, the one-variable Gaussian integral is , so . More generally, integration by parts in a canonical variable gives when its boundary term vanishes and the integrals converge. For this is twice its mean energy. At a finite hard boundary the boundary term need not vanish; hard-wall correction to harmonic equipartition illustrates the resulting departure. A constraint, a nonquadratic potential energy, or a noncanonical integration measure therefore requires its own calculation. The theorem is an ensemble average, not equality of instantaneous energies, and applying it to a recorded trajectory requires equilibration and sufficient sampling.
For a classical one-dimensional harmonic oscillator, with positive mass and spring constant ,
The origin is the equilibrium position. Its heat capacity is at fixed , not . Although the two mean energies agree, their measured amplitudes do not: and . In a harmonic optical trap, the position measurement observes the potential energy contribution; it does not measure both contributions by observing alone.[ref]
For particles in a three-dimensional classical monatomic gas, neglect interactions and thermally accessible internal excitations. Its three translational momentum terms give internal energy , heat capacity at constant volume , and heat capacity at constant pressure . Per mole, replace by the molar gas constant . For example, using stipulated , the molar heat capacity at fixed volume is . These results assume a dilute, nonrelativistic ideal gas with classical translational statistics, rather than a quantum degeneracy regime.
For an ideal gas of diatomic molecules, modeled as two chemical atoms with a bond, there are three translational quadratic terms, two accessible rotational kinetic energy terms for changes of bond orientation, and one bond-stretching harmonic oscillator with two quadratic terms. Rotation about the bond axis is not an additional active mode in this linear-molecule model. The three familiar limits of heat capacity at constant volume are
Corresponding molar heat capacities are , and . Counting the stretching harmonic oscillator only once as would give the wrong last value.[ref]
The frozen regimes require quantum mechanics. In the simple molecular rotation model, with state degeneracy , , and moment of inertia . For the bond-stretching quantum harmonic oscillator, with angular frequency and from the Planck constant. When , the three limits above correspond to , , and , provided translational motion remains classical. They are smooth crossovers, not abrupt switches. Real molecules can have different allowed rotational populations; at high temperature, thermal dissociation, internal excitations and nonharmonic bond motion can invalidate the fixed-molecule model before its last limit is reached.[ref]
For a quantum harmonic oscillator with fixed , put . Its exact mean energy and heat capacity are
At , the mean energy approaches and approaches . At , thermal excitation is exponentially suppressed and tends to zero, although the zero-point energy survives. Frozen thus means little thermal response, not zero motion or zero energy.[ref]
Figure 1. . Original computed equilibrium curves, not measured gas data. Left: approaches its classical value 1 as grows. Right: for stipulated . The rotational partition function is with every nonnegative integer allowed; is the variance of divided by . No molecular nuclear-spin restrictions, thermal dissociation or nonharmonic effects are modeled. Horizontal guides mark the three limiting values, not exact plateaus at finite temperature. Details.
A motivating measurement is thermal calibration of an optical trap. A focused laser through a microscope objective confines a bead in water; imaging or a quadrant photodetector records a position time series. Gieseler and colleagues describe a polystyrene bead of radius at , a trapping laser, and photodetector acquisition at . Their recorded bead continues undergoing Brownian motion; higher trapping power produces a narrower equilibrium position distribution. Infer the centered variance, not a squared distance from an arbitrary camera origin:
The normal distribution position histogram and agreement with dynamical calibration methods support the local harmonic optical trap interpretation. For a stipulated example, and imply . This calculated scale is not an experimental reading.[ref]
Position calibration is essential: if detector output has conversion , its physical variance is . An unknown scale cannot be determined together with from that one variance. A complementary calibration demonstrated by Tolić-Nørrelykke and colleagues combines the power spectrum of thermal motion with the bead response to known sinusoidal motion of a translation stage. The driven response supplies an additional length scale, and their method does not require bead size, liquid dynamic viscosity or wall distance as inputs. It still uses a thermal dynamical model; agreement between methods is a consistency check, not a theory-free proof of equipartition theorem.[ref]
The readout itself can hide fluctuations. Wong and Halvorsen used a optical trap and adjustable-exposure CCD imaging of a bead in water. They varied exposure and trapping power, held the bead away from the nearest wall, adjusted illumination to maintain comparable images, and measured tracking noise using a stuck bead. The measured variance fell as exposure increased; corrected results agreed with their time-averaging model. For a stationary overdamped harmonic optical trap, with optical trap relaxation time , an exposure of length measures . Its ideal noise-free variance is
For , : using the blurred variance in the uncorrected formula overestimates by . At , the calculated factor is . Additive tracking noise instead raises the measured variance and biases the inferred downward if left uncorrected.[ref]
Figure 2.
Equal mean quadratic energies with unequal fluctuations, and exposure-biased readout
. Original analytic models, not bead trajectories or measured curves. Left: equal-energy contours in scaled phase space, with , and , for . Increasing stiffness narrows position fluctuations but leaves both mean quadratic contributions equal to . Right: the exact noise-free exposure reduction ; at , and naive inferred stiffness is times true stiffness. The exposure calculation assumes stationary overdamped harmonic Brownian motion and uniform averaging. Details.
Useful controls are to record over many optical trap relaxation times, compare blocks for drift, calibrate the position scale, measure fixed-bead noise, vary exposure, and check the position histogram for departures from a normal distribution. A sparse sequence of accurate instantaneous positions can estimate an equilibrium variance; a long exposure averages away motion even if many frames are collected. Flow, appreciable laser heating, escape from the harmonic region or nonconservative forces can break the assumed thermal equilibrium. Inferring by imposing equipartition theorem is a calibration, whereas testing the relation requires an independently established stiffness and position scale. The beautiful practical connection is that microscopic randomness can set a force scale: once calibrated, a small constant applied force displaces the mean by . The same quadratic-term counting predicts macroscopic heat capacity and makes microscopic fluctuations useful measurements.
Four-spin Ising ring Created 2026-10-18 Updated 2026-10-20
Take a cycle graph with four labeled graph vertices and four distinct edges . Set , , and impose periodic boundary conditions by writing . The square drawing represents a one-dimensional ring: it has no diagonal interactions and is not a two-dimensional lattice.
Call an edge between opposite Ising spins a domain wall. If is their number, the four bond products sum to , so the energy is
Each domain wall costs relative to an aligned bond. Returning around the ring must return to the starting Ising spin, so is even: equivalently, . Choosing an even set of wall edges and then choosing determines the entire pattern. The state degeneracy is therefore , using a binomial coefficient.
Domain walls State degeneracy Energy Total Boltzmann factor weight
The twelve middle microstates consist of eight patterns with one exceptional Ising spin and four patterns with two adjacent Ising spins and two adjacent Ising spins. The two alternating patterns have four domain walls. All microstates are shown below.
Figure 1.
All sixteen configurations of the four-spin Ising ring, grouped by domain walls and energy
. Original enumeration of the four distinct ring edges. Blue vertices denote Ising spins, orange vertices denote Ising spins, and dashed red edges mark domain walls. These are exact model configurations. Details.
Writing , the partition function and the probability of each energy class are
For an original exact example, choose . Then , , and , , . Each aligned microstate has probability , each middle microstate , and each alternating microstate : multiply by state degeneracy before comparing whole classes. As , all sixteen microstates become equally likely, but the class probabilities approach . As , the two all-aligned microstates each have limiting probability .
Macrostate Created 2026-09-24 Updated 2026-10-14
A macrostate groups microstates sharing prescribed coarse data. The grouping depends on what is retained: here retain only total energy. For the two distinguishable two-level systems, the macrostates have state degeneracies . Although two units are not macroscopic in size, they make this loss of information visible: knowing does not tell us which unit is excited.
At inverse temperature , each unit's excited-state probability is . Their independence gives microstate probabilities in the order above. Adding within each macrostate gives
The total expected value of energy is therefore , matching two units each with expected value of energy . Equal state degeneracies would give the wrong answer: macrostate probabilities combine counting with the Boltzmann factor. At very high positive temperature, all four microstates become equally likely, but these three macrostate probabilities approach .
Figure 1.
Four microstates grouped into three energy macrostates, with their thermal probabilities
. Details.
A uniform magnetic field quantizes the transverse cyclotron motion of an electron. With electron charge and the Landau gauge for a uniform magnetic field , minimal coupling gives
For an eigenstate of with eigenvalue , this is a quantum harmonic oscillator centered at , with cyclotron frequency . Its Landau levels are
The oscillator width is set by the magnetic length . In three dimensions, the free motion parallel to the magnetic field adds . The electron spin adds a Zeeman splitting . In a crystal the appropriate band effective mass and effective spin factor replace the free-electron values.
Changing moves the orbit center without changing the energy. In a rectangle , adjacent allowed centers differ by . Requiring the center to lie in the sample gives the degeneracy of a Landau level, per spin,
This large state degeneracy, together with the increasing level spacing, rearranges the occupied states as the magnetic field changes. To resolve the Landau levels, thermal broadening and disorder broadening should both be small compared with .
The de Haas-van Alphen effect is an oscillation of magnetization as successive Landau levels pass the Fermi energy. The Shubnikov-de Haas effect is the corresponding oscillation in longitudinal magnetoresistance. For a simple orbit, successive crossings occur periodically in ; the general relation to the extremal orbit area is Onsager quantization. These measurements reveal the geometry and effective masses of a Fermi surface.
In a two-dimensional electron system, filling an integer number of resolved levels leads to the integer quantum Hall effect, with
and very small longitudinal resistivity on a plateau. Disorder localization helps produce finite plateau widths. Cyclotron resonance provides another direct signature: radiation is absorbed at the adjacent-level spacing .
Use the standard canonical anticommutation relations for the two distinct fermionic orbitals. In particular , in addition to the relations explicitly listed in the paper; these mixed relations are part of the usual two-orbital fermionic Fock space interpretation. Normalize the original vacuum state by and fix the ordering
The canonical anticommutation relations give and . Consequently the number operator is an orthogonal projector:
The same holds for . Hence each eigenvalue obeys and is either or , expressing the Pauli exclusion principle. Also , so the two number operators have a simultaneous orthonormal basis of Fock states:
Each number operator has eigenvalues , each with state degeneracy two. For , the zero eigenspace is spanned by and the unit eigenspace by ; for , these are respectively and . Any normalized linear combination within one such eigenspace is also an eigenstate of that number operator.
The ordering convention will matter below: and
Let , and . Substitution of the Bogoliubov transformation, with normal ordering using and , gives
For example, the term in contributes ; these constants must be retained to obtain the ground-state energy. The two-orbital fermionic pairing Hamiltonian is consequently
To eliminate the pairing term, choose a canonical rotation of two fermionic modes satisfying
With , , take , so . Setting gives
This positive choice fixes a convenient convention for the vacuum state in part (d). It yields
Both number operators independently have eigenvalues . Hence the energy eigenvalues and state degeneracies are
There is one fermionic Bogoliubov quasiparticle of energy per occupied transformed orbital. The two Nambu spinor matrix eigenvalues should not be mistaken for two independently occupiable levels of opposite energy; the normal ordering constant and the two positive quasiparticle excitation costs give the four physical energy eigenvalues above.
An independent diagonalization of a matrix checks both the pairing sign and the additive constant. In the ordered orthonormal basis , the even-fermion parity block is
because and . Its characteristic polynomial is , giving . The odd-fermion parity Fock states are unaffected by pairing and both have energy .
Equivalently, with the Nambu spinor ,
Replacing by gives , reproducing the result by normal ordering.
Figure 1.
Pairing splits the even-parity levels and mixes the original vacuum with the occupied pair
. Original exact energy eigenvalues in units of , and the probability of finding both original orbitals occupied in the two-mode fermionic paired vacuum. The middle energy level remains twofold degenerate; both outside energy levels are nondegenerate. Details.
Use the Einstein coefficients convention in which multiplies spectral radiation energy density , with . A normalized spectral line profile obeys . The spontaneous emission probability per upper-state atom per unit time is ; the stimulated emission and upward absorption rates per atom are respectively and .
For isotropic spontaneous emission, transitions occur per unit volume and time, each supplying photon energy . Dividing among steradians gives
For a small incident beam, its contribution to is . Absorption removes and stimulated emission adds photons in the incident direction. Matching the net loss to therefore gives
Replacing by across the narrow spectral line profile gives the printed expressions. The negative sign is essential: an inverted population can amplify the incident specific intensity. Thermal equilibrium and the Planck function imply and , where is the state degeneracy. A convention using mean intensity instead changes both coefficients by .
For the unresolved Lyman-alpha line, the lower and combined upper state degeneracies are and , so the Einstein coefficients give
The measured equivalent width then implies
Assume a central transverse line of sight through a uniform filament, so . Nearly all neutral hydrogen is in its ground state at this temperature, hence
The cylinder's length determines its total volume but does not enter a transverse column density. Geometry must be specified: an axial line of sight has and gives for the same measured equivalent width. Intermediate chords give intermediate path-dependent estimates. The numbers above treat as a rest-frame equivalent width; an observed value at redshift must first be divided by .
Using in the internal energy gives
This is a Schottky anomaly with unequal degeneracies, with lower-level state degeneracy two and upper-level state degeneracy one. Its limiting forms are
It vanishes at low temperature because exciting the upper orientation is exponentially unlikely. It also vanishes at high temperature because the populations have nearly saturated and further heating hardly changes the internal energy. Between these limits it has one smooth maximum. The original plot shows its shape; numerical maximization gives and .
Figure 1.
Original heat-capacity peak and entropy limits for two lower orientations and one excited orientation
. Details.
A planar rigid rotor has angular eigenfunctions and single-valuedness imposes . Its energy depends on , so if the level is labelled by , then
The two states at represent opposite directions of angular momentum. If the signed quantum number itself is called , each signed state is counted once instead; one must not both sum over both signs and multiply by two again.
For an unrestricted three-dimensional linear rigid rotor, has and state degeneracy , with . Planar confinement removes one rotational coordinate and changes both the spectrum and degeneracy. These are the spatial counts before nuclear spin statistics. For homonuclear hydrogen, the allowed even/odd spatial states must also be paired with the appropriate parahydrogen or orthohydrogen nuclear states, as considered explicitly in A8.
The two protons are identical spin-one-half fermions, so the total state is antisymmetric under exchange. In the electronic and vibrational ground state, an even rotational has a symmetric spatial wavefunction and therefore uses the antisymmetric nuclear-spin singlet state; odd uses the symmetric triplet state. Thus parahydrogen has one nuclear-spin state, and orthohydrogen has three. Each rotational level also has spatial state degeneracy .
The translational partition functions and all common electronic/vibrational factors cancel in the ratio of equilibrium populations. Using the same zero of energy for the two spin species gives
Subtracting the energy separately from all odd levels without restoring that offset in the equilibrium ratio would incorrectly remove the low-temperature preference for parahydrogen. The nuclear spin statistics account for the factor three, independently of the spatial factor .
Choose the ground-state energy as zero and write . The molecular partition function must sum individual states, so the triply degenerate excited level contributes three Boltzmann factors:
The probabilities of occupying the two levels are
Each of the three individual excited states has probability . At high temperature the four states become equiprobable, so the two levels have probabilities and , not each. This is the distinction between a level and its state degeneracy.
Use the additive-volume two-level system implicit in the model: each excited particle increases the volume by the same increment. The difference between the two endpoint volumes is , so that increment is .
If particles are excited, . Linearity of the expectation gives , hence
As , . As , only three quarters of the particles are excited on average, giving , rather than the all-excited endpoint . These limits also check the inclusion of state degeneracy.
For the one-dimensional freely jointed chain, counting right- and left-pointing links gives
Therefore
Choosing which links point right gives the state degeneracy
Put . Applying the Stirling formula to and discarding terms subleading in yields
The parity of a wavefunction is its eigenvalue under spatial reflection: for even parity and for odd parity. If , the Hamiltonian commutes with reflection, so its energy eigenspaces admit a parity eigenbasis. In particular, every nondegenerate bound-state energy eigenfunction has definite parity; within a degenerate scattering eigenspace one must choose the even and odd linear combinations.