# Why using a sum instead of an integral solves the Ultraviolet catastrophe?

Im reading about how using a sum instead of an integral when deriving the Rayleigh-Jeans law (in the equipartion part) solves the ultraviolet catastrophe. basically doing the following replacement:

$$\dfrac{\int \varepsilon e^{-\beta \varepsilon }}{\int e^{-\beta \varepsilon }} \rightarrow \dfrac{\sum \varepsilon _{n}e^{-\beta \varepsilon _{n}}}{\sum e^{-\beta \varepsilon _{n}}}$$

I understand how the two give rise to different expressions which in turn solve our problem. What im looking for is intuition for why this solves our problam.

From my understanding the only problem with Rayleigh-Jeans first derivation is that light with different frequency has different amounts of energy. i.e. $$\epsilon = hf$$. If this is the case, why does using a sum instead of an integral respect (for lack of a better word) that idea?

• The ultraviolet catastrophe is a result of the assumption that the frequency/wavelength of light in a cavity can take on any value. Planck resolved this issue by limiting the allowed frequencies to integer multiples of the fundamental. Commented Jul 11, 2022 at 12:47
• I suggest that you spell explicitly the integrals you are talking about and where the divergence happens - then one will be able to give you are more specific answer. Do really you want to know why/how Planck solves the problem... or what really happens in the integral? Commented Jul 11, 2022 at 13:03
• In the integral the variable is $\epsilon$ (?), in the sum the dummy variable should be $n$ so it is not clear what is the form of $\epsilon_n$ in the sum. For example if $\epsilon_n=\log n$, the sum does not converge. Commented Jul 11, 2022 at 13:13

You need to work out the integral and the sum (using $$\beta=\frac{1}{kT}$$) to get the average energy of an oscillator mode (with frequency $$\nu$$).

With the classical theory (with $$\varepsilon$$ continuous) you get $$\bar{\varepsilon}_\text{classical}(\nu) = \frac{\int_0^\infty \varepsilon e^{-\beta\varepsilon}d\varepsilon} {\int_0^\infty e^{-\beta\varepsilon} d\varepsilon} =\frac{1}{\beta} \tag{1}.$$ So here you found, the average energy is independent of the frequency $$\nu$$.

With the quantum theory (with Planck's quantization $$\varepsilon_n=nh\nu$$) you get $$\bar{\varepsilon}_\text{quantum}(\nu) =\frac{\sum_{n=0}^\infty \varepsilon_n e^{-\beta\varepsilon_n}} {\sum_{n=0}^\infty e^{-\beta\varepsilon_n}} =\frac{\sum_{n=0}^\infty nh\nu e^{-\beta nh\nu}} {\sum_{n=0}^\infty e^{-\beta nh\nu}} =\frac{h\nu}{e^{\beta h\nu}-1} \tag{2}.$$ So here you found, the average energy is approximately $$\frac{1}{\beta}$$ for small frequencies $$\nu$$ (i.e. the same as from the classical theory). But for large frequencies $$\nu$$ the average energy quickly approaches zero.

The next step is to calculate the total energy per volume ($$E$$) of all oscillator modes by integrating the frequency-specific average energy from (1) or (2) over all possible frequencies $$\nu$$ (from $$0$$ to $$\infty$$). Using the number of modes per frequency range and per volume, $$g(\nu)=\frac{8\pi\nu^2}{c^3}$$ (according to Blackbody radiation) you get the following results.

With the classical average energy from (1):
$$E_\text{classical} = \int_0^\infty g(\nu) \bar\varepsilon_\text{classical}(\nu)\ d\nu = \int_0^\infty \frac{8\pi\nu^2}{c^3} \frac{1}{\beta}\ d\nu = \infty \tag{3}$$ You immediately see, the integral diverges because of the contribution at large (i.e. ultraviolet) frequencies, in gross contradiction with the experimentally observed reality. This is the well-known failure of classical theory, known as the "ultraviolet catastrophe".

With the quantum average energy from (2) :
\begin{align} E_\text{quantum} &= \int_0^\infty g(\nu) \bar\varepsilon_\text{quantum}(\nu)\ d\nu = \int_0^\infty \frac{8\pi\nu^2}{c^3} \frac{h\nu}{e^{\beta h\nu}-1}\ d\nu \\ &= \frac{8\pi}{c^3h^3\beta^4} \underbrace{\int_0^\infty\frac{x^3}{e^x-1}dx}_{=\pi^4/15} \end{align} \tag{4} Here you see, the integral stays finite, because the integrand quickly approaches $$0$$ at large frequencies $$\nu$$. By evaluating the integral you arrived at the Stefan-Boltzmann law, in accordance with experimentally observed reality.

Planck essential introduced a cutoff, so that the result does not diverges.

Spectral radiance in Rayleigh-Jeans law is: $$B_\lambda(T)=\frac{2ck_BT}{\lambda^4},$$ which becomes infinite as $$\lambda\rightarrow 0$$ - this is what one calls ultraviolet catastrophe, since we are talking about shorter wavelengths (ultraviolet, in respect to the visible spectrum).

Planck's law is $$B_\lambda(T)=\frac{2hc^2}{\lambda^5}\frac{1}{e^{hc/(\lambda k_B c)}-1},$$ which at small wave-lengths behaves as $$B_\lambda(T)=\frac{2hc^2}{\lambda^5}e^{-hc/(\lambda k_B c)}$$ (Wien's law.) The exponent vanishes faster than $$\lambda^5$$ in the denominator, and the result remains finite.

