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
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.
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.

