The ultraviolet catastrophe is the divergent total thermal radiation energy predicted by classical equipartition theorem applied to the electromagnetic mode density in a box. Each mode has mean energy , while the number of modes per volume per frequency is . The Rayleigh-Jeans law therefore gives , whose integral over all positive frequencies diverges at every .
Planck's law replaces the classical mode energy by . It agrees with equipartition when but suppresses high-frequency excitations exponentially. The resulting spectral energy density is integrable and yields the finite Stefan–Boltzmann law. The failure concerns the classical equilibrium distribution of energy among modes, not the existence of electromagnetic wave propagation itself.
Articles by others on the same topic
What is the Ultraviolet Catastrophe? by Physics Explained (2020)
Source.