Seeking to explain thermodynamics based on moving and interacting atoms

Chapter 6 – The Boltzmann energy distribution – illustrated

Continuing from the discussion on entropy in Chapter 5, a significant outcome from Boltzmann’s theoretical analysis of entropy was his discovery of the most probable distribution based on energy, which naturally became known as the famous Boltzmann distribution. He illustrated it with a memorable example. I introduce the origins of the Boltzmann distribution here because I will refer to it in later chapters.

Boltzmann and probability

In his wonderful paper of 1877 [1], Ludwig Boltzmann used a balls-in-buckets example to illustrate the probabilistic basis for entropy. The paper, which I strongly encourage anyone interested in statistical mechanics to read, shows how the maximum number of ways to organize a system of molecules occurs when lower energy states are more populated than higher energy states. In the illustration below from my book, I show how Boltzmann’s work leads to the famous Maxwell-Boltzmann distribution of molecule population as a function of kinetic energy.

In the following excerpt from Chapter 42 of my book, Block by Block – The Historical and Theoretical Foundations of Thermodynamics, I share the balls-in-buckets example that Boltzmann created to illustrate his probabilistic approach.

How many ways can you place 7 balls in 8 buckets?

There’s a great illustrative example that Boltzmann used in this 1877 paper to explain the mathematics involved in these calculations (Figure 42.1 from my book).  In this example he showed how 7 balls[2] can be arranged into 8 energy buckets, ranging in equal increments from zero to the final and highest-energy bucket while keeping total energy constant at an amount equal to a single ball being in the final bucket. This illustration is designed to complement the text and so enhance comprehension. 

Naturally, one possible distribution of these balls is:  place one ball in the final bucket, achieve the necessary total energy of the system, and then place all other balls into the zero-energy bucket.  By rotating which of the 7 balls goes into the final bucket one finds that there are 7 different ways to create this specific distribution, each being a unique complexion of the same identical distribution.

Figure 42.1 from Block by Block – The Historical and Theoretical Foundations of Thermodynamics. There’s a mistake in the lower left table for distribution #8; instead of what is written as 0,1,2, what should be written is 4,0,2,1.

It turns out that there are 1716 different complexions possible for this example and these can be grouped into any of 15 possible distributions.  Permutation theory can be used to write an equation quantifying the number of complexions (P) in each of the 15 distributions

P = n! / [n0! n1! n2! n3! n4! n5! n6! n7!]

where the ni terms represent the number of balls in the bucket having energy i and n the total number of balls. 

Each set of ni values characterizes a specific distribution that fulfills the fixed energy constraint.  So for the example used above in which n = 7, setting n7 = 1 and n0 = 6 results in P = 7.  In another example, you could put all the balls in bucket 1. Since n1 has 1/7th the energy of n7, then this distribution meets the fixed total energy requirement.  Plug these numbers into the above equation and you’ll see that there’s just one single way to put all balls into one bucket.  Remember, it’s only whether or not a given ball goes into a given bucket that matters; the order in which they are placed there doesn’t.

Continuing, since n is fixed at 7, the goal of finding the distribution with the greatest number of complexions is to minimize the denominator.  In this example, n is rather small which makes the mathematics somewhat complex, but for the tremendously large values of n in a real system of molecules, the mathematics becomes easier thanks to Stirling’s approximation: for large x, ln x! ≈ x ln x – x. The –x terms add up to the fixed total, –n, and so drop out, leaving the optimization as the minimization of the sum of nᵢ ln nᵢ terms.[3]

The caveat of fixed total energy adds complexity to the optimization process, but Boltzmann shows the reader how to work through the mathematics.[4] 

Again, this is a very nice mathematics tutorial for those who are interested.  As Boltzmann noted, when the goal is the minimization of these terms without constraint, the solution is an equiprobable distribution of ni terms.  This occurs when looking at how molecules spread through space in the absence of any external force.  The solution simply says that molecular density is spread equally throughout the constrained volume V. With the energy constraint, though, the answer changes.

