Fundamentals / Physics / Thermodynamics and statistical physics / Statistical mechanics from microscopic counting to material response

Counting, absolute entropy and the entropy of mixing

An ideal gas expands into an evacuated bulb and its temperature can remain essentially unchanged. What changed if a thermometer reports the same value? Begin by specifying a microscopic count, recover the pressure and temperature of the gas, and test the meaning of distinguishability by removing a partition between two samples. The calculation also explains why the classical formula for absolute entropy needs a microscopic action scale.

Describe a count before taking its logarithm

A macrostate specifies only outcomes resolved by a chosen preparation and measurement, for example particle number, energy within a narrow interval and container volume. A microstate specifies detailed positions and momenta consistent with those outcomes, or a quantum state in the corresponding energy shell. The multiplicity is the number of allowed states under the stated resolution and constraints. The logarithm makes multiplicities of statistically independent systems additive, because the number of joint possibilities is their product. Boltzmann entropy is

\[S=k_B\log\Omega.\]

Before computing a gas, inspect an easier count. If eight distinguishable sites each have a variable taking values zero or one and exactly three sites are occupied, there are \({8\choose3}=56\) configurations. Revealing which sites are occupied reduces the compatible set to one. This change of conditional information need not involve an actual heat flow in the original system. Thermodynamic entropy requires a physical specification of allowed states and operations; it cannot be inferred solely from how surprised a particular observer feels.

In equilibrium, equal a priori weighting in a narrow isolated energy shell is a postulate about the appropriate ensemble. It does not state that a finite trajectory visits every conceivable state in any chosen observation time. Long-lived constraints, such as a closed partition or a conserved component of angular momentum, change the accessible shell. A gas that has not exchanged particles between remote compartments can be assigned a separate particle number in each. Removing a constraint can enlarge the equilibrium count even while the volume of an exact fine-grained Hamiltonian distribution is preserved by microscopic dynamics. The thermodynamic description refers to a macroscopic resolved equilibrium state.

Count the spatial and momentum volumes of a monatomic gas

Take \(N\) indistinguishable noninteracting particles of mass \(m\) in volume \(V\), with total kinetic energy at most \(E\). Integrating over positions produces \(V^N\). Allowed momenta lie inside a sphere in \(3N\) dimensions of radius \(\sqrt{2mE}\). Its volume follows from computing a multidimensional Gaussian integral both in Cartesian and radial coordinates. Divide by a microscopic cell \(h^{3N}\) to make the state count dimensionless and by \(N!\) to prevent a permutation of indistinguishable particles from creating another physical state. The cumulative count is

\[\Phi(E,V,N)=\frac{V^N}{N!h^{3N}}\frac{(2\pi mE)^{3N/2}}{\Gamma(3N/2+1)}.\]

Using the shell count \(\partial_E\Phi\,\delta E\) instead changes subextensive terms for a conventional narrow shell that still contains many states. The cumulative formula is especially convenient for this gas. Equalities at finite small \(N\) depend on which entropy is chosen, so state that choice before claiming an exact finite-size temperature. The usual bulk relations follow from either in the thermodynamic limit for this unbounded, regular system.

For large \(N\), use \(\log N!\simeq N\log N-N\) and the analogous gamma-function asymptotics. After collecting the terms,

\[S\simeq Nk_B\left[\log\!\left(\frac VN\left(\frac{4\pi mE}{3Nh^2}\right)^{3/2}\right)+\frac52\right].\]

Doubling \(E,V,N\) at fixed ratios doubles the leading expression. Omitting \(N!\) would leave a term growing like \(N\log N\), violating this extensivity. The phase-space cell influences the entropy per particle and the chemical potential but drops out of classical fixed-particle derivatives for pressure and temperature. Quantum mechanics fixes the natural cell scale through state counting. It does not require physical particles to carry serial numbers while remaining otherwise identical.

Read temperature, pressure and chemical potential from one function

Write the entropy differential as \(dS=dE/T+(p/T)dV-(\mu/T)dN\). Differentiating the count at fixed remaining variables gives