Note that for $$hc/\lambda\ll 1$$ the Planck's equation reduces to the Rayleigh-Jeans' one.

Planck could have postulate simply that the wave length cannot be smaller than specific smallest wavelength, $$\lambda>\lambda_0=hc$$, and thus obtain finite results. His approach was initially just a bit more mathematically sophisticated way of introducing the cutoff. Now of course, introducing cutoffs has become a science, known as renormalization group.

• I’m not sure how this answers the question. Commented Jul 11, 2022 at 12:59
• @AshmitDutta please be more specific about what you don't understand. Commented Jul 11, 2022 at 13:04
• The answer seems to be giving an overview of what the ultraviolet catastrophe is, but the OP is asking for the reasoning behind switching from integral to sum in the derivation for the Rayleigh-Jeans law. Commented Jul 11, 2022 at 13:09
• @AshmitDutta I think the OP author is not very sure about what is ultraviolet catastrophe is, so I am trying to guide them gently. Do you have any specific suggestions for improving this answer? Commented Jul 11, 2022 at 13:17
• @RogerVadim. In essence the OP seems to be asking "what is the difference between an improper integral and an infinite series". He don't seem to have problems with the ultraviolet catastrophe. He wants to know why the series work and the integral don't. Commented Jul 12, 2022 at 12:53

This is mostly a question about math and less about physics. In essence, it is the difference between discrete count and a continuous count:

For simplification, let’s consider just the linear part of the numerator. The discrete count is

$$\sum_{n=0}^\varepsilon n=\frac{\varepsilon(\varepsilon+1)}{2}=\frac{\varepsilon^2}{2}+\frac{\varepsilon}{2} \tag{1}$$

Using Gauss summation formula. The smooth (continuous) count is

$$\int_{0}^{\varepsilon} x \mathrm{d}x=\frac{\varepsilon^2}{2} \tag{2}$$

The discrete count includes an extra linear element that is missing in the continuous count. This extra term comes from the excess “area” atop of the distribution function (check the image below).

Discrete counting includes an additional term of $$x$$. PS: This is just an example. To calculate the actual results one must use the corresponding distribution formulas.

A discrete sum includes an excess “error” that the differentiation process eliminates by making the size of the package ($$\Delta x$$) infinitesimally small. In the end a different result is achieved when comparing integration and summation. The important part here is that both, the sum and the integral converge or diverge together. Meaning that there is a sum associated to an integral even though they may be different. In the current case, the integral is

$$\frac{\int_0^\infty \varepsilon e^{-\beta\varepsilon}d\varepsilon} {\int_0^\infty e^{-\beta\varepsilon} d\varepsilon} =\frac{1}{\beta} \tag{3}.$$

And the sum is

$$\frac{\sum_{n=0}^\infty n e^{-\beta n}} {\sum_{n=0}^\infty e^{-\beta n}} =\frac{1}{e^{\beta}-1} \tag{4}.$$

So, the same setup has 2 valid mathematical solutions. However, experimentally we get a set of data points that are better fitted with $$(4)$$ and we are oriented to take that choice. An important physical consequence from this choice (which is obvious from the counting name) is that energy must be made up of discrete packages or quantum.