What does the most probable distribution look like? For equally spaced energy buckets, the answer is strikingly simple: each step up in energy reduces the bucket’s population by the same factor. In modern notation,

nᵢ ∝∝ e(–εᵢ / kBT)

where εᵢ is the energy of bucket i and T is the temperature. This exponential fall-off is the Boltzmann distribution. Temperature sets how steeply it falls. At low temperature, nearly all molecules crowd into the lowest buckets; at high temperature, the population spreads up into the higher ones, approaching an equal spread only in the limit of infinite temperature. And because kinetic energy depends on the square of velocity (½mvₓ² for the x component), this exponential in energy becomes a Gaussian in each velocity component: the bell curve of Chapter 5.

After many pages of extensive mathematics, Boltzmann arrived at the solution.  The distribution that encompasses the maximum number of complexions is none other than Maxwell’s distribution.  Starting from an entirely new direction in physics, that of pure probability and having nothing to do with collisions or time, Boltzmann demonstrated that Maxwell’s is indeed the most frequently occurring and thus the most probable distribution.

Of course Boltzmann did not stop there.  He went on to demonstrate how the mathematics could be performed for both discrete and continuous energy distributions and then additionally went on to demonstrate how the mathematics could be performed for the distribution involving both location (three coordinates) and momentum (three velocity components), resulting in location-momentum buckets of six dimensions. This opened the door to understanding the impact of external forces such as gravity on the spatial and momentum coordinates of a collection of molecules, including dissimilar ones. The inclusion of location also opened the door to incorporating the variable of volume into his mathematics, which enabled the dependency of entropy on both energy and volume to be captured, leading to state function relationships: S (U,V).[5]

Summary

We can now state the key ideas of this chapter:

Looking Ahead

This chapter completes Section 3. We now have the statistical tools: entropy as a count of arrangements, and the Boltzmann distribution as the most probable sharing of energy. Section 4 turns to the macroscopic properties of classical thermodynamics, beginning in Chapter 7 with the bridge between the two worlds.

References

[1] Boltzmann, L., “Über die Beziehung zwischen dem zweiten Hauptsatze der mechanischen Wärmetheorie und der Wahrscheinlichkeitsrechnung respektive den Sätzen über das Wärmegleichgewicht,” Sitzungsberichte der Kaiserlichen Akademie der Wissenschaften, Mathematisch-Naturwissenschaftliche Classe, Abt. II, 76, 373–435 (1877). English translation with commentary: Sharp, K., and Matschinsky, F., “Translation of Ludwig Boltzmann’s Paper ‘On the Relationship between the Second Fundamental Theorem of the Mechanical Theory of Heat and Probability Calculations Regarding the Conditions for Thermal Equilibrium’,” Entropy 17 (4), 1971–2009 (2015). I highly recommend this paper if you want to understand Boltzmann’s transformation of thermodynamics into probability: very well written by Boltzmann, and very well summarized by Kim Sharp.

[2] Boltzmann actually used molecules in his example.  I chose to use balls.

[3] When converted into the world of logarithms, the sequence of nini terms transforms into the familiar form that some have used ∑ ni ln (ni) and the minimization process thus focuses on this term. For large numbers, frequency of occurrence can be converted to probability, giving another familiar form of this term, ∑ pᵢ ln (pᵢ), which reappears in Claude Shannon’s information theory..

[4] Dill, K. A., and Bromberg, S., Molecular Driving Forces: Statistical Thermodynamics in Biology, Chemistry, Physics, and Nanoscience, 2nd ed. London and New York: Garland Science, 2011. Dill shows how Lagrange multipliers are needed to solve the mathematics involved. Boltzmann did not call them that, but it is the approach he used.

[5] See [1], commentary regarding the importance of including volume together with energy, S(U,V), in Boltzmann’s statistical mechanics.

Last updated: November 28, 2026