Entropy density of a photon gas Created 2026-10-14 Updated 2026-10-20
The entropy density of a photon gas is its entropy per physical volume, . For homogeneous equilibrium vacuum radiation with two states of electromagnetic polarization and zero photon chemical potential,The first equality is the entropy density at zero chemical potential, obtained from the thermodynamic Euler relation with internal energy . The second uses the photon gas equation of state, and . If an independently constrained photon number gives a nonzero chemical potential, the general entropy density is and need not hold. This distinction explains why the absence of a conserved number matters for entropy as well as for the spectral shape. [ref]
https://davidtong.org/teaching/statistical-physics/statmechhtml/S4#S4.SS4. David Tong, Statistical Physics, §4.4: Gibbs free energy and the thermodynamic Euler relation
A short first law of thermodynamics check, for neighboring equilibrium states with , isThe thermodynamic Euler relation fixes the additive normalization. Equivalently, this radiation entropy tends to zero with temperature at fixed volume; no contribution from the containing walls is included. Interpreting as transferred heat and as boundary work requires a reversible thermodynamic process. For a reversible thermodynamic process that is also an adiabatic process, there is no entropy production or entropy exchange, soAn irreversible adiabatic process can produce entropy even without heat exchange, so the word adiabatic alone is insufficient to infer .
For an analytic example, expand an initially equilibrated photon gas reversibly from to , keeping only the same two photon states of electromagnetic polarization. Its temperature halves, its energy density becomes , its entropy density of a photon gas becomes , and its total entropy stays . The internal energy halves rather than remaining fixed: the missing half leaves as work against radiation pressure,This is a stipulated reversible radiation model, not a report of a piston experiment. Maintaining a real cavity along this path requires controlling wall heat exchange and including the wall heat capacity in any actual apparatus balance.
For a computed scale at stipulated , . Combining this with the photon number density givesThis is the total equilibrium radiation entropy divided by its mean photon number, not a separately assigned entropy carried by each labeled particle. During the ideal expansion, and is fixed, so the mean number also stays constant. This follows from the path; it was not imposed as the independent number constraint used to establish chemical potential.
The beautiful connection is that expansion lowers each typical photon energy and dilutes the radiation in just the proportions needed to retain its equilibrium spectral shape and total entropy. For the cosmic microwave background, homogeneous expansion of the universe has physical volume proportional to the cube of the scale factor; fixed-species cosmological entropy conservation therefore gives . This describes preservation of an already established Planck photon distribution and connects the FIRAS spectral observation in photon gas to an entropy prediction; FIRAS did not perform a direct entropy measurement. When other equilibrated species disappear and transfer energy into radiation, use the effective number of relativistic entropy degrees of freedom, : the conserved quantity for the combined sector is , under the corresponding equilibrium and no-entropy production assumptions. A changing species population, separate decoupled sectors or entropy production requires an appropriate entropy balance rather than the pure photon gas formula. [ref]
https://davidtong.org/teaching/cosmology/cosmohtml/S2#S2.SS5.SSS2. David Tong, Cosmology, §2.5.2: entropy conservation and heating when relativistic species disappear
For a photon gas in thermal and chemical equilibrium, photon number is not a conserved thermodynamic charge. Number-changing processes can create and absorb photons without a corresponding conserved-number constraint, so the equilibrium photon chemical potential is zero.
At , . The other light species are electrons, Positrons, three neutrino species and their antiparticles. Neutrinos are ultrarelativistic; electrons and Positrons are only moderately relativistic at this particular temperature because . The later simple counting formulas use the intended ultrarelativistic approximation for them. Baryons, muons and heavier particles are not an abundant relativistic bath at this temperature.
Pair equilibrium implies . Approximate charge symmetry, with the net electron excess tied to the much smaller baryon asymmetry, then makes both electron and Positron chemical potentials small compared with . For neutrinos one additionally assumes negligible lepton asymmetry. Their near-zero chemical potentials are not implied merely by their statistics. After neutrino decoupling, a distribution initially having negligible chemical potential retains a redshifted Fermi-Dirac distribution, with its own temperature.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 67 2 ii Solution Created 2026-10-03 Updated 2026-10-14
Use , so counts deuterium nuclei per baryon, not baryons bound into deuterium. For the radiative capture reaction, chemical equilibrium and the zero photon chemical potential give . Dividing the three nonrelativistic Maxwell--Boltzmann number densities removes all chemical potentials:Here and . The binding convention in this PDF is a negative mass defect, . The positive nuclear binding energy is , so the abundance is enhanced by , not by .
Since , insert the baryon-to-photon ratio and the photon number density . This givesAt equal nucleon mass in the prefactors, , the deuterium equilibrium abundance simplifies toThe dimensionless prefactor is about . These expressions describe thermal equilibrium; residual primordial deuterium after nuclear reactions cease must instead be obtained from the reaction kinetics.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 62 2 a Solution Created 2026-10-03 Updated 2026-10-14
The degeneracy factor counts internal states with the same energy, including the allowed spin states. The chemical potential measures the free-energy cost of changing the number of particles of species ; in this convention the rest energy remains in the exponential of the nonrelativistic Maxwell--Boltzmann number density.
The chemical potential is fixed by the densities of conserved charges and by chemical equilibrium between reactions. For a reaction , chemical equilibrium requires . Equivalently, when these are the only constraints, is a linear combination of the chemical potentials of the conserved charges carried by . An unconstrained species has zero chemical potential. In particular, the photon chemical potential vanishes in thermal equilibrium when photon-number-changing reactions are effective.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 62 2 b Solution Created 2026-10-03 Updated 2026-10-20
For , chemical equilibrium and the vanishing photon chemical potential imply . Taking the ratio of the three nonrelativistic Maxwell--Boltzmann number densities cancels these chemical potentials:The ground-state hydrogen atom has four combined electron and proton spin states if the small hyperfine splitting is ignored, whereas . Hence . With Hydrogen binding energy and , the Saha ionization equation givesThe approximation in the prefactor neglects relative corrections of order ; the Hydrogen binding energy must be retained in the exponential.
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 3 10E Solution Created 2026-09-24 Updated 2026-10-20
Write the photon energy density as , where by the Stefan–Boltzmann law. The photon gas has pressure and zero photon chemical potential. The first law of thermodynamics therefore givesDividing by and integrating gives the entropy density of a photon gas:The integration constant is fixed to zero at zero temperature, consistently with the third law of thermodynamics.
The inequality says interactions act much faster than the expansion time, maintaining local thermal equilibrium. For adiabatic reversible expansion with no additional source of entropy, cosmological entropy conservation fixes the entropy in a comoving volume. Since that volume scales as , and the relativistic degrees of freedom are fixed here, is constant. ThusDuring radiation domination, the Friedmann equation gives , and hence . Fast interactions alone would not exclude an additional entropy-producing process; changing relativistic species likewise changes the simple temperature scaling.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 317 4 Solution Created 2026-10-03 Updated 2026-10-20
Let be particle number per unit volume in a momentum element, including the spin-state count in . This is the local momentum part of a phase-space distribution function, normalized by the number density . For an isotropic distribution with particle energy , the kinetic pressure of an isotropic gas is the average momentum flux:The kinetic energy density, explicitly excluding rest mass, isFor , and , giving . For , and , giving . ThusNeither relation assumes a Maxwellian distribution. At intermediate momenta neither constant ratio is exact, and anisotropic distributions require a pressure tensor rather than this scalar pressure.
For a classical Maxwell-Boltzmann distribution, . Three Gaussian component integrals give , so the ideal gas hasIn a fully ionized mixture, sum over independent species to obtain , where the mean molecular weight counts ions and free electrons. This excludes partial-ionization and interaction corrections. A dilute classical ultrarelativistic gas still has but ; its momentum distribution is proportional to instead of the nonrelativistic Gaussian.
For a thermal photon gas, the two polarization states and zero photon chemical potential give the Planck photon distributionUse and . The radiation constant and photon equation of state are thereforeLikewise . Unlike a gas with a fixed particle number, photons do not have pressure proportional to baryonic mass density.
For fully degenerate electrons, the Fermi-Dirac distribution becomes a filled momentum sphere with two spin states. Counting them gives the Fermi momentumHere is the mean molecular weight per electron. The equation of state of a cold electron gas follows by integrating momentum flux up to :Its two limits areThe corresponding kinetic energy densities are and , respectively. Thus in the high-density relativistic limit the electron pressure scales as and is nearly independent of temperature. This is the ideal noninteracting, fixed-composition electron result, not a universal equation of state at nuclear densities where captures, interactions and the composition change.
The boundaries on a stellar equation-of-state regime diagram concern the electron component. Define the electron relativistic density threshold and thermal electron relativistic threshold byA degenerate electron gas is nonrelativistic well below and ultrarelativistic well above it: this is an approximately vertical division on a log-density plot. A nondegenerate electron gas instead becomes thermally relativistic near : this is an approximately horizontal division. The regimes have broad crossovers rather than a discontinuity at either line.
The exact electron Fermi temperature, subtracting electron rest energy, isFor electrons with negligible thermal pairs, strong degeneracy requires , whereas gives a nondegenerate gas. In the pair-rich regime the actual electron and Positron distributions must instead be treated with their chemical potentials, as discussed below. The two limiting degeneracy boundaries areThese slopes and explain the bent degeneracy boundary on the logarithmic graph. A thermal-wavelength test gives the same nonrelativistic density/temperature scaling, with an order-one definition of the crossover.
The radiation-to-gas pressure boundary in the nondegenerate fully ionized regime isRadiation dominates above this line. Once electrons are strongly degenerate, compare radiation pressure with instead of continuing the ideal-gas comparison into that regime. The radiation-to-degeneracy pressure boundary is , with logarithmic slopes and in the nonrelativistic and ultrarelativistic limits. Degeneracy of the electrons and dominance of their pressure are distinct criteria.
For the pair curve, distinguish baryonic net electrons from thermally created electrons and Positrons. Chemical equilibrium with photons requires opposite electron/Positron chemical potentials when the one-particle energy includes rest energy, as in the distributions below. At low temperature and low degeneracy the zero-chemical-potential density per charge species isCharge neutrality gives , while the nondegenerate equilibrium product is . HencePairs become important when is comparable with or exceeds , approximately the electron-positron thermal pair abundance curve . Below its density at a fixed temperature, pairs dominate over the net charge electrons. The exponential makes the low-temperature portion steep in a log-log plot. For , the full zero-potential integral gives approximate pair-marker densities at and at . At relativistic temperature use the full zero-chemical-potential Fermi-Dirac distribution instead; it gives , so the high-temperature pair curve approaches slope three in log-density versus log-temperature. Strong net-electron degeneracy suppresses Positrons and requires the full chemical-potential-dependent distribution.
Approximate stellar equation-of-state regimes and thermal pair boundary
. Details. The original diagram uses fully ionized helium, and , only to set numerical locations. It plots the full curve and the zero-chemical-potential pair integral, rather than extending their asymptotes into the crossover. The pair boundary is deliberately an approximate abundance marker, not a phase transition; at high temperature the nonrelativistic ion approximation and fixed-composition model also have limits. For with abundant nondegenerate pairs, the combined electron/Positron energy density is , so photons plus pairs have and . Real stellar matter adds Coulomb effects, partial ionization, nuclear reactions and, at sufficiently high density, nuclear-matter physics beyond the ideal regime map.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 14B Solution Created 2026-09-24 Updated 2026-10-03
In chemical equilibrium, the reaction obeys chemical-potential balance for ionizationbecause a photon gas in equilibrium has photon chemical potential . Applying the given nonrelativistic Maxwell-Boltzmann distribution to each massive species givesThe Hydrogen binding energy is in units with . Thus Saha's equation isFor ground-state hydrogen, and , so the degeneracy factor is one. Since , the translational factor is commonly written .
Charge neutrality gives . Write . Thenand henceCombining this with the stated photon density produces
In our universe the baryon-to-photon ratio is tiny, so there are roughly photons per baryon. Even when the mean photon energy is far below , the high-energy blackbody radiation tail contains enough ionizing photons to suppress neutral hydrogen. The recombination temperature is reached only after the Boltzmann factor overwhelms this large photon-to-baryon ratio, at .
For a universe with , take the degeneracy factor as one, , and define . Neutral formation occurs when the boxed ratio is of order one, giving approximatelyWith and , this gives and thereforeto order unity. This is much hotter than recombination in our universe because there is no enormous excess of photons, but it remains below because the electron's large translational phase space still favours the ionized state.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 9D Solution Created 2026-09-24 Updated 2026-09-29
Chemical equilibrium for gives , because the photon chemical potential vanishes. Applying the nonrelativistic number-density formula to all three massive species and taking the ratio givesUse charge neutrality , the Hydrogen binding energy , , and the ground-state statistical weights . ThenThe approximations are a dilute, nondegenerate ideal gas in thermal and chemical equilibrium, nonrelativistic electrons, protons and hydrogen, negligible excited hydrogen states, and negligible corrections from the proton-to-hydrogen mass ratio. This relation is the Saha ionization equation.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 9B Solution Created 2026-09-23 Updated 2026-09-25
In the nonrelativistic regime,The assumption puts the Fermi-Dirac distribution in its Maxwell-Boltzmann limit, soTherefore the nonrelativistic Maxwell--Boltzmann number density is
For , chemical equilibrium and the vanishing photon chemical potential implyApplying the number-density formula to each massive species and eliminating the chemical potentials givesUse charge neutrality, , the mass approximation , and the convention in the question that suppresses the order-one internal-degeneracy ratio . With the Hydrogen binding energywe obtain the Saha ionization equationThe assumptions are thermal equilibrium and chemical equilibrium before cosmological recombination, a nonrelativistic nondegenerate gas, zero photon chemical potential, charge neutrality, negligible proton-electron mass correction in the translational prefactor, and the stated degeneracy-factor approximation.
A black body absorbs all incident radiation; a small opening into an equilibrated opaque cavity approximates it because internal reflections strongly suppress escape without absorption. Equilibrium radiation has zero photon chemical potential. Counting electromagnetic modes and assigning mean occupation gives the spectral energy densityAt low frequency this becomes the Rayleigh-Jeans law, ; using that limit at all frequencies gives the ultraviolet catastrophe. At high frequency the exponential suppresses the spectrum. Quantized mode energy resolves the classical divergence.
Integration gives . An isotropic radiation field sends outward flux through a small aperture, soDifferentiating the wavelength spectrum gives ; the frequency-spectrum maximum is a different transformed peak, not simply . A real surface has emissivity less than one and possibly dependent on wavelength. Cavity temperature uniformity, aperture geometry, calibrated detector response and background subtraction are necessary when testing the spectrum or inferring temperature from it.
Each independent cavity mode is a quantum harmonic oscillator of angular frequency . Its occupation numbers represent the numbers of photons in that mode. At thermal equilibrium, photons can be absorbed and emitted by the walls, so their number is not conserved and the photon chemical potential is zero. The Boltzmann distribution of the oscillator excitations then givesThe expression supplied in the paper is the thermal excitation energy. The oscillator's temperature-independent zero-point energy is excluded from the emitted thermal radiation.
Putting and into the mode count from (a) gives the number of modes per unit cavity volume:Multiplying by the mean thermal energy in each mode yields Planck's law in the angular-frequency convention:The two photon polarizations are already included in the density of states; no further factor of two is needed. has units , whereas has units .
Photon gas 2026-10-13
A photon gas is a collection of photons described statistically as radiation. Here the equilibrium model is homogeneous, isotropic electromagnetic radiation in vacuum at temperature : each photon has energy , with momentum and frequency , and there are two independent transverse states of electromagnetic polarization. An absorbing cavity with walls at a common temperature provides a way to establish this thermal equilibrium. The bulk formulas assume cavity dimensions much larger than the typical wavelength , so the electromagnetic mode density in a box can replace individual cavity modes by a continuum. [ref]
https://davidtong.org/teaching/statistical-physics/statmechhtml/S3#S3.SS2. David Tong, Statistical Physics, §3.2: photon energies, polarizations and cavity equilibrium
The crucial constraint is whether photon emission and photon absorption, or other number-changing processes, can equilibrate the photon population. When they can, photon number is not an independently conserved quantity and the equilibrium photon chemical potential is . For each polarization and frequency, the mean occupation number then follows the Bose-Einstein distribution:If number-changing processes are ineffective but number-conserving interactions redistribute energy, a constrained Bose-Einstein distribution can instead have with chemical potential fixed by the number constraint. Thus thermal equilibrium with respect to energy exchange alone does not establish . The zero value can also persist in an already prepared Planck photon distribution during suitable subsequent evolution; continual photon emission is not required to preserve it. [ref]
https://academic.oup.com/ptep/article/2014/6/06B107/1560917. Hiroyuki Tashiro, CMB spectral distortions and energy release in the early universe (2014), §3.1: kinetic equilibration without full photon-number equilibration
Combining with the two-polarization density of states, , gives the Planck photon distribution and the spectral photon energy density:Here is the spectral radiance in Planck's law; is stored energy density per unit frequency, not outgoing power per area. Their different units are connected by the full-sphere solid angle and the speed of light . The Boltzmann constant is , and is the Planck constant. [ref]
The equilibrium equation of state is particularly simple:The radiation constant is the same constant called in black-body radiation; is the Stefan-Boltzmann constant. An outline of the energy density calculation substitutes and uses . The radiation pressure follows because the angular average of the squared directional component of photon momentum is for isotropy; the thermodynamic derivation of blackbody radiation pressure supplies an independent route. These formulas describe the radiation contribution, not the cavity walls. The isotropic massless relation survives a different isotropic spectrum, whereas the coefficient in requires the zero-chemical potential Planck photon distribution.
For a computed example with stipulated , the photon energy density is and the radiation pressure is . The photon number density in the International System of Units isHere is the Riemann zeta function. The mean photon energy differs from the energy at the peak of a spectral curve: counting photons and weighting them by energy emphasize different frequencies. The calculations use the exact International System of Units values of the Planck constant, Boltzmann constant and speed of light. [ref]
https://www.nist.gov/si-redefinition/meet-constants. NIST, Meet the Constants: exact SI defining constants
A motivating observation is the cosmic microwave background spectrum measured by the Far Infrared Absolute Spectrophotometer (FIRAS) aboard COBE. Its apparatus used a polarizing Michelson interferometer, with one input viewing a roughly seven-degree sky patch and the other an internal blackbody. Scanning mirrors changed the optical path length difference; heat-sensitive detectors recorded the varying power, and Fourier transform spectroscopy recovered the spectral difference. Operation outside the terrestrial atmosphere removed atmospheric emission and absorption, while shielding and cooling the optics in a helium cryostat suppressed the instrument's own radiation. [ref]
https://lambda.gsfc.nasa.gov/data/cobe/firas/doc/FES4_APP_B.pdf. Mather, Fixsen and Shafer, Design for the COBE Far Infrared Absolute Spectrophotometer, apparatus and systematic-error controls
Absolute calibration came from moving an external blackbody into the sky aperture, filling the same beam used for the sky. This was an iron-loaded epoxy absorber shaped as a re-entrant cone. Repeated reflections made it a close approximation to a blackbody, while thermometers supplied its temperature. Mather and colleagues explicitly evaluated reflections, temperature gradients, radiation leaking through the material and leakage around its edge. These are limits on how faithfully the calibrator realizes thermal equilibrium radiation, rather than details that can be eliminated merely by calling it black. [ref]
https://arxiv.org/abs/astro-ph/9810373. Mather et al., Calibrator Design for COBE FIRAS (1999): absorber geometry and calibration error budget
During sky observations the internal blackbody temperature was adjusted to nearly null the spectral difference, reducing gain and drift errors. Fixsen and colleagues' 1996 analysis used calibrated spectra over wavenumbers to , about to . They separated the sky's spatially uniform component, its dipole and Galactic emission, and varied sky cuts and foreground templates as controls. The resulting cosmic microwave background spectrum agreed with a single Planck function, with reported RMS deviations below 50 parts per million of its peak brightness. This is a residual statistic over the analyzed spectrum, not a pointwise relative error bound at every frequency. [ref]
https://arxiv.org/abs/astro-ph/9605054. Fixsen et al., The Cosmic Microwave Background Spectrum from the Full COBE/FIRAS Data Set (1996), §§2, 5 and 5.3
The observation motivates using a photon gas as a physical model rather than merely a formal counting exercise. Its interpretation has a clear boundary: agreement with Planck's law constrains departures from an equilibrium spectral shape within the calibrated band and foreground assumptions; it does not directly measure radiation pressure or entropy density of a photon gas. Nor does it establish that today's cosmic microwave background is continually re-equilibrating with matter. A previously thermal spectrum can retain its Planck function shape as expansion of the universe lowers every photon frequency in the same proportion. The usefulness of the model is that one measured spectral temperature, together with its equilibrium assumptions, predicts energy density, radiation pressure, photon number density and entropy density of a photon gas consistently.