\[1/T=3Nk_B/(2E),\]
\[p/T=Nk_B/V.\]

Thus an energy exchange measurement and a force on a moving wall follow from derivatives of the same count. The thermal wavelength \(\lambda_T=h/\sqrt{2\pi mk_BT}\) lets us rewrite the entropy and chemical potential as

\[\frac S{Nk_B}=\frac52-\log(n\lambda_T^3),\]
\[\mu=k_BT\log(n\lambda_T^3),\]
\[n=N/V .\]

The chemical potential uses the same single-particle energy zero as the energy expression. Shifting every particle energy by a constant shifts \(\mu\) by that constant, leaving equilibrium criteria involving consistent references unchanged. An unresolved internal ground-state degeneracy \(g\) would multiply the state count by \(g^N\) in the classical dilute limit and replace \(n\lambda_T^3\) by \(n\lambda_T^3/g\). Real molecules and atoms can have internal states and additional degrees of freedom; never assign monatomic entropy to a molecular gas without justifying its internal contribution.

For ideal monatomic argon at 300 K and 1.00 bar, using \(m=39.948\) unified atomic mass units, \(\lambda_T=15.95\) pm and \(n\lambda_T^3=9.79\times10^{-8}\). The result is approximately 154.97 J per mole kelvin. Its small degeneracy parameter supports the dilute classical approximation. Compressing isothermally by a factor of ten increases chemical potential by \(k_BT\log10\) and decreases entropy by \(Nk_B\log10\). Extending the classical formula down to zero temperature at fixed density would eventually give a negative unbounded entropy, signalling the breakdown of the classical state occupation assumptions.

Why a partition between identical samples is different

Take two ideal gases initially separated at equal temperature and pressure. Their volumes are proportional to their particle numbers. For two distinguishable species each component expands to the full volume after the partition is removed. The internal kinetic energies are unchanged in the ideal model. Summing the two entropy increases and writing mole fractions \(x_i=N_i/N\) gives

\[\Delta S_{\rm mix}=-Nk_B\sum_i x_i\log x_i .\]

One mole containing fractions 0.30 and 0.70 gains 5.08 J/K upon ideal mixing from the pure components. At 300 K a reversible isothermal separation needs minimum work \(T\Delta S_{\rm mix}=1.52\) kJ for this mole if the ideal components and reference states are restored. The free expansion itself need not deliver that work. It is available in a reversible mixing path using selective barriers or equivalent controlled separation operations.

If both compartments initially contain identical gas at equal density, the final macrostate has the same density and same single species throughout. Combining two extensive entropies gives the final entropy to leading bulk order. There is no extensive mixing increment \(Nk_B\log2\). Introducing artificial labels for the former left and right particles changes the physical question only if a real degree of freedom can be prepared, distinguished and selectively processed. A dye, isotope or internal spin state can serve as such a label under suitable experimental operations. Merely drawing colours on a computer representation of identical classical particles does not establish a membrane that could sort those labels.

A tempting argument says that making two different gases more and more similar must continuously reduce their ideal mixing entropy. In the ideal model the species occupation labels are either distinct or identical; the description does not specify a continuously degrading separation instrument. A model of partially distinguishable internal states or a noisy finite-resolution sorter is a different experiment. Its accessible work depends on the physical state preparation and measurement operations. Distinguish the mathematical idealisation from an actual membrane having imperfect chemical selectivity.

Check an entropy change using a reversible reference route

In an isolated free expansion of a dilute gas into a vacuum the external pressure vanishes and boundary work is zero. With negligible heat flow energy remains constant and for an ideal gas so does temperature. To compute the state-function entropy change choose a hypothetical reversible isothermal expansion between the same endpoints. Reversible heat input is \(\int p\,dV=Nk_BT\log(V_f/V_i)\), giving \(Nk_B\log(V_f/V_i)\). This reference heat is not a claim that heat actually crossed the boundary during free expansion.

For a more exact real-gas experiment, first check that the initial and final temperatures are indeed the same. Internal energy may depend on volume. From the fundamental differential and a Maxwell relation one obtains

