# Sum to an integral in deriving equipartition theorem

I'm reading this derivation of the equipartition theorem for ideal gases. On the second page, it is mentioned that the partition function as a simple sum,

$${\displaystyle Z=\sum _{i}e^{-\varepsilon _{i}/kT}}$$

is not adequate to describe a classical gas as the distribution of energies is not discrete, but continuous. Instead, an integral is needed where

$$e^{-\varepsilon/kT}$$

is integrated over positions and momenta of which energy is a function of. But why is this conversion from a sum to an integral correct?

I can understand why an integral is needed, as the distribution of energies is continuous. But why is it correct to just integrate the exponential function to get the sum? Doesn't the integral give us the area under the curve of the exponential function, that is (speaking perhaps non-rigorously), the sum of the values of the function at different points, multiplied by the differentials $$dx$$, rather than the simple sum of the values? I've seen this kind of thing done in other places as well, and it bugs me.

• An integral is also the limit of an infinite number of infinitesimal terms
– user65081
Nov 4, 2018 at 16:22

Whenever a sum goes to an integral in the continuous limit, you need to take account of the issue raised by this question. When in doubt, proceed in two steps, as follows.

1. First write the sum with an explicit 'delta something' to signify the change in the index being summed over. In the present example:

$$$$Z = \sum_i e^{-\epsilon_i/kT} \delta i$$$$

The value of this $$\delta i$$ is 1 in this sum.

1. Next, replace $$\delta i$$ by the product of a density of something and a change in that something. In the present example, you should ask, "how many states are there per unit range of $$x,y,z$$ and $$p_x, p_y, p_z$$? The answer is one state per volume $$h^3$$ of phase space. The value $$\delta i = 1$$ represents the count in $$Z$$ increasing by 1 state, so the relationship is

$$$$\delta i = \delta x \delta y \delta z \delta p_x \delta p_y \delta p_z / h^3$$$$

which gives us

$$$$Z = \sum_i e^{-\epsilon_i/kT} \delta x \delta y \delta z \delta p_x \delta p_y \delta p_z / h^3$$$$

Now the continuous limit can be taken:

$$$$Z = \int e^{-\epsilon_i/kT} dx dy dz\, dp_x dp_y dp_z / h^3$$$$

where the integral sign is a shorthand for six integrals in this example.

That's it. To repeat: this issue comes up whenever a sum goes to an integral; it is not a special feature of kinetic theory or statistical mechanics. I guess some textbook writers simply assume it as a known aspect of this area of mathematics.

• Alright, this makes sense! So it was really a matter of proper normalization? However, the derivation on the link I provided seems to omit this factor of $1/h^3$. If we added this factor, would the derivation continue as before and leave us with the average energy of $1/h^3*1/2kT$? Nov 11, 2018 at 10:48
• You can answer your own question by putting the factor in, and then follow through the rest of the derivation and see what happens. You will see that in the link you gave, letters like $x$ and $p$ are used for dimensionless quantities, and factors of $h$ have been incorporated into the constant $c$ in the energy formula without comment. I would recommend you consult a textbook rather than web resources, if you have access to one. Books tend to be written more carefully, with attention to detail. Nov 11, 2018 at 14:38

But why is this conversion from a sum to an integral correct?

There is no conversion. The partition function is defined as integral in classical statistical physics, because the possible states form a continuous set and it is the most natural definition.

In pseudo-quantum (or old quantum) statistical physics, "state" in the partition function means different thing (a tuple of all quantum numbers that define preferred quantum state, like nx,ny,nz for 3D harmonic oscillator defining Hamiltonian eigenfunction, or occupation numbers of all particle sites) and all such possible states form a discrete set, so the most natural definition is a sum.