Thermal History of the Universe
Radiation-Dominated Universes
Energy density of radiation
Conservation of photons, plus redshift,
yields the variation with cosmic epoch: