The gas that nobody counted
Assumes: The curve that would not come down · Pressure is a rate of arrival, and the gas law falls out of counting
A gas exerts pressure because molecules arrive at the wall and bounce, and counting arrivals gives for a gas of slow particles. Radiation in a cavity is also made of things that arrive at walls, and the same counting gives a third rather than two thirds.
That factor of two is the first of several differences, and all of them come from one thing that is different about the photons: there is no fixed number of them.
Why the number is not a variable
Put a litre of nitrogen in a flask and the number of molecules is whatever was put in. Heating the flask changes the pressure and the energy and leaves the number alone, because nothing in the physics creates or destroys a nitrogen molecule.
The walls of a cavity, at any temperature above zero, are emitting and absorbing photons continuously. Nothing conserves their number. So the number is not something that can be specified: it settles at whatever value makes the free energy least.
The thermodynamic statement of that is that the chemical potential is zero. The chemical potential is the free-energy cost of adding one more particle, and if the number is free to adjust then at equilibrium that cost must be nothing.
Everything else follows.
The number density comes out as , which is a cube of the temperature with no adjustable constant in it. At the microwave background’s kelvin that is per cubic metre — four hundred million photons in a litre of the emptiest space there is.
It is worth being clear about which quantity is doing the work, because “no fixed number” can sound like a technicality. In an ordinary gas the state is fixed by three numbers — say the temperature, the volume and the number of particles. For radiation the third is not available, so the state is fixed by two, and every property of the gas is therefore a function of the temperature and the volume alone. The pressure depends on the temperature and not on the volume; the energy density depends on the temperature and not on the volume; the number density likewise. A box of radiation twice the size at the same temperature is not denser or thinner, it is simply bigger, which is not how any material behaves.
Where the third comes from
The pressure of any gas is the rate at which momentum arrives at a wall, and what differs between the two cases is how much momentum a given energy carries.
A slow molecule of energy has momentum . A photon of energy has momentum . Doing the same counting with the second relation instead of the first gives
where is the energy per unit volume, against for the slow gas.
The factor of two is not about photons being light or about radiation being different in kind. It is about the relation between energy and momentum, and any gas of particles moving at nearly the speed of light — electrons in a white dwarf that has been squeezed hard enough, for instance — has the same third.
The energy density itself is with , which is the Stefan–Boltzmann law rewritten for the inside of a cavity rather than for what leaves through a hole. At room temperature the resulting pressure is pascals, a ten thousand millionth of an atmosphere; at ten million kelvin it is pascals, and radiation is then holding the star up.
The three laws written for a gas that has no N
Writing the standard thermodynamic relations for the photon gas is a short exercise and it produces several results that look wrong until the reason is remembered.
Every step of a thermodynamic cycle can be traced for radiation as easily as for a gas, and the resulting engine’s efficiency comes out at Carnot’s — which is the check that the photon gas is a proper thermodynamic system rather than an analogy. It has a pressure, an energy density, an entropy and an equation of state, and all four behave.
The energy is proportional to the volume at fixed temperature. , so doubling the box at constant temperature doubles the energy — which for an ordinary gas would require doubling the number of molecules, and here happens because the number doubles by itself.
The free energy is negative and is minus a third of the energy. , which is exactly. That the free energy is is the statement that the Gibbs free energy is zero — and is the chemical potential times the number, so a zero chemical potential is the same fact seen from the other side.
And the entropy of a box of radiation is finite and computable with no arbitrary constant. , with nothing left over to be fixed by a reference state, because the third law is satisfied automatically: as the temperature goes to zero so does the number of photons, and a box with nothing in it has no entropy.
Run a Carnot cycle with radiation as the working substance and the efficiency comes out at , as it must — the ceiling does not know what is in the cylinder. What is worth noticing is how different the intermediate steps look: an isothermal expansion of radiation admits heat while the pressure stays constant, since the pressure depends only on the temperature.
The history is compact and slightly out of order. Boltzmann derived the fourth-power law in 1884 from thermodynamics alone, using the one-third relation — which he took from Maxwell’s electromagnetic theory of radiation pressure — and a Carnot cycle. He did not need to know what radiation was made of, and photons were nineteen years away. That derivation is worth noticing because it establishes the whole equation of state from a mechanical fact about momentum and the second law, and it is one of the few places where thermodynamics predicts a number rather than merely relating two of them.
The exponent that decides whether a star can exist
Compress a box of radiation without letting heat in or out and the temperature rises. How the pressure responds is the adiabatic index, and here it is computable rather than assumed.
The entropy density is , so holding the entropy constant means holding constant. The temperature therefore falls as the cube root of the volume, the pressure as the fourth power of the temperature, and
Fitting the exponent to the computed curve gives .
That number is not merely smaller than a monatomic gas’s . It is the value at which a self-gravitating sphere ceases to be stable: squeeze such a body a little and the pressure rises by exactly as much as gravity does, so there is no restoring force at all. A star supported mostly by radiation is therefore marginally stable, and how far below four thirds its effective index sits is what decides whether it survives.
That is why there is an upper limit to the mass of a star. The heavier a star is, the larger the fraction of its support that comes from radiation, and the closer its effective index creeps to four thirds; above a few hundred solar masses it is close enough that ordinary perturbations are not restored.
There is one more consequence of the missing variable, and it is the one that makes the gas useful as a thermometer. Because every property depends on the temperature alone, measuring any of them measures the temperature: the total power through a hole, the position of the spectral peak, the pressure on a vane, the number density. Four independent measurements, one answer, and no calibration against a substance. That is why a cavity at a known temperature is the primary standard for radiometry, and why the microwave background’s temperature is quoted to five figures from a spectrum with no free parameters left in it.
The whole universe, expanded adiabatically
The same arithmetic run on a much larger box gives the temperature of the sky.
A photon’s energy changes when the geometry it is travelling through does, and the expansion of the universe is the version of that with no gravitating body in sight. The cosmic background is a photon gas expanded adiabatically for thirteen billion years: its spectrum has stayed Planckian throughout, with only the temperature falling — which is a strong statement, since almost nothing else survives that kind of stretching unchanged in form.
The early universe was hot, dense and dominated by radiation, and the expansion was slow enough compared with the interaction rates that it was adiabatic to a very good approximation. Holding constant with going as the cube of a scale factor gives
so the temperature falls in inverse proportion to how much the universe has stretched. The photons that were released when the universe became transparent, at about kelvin, arrive now at — the ratio being the factor by which everything has grown since.
Two features of that are worth separating.
The number of photons per comoving volume is unchanged. The number density goes as and the volume as , so no photons were created or destroyed by the expansion. What changed is where they are and how much energy each has.
The spectrum stays a blackbody spectrum. An expansion that redshifts every photon by the same factor takes a Planck curve at one temperature to a Planck curve at a lower one, exactly, which is why the microwave background is the most precisely thermal spectrum ever measured despite nothing having been in equilibrium with it for thirteen thousand million years.
That second point is a stronger statement than it looks. It relies on the number density scaling in exactly the right way; a gas of massive particles expanding freely does not keep a thermal spectrum, because its energies and its number density scale differently.
The same third, wherever the particles are fast
Nothing in the derivation of the one third used the fact that photons are photons, and it is worth seeing how far that goes.
Squeeze a degenerate gas until its particles move at nearly the speed of light and its pressure–energy relation changes from two thirds to one third. That is the same third the photon gas has, and it arrives for the same reason: the relation between energy and momentum has become linear. So the factor is a statement about kinematics rather than about photons, and anything ultra-relativistic inherits it.
The step that mattered was replacing by in the momentum, and that replacement is right for any particle whose energy is much greater than its rest energy. So:
A degenerate electron gas becomes a one-third gas when it is squeezed hard enough. In a white dwarf of low mass the electrons are non-relativistic and the index is ; compress it and they become relativistic, the index falls to , and the star loses its ability to resist. That is where the Chandrasekhar mass comes from, and the argument is the one in this essay applied to fermions instead of bosons.
A gas of neutrinos does the same. Massless or nearly so, they carry of momentum and contribute a pressure that is a third of their energy density, which is why the early universe’s expansion rate depends on how many species of them there are.
And the cosmological equation of state is written in exactly these terms. A component whose pressure is times its energy density dilutes as the volume to the power ; radiation has and dilutes as , ordinary matter has and dilutes as , and the fact that the first is steeper is why the universe was radiation-dominated early and is not now.
The one third is therefore not a fact about light. It is a fact about anything moving at very nearly the speed of light, and the photon gas is the case in which it is exactly true.
What is being counted, and what is not
There is a temptation to say that a cavity contains a definite number of photons and that the formula gives it. What it gives is a mean.
A photon gas’s states are counted the way any gas’s are, with two changes: the number of things is not fixed, and swapping two of them produces no new arrangement. The first removes the chemical potential and the second makes them bosons — and between them those two changes turn the ordinary counting into Planck’s distribution without any further physics being supplied.
The number fluctuates, and it fluctuates more than a gas’s does. For a conserved gas the relative fluctuation in the particle number in a subvolume goes as one over the square root of the number; for photons there is an additional term, because photons are bosons and prefer to arrive together.
That extra term is measurable and was measured, in the guise of the excess noise in the intensity of thermal light. It is the same clustering that makes two thermal sources fail to produce fringes while their intensity correlations survive, which is the effect a stellar interferometer of the intensity kind was built on.
So the photon gas is not a gas whose number happens to be determined. It is a gas whose number is a fluctuating quantity with a mean fixed by the temperature, and the fluctuations are as characteristic as the mean.
Four hundred million photons and a quarter of a proton
The number density computed above becomes considerably more interesting when it is put beside the density of everything else.
A cubic metre of the universe holds photons from the microwave background and about a quarter of a proton’s worth of ordinary matter. That is roughly one and a half thousand million photons per baryon, and the ratio is one of the handful of numbers cosmology treats as fundamental — it is fixed at whatever tiny asymmetry between matter and antimatter survived the early universe, since almost every baryon annihilated and left its photons behind.
The ratio also settles a question the essay’s own arithmetic raises. Hydrogen ionises at 13.6 electronvolts, which corresponds to a temperature of about 158,000 kelvin; so why did the universe not become transparent until it had cooled to some 3,000?
Because the photons vastly outnumber the atoms. Even when the typical photon is far too feeble to ionise anything, the exponential tail of a Planck spectrum still contains a fraction of photons above the threshold — and a tiny fraction of an enormous number is enough to keep every atom stripped. Cooling has to continue until that fraction falls below one in a thousand million or so, which costs another factor of fifty in temperature. The delay is essentially the logarithm of the photon-to-baryon ratio, and the transparency of the universe is dated by it.
Counting neutrinos with helium
The pressure being a third of the energy density has a second cosmological consequence, and it produced a particle-physics result before any accelerator did.
While radiation dominated, the universe’s expansion rate was set by the total energy density of everything moving at nearly the speed of light — photons, and also neutrinos, which contribute the same way for the same reason the essay gives. So the expansion rate depends on how many species of light particle exist.
That matters because the proportions of hydrogen and helium made in the first few minutes depend on how fast the universe was cooling when the weak interactions could no longer keep neutrons and protons in balance. Expand faster and the balance freezes out earlier, with more neutrons surviving, and more helium results.
The measured primordial helium abundance therefore counts light neutrino species, and by the 1980s it was telling cosmologists that the answer was three, or possibly four, and certainly not many. The accelerator measurement — reading the number off the width of the Z boson at LEP — came afterwards and agreed.
That is an unusually direct route from this page’s equation of state to a property of the particles. The one third fixed how the energy density drives the expansion; the expansion rate fixed a nuclear composition; and a chemical abundance measured in old stars counted a species of particle nobody could see.
Where the model runs out
Equilibrium is assumed throughout, and radiation is rarely in it. Sunlight is not blackbody radiation in a cavity; it is a beam from a distant hot surface, dilute by a factor of about fifty thousand. Its energy density corresponds to a temperature of about kelvin while its spectrum has the shape of , which is why the concentration a lens can achieve is bounded and why sunlight can be used to reach the Sun’s surface temperature and no higher.
The photons are non-interacting. Photons do not scatter off one another to any measurable degree, so the gas reaches equilibrium only by talking to matter — the walls. A cavity with perfectly reflecting walls and nothing in it never thermalises at all, and would keep whatever spectrum it was given for ever.
The entropy is a bulk quantity and a cavity has a surface. For a cavity small compared with the thermal wavelength the mode counting that gives breaks down, and quantities acquire corrections depending on the shape as well as the volume. At room temperature that matters below a few micrometres.
And the index of four thirds is exact for pure radiation and no star is pure radiation. A real star’s support is a mixture, its effective index is somewhere between and , and computing where is the whole of the stability calculation. The statement that four thirds is marginal is exact; the statement that a given star is near it is a modelling result.
The ladder from here
Later rungs on this anchor: the fluctuations in the photon number and what they say about photons being bosons; the thermodynamics of a gas of massless fermions, where the same relativistic relation gives the same third but the counting differs; the Casimir effect, where the zero-point part of the same mode sum produces a force between plates; and the entropy of radiation as an argument about the maximum work extractable from sunlight.
The neighbouring ladders are the curve that would not come down, where the spectrum everything here integrates comes from, light has a pressure, which is the mechanical version of the third, and the box of light that weighs something, which asks what the same box does when it is picked up.
Part 3 of 4
This essay is one argument about Blackbody. The others:
What links here
Essays that reach for this one mid-argument — the half of a link its own author cannot write down.
What this makes readable
Essays that declare this one a prerequisite.
The objects named here
The third axis, after the field and the reading path: the things themselves, and every essay that touches each one.
Adiabatic indexBlackbodyChemical potentialCosmic microwave backgroundEntropyEquation of stateEquilibriumParticle numberPhoton gasRadiation pressureRelativistic gasStefan boltzmann
- The bath that pushes back blackbody, cosmic microwave background, radiation pressure
- The body that has no temperature when it moves blackbody, cosmic microwave background, equilibrium
- The count that no observer can disagree about entropy, equilibrium, photon gas
- The hole that outlives everything and then does not blackbody, cosmic microwave background, entropy
- A boiling point is a pressure, not a temperature entropy, equilibrium
- A fridge with no work going into it chemical potential, entropy