\[(\partial U/\partial V)_T=T(\partial p/\partial T)_V-p.\]

A temperature change during an isolated free expansion thus carries information about intermolecular interactions. Measuring only final pressure and assuming constant temperature could misattribute an interaction-induced energy change to the ideal state count.

Use the existing energy-sharing experiment to see how multiplicity changes with a constraint

Recover the entropy cost of a number fluctuation

A gas can lose an extensive mixing entropy when a physically selective partition is imposed, yet the finite-size cost of constraining only a particle count is much smaller. To see this, divide a box into two equal geometric halves with an imaginary plane and let all particles travel freely. At fixed total particle number each classical ideal particle has probability one half to be on either side. The probability of exactly \(k\) particles on the left is \({N\choose k}/2^N\), independently of whether the particles have names in a bookkeeping algorithm. The binomial coefficient counts the spatial arrangements compatible with that number. The resulting variance of the left count is \(N/4\).

The chance of exactly the mean count for even \(N\) is approximately \(\sqrt{2/(\pi N)}\), from Stirling's formula. If a protocol constrains the left count to precisely \(N/2\), the entropy difference between allowing all counts and that constrained ensemble is therefore about \((k_B/2)\log(\pi N/2)\). It grows only logarithmically with total size. In contrast, if the constraint identifies which half contains every member of two distinguishable species, the mixing entropy is extensive. The physical variables that the partition controls decide which count is appropriate.

For \(N=100\) the probability of exactly fifty on the left is about 0.0796. The associated entropy cost of conditioning is \(2.53k_B\). A macroscopic observer resolving the fraction only to a few percent can count a whole interval of nearby values as the same macrostate. As \(N\) grows the relative width shrinks like \(1/\sqrt N\), placing almost all of the probability inside any fixed nonzero fractional interval about one half. This is how an apparently precise macroscopic density can coexist with an enormous number of fluctuating microscopic arrangements.

The far tails reveal a stronger distinction. For a fixed fraction \(x=k/N\) away from one half, applying Stirling to the binomial gives probability proportional to \(\exp[-N I(x)]/\sqrt{2\pi Nx(1-x)}\), with

\[I(x)=x\log(2x)+(1-x)\log[2(1-x)] .\]

This rate function is nonnegative, vanishes at one half and starts quadratically there. At \(x=0.7\) it is about 0.0823, so the leading exponential cost for a thousand particles is \(e^{-82.3}\). A Gaussian near the peak gives a similar rough scale here but fails to capture the exact tail or the hard limits \(0\leq k\leq N\). A useful numerical exercise calculates binomial coefficients using log factorials, compares the central Gaussian approximation with the full rate function and checks that the probabilities sum to one. Evaluating the three factorials directly can overflow while the final probability is perfectly representable.

A reversible separation engine and a deliberately imperfect measurement

Imagine two ideal distinguishable gases separated initially at equal pressure and temperature. To obtain work while mixing, use species-selective membranes and allow reversible isothermal expansion of each partial gas against an appropriate pressure. The membrane traversed by one component must not transmit that component to the wrong side, and every infinitesimal motion must occur at negligible pressure imbalance for the component doing the work. The sum of the recoverable works is the sum of each component's ideal expansion work. Reversing the device separates the mixture at the same thermodynamic cost when dissipation can be made negligible.

For a one-mole mixture containing 0.20 mole of one species and 0.80 of another at 300 K, the work contribution of the minority component is \(-0.20RT\log0.20=0.803\) kJ and that of the majority is \(-0.80RT\log0.80=0.445\) kJ. Although the minority has fewer particles, each expands across a larger volume ratio and its work contribution is larger. The total is 1.25 kJ. A bulk piston doing no selective separation sees equal total initial pressures and no obvious macroscopic pressure difference. The selective mechanical operation matters to the interpretation of free energy.

