Counting Arrangements

Why does heat spread out? Because there are more ways for it to be spread. Share energy between two blocks, count every arrangement, and watch the likely become the certain

Counting Arrangements

There is no law forcing the air in a room to spread out. Every particular arrangement of its molecules is as likely as every other; it is only that almost all the arrangements look spread out.

Counting is the whole explanation, of this and of why heat flows from hot to cold.

Microstates and Macrostates

Every possible arrangement of the discs is a tile: watch the gas wander over them, tap one to follow it, and add discs. The other tabs go on to numbers too large to draw, and to a hand of cards.

16
arrangements in all, 24
0 in 0
different arrangements seen, in so many looks
—
of looks found all on the left (± one standard error)
6.3%
predicted, 1 tile in 16
No tile is special: the gas visits each as often as any other. But more of the tiles have the discs shared out, so that is how the gas is usually found. Tap a tile to follow it.
share of the lookstiles in the stack ÷ all tilestiles visited (brighter: more often)where the gas is now

A flat gas of small discs (drawn larger than they are, so they can seem to overlap) with walls kept at a fixed temperature, looked at once every unit of time, roughly the time to cross one half. Nothing in the simulation mentions tiles or odds. The numbers on the discs are for us: they make it possible to say which arrangement is which. Discs that took up much of the box would shun crowded halves a little.

Go deeper:One Assumption, and Boltzmann’s Tomb

A complete description of where everything is and how it moves is a microstate. What we trouble to measure, such as how many are on the left, is a macrostate, and it covers many microstates. Their number is its multiplicity, written Ω. For N particles in two halves, with n on the left,

Ω(n) = N! / (n! (N − n)!)

which is a row of Pascal’s triangle, and the whole row adds up to 2N. Statistical mechanics makes one assumption: an isolated system left to itself is equally likely to be found in any of the microstates open to it. This is the postulate of equal a priori probabilities. It has been proved for very few systems; it is adopted because everything that follows from it agrees with experiment. The demo’s gas was not told about it, and obeys it within the scatter.

On Boltzmann’s grave in Vienna is carved S = k log W. W, our Ω, stands for Wahrscheinlichkeit, probability, and log means the natural logarithm. Boltzmann tied entropy to the number of arrangements in 1877; the formula in this form, with the constant k, is Max Planck’s, from 1900–1901. Why a logarithm? Put two separate systems side by side, and every arrangement of one goes with every arrangement of the other, so Ω multiplies; a quantity that is to add, as volume and energy do, must be its logarithm.

Some choices are ours. Are the halves the right cells, or should there be eight, or a thousand? Should speeds be counted as well? A finer description has more microstates and gives a different Ω. But the conclusion hardly depends on it: for any reasonable coarse description of 1022 particles, one macrostate and its near neighbours hold practically everything. See also: Probability Distributions, Phase Space.

Sharing Energy

Let quanta hop at random between two blocks, and drag the split on the chart to send the energy back where it was. Then set a big cold block beside a small hot one, and look at the factor per quantum.

1.35 × 1059
arrangements with this split, ΩA × ΩB
1 in 1.03 × 1022
share of all arrangements
×1.29 and ×40.00
factor that one more quantum would bring A and B
—
quanta that crossed towards more / towards fewer arrangements
A quantum crossing to B would multiply B’s arrangements by 40.00 and divide A’s by 1.29: ×30.89 in all. So heat tends to go to B. Nothing pushes it; there is just more room that way.
block Ablock Bthe walkcounted (band: ± one standard deviation)the split now: drag it

At each try two different oscillators are picked at random, and if the first has a quantum it passes one to the second; nothing else. Every arrangement is then visited equally often in the long run. The histogram begins when the walk first reaches the bulge. Energy is in whole quanta, as in a simple model of a solid, and the real oscillators would hop for reasons of their own. The factor per quantum is what temperature will turn out to be made of. See also: Temperature and the Second Law.

Go deeper:Stars, Bars and the Flow of Heat

In 1907 Einstein modelled a solid as a collection of oscillators, each holding a whole number of equal quanta. Write an arrangement as a row of q stars, the quanta, with N − 1 bars separating one oscillator from the next. There are q + N − 1 symbols in the row, and an arrangement is a choice of which of them are stars:

