Coherent Thomson scattering by cold electrons changes a photon's direction without changing its frequency in the electron rest frame. A monochromatic incident radiation field therefore remains monochromatic after arbitrarily many such scatterings. Large scattering optical depth can isotropize radiation but does not imply a Planck photon distribution. True absorption and emission, or suitable additional inelastic processes and photon production, are needed to establish a blackbody spectrum independently of the initial radiation field.
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]
A short first law of thermodynamics check, for neighboring equilibrium states with , is
The 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, so
An 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.
Figure 1.
Analytic reversible photon gas expansion: entropy conservation and pressure work
. Original fixed-species model with from 1 to 8 and no entropy production. The left panel shows , and on a logarithmic vertical scale. The right panel plots ; the shaded integral is . Total entropy remains constant even though both entropy density and internal energy decrease. Details.
For a computed scale at stipulated , . Combining this with the photon number density gives
This 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]
In the Maxwell-Boltzmann velocity distribution, each Cartesian component has mean-square velocity . Thus . The original PDF calls this quantity an rms velocity, but the rms speed is its square root. Also, its must mean the dimensionless mean occupation number , since its equilibrium value is a Planck photon distribution; it is not the frequency-integrated photon number density.
Take at a fixed local radiation temperature. Because is proportional to frequency,
The hot-electron Kompaneets equation therefore becomes
For traversal length , the Compton y parameter is
It measures electron pressure integrated along the line of sight, or the Thomson scattering optical depth weighted by . In this hot-electron limit the mean fractional energy gain is approximately . The derivation assumes nonrelativistic electrons, Thomson-limit photon energies and . The original PDF uses , as required for ordinary frequency; the converted TeX incorrectly substitutes .
Write , with and . Differentiating the Planck photon distribution gives
Dividing by proves the first-order thermal Sunyaev-Zeldovich effect:
In the Rayleigh-Jeans law limit, and , so . In the Wien approximation, the prefactor approaches and the bracket approaches , so . The last limit is an asymptotic description of the first-order coefficient: a perturbative prediction at large still requires .
Hot electrons transfer energy to the cosmic microwave background, removing low-frequency photons and enhancing the high-frequency tail. The first-order distortion crosses zero where , at ; for today's CMB this is near . Photon conservation follows directly from the boundary term
In contrast, integration by parts gives , so radiation gains a fraction of its original energy. The thermal Sunyaev-Zeldovich effect is thus a spectral distortion, not simply a new blackbody temperature.
A galaxy cluster with bulk peculiar velocity along the line of sight additionally produces the kinetic Sunyaev-Zeldovich effect. Define for recession and . To first order in velocity and optical depth, : receding gas gives a decrement and approaching gas an increment. Its occupation number perturbation is , the spectrum of a small blackbody temperature change. It remains nonzero at the thermal null and therefore complicates measurements near that frequency.
The photon number density is obtained by integrating the Planck photon distribution. With ,
The integral converges, since its integrand is of order near zero and decays exponentially at infinity. Hence , with independent of temperature.
For equilibrium radiation undergoing adiabatic expansion, the total entropy in a comoving volume is constant. Since the entropy density is , this means is constant. A comoving volume scales as the cube of the scale factor, so
This agrees with the cosmological redshift of each photon frequency. The conclusion uses entropy conservation during the expansion.
Use a local orthonormal tetrad and units in which the speed of light is one. A particle has four-momentum and moves with velocity . Thus its energy density contributes , its momentum density contributes , and its momentum flux contributes . Integrating the phase-space distribution function gives the kinetic stress-energy tensor. The measure is the future mass-shell Lorentz-invariant phase-space measure, so the same expression transforms as a spacetime stress-energy tensor; fixed state-counting or polarization factors are understood to be included in .
Define . The photon momentum measure is , so every component of the kinetic stress-energy tensor has a radial factor . An isotropic background has and . Hence
This radiation pressure equation of state requires isotropy and masslessness, not a thermal spectrum.
The distribution perturbation is . Assume finite energy density and endpoint behavior at zero and infinity, as for the Planck photon distribution. Integration by parts then gives
Consequently the perturbed energy density and momentum density are
Since , the photon angular temperature moments give and .
The sign of anisotropic stress must be specified. Direct kinetic integration gives the conventional trace-free spatial stress . The PDF uses the opposite sign, , equivalently . With that convention, all requested moments are
Taking the spatial trace also gives
The angular temperature description assumes is independent of photon energy; independent spectral distortions would require additional energy-dependent moments.
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, is
For , and , giving . For , and , giving . Thus
Neither 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 has
In 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 distribution
Use and . The radiation constant and photon equation of state are therefore
Likewise . 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 momentum
Here 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 are
The 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 by
A 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, is
For 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 are
These 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 is
Radiation 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 is
Charge neutrality gives , while the nondegenerate equilibrium product is . Hence
Pairs 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.
Figure 1.
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.
In a box of volume , the electromagnetic mode density in a box, including the two transverse polarizations, is
Each photon has energy , and the given mean occupation number is . Omitting the temperature-independent zero-point energy, the total energy is therefore
With the change of variables ,
The given formula is the integral of the Planck photon distribution. Set
Then
where
Each photon of frequency has energy , so the energy density is
This is the temperature scaling of thermal photon number and energy densities.
After decoupling, cosmological redshift gives
The occupation number is conserved along the freely propagating photon trajectory. Its exponential argument at decoupling becomes
Thus the spectrum still has the Planck form if
Frequency and temperature redshift by the same factor, which is the redshift preservation of a thermal photon spectrum.
For a spherical star in Newtonian hydrostatic equilibrium, the total supporting pressure satisfies
where zero external pressure is the idealized vacuum boundary condition. Substitute the enclosed mass from a, set , and integrate inwards:
The supplied integral follows directly by differentiating . It yields
Thus , about for the Sun's parameters. This is precisely the equation of state of a polytrope of index one.
For nonrelativistic fully ionized hydrogen with electrons and protons at a common temperature, the gas pressure is . If gas pressure dominates, the resulting temperature profile is
Numerically for the Sun's parameters, and tends to zero at the idealized outer edge.
If the photons are additionally assumed to be in local thermodynamic equilibrium with this gas, their radiation pressure is , with . The consistent temperature is instead the unique nonnegative root of
The left side is strictly increasing in for , so the root is unique. Evaluating the radiation pressure at gives at most for the Sun's parameters, at the centre; the ratio decreases approximately as outwards. The gas-only profile is consequently an excellent approximation within this imposed stellar model.
Hydrostatic equilibrium by itself fixes total pressure, not how it is divided between gas and radiation. Thomson scattering alone does not enforce a common gas–radiation temperature or a Planck photon distribution. Without either neglecting radiation pressure or specifying the radiation field and its thermodynamic closure, a unique gas temperature cannot be inferred from the given mass density alone.
Under an additional thermalization assumption, an opaque star emits approximately black-body radiation characterized by the temperature near the layer from which thermal photons escape. Planck's law gives a Rayleigh-Jeans law low-frequency tail and a Wien approximation high-frequency tail .
Using the gas-dominated temperature profile in d and the local escape criterion in c, the model's putative emission temperature for the Sun's parameters would be
Using radial instead gives . The frequency form of Wien's displacement law for the maximum of is , so these two prescriptions predict
respectively, in the far infrared/submillimetre region. These are conditional estimates for this model, not observed solar peaks. A realistic solar effective temperature near gives in . The maximum of occurs near ; it is not obtained by simply taking , because spectral densities transform with a Jacobian determinant.
The model is unsuitable for the solar photosphere: fully ionized hydrogen at – is inconsistent with thermal ionization, and the assumed opacity and near-surface temperature gradient do not resemble the Sun's. Even its central temperature is substantially below the actual solar value, about .
There is a further logical limitation: the question retains only Thomson scattering. In its coherent, cold-electron limit, this redistributes photon directions without generating a Planck photon distribution. For a concrete counterexample, monochromatic injected radiation remains monochromatic after any number of such elastic scatterings; large optical depth cannot turn it into black-body radiation. True absorption and emission, or a specified pre-existing thermal radiation field with appropriate energy exchange, are missing. Thus an approximately blackbody emergent spectrum is the usual additional physical assumption, while the stated scattering-only model does not uniquely predict an emergent spectrum or its peak.
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]
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]
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 is
Here 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]
Figure 1.
Analytic photon gas spectra: counting photons and weighting their energies
. Original equilibrium model, not measured data. The left panel evaluates at stipulated per gigahertz. The right panel uses and plots the normalized spectral fractions and , each with total integral one on . Their different shapes show why a photon-counting spectrum and an energy density spectrum have different peaks. Details.
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]
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]
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]
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.
Thermal Sunyaev-Zeldovich effect Created 2026-10-14 Updated 2026-10-20
For a Planck photon distribution, the hot-electron Kompaneets equation gives , where . The equivalent thermodynamic temperature perturbation has the displayed form, while the Rayleigh-Jeans law gives . The distortion changes sign at . This first-order expression assumes a small Compton y parameter and nonrelativistic thermal electrons.