A useful idealised sorter determines a binary label with symmetric error probability \(e\), with equal prior fractions. The fraction of correctly sorted particles is \(1-e\), yet that single number by itself says little about its thermodynamic performance unless both output compositions are measured. For the specified symmetric device the posterior composition in each equal outlet is \((1-e,e)\) in opposite order. The increase in mixing free energy relative to one unseparated equimolar reservoir at the same total temperature, density and amounts is

\[\Delta F=Nk_BT[\log2+(1-e)\log(1-e)+e\log e] .\]

This is a state-function comparison of outlet compositions, not an assertion that the actual apparatus consumes this amount or that measuring a label is free. At \(e=0.10\) the bracket is 0.368, about 53 percent of the complete separation value. At \(e=0.5\) it vanishes even though a nominal label was printed for every particle. If one outlet loses particles or the two error probabilities differ, compute actual outlet fractions and chemical potentials from a material balance instead of using this symmetric formula.

An experiment can close that balance without seeing individual molecular trajectories. Measure both outlet amounts, composition, pressure and temperature, and account separately for work or heat supplied to the sorter. Compare the Gibbs free-energy change at controlled pressure with the actual electrical work. A device consuming several times the reversible minimum can still separate effectively. Conversely, apparent work below the calculated minimum suggests an omitted material stream, a different final pressure, an energy supplied by an uncounted reservoir or uncertainty in composition. The mixing formula is only as meaningful as the thermodynamic endpoints used.

Follow isotope and quantum effects to the edge of the classical formula

The appearance of \(h\) in a classical-looking entropy sometimes suggests that the Sackur–Tetrode expression already describes any temperature so long as gas interactions are weak. These are two different approximations. Diluteness relative to the interaction range controls the importance of forces. Diluteness in phase space, measured by \(n\lambda_T^3\), controls whether quantum exchange changes occupation weights. Atoms can interact weakly while exhibiting strong exchange statistics. Lowering temperature makes the thermal wavelength grow as inverse square root of temperature, quickly invalidating the classical count at a fixed density.

Consider two isotopes with one-particle masses in the ratio four to three, neglecting internal degeneracy differences and comparing at the same density and temperature. Their wavelengths have ratio \(\sqrt{3/4}\). The heavier isotope has a translational molar entropy greater by \((3R/2)\log(4/3)=3.59\) J per mole kelvin. This does not contradict the mass independence of the ideal mixing increment. The former compares two absolute entropy values of different substances; the latter is a change in each substance's accessible translational volume while its mass remains fixed.

The same mass scaling influences onset of quantum degeneracy. At fixed \(n\), the temperature for a chosen value of \(n\lambda_T^3\) varies inversely with mass. A heavier isotope reaches that value at a lower temperature. If the nuclei also have different spin degeneracies, distinguish the dimensionless density per internal component from the total density. Two isotopes can even have different Bose or Fermi exchange statistics, so a high-temperature entropy comparison need not extrapolate into similar low-temperature heat capacities.

A calorimetric consistency test illustrates the limits. Suppose an idealised solid has a measured low-temperature molar \(C_p=AT^3\) up to 5 K, with \(A=0.20\) mJ per mole per kelvin to the fourth. Its entropy increment there is \(AT^3/3=0.00833\) J per mole kelvin. Missing that contribution hardly changes a room-temperature entropy tabulated to a few tenths of a joule per mole kelvin. In contrast, omitting a latent heat of 1.0 kJ/mol at a transition near 100 K misses 10 J per mole kelvin. The low-temperature extrapolation and the phase transition enter the same entropy integral but can carry very different experimental leverage.

A finite thermometer measures a ratio of multiplicities

Temperature from an entropy derivative presupposes sufficiently smooth variation with energy. In a small discrete environment a two-level probe of gap \(\Delta\) can instead measure an exact finite difference. If the whole isolated system has total energy \(E\) and the two probe states have equal degeneracy, their equilibrium odds are \(\Omega_R(E-\Delta)/\Omega_R(E)\). Write the logarithm as \([S_R(E-\Delta)-S_R(E)]/k_B\). Interpreting it as \(-\Delta/(k_BT_{\rm probe})\) defines an operational inverse temperature averaged over an interval of width \(\Delta\).