Ω(N, q) = (q + N − 1)! / (q! (N − 1)!)

Two blocks hold qA and qB = q − qA quanta in ΩAΩB ways. Add this up over every split and you recover Ω for the two blocks taken as one, which is Vandermonde’s identity. One more quantum multiplies a block’s count by

Ω(N, q + 1) / Ω(N, q) = (q + N) / (q + 1)

That is large when there are few quanta for each oscillator and falls towards 1 when there are many: energy is worth most, in arrangements, to the block that has least of it per oscillator. Only that matters, not the size of the block or its total energy. A quantum that moves from one to the other raises the total count if the receiver’s factor beats the giver’s. Where the factors are equal, the product is at its greatest. A quantity that decides which way heat flows, and is equal in two bodies when it stops, is what we have been calling temperature. See also: Temperature and the Second Law.

When there are many quanta to each oscillator, Ω ≈ (eq/N)N, so ln Ω ≈ N ln(q/N) + N, and the factor is about 1 + N/q. The hopping rule matters too. It picks an oscillator to give, not a quantum: then a hop and its reverse have the same chance, and a walk with that symmetry visits all its states alike. Had it picked a quantum, crowded oscillators would give more often, and arrangements would no longer be equally likely. See also: Markov Chains.

The Likely Becomes the Certain

Drag the ruler away from an even split and change N, from ten particles to the air in a room. Then shuffle cards, dye or coins, and meet two reasons to distrust the word “disorder”.

Off by
100
particles
10%
width of the peak, 1/√N
10%
the ruler: 1 × the width from even
36.8%
odds of being at least that far out (every term counted)
A wobble of that size is nothing unusual at this N: the ruler lies within the peak.
N = 10N = 100N = 10⁴N = 10⁶N = 10²³the chosen N; 1/√Nwidth summed from the exact counts

The fraction is of the number of particles expected in one half: +1% means 1% too many on the left. Each curve is scaled to the same height. Particles that ignore one another, as in a thin gas; a liquid’s fluctuations are smaller still. The air is at 20 °C and one atmosphere, and its density, or pressure, wobbles by about as much as its numbers do.

Go deeper:How Unlikely, and Where It Shows

The number on the left is a sum of N independent choices, so its mean grows as N and its spread as √N: here N/2 and √N/2. The relative width is therefore 1/√N. Further out, the odds of a fraction ½(1 + δ) fall off as

e−N I(δ),   I(δ) = ½[(1 + δ) ln(1 + δ) + (1 − δ) ln(1 − δ)] ≈ ½δ2

The rate I is the entropy that one particle lacks when the split is uneven, in units of k: an improbable state is one of lower entropy, and its odds are eΔS/k, where ΔS is the (negative) difference. This is the simplest case of the theory of large deviations. See also: The Central Limit Theorem, The Asymptotic Equipartition Property.

Fluctuations of 1/√N can be seen where N is small or the instrument is keen. A speck of dust a thousandth of a millimetre across is struck unevenly enough to jiggle: Brownian motion. Within a cube the size of a wavelength of light the air’s density varies by about one part in two thousand, enough to scatter sunlight, blue more than red, and colour the sky. The electrons in any resistor make a faint random voltage, Johnson noise, which every sensitive receiver must live with. Outside such cases thermodynamics is, for practical purposes, exact.

Entropy is often called disorder. The word serves when a deck is shuffled or dye spreads, and misleads elsewhere. Computer experiments by Alder and Wainwright in 1957 showed hard spheres, which neither attract nor store energy, freezing into a crystal when packed closely enough: lined up, each has more room to rattle, and there are more arrangements in all. Big particles in a crowd of small ones clump for the reason in the demo, worked out by Asakura and Oosawa in 1954. Oil and water separate in part because water molecules near oil have fewer arrangements open to them. In each case the neater picture has the larger count, and it is the count that grows.

Key Takeaways

  • Every arrangement is equally likely; what we notice covers many arrangements or few, and the many win.
  • Heat flows to the block that gains the larger factor of arrangements from a quantum, whichever block has more energy.
  • The relative width of the peak is 1/√N, so for everyday amounts of matter the likely is as good as certain.
  • Entropy counts the arrangements a description allows; it is not how untidy one of them looks.

Spot a mistake or have an idea?

Search