Boltzmann Entropy and the Density of States

Carved on Ludwig Boltzmann's tombstone in Vienna is a single equation: S=klog⁡WS = k\log W. It is the deepest statement in all of thermal physics — that the macroscopic entropy of a body is nothing more than the logarithm of the number of microscopic arrangements consistent with its macroscopic state. This article is about turning that slogan into a working, calculable tool, and about a subtle and beautiful fact that makes it robust: the entropy you compute does not depend on the fussy details of how you count. The counting object is the density of states g(E)g(E) — the number of microstates per unit energy interval. To get a definite count you seem to need a definite energy window, a shell of thickness δE\delta E: the number of accessible states is g(E) δEg(E)\,\delta E, and the entropy is S=kBln⁡[g(E) δE]S = k_B\ln[g(E)\,\delta E]. But which δE\delta E? Should you count the thin surface shell at energy EE, or the entire enclosed phase volume Φ(E)\Phi(E) of all states with energy up to EE? These sound like different counts — and they are, by astronomical factors. Yet, remarkably, they give the same entropy to leading order. The reason is the tyranny of large numbers. For a macroscopic system the density of states rises so violently with energy — like E3N/2E^{3N/2} for an ideal gas, with N∼1023N \sim 10^{23} — that essentially all the enclosed phase volume sits in an infinitesimally thin skin at the surface. The volume of the ball, the area of its surface times any reasonable thickness, and the cumulative count up to EE are all dominated by the same exponentially large factor. Their logarithms differ only by terms of order ln⁡N\ln N, which is utterly negligible against the leading term of order NN. The choice of δE\delta E, and even the choice of surface-versus-volume counting, washes out. This is not a mere technical convenience; it is why the microcanonical entropy is well-defined at all. It means the Boltzmann relation gives an unambiguous entropy despite the apparent arbitrariness in setting up the count, and it is the same reason the microcanonical, canonical, and grand canonical ensembles all agree in the thermodynamic limit. Understanding the density of states, and the surface-equals-volume equivalence, is understanding why S=kBln⁡WS = k_B\ln W is a law and not just a definition.

Key takeaways
  • Boltzmann's relation S=kBln⁡ΩS = k_B\ln\Omega makes entropy the logarithm of the number of accessible microstates; the count comes from the density of states g(E)g(E).
  • The count can be done three ways — the surface shell g(E) δEg(E)\,\delta E, the enclosed volume Φ(E)\Phi(E), or the cumulative count — that differ by astronomical factors.
  • Remarkably, all three give the same entropy to leading order in NN: they differ only by O(ln⁡N)O(\ln N), negligible against the leading term O(N)O(N).
  • The reason is that the density of states rises so steeply (∝E3N/2−1\propto E^{3N/2-1} for an ideal gas) that nearly all the phase volume lies in a thin surface skin.
  • Consequently the entropy is independent of the shell thickness δE\delta E and of the surface-vs-volume choice — which is why S=kBln⁡WS = k_B\ln W is well-defined.
  • Key idea: because the density of states grows like E3N/2E^{3N/2}, the surface, volume, and cumulative counts all give the same entropy to O(ln⁡N/N)O(\ln N/N), making the Boltzmann entropy unambiguous.
The core insight

The Boltzmann entropy S=kBln⁡ΩS = k_B\ln\Omega is computed from the density of states g(E)g(E). Because g(E)∝E3N/2−1g(E) \propto E^{3N/2-1} rises so steeply, the surface count g(E) δEg(E)\,\delta E, the enclosed volume Φ(E)\Phi(E), and the cumulative count all coincide to O(ln⁡N/N)O(\ln N/N) — so the entropy is independent of the shell thickness δE\delta E and of the counting convention, which is what makes it well-defined.

Where this lives today