For a reservoir whose cumulative multiplicity is proportional to \(E^\alpha\), this gives \(\beta_{\rm probe}=\alpha\log[E/(E-\Delta)]/\Delta\), while the local slope at \(E\) gives \(\alpha/E\). With \(\Delta/E=0.10\), the finite-gap value exceeds the endpoint slope by 5.36 percent. A second probe with one fifth that fractional gap reports only about a one-percent excess. Two well-calibrated probes can therefore disagree in a finite reservoir while each correctly reports its specified probability ratio.

The distinction vanishes for a macroscopically large heat bath whose entropy is locally almost linear over both gaps. It is experimentally testable in numerical energy-sharing models without calibrating a mechanical pressure. Count both occupancy ratios, establish whether the probe appreciably changes the reservoir's allowed states and compare against the exact discrete multiplicities before invoking a smooth temperature. If repeated measurements perturb the environment, the measured distribution is a sequence of new preparations and the equilibrium interpretation needs an explicit readout model.

Construct a thermodynamic cycle that isolates mixing entropy

The chemical-potential formula suggests a pressure measurement for testing mixing free energy. Let one side of a movable membrane transmit a solvent species freely and block a second dilute gas species, with common temperature maintained. In the ideal-gas case the permeable species equilibrates its partial pressure across the membrane. If on one side it is pure at pressure \(p_A\), while on the other side it has mole fraction \(x\) at total pressure \(p_{\rm mix}\), equality gives

\[p_A=xp_{\rm mix}.\]

The remaining pressure load on the membrane is the partial pressure of the blocked species. This is a mechanical consequence of equality of the permeable component's chemical potential.

For an ideal mixture with \(x=0.80\) and total pressure 1.00 bar, the pure compartment must reach 0.80 bar for zero net flow of the permeable species. A square centimetre membrane then supports a net pressure difference of 0.20 bar, corresponding to 2.0 N, before any additional elastic support forces. A membrane sensitive only to the total pressure might move and alter the volumes until mechanical and chemical constraints are both fulfilled. The quoted force is a held-geometry measurement, not a prediction that a freely moving unsupported membrane can remain at that position.

A particularly important control switches the membrane for a nonselective porous partition. Both species can then flow and equilibrate their own chemical potentials; at final full equilibrium there is no maintained composition difference across these gas reservoirs. A pressure reading alone cannot establish whether selectivity, partial blockage, a small temperature difference or an external pump generated the observed imbalance. Measure both compositions and isolate slow leaks over the relevant time. An apparently stable jump on a short trace can be a long-lived transient.

The same thought experiment gives a check on how gas-phase mixing connects to osmotic pressure in dilute solutions. The permeable solvent's chemical potential is lowered by mixing at fixed total pressure; applying enough pressure to the solution can restore equality across a solvent-selective membrane. The ideal dilute result has a form proportional to solute number density times thermal energy, although a liquid solution requires its own solvent partial molar volume model. Equal-looking formulas arise from a chemical-potential balance, not because dissolved solute molecules necessarily act as an ideal gas physically bouncing against every membrane.

Finally, a cyclic device must restore membrane positions, reservoir compositions and temperatures as well as a piston reading. Ignoring the work to regenerate selectivity or restore separated gas streams can turn a one-use release of stored mixing free energy into an apparent heat engine operating on one bath. Write the mole count of each component in every reservoir at start and finish and integrate mechanical and chemical work consistently. The criterion for a true thermodynamic cycle is return of the complete controlled system to its initial state.

A final microscopic check concerns the dimensions of the count. If one changed the formal classical cell size from \(h^3\) to \(a h^3\) per particle, the gas entropy would shift by \(-Nk_B\log a\) at every fixed state. Pressure, temperature and the entropy change of a fixed-\(N\) expansion would be unaffected. Chemical potential would shift by \(k_BT\log a\), and absolute comparisons between different particle species or chemical reactions would require a consistently calibrated microscopic count. This is why a piston experiment alone could never determine the natural action cell. Combining calorimetry with quantum level counting or fixed-reference chemical equilibria supplies information absent from fixed-\(N\) mechanical derivatives. The same bookkeeping distinction applies to any unobserved constant internal degeneracy: it can contribute entropy without producing a heat-capacity anomaly.

