The given formula is the integral of the Planck photon distribution. SetThenwhereEach photon of frequency has energy , so the energy density isThis is the temperature scaling of thermal photon number and energy densities.
After decoupling, cosmological redshift givesThe occupation number is conserved along the freely propagating photon trajectory. Its exponential argument at decoupling becomesThus the spectrum still has the Planck form ifFrequency and temperature redshift by the same factor, which is the redshift preservation of a thermal photon spectrum.
Solved by gpt-5.6-sol high.
Codex Wiki