The density of states is arguably the single most-used quantity in condensed-matter physics and materials science. In solid-state physics, the electronic density of states g(ϵ)g(\epsilon) — computed from band structure — determines a material's electrical, thermal, magnetic, and optical properties: the electronic heat capacity, the Pauli paramagnetic susceptibility, the tunneling conductance (which directly images g(ϵ)g(\epsilon) in scanning tunneling spectroscopy), and whether a material is a metal, insulator, or semiconductor (set by whether gg is nonzero at the Fermi level). Density-functional-theory codes, the workhorse of computational materials discovery, output the density of states as their central result. In photonics and nanotechnology, the local density of states governs how fast an atom emits light (the Purcell effect) and is engineered in photonic crystals and optical cavities to speed up or suppress spontaneous emission. In astrophysics, the density of states of degenerate matter sets the equation of state of white dwarfs and neutron stars, and hence the Chandrasekhar mass limit. And in the foundations of the subject, the surface-versus-volume entropy equivalence proven here — the fact that essentially all of a high-dimensional volume lives in its skin — is the geometric reason the microcanonical, canonical, and grand canonical ensembles all agree in the thermodynamic limit, the consistency that makes statistical mechanics a single coherent theory rather than three competing ones.

The physical picture

The Boltzmann relation S=kBln⁡ΩS = k_B\ln\Omega demands a count: how many microstates Ω\Omega are accessible to the system at energy EE? For a classical system, "counting" microstates means measuring a phase-space volume (in units of h3Nh^{3N}). But an isolated system has a precise energy, which lives on a surface of zero thickness — and a surface has zero volume. So we count the states in a thin shell [E,E+δE][E, E+\delta E]: Ω=g(E) δE\Omega = g(E)\,\delta E, where g(E)g(E) is the density of states. This immediately raises a worry. The answer seems to depend on δE\delta E, which we chose arbitrarily. And there is a second ambiguity: instead of the thin surface shell, why not count the entire enclosed phase volume Φ(E)\Phi(E) — all states with energy up to EE? For a 3N3N-dimensional system these are wildly different numbers. The surface and the volume of a high-dimensional ball differ by huge factors. How can entropy be well-defined?

Figure
Three ways to count: cumulative volume Φ(E), surface shell g(E)δE, and the density g(E)
Three counts of microstates at energy E g(E) E → g(E) ∝ E^{3N/2−1} : rises violently shell g(E)δE cumulative volume Φ(E) = ∫₀ᴱ g dE′ all three give the SAME entropy to O(ln N): the skin holds all the volume

The resolution is a striking feature of high-dimensional geometry: for a 3N3N-dimensional ball, essentially all the volume is concentrated in a vanishingly thin skin at the surface. In three dimensions the outer 1%1\% of the radius holds about 3%3\% of the volume; in 3030 dimensions it holds 26%26\%; in 102310^{23} dimensions any finite-thickness skin holds essentially 100%100\%. So the enclosed volume Φ(E)\Phi(E), the surface shell g(E) δEg(E)\,\delta E, and the cumulative count are all dominated by the same enormous factor. Their logarithms — the entropies — differ only by terms of order ln⁡N\ln N, negligible against the leading ∼N\sim N.

Figure
High-dimensional skin: nearly all the phase volume sits at the surface as N grows
Fraction of ball volume in the outer 1% skin vs. dimension skin % dimension n 100 0 n=3: 3% n=100: 63% n=10²³: ~100% volume ≈ surface·(thin skin) ⇒ surface and volume entropies agree

The core equations

The Boltzmann relation defines entropy as the logarithm of the accessible count:

S=kBln⁡Ω,Ω=g(E) δE(1)S = k_B\ln\Omega, \qquad \Omega = g(E)\,\delta E \qquad (1)

where: g(E)g(E) — the density of states (states per unit energy); δE\delta E — the shell thickness; kBk_B — Boltzmann's constant. The count is measured in units of h3Nh^{3N} to be dimensionless (with a 1/N!1/N! Gibbs correction for indistinguishable particles). The density of states is the energy derivative of the cumulative phase volume Φ(E)\Phi(E) (the number of states with energy up to EE):

g(E)=dΦdE(2)g(E) = \frac{\mathrm{d}\Phi}{\mathrm{d}E} \qquad (2)

where: Φ(E)\Phi(E) — the enclosed phase volume; g(E)g(E) — its surface density. For an ideal gas Φ(E)∝VNE3N/2\Phi(E) \propto V^N E^{3N/2}, so g(E)∝E3N/2−1g(E) \propto E^{3N/2 - 1}. The three entropies — from the volume, the surface shell, and the cumulative count — agree to leading order:

ln⁡Φ(E)  ≈  ln⁡[g(E) δE]  ≈  3N2ln⁡E(differ by O(ln⁡N))(3)\ln\Phi(E) \;\approx\; \ln[g(E)\,\delta E] \;\approx\; \frac{3N}{2}\ln E \qquad \big(\text{differ by } O(\ln N)\big) \qquad (3)

