Most textbooks on statistical mechanics derive the Boltzmann factor by assuming a large composite system that consists of a very small system together with a heat bath. They assume Boltzmann’s formula for the entropy

and then typically expand in a Taylor series. There is not much discussion about the necessary and sufficient conditions for Boltzmann statistics to be applicable. Below are the relevant sections taken from various textbooks:

1. Linda E. Reichl’s A Modern Course in Statistical Physics.

2. Kerson Huang’s Introduction to Statistical Physics.

3. Raj Kumar Pathria’s Statistical Mechanics, 3rd edition.

4. Walter Greiner *et al.*‘s Thermodynamics and Statistical Mechanics.

5. Kerson Huang’s Statistical Mechanics, 2nd edition.

These are all good textbooks that I have personally used and learned from. However, I found them to be insufficiently clear about the theoretical foundations of the canonical ensemble in equilibrium statistical mechanics. Where does the Gibbs factor really come from? Is it always applicable for systems that can exchange energy but not particles with a heat bath? For example, should we expect the Boltzmann factor to be applicable to Hamiltonian systems with long range interactions, such as galaxies composed of stars? None of the above books provide much of an answer to such questions. The books also leave an important question unanswered. Can we instead Taylor expand ? Or ? Why and not some other function of ? There are other issues that are typically not discussed. Can we expect the Boltzmann factor to appear in Hamiltonian systems that are not ergodic? Textbooks often do not attempt to clarify or discuss the necessary and sufficient conditions for the Boltzmann factor to be applicable.

I thus decided to rederive the Boltzmann factor and the canonical partition function from well known first principles, making clear the assumptions. (My approach is somewhat similar to a fleshed out version of the one found in Franz Mandl’s Statistical Physics.)

Consider an isolated large “total” system that consists of a thermal reservoir (heat bath) in thermal contact with a very small system . The total system is in thermodynamic equilibrium. Hence the total energy is constant. Since there is no net heat flow and since there can be no irreversible process under equilibrium conditions, the total entropy is also constant (in fact, it is maximized).

The total energy can can be decomposed into 3 parts, viz., the energy of the heat bath, the energy of the small system and an interaction energy that arizes from (possibly long-range) interactions between the particles in ths small system and the bath . We can thus write

.

In the thermodynamic limit of systems that do not have significant long-range interactions, the term grows in proportion to the boundary of the system , so that

where denotes the thermodynamic limit. In this case we can write

In such a scenario, we can also write

for the entropy. We are thus assuming that the entropy is also additive.

Let us now consider the total system in the microcanonical ensemble, so that we can invoke the postulate of equal *a priori* probabilities. The entropy of the small system , for fixed energy , is given by Boltzmann’s formula

where is the number of microstates. The probability of finding in a state with energy is given by

Subtituting (6) we get

Since is a constant, we have

Recall that we can expand a function according to

We can Taylor expand and write to second order

The first partial derivative is given by

from the definitions of internal energy, entropy and temperature. In our case, there is only one relevant temperature, viz., the temperature of the heat bath. Next, observe that the second order derivative involves a derivative of the temperature. However, by the idealized definition of a heat bath, the temperature is a constant, hence its derivative vanishes in the thermodynamic limit.

Notice above that we have not expanded , where is the number of states of the bath, but rather . The real reason why the textbooks expand is because it is proportional to . From thermodynamics, we know precisely how the entropy of a heat bath behaves. Specifically, we know how to Taylor expand the entropy of a heat bath.

We can now continue where we left off and thus write (9) as

In the above simplifications, we have used the fact that is a constant.

We thus obtain the Boltzmann factor:

where is the canonical partition function and the sum is over all microstates of .

Let us make clear what has been assumed:

1. We need finite size effects to be negligible. In other words, there is no reason to expect Boltzmann statistics to be valid far from the thermodynamic limit, e.g., for small systems or heat baths.

2. We have assumed that the total system can be described in the microcanonical ensemble. We have, however, not explicitly assumed ergodicity. But the microcanonical ensemble is compatible with the maximum entropy principle. So Boltzmann statistics may not be applicable far from equilibrium.

3. Additivity of the energy. We have assumed that the interaction energy between the heat bath and the smaller system can be ignored in the thermodynamic limit. When the Hamiltonian contains strong long-range interactions, this assumption does not hold and there is again no reason to expect Boltzmann statistics to be applicable.

4. The entropy must also be additive. If there are no long-range interactions, then in the thermodynamic limit we can expect to have

so that the entropy indeed becomes additive. If the Boltzmann entropy is not additive, however, our derivation above is no longer valid.

So now we know when to expect and when not to expect the Boltzmann factor to be applicable. A “gas” of stars in a galaxy, for example, has long-range gravitational interactions that cannot be ignored even in the thermodynamic limit. Hence, we should not expect the Boltzmann factor to be applicable. On the other hand, a gas of, say, helium atoms has no significant long-range interactions at room temperature, i.e. the mean interaction energies are negligible compared to .

Let me conclude by saying that although I am sure that Boltzmann statistics is not universal, I am entirely skeptical of alternative formulations that have become fashionable, such as those based on the Tsallis entropy. My collaborators and I have previously made our opinions clear on this question (see here).

I thank V.M. Kenkre for first calling my attention the intricacies involved in the proper derivation of the Boltzmann factor, during 2008-09, when I was a visitor at the Consortium of the Americas for Interdisciplnary Science, at the University of New Mexico, in Albuquerque. I thank Renê Montenegro for feedback.