Skip to content
ISEGORIABenjamin Haire

ISEGORIA / MATH ENCYCLOPEDIA

Statistical mechanics: microstates and temperature

Boltzmann weights, partition functions, and random walks.

Before you begin: Probability and energy

Predict, manipulate, then check your reasoning against the example and question. Graphs illustrate the mathematics; they do not replace a proof.

1. Boltzmann weights

A two-level system with energies 0 and \(\Delta E\), in units with \(k_B=1\). Raise \(T\) and watch the excited share \(p_1\) climb toward ½, never beyond it. Sixty particles follow Metropolis dynamics: run it and the number in the upper level fluctuates around the Boltzmann share. The heat capacity peaks near \(T\approx0.42\,\Delta E\), where the excited share changes fastest.

Worked example. At \(k_BT=\Delta E\), \(p_1=1/(e+1)\approx0.269\).

Watch out. The two-level model omits interactions and degeneracy.

What happens as \(T\) approaches zero?

The lowest-energy state dominates.

Reference: OpenStax · University Physics, Volume 2

2. Partition function

The levels form an evenly spaced ladder \(E_i=i\varepsilon\), and only the lowest \(n\) are accessible. The bars show the Boltzmann probabilities; the right panel shows the free energy \(F=-k_BT\ln Z\) for every \(n\) at the chosen temperature, approaching the value for the infinite ladder.

Worked example. Adding accessible states lowers the free energy at fixed temperature.

Watch out. The ladder is truncated at \(n\) levels for visualization; a real oscillator has infinitely many.

Why does multiplicity matter?

Every accessible microstate adds a positive term to Z, so F falls; states far above \(k_BT\) add almost nothing.

Reference: OpenStax · University Physics, Volume 2

3. Random walk and diffusion

Each step moves one unit right with probability \((1+b)/2\) and left otherwise. Increase the number of steps \(N\): the walks drift by \(Nb\) and spread like \(\sqrt{N}\). The right panel is the exact binomial distribution of the final position, drawn on the same vertical axis as the walks.

Worked example. For an unbiased walk (\(b=0\)), \(\langle x_N^2\rangle=N\ell^2\), so the root-mean-square displacement grows like \(\sqrt{N}\).

Watch out. One realization fluctuates around the ensemble scaling law.

What grows linearly with \(N\)?

The variance \(N(1-b^2)\ell^2\), and for an unbiased walk the mean-square displacement itself; the typical displacement grows only like \(\sqrt{N}\).

Reference: OpenStax · University Physics, Volume 2

Continue exploring

Linear algebra: the geometry of transformationsFourier analysis: functions made of wavesDynamical systems: stability and chaosOptimization: the geometry of the best choiceProbability: learning from uncertaintyGroup theory: symmetry as algebraAlgebraic topology: detecting holesNumerical analysis: when computation misleadsNumber theory: patterns in the integersGraph theory: routes, trees, and networksPartial differential equations: fields in motionInformation theory: uncertainty and codesCalculus of variations: paths and principlesClassical mechanics: motion and forcesElectromagnetism: fields and inductionOptics: rays, waves, and colourThermodynamics: energy, work, and entropyQuantum mechanics: amplitudes and spinComplex analysis: maps, residues, and harmonic fieldsFluid dynamics: flow, pressure, and vorticityStatistics and inference: signals in dataSpecial relativity: space, time, and lightDifferential geometry: curvature and shapeMeasure theory: size, approximation, and convergenceMarkov chains: transition, stationarity, and absorptionDifferential forms: circulation, curl, and pullbacksGeneral relativity: curvature, clocks, and lightFunctional analysis: norms, projections, and operatorsPlasma physics: screening, orbits, and wavesLie groups and Lie algebras: continuous symmetryHamiltonian mechanics: phase space and its geometryStochastic processes: Brownian motion and noiseSolid-state physics: waves in a crystalControl theory: feedback, poles, and stabilityLogic and computability: what can be computedHyperbolic geometry: where parallels multiplyRigid-body dynamics: spinning, tumbling, precessingElliptic curves: geometry that addsAtomic physics: orbitals and spectraQuaternions: rotation as multiplicationPush-forward and pullback: integrating through a mapKnot theory: telling tangles apartFractal geometry: dimension between the integersQuantum information: entanglement and its limitsCosmology: the expanding universeCellular automata: computation from local rulesComplex systems: order from many simple partsGalois theory: the symmetry of equationsMagnetism and the Ising model: order from alignmentOscillators and escapements: how a watch keeps timeGears and mechanisms: transmitting motion exactlyQuartz resonators: a crystal that keeps timeLoudspeakers: the moving-coil driverFilters and crossovers: splitting sound between driversRoom acoustics: the room is part of the speakerWavelets: zooming in on a signalLaser physics: light that copies itselfRepresentation theory: groups acting as matricesSemiconductor physics: bands, doping, junctions

Back to the math encyclopedia