where: the leading term is ∼N\sim N; the differences are of order ln⁡E\ln E, ln⁡N\ln N, ln⁡δE\ln\delta E — all negligible in the thermodynamic limit. This is the surface–volume equivalence. For a single free particle in 3D, the density of states has a clean, exact prefactor — the building block for quantum gases:

g(ϵ)=V4π2(2mℏ2)3/2ϵ(4)g(\epsilon) = \frac{V}{4\pi^2}\left(\frac{2m}{\hbar^2}\right)^{3/2}\sqrt{\epsilon} \qquad (4)

where: ϵ\epsilon — single-particle energy; VV — volume; mm — particle mass. The ϵ\sqrt{\epsilon} dependence (and this prefactor) governs the free-electron gas, the photon gas, and Bose–Einstein condensation. The invariance to shell thickness is quantitative: changing δE\delta E shifts the entropy only by an additive constant kBln⁡(δE′/δE)k_B\ln(\delta E'/\delta E), so

ΔSS∼ln⁡NN→0(5)\frac{\Delta S}{S} \sim \frac{\ln N}{N} \to 0 \qquad (5)

where: the relative change in entropy from any reasonable choice of δE\delta E or of counting convention vanishes as N→∞N \to \infty — which is why the microcanonical entropy is well-defined.

Derivation ASurface, volume, and cumulative entropies all agree to O(ln N)

The goal is to prove the article's central structural result: that the three different ways of counting microstates at energy EE — the enclosed phase volume Φ(E)\Phi(E), the surface shell g(E) δEg(E)\,\delta E, and the cumulative count — give entropies that differ only by terms of order ln⁡N\ln N, negligible against the leading term of order NN. This is what makes the Boltzmann entropy independent of the arbitrary shell thickness δE\delta E and of the surface-versus-volume choice, and hence well-defined. We work it out for the ideal gas and verify the cancellation symbolically.

Step 1. The enclosed phase volume is Φ(E)∝E3N/2\Phi(E) \propto E^{3N/2}, so the "volume entropy" is SΦ/kB=ln⁡Φ=3N2ln⁡E+constS_\Phi/k_B = \ln\Phi = \tfrac{3N}{2}\ln E + \text{const}. This is the leading, order-NN term. Why: the cumulative count of all states up to energy EE scales as the volume of a 3N3N-dimensional momentum ball, ∝E3N/2\propto E^{3N/2}.

Step 2. The density of states is g(E)=dΦ/dE∝3N2E3N/2−1g(E) = \mathrm{d}\Phi/\mathrm{d}E \propto \tfrac{3N}{2}E^{3N/2 - 1}, so the "surface entropy" is Sg/kB=ln⁡[g(E) δE]=(3N2−1)ln⁡E+ln⁡(3N2)+ln⁡δE+constS_g/k_B = \ln[g(E)\,\delta E] = (\tfrac{3N}{2} - 1)\ln E + \ln(\tfrac{3N}{2}) + \ln\delta E + \text{const}. Why: differentiating Φ\Phi drops the exponent by one and brings down the factor 3N2\tfrac{3N}{2}; multiplying by the shell width δE\delta E adds ln⁡δE\ln\delta E.

Step 3. Subtract: ln⁡Φ−ln⁡[g(E) δE]=ln⁡E−ln⁡(3N2)−ln⁡δE\ln\Phi - \ln[g(E)\,\delta E] = \ln E - \ln(\tfrac{3N}{2}) - \ln\delta E. Every term here is of order ln⁡E\ln E or ln⁡N\ln N — there is no term of order NN. The leading order-NN pieces (3N2ln⁡E\tfrac{3N}{2}\ln E) are identical in both. Why: the difference between surface and volume counting is entirely subleading; the dominant contribution is shared.

Step 4. Therefore SΦ=Sg+O(ln⁡N)S_\Phi = S_g + O(\ln N), and the relative difference is O(ln⁡N/N)→0O(\ln N/N) \to 0. Numerically, at N=1023N = 10^{23} the two entropies agree to more than twenty significant figures. The same argument shows the entropy is independent of δE\delta E: changing δE\delta E by even a factor of 10610^6 shifts S/kBS/k_B by ln⁡(106)≈14\ln(10^6) \approx 14, negligible against 3N2ln⁡E∼1024\tfrac{3N}{2}\ln E \sim 10^{24}. Why: this astronomical dominance of the leading term is exactly why S=kBln⁡WS = k_B\ln W is unambiguous despite the apparent arbitrariness of the counting setup. *Verified: g(E)=3N2E3N/2−1g(E) = \tfrac{3N}{2}E^{3N/2-1}, the exact difference ln⁡Φ−ln⁡[g δE]=ln⁡E−ln⁡(3N/2)−ln⁡δE\ln\Phi - \ln[g\,\delta E] = \ln E - \ln(3N/2) - \ln\delta E (with no O(N)O(N) term), the relative agreement at N=106,1012,1023N = 10^6, 10^{12}, 10^{23}, and the δE\delta E-independence are all checked in verify_aq-sm-boltzmann-entropy-density-of-states.py.*

Go deeper · Derivation B · 1 minThe single-particle density of states and its √E form
Derivation BThe single-particle density of states and its √E form

The goal is to derive the free-particle density of states g(ϵ)=V4π2(2m/ℏ2)3/2ϵg(\epsilon) = \tfrac{V}{4\pi^2}(2m/\hbar^2)^{3/2}\sqrt\epsilon, the fundamental building block for every ideal quantum gas — the free-electron gas in metals, the photon gas, the phonon gas, and Bose–Einstein condensation. The ϵ\sqrt\epsilon dependence controls the low-temperature behavior of all of them, so getting the exponent and the prefactor exactly right matters. We count momentum states in a box and differentiate.

Step 1. A particle in a cubic box of side LL (volume V=L3V = L^3) has quantized momenta p=ℏkp = \hbar k with kk-components spaced by π/L\pi/L; the number of states with momentum magnitude up to pp is the volume of a kk-space octant divided by the cell size. The number of states with energy up to ϵ=p2/2m\epsilon = p^2/2m is N(ϵ)=V6π2(2mϵℏ2)3/2\mathcal{N}(\epsilon) = \dfrac{V}{6\pi^2}\left(\dfrac{2m\epsilon}{\hbar^2}\right)^{3/2}. Why: counting kk-space modes in a box gives a factor V/(2π)3V/(2\pi)^3 per unit kk-volume, and the energy constraint is a sphere of radius k=2mϵ/ℏk = \sqrt{2m\epsilon}/\hbar.

Step 2. The density of states is the energy derivative: g(ϵ)=dNdϵ=V6π2(2mℏ2)3/2⋅32ϵ=V4π2(2mℏ2)3/2ϵg(\epsilon) = \dfrac{\mathrm{d}\mathcal{N}}{\mathrm{d}\epsilon} = \dfrac{V}{6\pi^2}\left(\dfrac{2m}{\hbar^2}\right)^{3/2}\cdot\dfrac32\sqrt\epsilon = \dfrac{V}{4\pi^2}\left(\dfrac{2m}{\hbar^2}\right)^{3/2}\sqrt\epsilon. Why: differentiating ϵ3/2\epsilon^{3/2} gives 32ϵ\tfrac32\sqrt\epsilon, and 32/(6π2)=1/(4π2)\tfrac32/(6\pi^2) = 1/(4\pi^2) fixes the prefactor.

Step 3. The ϵ\sqrt\epsilon form is universal for nonrelativistic particles in 3D and is the reason the electronic heat capacity of a metal is linear in TT, the reason the photon gas gives the T3T^3 Debye/Stefan–Boltzmann law (with a modified power for the linear photon dispersion), and the reason BEC occurs in 3D but not in lower dimensions. Why: the low-energy behavior of any ideal quantum gas is set by how g(ϵ)g(\epsilon) vanishes as ϵ→0\epsilon \to 0, which the exponent 12\tfrac12 dictates.

Step 4. For NN such particles the many-body density of states is a convolution that, for the ideal gas, reproduces g(E)∝E3N/2−1g(E) \propto E^{3N/2 - 1} — consistent with the shell count used above. The single-particle g(ϵ)g(\epsilon) and the many-body g(E)g(E) are the same physics at two scales. Why: the many-body count is built from the single-particle spectrum, so the two must agree, tying this article's two derivations together. *Verified: the single-particle g(ϵ)=V4π2(2m/ℏ2)3/2ϵg(\epsilon) = \tfrac{V}{4\pi^2}(2m/\hbar^2)^{3/2}\sqrt\epsilon (from differentiating N(ϵ)\mathcal{N}(\epsilon)) is checked symbolically in the verify script, along with the many-body g(E)∝E3N/2−1g(E) \propto E^{3N/2-1}.*

Limiting cases

How the density of states and entropy behave:

CaseResultMeaning
Ideal gasg(E)∝E3N/2−1g(E) \propto E^{3N/2-1}, S=kBln⁡[g δE]S = k_B\ln[g\,\delta E]Steeply rising; regenerates equipartition and PV=NkBTPV = Nk_BT.
Single free particleg(ϵ)∝ϵg(\epsilon) \propto \sqrt\epsilonBuilding block for quantum gases; sets low-TT behavior.
Surface vs. volumeSΦ=Sg+O(ln⁡N)S_\Phi = S_g + O(\ln N)Agree to leading order; entropy well-defined.
Shell thickness δE\delta ESS shifts by kBln⁡δEk_B\ln\delta E onlyThermodynamically irrelevant (≪N\ll N).
Bounded spectrumg(E)g(E) peaks, then fallsNegative temperature possible (∂S/∂E<0\partial S/\partial E < 0).
Small NNln⁡N\ln N terms matterSurface, volume counts genuinely differ; care needed.

Worked examples

1 · Surface versus volume entropy of an ideal gas (confidence builder)

For an ideal gas with Φ(E)∝E3N/2\Phi(E) \propto E^{3N/2}, compute the surface entropy Sg=kBln⁡[g(E) δE]S_g = k_B\ln[g(E)\,\delta E] and the volume entropy SΦ=kBln⁡Φ(E)S_\Phi = k_B\ln\Phi(E), and show they agree to O(ln⁡N)O(\ln N) for N=106N = 10^{6}.

Step 1. Volume entropy: SΦ/kB=ln⁡Φ=3N2ln⁡E+cS_\Phi/k_B = \ln\Phi = \tfrac{3N}{2}\ln E + c. Take E=105E = 10^{5} (arbitrary units), N=106N = 10^{6}: 3N2ln⁡E=1.5×106×ln⁡(105)=1.5×106×11.51=1.727×107\tfrac{3N}{2}\ln E = 1.5\times10^{6}\times\ln(10^5) = 1.5\times10^{6}\times 11.51 = \mathbf{1.727\times10^{7}}.

Step 2. Surface entropy: Sg/kB=ln⁡[g δE]=(3N2−1)ln⁡E+ln⁡(3N2)+ln⁡δE+cS_g/k_B = \ln[g\,\delta E] = (\tfrac{3N}{2}-1)\ln E + \ln(\tfrac{3N}{2}) + \ln\delta E + c. With δE=1\delta E = 1: =(1.5×106−1)(11.51)+ln⁡(1.5×106)=1.727×107−11.51+14.2=1.727×107= (1.5\times10^{6}-1)(11.51) + \ln(1.5\times10^{6}) = 1.727\times10^{7} - 11.51 + 14.2 = \mathbf{1.727\times10^{7}}.

Step 3. Difference: SΦ−Sg=ln⁡E−ln⁡(3N2)−ln⁡δE=11.51−14.2−0=−2.7S_\Phi - S_g = \ln E - \ln(\tfrac{3N}{2}) - \ln\delta E = 11.51 - 14.2 - 0 = -2.7 (in units of kBk_B). Compare to the entropies themselves, ∼1.7×107\sim 1.7\times10^{7}: the relative difference is 2.7/1.7×107=1.6×10−72.7/1.7\times10^{7} = \mathbf{1.6\times10^{-7}}.

Step 4. For a real mole (N=1023N = 10^{23}) the relative difference would be ∼10−23\sim 10^{-23} — the two entropies agree to twenty-three significant figures. Surface and volume counting give the same thermodynamic entropy, and neither the choice nor δE\delta E matters. The Boltzmann entropy is unambiguous.

2 · The density of states of the free-electron gas (exam level)

A copper sample has free-electron density n=8.5×1028 m−3n = 8.5\times10^{28}\ \mathrm{m^{-3}}. Using g(ϵ)=V4π2(2m/ℏ2)3/2ϵg(\epsilon) = \tfrac{V}{4\pi^2}(2m/\hbar^2)^{3/2}\sqrt\epsilon (times 2 for spin), find the Fermi energy from ∫0ϵFg dϵ=N\int_0^{\epsilon_F} g\,\mathrm{d}\epsilon = N.

Step 1. Including the factor of 22 for spin, the cumulative count is N(ϵF)=2×V6π2(2m/ℏ2)3/2ϵF3/2=V3π2(2m/ℏ2)3/2ϵF3/2=N\mathcal{N}(\epsilon_F) = 2\times\tfrac{V}{6\pi^2}(2m/\hbar^2)^{3/2}\epsilon_F^{3/2} = \tfrac{V}{3\pi^2}(2m/\hbar^2)^{3/2}\epsilon_F^{3/2} = N. Solve for ϵF\epsilon_F: ϵF=ℏ22m(3π2n)2/3\epsilon_F = \dfrac{\hbar^2}{2m}(3\pi^2 n)^{2/3}.

Step 2. Compute 3π2n=3(9.87)(8.5×1028)=2.52×1030 m−33\pi^2 n = 3(9.87)(8.5\times10^{28}) = 2.52\times10^{30}\ \mathrm{m^{-3}}, so (3π2n)2/3=(2.52×1030)2/3=1.85×1020 m−2(3\pi^2 n)^{2/3} = (2.52\times10^{30})^{2/3} = 1.85\times10^{20}\ \mathrm{m^{-2}}.

Step 3. Fermi energy: ϵF=(1.055×10−34)22(9.11×10−31)(1.85×1020)=(6.11×10−39)(1.85×1020)=1.13×10−18 J=7.06 eV\epsilon_F = \dfrac{(1.055\times10^{-34})^2}{2(9.11\times10^{-31})}(1.85\times10^{20}) = (6.11\times10^{-39})(1.85\times10^{20}) = 1.13\times10^{-18}\ \mathrm{J} = \mathbf{7.06\ eV} (here ℏ2/2m=1.11×10−68/1.82×10−30=6.11×10−39 J m2\hbar^2/2m = 1.11\times10^{-68}/1.82\times10^{-30} = 6.11\times10^{-39}\ \mathrm{J\,m^2}).

Step 4. This matches the measured Fermi energy of copper (≈7.0 eV\approx 7.0\ \mathrm{eV}) essentially exactly — the free-electron model, resting entirely on the ϵ\sqrt\epsilon density of states derived here, nails the Fermi energy of a real metal. The same g(ϵ)g(\epsilon) governs the electronic heat capacity (∝T\propto T) and the Pauli paramagnetism of the metal. The density of states is the workhorse of solid-state statistical mechanics.

Origins · 1 minstatistical weight and how this was discovered
SW
statistical weight
concept · the number of accessible microstates Ω

The statistical weight Ω\Omega — the number of microstates compatible with a macrostate — is the central quantity of the Boltzmann relation S=kBln⁡ΩS = k_B\ln\Omega, sometimes written WW (from the German Wahrscheinlichkeit, probability) as on Boltzmann's tombstone. The relation was Boltzmann's supreme achievement in the 1870s: identifying the thermodynamic entropy, previously a purely macroscopic quantity from Clausius, with a count of microscopic arrangements. The constant kBk_B and the specific form S=klog⁡WS = k\log W were actually first written by Max Planck in his 1900 blackbody work; Boltzmann expressed the proportionality but not in that notation with that constant. The statistical weight bridges the microscopic and macroscopic worlds: for the density of states g(E)g(E) it is Ω=g(E) δE\Omega = g(E)\,\delta E, and the astonishing insensitivity of ln⁡Ω\ln\Omega to the details of the counting (surface versus volume, shell thickness) is what elevates the Boltzmann relation from a definition to a robust physical law. Boltzmann's statistical interpretation of entropy, fiercely resisted in his lifetime, is now the foundation of the entire subject.

History
1865
— Clausius defines the macroscopic entropy and coins the word "entropy."
1872
— Boltzmann's H-theorem connects a molecular quantity to entropy increase.
1877
— Boltzmann relates entropy to the number of microscopic complexions, S ∝ ln W.
1900
— Planck writes S = k log W with the constant k, the tombstone form, in his blackbody analysis.
1902
— Gibbs formalizes the density of states and the ensembles in statistical mechanics.
1911
— Sackur and Tetrode compute the absolute ideal-gas entropy using the density of states and h.

Going further

References. Pathria & Beale, Statistical Mechanics, 3rd ed., §1.4, §2.4 (density of states, surface vs. volume) · Reif, Fundamentals of Statistical and Thermal Physics, §2.5 · Kardar, Statistical Physics of Particles, ch. 4 · Ashcroft & Mermin, Solid State Physics, ch. 2 (electronic density of states) · Sethna, Statistical Mechanics, ch. 3 · Callen, Thermodynamics, ch. 15.

Provenance. The Boltzmann relation S=kBln⁡ΩS = k_B\ln\Omega, the density of states g(E)=dΦ/dEg(E) = \mathrm{d}\Phi/\mathrm{d}E, and the surface–volume equivalence are standard (Pathria & Beale §1.4, §2.4; Reif §2.5). A verifier should confirm g(E)∝E3N/2−1g(E) \propto E^{3N/2-1}, that ln⁡Φ−ln⁡[g δE]=O(ln⁡N)\ln\Phi - \ln[g\,\delta E] = O(\ln N) (no O(N)O(N) term), and the single-particle g(ϵ)=V4π2(2m/ℏ2)3/2ϵg(\epsilon) = \tfrac{V}{4\pi^2}(2m/\hbar^2)^{3/2}\sqrt\epsilon. Numerical instances: surface/volume relative entropy difference 1.6×10−71.6\times10^{-7} at N=106N = 10^6 (→ 00); copper Fermi energy ϵF=ℏ22m(3π2n)2/3=7.06 eV\epsilon_F = \tfrac{\hbar^2}{2m}(3\pi^2 n)^{2/3} = 7.06\ \mathrm{eV} at n=8.5×1028 m−3n = 8.5\times10^{28}\ \mathrm{m^{-3}} (measured 7.0 eV7.0\ \mathrm{eV}). All in verify_aq-sm-boltzmann-entropy-density-of-states.py. kB=1.381×10−23 J/Kk_B = 1.381\times10^{-23}\ \mathrm{J/K}, ℏ=1.055×10−34 J s\hbar = 1.055\times10^{-34}\ \mathrm{J\,s}.

Builds on: The Microcanonical Ensemble and the Postulate of Equal a Priori Probabilities · Second Law of Thermodynamics and Entropy · Temperature, Pressure, and Chemical Potential as Entropy Derivatives · Density of States. Leads to: Phase-Space Volume and the Liouville Measure · Equilibrium Conditions Between Subsystems · Canonical Ensemble.

Why do we need a shell thickness δE at all — can't we just count states exactly at energy E?

Because for a classical system the states of exactly one energy form a surface of zero thickness in phase space, and a surface has zero volume — so counting "exactly at EE" gives zero classical microstates. (For a quantum system with a discrete spectrum you could in principle count the degeneracy at exactly EE, but for a macroscopic system the levels are so dense that you again need a window.) The resolution is to count states in a thin shell [E,E+δE][E, E+\delta E], which has nonzero volume g(E) δEg(E)\,\delta E. The physical justification is that no real system has perfectly sharp energy anyway — there is always some tiny uncertainty from imperfect isolation — and, as this article shows, the thermodynamic entropy is completely insensitive to the exact δE\delta E chosen. So δE\delta E is a mathematical necessity for classical counting that turns out to be thermodynamically invisible.

Is the density of states the same thing as the number of states?

No — they are related but distinct. The number of states (the statistical weight Ω\Omega) is a pure count: how many microstates are accessible. The density of states g(E)g(E) is a count per unit energy: how many states lie in a small energy window around EE, so g(E)=dΦ/dEg(E) = \mathrm{d}\Phi/\mathrm{d}E where Φ(E)\Phi(E) is the cumulative number of states up to EE. To get an actual number from g(E)g(E) you multiply by an energy interval: Ω=g(E) δE\Omega = g(E)\,\delta E. The distinction matters because g(E)g(E) has units of (states/energy) and appears whenever you convert a sum over states into an integral over energy — ∑statesf→∫f(E) g(E) dE\sum_{\text{states}} f \to \int f(E)\,g(E)\,\mathrm{d}E — which is one of the most common operations in statistical mechanics. The single-particle g(ϵ)∝ϵg(\epsilon) \propto \sqrt\epsilon is the version that governs quantum gases.

If the surface and volume entropies agree, why bother distinguishing them?

For macroscopic systems you often don't — they are interchangeable, and textbooks freely use whichever is more convenient (the cumulative Φ(E)\Phi(E) is often easier to compute, the surface g(E)g(E) more physical). But the distinction matters in three situations. First, for small systems (few particles, nanoscale, or a few spins), the O(ln⁡N)O(\ln N) differences are no longer negligible and you must be careful which you mean. Second, when deriving results rigorously you need to know the corrections are subleading, which requires understanding the difference. Third, the equivalence itself is a deep and useful fact — it is the geometric reason (all volume in the skin) that the different ensembles agree, and it explains why the arbitrary δE\delta E drops out. So distinguishing them is partly bookkeeping for small systems and partly conceptual insight into why the whole framework is consistent.

How does the √ε density of states lead to the linear-in-T electronic heat capacity of metals?

It comes from combining g(ϵ)∝ϵg(\epsilon) \propto \sqrt\epsilon with the Pauli exclusion principle. In a metal at low temperature, only electrons within about kBTk_BT of the Fermi energy ϵF\epsilon_F can be thermally excited (the rest are Pauli-blocked). The number of such "active" electrons is roughly g(ϵF) kBTg(\epsilon_F)\,k_BT, and each gains about kBTk_BT of energy, so the thermal energy is ∼g(ϵF)(kBT)2\sim g(\epsilon_F)(k_BT)^2 and the heat capacity C=∂U/∂T∼g(ϵF)kB2TC = \partial U/\partial T \sim g(\epsilon_F)k_B^2 T — linear in TT. The whole result hinges on g(ϵF)g(\epsilon_F) being finite and nonzero, which the ϵ\sqrt\epsilon form guarantees for a metal. This linear term dominates the specific heat at very low temperature (below the phonon T3T^3 contribution) and its measured slope directly gives the density of states at the Fermi level — one of the most important experimental probes in solid-state physics, and a direct application of the g(ϵ)g(\epsilon) derived here.

Does this surface-volume argument work for systems that aren't ideal gases?

Yes — the argument is general, requiring only that the density of states rise steeply with energy, which it does for essentially any macroscopic system with many degrees of freedom. The key ingredient is that ln⁡Ω∼N\ln\Omega \sim N is extensive (proportional to system size) while the corrections from surface-versus-volume counting or shell thickness are at most O(ln⁡N)O(\ln N). This holds for interacting gases, liquids, solids, spin systems, and quantum systems alike, as long as NN is large and the interactions are short-range (so entropy is extensive). It can fail for systems where entropy is not extensive — self-gravitating systems, small clusters, systems at a phase transition where fluctuations become macroscopic — and there the different counts and ensembles can genuinely disagree. But for the vast majority of ordinary matter, the surface-volume equivalence and the well-definedness of the Boltzmann entropy are completely robust, not special to the ideal gas.

What is the 1/N! factor doing in the count, and does it affect the density of states?

The 1/N!1/N! is the Gibbs indistinguishability correction, and it fixes a genuine paradox rather than being a cosmetic factor. Classically, if you counted every permutation of identical particles as a distinct microstate, the entropy would come out non-extensive — mixing two samples of the same gas would appear to increase entropy (the Gibbs paradox), which is absurd. Dividing the count by N!N! (the number of permutations of NN identical particles) restores extensivity and gives the correct Sackur–Tetrode entropy. As for the density of states: the 1/N!1/N! multiplies the whole count Ω\Omega, so it shifts ln⁡Ω\ln\Omega by −ln⁡N!≈−Nln⁡N+N-\ln N! \approx -N\ln N + N (Stirling) — this is an O(N)O(N) term, so it genuinely matters for the absolute entropy and is what makes SS extensive. But it does not change the energy dependence g(E)∝E3N/2−1g(E) \propto E^{3N/2-1}, so it drops out of the temperature 1/T=∂S/∂E1/T = \partial S/\partial E and every energy derivative. It matters for the volume/particle-number dependence (extensivity, chemical potential) but not for the shape of g(E)g(E) in energy. This deep point is developed in the Gibbs-paradox and indistinguishability articles.

Before this

Where this leads