Connect ideal mixing to a separation-work measurement

Vary the mixture composition and the reservoir temperature. Compare the entropy with reversible work for separately identifiable ideal components.

Tutorial · Measure an entropy difference by two routes

A 0.50 mol sample of ideal monatomic gas expands from 2.0 to 5.0 litres in a thermally insulated free expansion. Calculate entropy change and change of chemical potential at 290 K. Now identify what changes if the gas instead expands reversibly and adiabatically between the same volumes.

Hold the state variables appropriate to each route

For free expansion temperature stays at 290 K and entropy increases by \(0.50R\log(2.5)=3.81\) J/K. At fixed temperature \(\mu_f-\mu_i=k_BT\log(n_f/n_i)=-k_BT\log2.5\), or minus 2.21 kJ/mol. The chemical-potential difference is a single-particle or molar quantity, while the entropy answer refers to the entire sample. Dividing or multiplying by the sample amount twice produces an inconsistent unit.

In a reversible adiabatic expansion \(\Delta S=0\) and the gas does boundary work. The final temperature becomes \(290(2/5)^{2/3}\simeq157\) K. These are not the same endpoints as in the free expansion, despite identical start and end volumes. Substituting the free-expansion entropy into an adiabatic isentropic relation would falsely equate insulation with reversibility.

Tutorial · An isotope mixture and a finite-size count

Two equal amounts of isotopically distinct ideal monatomic gases at the same temperature and density are mixed. Explain why their masses enter absolute chemical potentials but cancel from each component's ideal isothermal mixing increment. For just ten sites individually occupied at random by one of two distinguishable isotope labels, compare the exact number of arrangements with five of each label to the leading extensive entropy.

Cancel fixed internal terms and keep the finite combinatorics

Each component's thermal wavelength is unchanged between its own initial and final states. Taking the difference of its entropy therefore removes the mass and internal factors. Both species expand by a factor of two and the large-sample increase is \(Nk_B\log2\). This conclusion assumes independently identifiable species and an ideal mixture, and does not state that their absolute entropies are identical.

For ten sites with five labels of each kind there are \({10\choose5}=252\) arrangements. Their logarithm is 5.529 in units of \(k_B\), versus \(10\log2=6.931\) from an extensive approximation neglecting the composition constraint's subextensive term. Summing over all possible label counts gives \(2^{10}\), recovering the latter count for an ensemble in which the composition itself fluctuates. A small-system discrepancy is an opportunity to ask which constraint the count imposes.

Tutorial · Infer what a calorimetric entropy determination misses

A crystal's heat capacity is measured from a low reference temperature up to a temperature above a reversible melting transition. How could this measurement be used to estimate entropy, and which missing physical contributions could spoil an apparent comparison with a dilute gas entropy?

Include the low-temperature reference and all phase changes

Along a constant-pressure reversible route add \(\int C_p(T)dT/T\) in each phase and add latent heat divided by transition temperature at every first-order change. To compare with gas one must also traverse vaporisation or another controlled path to the desired gas state and pressure. Missing a transition silently omits its finite entropy even if the heat capacities in both adjacent phases were measured perfectly.

Below the lowest measured temperature extrapolate using a physically justified low-temperature model and add any residual ground-state entropy consistent with the sample preparation. A unique ordered ground state has zero thermodynamic entropy in the ideal third-law limit. A crystal retaining configurational disorder on laboratory timescales can carry residual entropy associated with its accessible arrangements. Unknown isotopic composition or low-lying internal levels likewise change the absolute comparison. A discrepancy between a calorimetric integral and a monatomic ideal expression should first be traced to these explicit reference states and model assumptions.

Cambridge Statistical Physics · foundational postulates, entropy and statistical ensembles

Fließbach, Statistische Physik · statistical foundations, the ideal gas and entropy