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]
Boltzmann factor Created 2026-09-24 Updated 2026-10-06
An external pressure changes the balance even if the system remains confined. For a material boundary acted on by spatially uniform inward pressure , the surface force contributes , by the divergence theorem. For Newtonian gravitational potential energy, the finite-window identity becomes
Here is the enclosed volume, the outward unit normal, and includes the microscopic translational kinetic energy of the confined particles. Do not also add the same random motions as a separate internal pressure term. A nonuniform external stress needs its surface integral; a fixed observational boundary crossed by matter also needs flux terms.[ref]
With negligible surface pressure, the negative heat capacity of a virialized gravitational system follows from : after a slow loss of total energy and readjustment to virial equilibrium, the average kinetic energy rises. For fixed classical particles with three translational degrees of freedom, define kinetic temperature by . Along this isolated equilibrium sequence, . The system contracts and its binding potential energy becomes more negative, supplying both the outgoing energy and the increased kinetic energy. This is an endpoint comparison, not a claim that every transient contraction obeys the average relation. A collisionless stellar system need not have a common thermodynamic temperature; a pressure-confined system instead has . A stable canonical ensemble in contact with a large thermal reservoir does not support this negative heat capacity branch.[ref]
Canonical energy variance 2026-10-20
Differentiating the canonical partition function at fixed external parameters gives and . Consequently the heat capacity is
The identity assumes an energy spectrum independent of temperature and the appropriate fixed-volume canonical ensemble. It relates a thermal response to equilibrium variance.
Canonical ensemble Created 2026-09-24 Updated 2026-10-13
The canonical ensemble is the probability distribution for a system in thermal equilibrium with a heat bath at fixed temperature , with fixed particle number and external parameters. It allows energy exchange, so individual energy measurements fluctuate. With Boltzmann constant and inverse temperature ,
The heat bath is idealized as large enough that exchanges barely change its temperature; coupling must permit equilibration while contributing negligible interaction energy. A finite heat bath approximates this description only when its temperature change is negligible over the relevant exchanges. Strong coupling or a small heat bath can require a different description.
For one two-level system at positive temperature, the Boltzmann weights are , hence
At , and . This is a probabilistic thermal mixed state. For quantum levels, its density matrix is . The pure state has the same energy measurement probabilities, but also has quantum coherence between the energy eigenstates. Matching those probabilities does not make the states equivalent.
For a system coupled to a thermal reservoir at fixed temperature , prepare the forward process in the initial canonical ensemble and the reverse process in the final control parameter's canonical ensemble. Reverse the protocol, assume microscopic reversibility and matching path probability support, and count as work done on the system. With Helmholtz free energy difference and ,
The final forward distribution need not already be in thermal equilibrium. Its reverse preparation is prescribed equilibrium preparation, rather than the actual forward final distribution used in finite trajectory entropy production. Thus the paired path logarithm is dissipated work in thermal units, not automatically the instantaneous total stochastic entropy production at the end of an arbitrary driven protocol. [ref] [ref]
The diagonal matrix element combines the equal-endpoint Euclidean oscillator path with its endpoint-independent Dirichlet oscillator fluctuation determinant. It is not itself a normalized probability density: its integral is the canonical partition function . The normalized position probability density is
At high temperature, the variance approaches as in the classical canonical ensemble. At zero temperature, it approaches , the ground state variance. Dividing by cancels its entire fluctuation prefactor.
The Edwards-Anderson order parameter measures squared local spin magnetization within a selected equilibrium state . Squaring prevents opposite local orientations from cancelling. The state selection and limits matter: the full finite, zero-field canonical ensemble has by spin inversion symmetry, so substituting that average would miss broken-state order.[ref]
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.
The exact zero-field two-point correlation function in the finite canonical ensemble of an antiferromagnetic Ising ring. The spin-chain transfer matrix has eigenvalues and . In their eigenbasis, an Ising spin insertion exchanges the two eigenvectors. The trace with two insertions is therefore , while the partition function is , proving the formula. Its two terms retain both paths around the ring. It has and . At fixed and finite positive inverse temperature its thermodynamic limit is .
Heat bath Created 2026-09-29 Updated 2026-10-18
A heat bath, or thermal reservoir, is an idealized system so large that exchanging a finite amount of heat does not appreciably change its temperature.
The ideal heat bath supplies a fixed absolute temperature while its internal energy changes through heat transfer. A real body's suitability as a heat bath depends on its heat capacity relative to the exchange being studied, and on how quickly its internal temperature gradients disappear. Large physical size alone supplies neither condition. A finite heat bath makes the approximation quantitative; a regulated calibration bath instead uses feedback control to maintain its temperature by exchanging energy with external equipment.
For a weakly coupled system that exchanges energy but no matter with an ideal heat bath, the canonical ensemble assigns the Boltzmann distribution
Here is a microstate's energy, the Boltzmann constant and the partition function. The fixed temperature removes the need to track every exchange with the environment. A substantially changing bath temperature no longer gives this one fixed Boltzmann distribution.[ref]
Helmholtz free energy Created 2026-09-29 Updated 2026-10-14
The Helmholtz free energy is
where is internal energy, also denoted elsewhere here, is absolute temperature, and is entropy. For the closed system of fixed composition and only pressure-volume work described above, spontaneous relaxation at fixed temperature and volume cannot increase . Stable thermodynamic equilibrium is a global minimum over the permitted alternatives, including different thermodynamic phases. A rigid vessel fixes the total volume; it does not require each coexisting thermodynamic phase to retain its own volume.
For a constructed comparison at , suppose one candidate has more internal energy but more entropy than another at the same temperature and volume. Its difference is
Thus the candidate with higher internal energy has lower Helmholtz free energy. This is the practical reason for retaining the entropy term when selecting a state.
For equilibrium states within a smooth branch of fixed composition, the first law of thermodynamics gives , hence
These derivatives extract entropy and pressure; the differential is not an evolution equation for relaxation. If chemical species amounts vary, add , with molar chemical potentials . A closed system can still change chemical species amounts through chemical reactions; the fixed-composition simplification then needs the conserved-inventory constraints of chemical equilibrium. See MIT 5.60, Lecture 14, fundamental equations and chemical potentials.
The minimum principle has a short explanation. At fixed volume, no boundary work occurs, so . A thermal reservoir at positive temperature loses entropy . Consequently
by the Second law of thermodynamics. Here both endpoint states share the imposed temperature. See MIT 5.60, Lecture 12, criteria for spontaneous change.
The microscopic counterpart is in the canonical ensemble, with Boltzmann constant and partition function . The partition function examples compute the balance between internal energy and entropy; the chemical equilibrium example already displays an ideal-mixture Helmholtz free energy minimum.
Consider a stipulated dilute collection of independent two-level systems, each with longitudinal magnetic moment , , and energy . The prescribed vacuum/applied magnetic flux density is . Ignore interactions, orbital magnetic response, and the small sample-field correction. This is the magnetic version of the existing independent spin-one-half two-level system, with alignment probabilities rather than an interacting Curie–Weiss model.
For temperature , the canonical ensemble gives the one-moment partition function , with . Taking the expected value over its two Boltzmann weights gives
Here is the number density, the Boltzmann constant, and the hyperbolic tangent. For , its small-argument expansion of the hyperbolic tangent gives , a Curie's law response in the applied- convention. For large , approaches the saturation magnetization with sign set by the field, and its differential magnetic susceptibility falls towards zero.
Both plots use stipulated , , , and . The moment is approximately one Bohr magneton; the chosen vacuum permeability is a rounded model input. At , and . The linear approximation overestimates by less than for , corresponding to or . These parameters keep the modeled response weak; neglected magnetic feedback is of relative order , rather than an explanation of a material's ordered phase.
Figure 1.
Magnetization approaching saturation magnetization, with its small-field linear range
. Original independent-moment calculation at stipulated . The shaded range has less than error relative to the exact magnetization. The second panel enlarges this range. The prescribed field is ; curves are model predictions, not measured data. Details.
Figure 2.
Bias-field and temperature dependence of the independent-moment differential magnetic susceptibility
. Original calculation using the same stipulated moments and number density. The left panel compares field sweeps at , and . The right panel compares temperature sweeps at prescribed , and . The zero-field slope follows Curie's law; cooling at fixed nonzero field eventually suppresses the slope through saturation magnetization. Details.
At , cooling increases the zero-field slope as . At fixed , cooling instead gives : a saturated moment can hardly change further. The order of the zero-field and zero-temperature limits matters. This independent model has no finite-temperature collective phase transition; the diverging zero-field slope alone does not establish one.
Consider an explicitly stipulated dilute independent spin-one-half two-level system with zero applied magnetic field. Each constituent has and , with constant signed gyromagnetic ratio . Ignore interactions and the specimen's own magnetic field. At positive temperature , thermal equilibrium with the rotating lattice gives energy levels . Define the dimensionless variable , where is the reduced Planck constant and is the Boltzmann constant. The partition function and Boltzmann distribution give
Taking the expected value gives
where is number density. This is the rotational version of the independent-moment magnetic response. The angular momentum aligns with positive rotation even when the magnetic moment points oppositely. The probability ratio provides a direct population check of the sign.
For , expand the hyperbolic tangent to obtain
The slope against is positive for either sign of , while the slope against has the sign of . At fixed , reversing reverses both means, and gives zero. At fixed nonzero , the formal limit saturates at ; the linear approximation must not be extrapolated there. At , the response vanishes. These limits describe the toy canonical ensemble, whose equilibration is assumed.
Figure 1. . Original calculated Independent spin Barnett response, with . The left panel reaches the formal saturation limits; the right panel is the extremely small-polarization room-temperature regime. The stipulated inputs describe a toy collection of independent spins; neither panel represents measurements of a ferromagnet or a fit to the gadolinium experiment. Details.
For a numerical example, stipulate , , , and rotation frequency . With , , and , the model gives
These are teaching inputs and calculated outputs, not measured material values. The corresponding internal angular momentum density is . Keeping a rotor at prescribed while its internal angular momentum changes requires the drive to supply the appropriate angular impulse. In an isolated body the mechanical part instead changes oppositely, as in magnetomechanical angular momentum balance. There is no creation of net angular momentum by choosing a rotating frame.
Inverse temperature Created 2026-10-05 Updated 2026-10-14
Inverse temperature is , where is the Boltzmann constant and is the absolute temperature. A canonical ensemble weights an energy by its Boltzmann factor . Calling couplings dimensionless means absorbing this factor into their energy coefficients. The alternative convention makes inverse temperature ; physical and dimensionless couplings must not be mixed.
In a thermal Euclidean worldline path integral with , is also the circumference of the imaginary-time circle.
Ising model Created 2026-09-24 Updated 2026-10-18
The Ising model is a spin model with an Ising spin at every graph vertex . For a finite graph with vertex set and edge set , a uniform coupling and field parameter give the Hamiltonian
Each edge is counted once. Here is temperature, is the Boltzmann constant, and is inverse temperature; and have units of energy. For magnetic applications, includes the magnetic moment multiplying the applied magnetic field. The canonical ensemble assigns the Boltzmann distribution
The partition function makes the probabilities sum to one. Positive rewards equal neighboring Ising spins, modeling ferromagnetism; negative rewards opposite neighbors, giving an antiferromagnetic Ising model. Positive rewards , while negative rewards .[ref]
A single local rule can organize a whole graph: rewarding agreement on each edge makes all-equal Ising spin patterns favorable even though no edge directly couples distant vertices. The four-spin Ising ring makes this visible with only sixteen microstates. It also separates three different questions: whether neighbors agree, whether the mean spin magnetization is nonzero, and how large its thermal fluctuations are.
A motivating experiment is the University of Colorado Boulder's Curie-temperature demonstration. An iron rod suspended from a twisting wire on a stand is initially held near a permanent magnet by ferromagnetism. A gas burner supplied from a propane cylinder heats the rod; the readout is its motion away from the magnet, followed by return as it cools. Repeated cooling supplies a reversible comparison on the same sample. The source explicitly calls for heating the rod while keeping the magnet cool, since heating the magnet can reduce its strength. The inference is that warming the sample weakens its magnetic attraction across the Curie temperature. This is a qualitative force readout, with no calibrated temperature or magnetization trace supplied: it motivates competition between alignment and thermal fluctuations, but does not identify , measure individual Ising spins, or realize a four-spin Ising ring.[ref]
Ernst Ising's 1925 paper examined a linear chain of two-orientation magnetic elements with neighboring interactions. In its calculation for a large chain, the zero-field mean magnetization vanishes and the model has no spontaneous magnetization. The inspected English translation states this immediately after equation (8) in §2. This historical result concerns the chain; it does not establish the behavior of a two-dimensional Ising model.[ref]
Microstate Created 2026-09-24 Updated 2026-10-14
A microstate is a complete microscopic specification within the chosen model. For two distinguishable, noninteracting two-level systems, label the units and their states , with energies and . The four microstates are
with total energies . Distinguishability matters: and describe different assignments to the labeled units. Noninteraction matters too: their energies add without an extra coupling term.
For a classical particle model, a microstate can instead be a point in phase space, specifying every position and momentum. In the quantum canonical ensemble, the sum uses energy eigenstates; a general quantum state may also contain quantum coherence, which an energy label alone does not specify.
An odd periodic nearest-neighbour Ising model with antiferromagnetic coupling has unavoidable geometrical frustration. For parallel bonds, , while forces to be even. Thus odd requires at least one parallel bond. A ground state has exactly one, with possible locations and two global spin inversion symmetry choices, proving the displayed ground-state degeneracy and ground-state energy. The zero-temperature canonical ensemble distributes that defect uniformly. A directed arc of bonds contains it with probability , giving two-point correlation function . The finite antiferromagnetic Ising-ring correlation gives the corresponding positive-temperature result.
Because at , the factor cancels from the ratio. Write and . The exact answer is
At high temperature, . Expanding the hyperbolic tangent gives
The displayed leading expression is the ratio of classical Boltzmann factors for potential energy and . Indeed the classical canonical ensemble gives
The momentum Gaussian integral is independent of and cancels in the ratio. This is the classical phase-space limit of the thermal kernel. Here , with the Boltzmann constant; the associated classical position variance is . At fixed , ultimately tends to one as temperature tends to infinity, while its width grows.
At low temperature, . Now , so at fixed
Unlike the classical high-temperature expression, this limiting width remains nonzero at zero temperature, reflecting the ground state of the quantum harmonic oscillator.
Figure 1.
Imaginary-time stationary paths and the crossover of the diagonal thermal kernel
. Original plots of the equal-endpoint Euclidean oscillator path and the diagonal thermal kernel of a quantum harmonic oscillator, divided by its value at zero. Increasing lowers the temperature: the path spends more of its interior near zero, and the ratio approaches the finite-width ground state profile. Details.
Insert the complete orthonormal basis of energy eigenstates on either side of the Boltzmann factor. The spectral theorem gives
At low temperature, the gap suppresses excited energy eigenstates. The harmonic oscillator eigenfunction of the ground state is
Therefore
The common zero-point energy factor cancels. Dividing the kernel by its trace would give the position probability density of the canonical ensemble; at zero temperature this tends to , whose variance is . Thus zero temperature projects onto the ground state and retains its quantum spread, rather than concentrating at the minimum of the classical potential energy.
There is also a check on the first correction. With , the first excited harmonic oscillator eigenfunction satisfies and . Hence the spectral theorem gives , in agreement with part (c).