Temperature That ClicksEpisode 2 / Temperature is how energy gets shared out

Toss counters into boxes at random ── no rule imposed, and yet an exponential distribution rises by itself

Temperature is how energy gets shared out The amount of energy is not temperature. Temperature is the slope of the sharing.
And the real quantity is not \(T\) but \(\beta=1/k_BT\) ── "if you gain one unit of energy, by what factor does the number of ways multiply?"

Tools you'll need: Episode 1's \(E/k_BT\), logarithms, exponentials, counting The heart of this episode: β ≡ d(ln Ω)/dE

Episode 1 said temperature is energy. That isn't enough ── a bathtub and a cup of water at 40 °C are at the same temperature but hold wildly different energies. Temperature is not a total. So what is it? The slope of the sharing ── and this is not an armchair claim; you can watch it stand up in front of you. Line up a lot of boxes and let counters (the smallest units of energy) be passed around at random. No rule, no exponential, no Boltzmann is put in ── and within seconds an exponential distribution appears. Its slope is the temperature. Following that experiment through also shows why the true identity of temperature is \(\beta=1/k_BT\), not \(T\).

01The simplest experiment ── boxes and counters

What you need:

That's all. Energy is conserved (the number of counters never changes). Nothing else is imposed. Not "temperature," not "equilibrium," not "entropy" ── none of them are written anywhere yet.

02Try it ── an exponential rises by itself

The figure below is that experiment. Above: the contents of the boxes (bar height = number of counters). Below: the histogram (how many boxes hold \(n\) counters).

Start with "put them all in one box." The histogram is a mess at first, but as counters get passed around ── it settles into a straight exponential (switch the vertical axis to logarithmic and it becomes a line). Nobody specified an exponential. And when you move the mean-energy slider, only the slope of that line changes.

Figure: 300 boxes with counters scattered among them, passed one at a time at random. Above = counters per box, below = the histogram (dotted line is the theoretical geometric distribution). Switch to a logarithmic axis and a straight line = an exponential. The slider changes the mean energy (= the temperature) and only the slope moves
experiment (counted just now) theoretical exponential

This is the moment temperature is born. The individual exchanges are random, and yet the whole settles into a definite shape ── a shape with exactly one parameter: the slope.

03Why an exponential? ── because more ways win

The reveal is remarkably simple. Just count the number of ways of distributing the counters.

Split the system in two ── a small part you care about (one box) and everything else (the bath). The total energy \(E_{\text{tot}}\) is fixed. If the small part holds energy \(E\), the probability of that is proportional to the number of ways for the rest:

$$P(E)\ \propto\ \Omega_{\text{bath}}(E_{\text{tot}}-E)$$

"The more energy the small part takes, the fewer counters remain for the rest, and the fewer ways the rest has" ── so large \(E\) is unlikely. Obvious so far. But how does it fall off?

Take a logarithm and it comes out in one line

\(E\) is small compared with the bath, so expand \(\ln\Omega_{\text{bath}}\) to first order in \(E\):

$$\ln\Omega_{\text{bath}}(E_{\text{tot}}-E)\approx \ln\Omega_{\text{bath}}(E_{\text{tot}})-E\cdot\underbrace{\frac{d\ln\Omega_{\text{bath}}}{dE}}_{\textstyle \equiv\ \beta}$$

Exponentiate again:

$$P(E)\ \propto\ e^{-\beta E}$$

That's it. The exponential appeared because we truncated a Taylor series at first order ── that is, because the bath is large. The Boltzmann factor is the logarithm of a count of ways, linearised. Nothing more, nothing less.

And the \(\beta\) defined along the way is the true identity of temperature.

The heart of this episode ── the definition of temperature
$$\beta\ \equiv\ \frac{d\ln\Omega}{dE}\ =\ \frac{1}{k_BT} \qquad\Longleftrightarrow\qquad \frac{1}{T}=\frac{\partial S}{\partial E}\quad(S=k_B\ln\Omega)$$

In words ── "if you gain one unit of energy, by what factor does the number of ways multiply?"
A system whose count of ways explodes when it gains energy (i.e. one that wants more energy) has large \(\beta\) = it is cold. One that barely gains has small \(\beta\) = it is hot. Put two in contact and energy flows toward the larger \(\beta\) (the colder one), stopping when the two \(\beta\)s are equal ── that is thermal equilibrium.

The same equation as "Renormalization That Clicks," Episode 1 The \(S=k_B\ln\Omega\) appearing here is exactly the "entropy = the amount of information discarded" of the sister series' Episode 1. There we counted "the microstates that look the same macroscopically." Here we take the energy derivative of that count.
So ── temperature is how much the discarded information grows when you add energy. That is precisely why Episode 1 called temperature the exchange rate between energy and bits: \(1/T=\partial S/\partial E\) measures "how many bits per joule."

04Which is why the real quantity is \(\beta\), not \(T\)

Because \(\beta=1/k_BT\) is "one over temperature," it usually gets treated as a supporting player. But look at the definition: \(\beta\) was born first. \(T\) is merely defined afterwards as its reciprocal.

Make \(\beta\) the lead and a lot of things become straightforward.

SituationβTSeen through \(\beta\)
near absolute zero+∞0an endpoint; infinite eagerness for energy
ordinarily coldlarge positivesmallcontinuous
ordinarily hotsmall positivelargecontinuous
infinite temperature0just zero. Nothing special; a waypoint
negative temperature (Ep. 5)negativenegativesimply past zero. Continuously connected

Written in \(T\) there is an awkward "infinity" sitting in the middle; written in \(\beta\) that place is just \(0\). So Episode 5's negative temperatures hold no mystery from \(\beta\)'s point of view ── the sign of a slope changed. The apparent \(\pm\infty\) wall in temperature is an artifact of writing the reciprocal.

05The smallest application ── a two-level system

A system with only two states separated by ΔE

The ratio of occupancies of the upper and lower level is the Boltzmann factor itself:

$$\frac{n_{\text{upper}}}{n_{\text{lower}}}=e^{-\Delta E/k_BT}$$

Episode 1's "only \(E/k_BT\) matters" plugs straight in ── if \(\Delta E\ll k_BT\) the ratio is 1 (both equally filled); if \(\Delta E\gg k_BT\) it is essentially 0 (only the lower is filled).
For instance at room temperature (25 meV) with \(\Delta E=1\) eV, \(e^{-40}\approx4\times10^{-18}\) ── a few in ten quintillion. Which is why ordinary matter sits almost entirely in its ground state. What happens as that ratio approaches 1, and what happens when it exceeds 1, is Episode 5.

06What a thermometer actually does

By now we can say what a thermometer is. It does not measure "hotness" ── it is a device that touches something and waits until the two \(\beta\)s agree. Read your own state afterwards and you know the other's \(\beta\).

So a thermometer needs two things. (1) To be much smaller than what it measures (measuring must not change it). (2) To wait until \(\beta\) equalises. When the second fails ── rapid changes, or systems far from equilibrium ── the very quantity "temperature" ceases to be definable. Temperature is a word for equilibrium.

◇ ◇ ◇
The honest line ── what was assumed

Established: that the Boltzmann factor \(P(E)\propto e^{-\beta E}\) follows from expanding the logarithm of the bath's state count to first order; that \(\beta=d\ln\Omega/dE=1/k_BT\), i.e. \(1/T=\partial S/\partial E\) with \(S=k_B\ln\Omega\), is the statistical-mechanical definition of temperature; that thermal equilibrium is the equality of \(\beta\) between systems in contact; the two-level occupancy ratio \(e^{-\Delta E/k_BT}\); and that the model in the figure (indistinguishable quanta distributed among distinguishable boxes) has a geometric equilibrium distribution \(p(n)\propto(q/(1+q))^n\) as \(N\to\infty\) ── all standard statistical mechanics.

What is assumed: (1) Truncating at first order is valid only when the bath is far larger than the system of interest. For small baths the higher-order terms matter and the distribution departs from exponential (this is the subject of Episode 4). (2) "Random sharing must reach equilibrium" holds in this model but is in general the assumption of ergodicity. Systems where it fails do exist (integrable systems, glasses, many-body localisation). (3) The counter-passing in the figure does not model real molecular collisions; it is a minimal model to show that a distribution is fixed by nothing but a conservation law plus random exchange. (4) Temperature is defined only in equilibrium (or local equilibrium); far from equilibrium, "the temperature of that system" generally does not exist.

Exercises (solvable with this episode's ideas)
  1. Why do a bathtub and a cup of water at the same temperature hold different energies?
    See the answer
    Because temperature is not the total energy but the slope of the sharing, \(\beta=d\ln\Omega/dE\). The bath has more degrees of freedom so more total energy, but "how much the count of ways grows per unit energy added" is the same. Which is why no heat flows between them.
  2. Where does the exponential in \(e^{-E/k_BT}\) come from?
    See the answer
    From expanding the bath's \(\ln\Omega\) to first order in the system's energy \(E\); exponentiating gives \(e^{-\beta E}\). The exponential is not a mystery of nature but the first term of a Taylor series, and truncating is allowed because the bath is large.
  3. When two systems are put in contact, which way does heat flow? Answer in terms of \(\beta\).
    See the answer
    Toward the system with the larger \(\beta\) (the one whose count of ways explodes on receiving energy = the colder one), because that increases the total number of ways. It stops when the \(\beta\)s agree ── the definition of thermal equilibrium.
  4. Why is the apparent \(\pm\infty\) "wall" in temperature an illusion?
    See the answer
    Because the real quantity is \(\beta\) and \(T=1/k_B\beta\) is its reciprocal. Zero is an ordinary waypoint for \(\beta\); it only looks like \(+\infty\) when viewed through \(T\). Push \(\beta\) negative and \(T\) goes negative (Episode 5).

Episode 2 summaryTemperature is the slope of the logarithm of a count

Toss counters into boxes at random and an exponential distribution rises by itself, though nobody specified an exponential. The reveal is a count of ways: expand the bath's \(\ln\Omega\) to first order and \(P(E)\propto e^{-\beta E}\) follows ── the Boltzmann factor is the first term of a Taylor series.

The \(\beta=d\ln\Omega/dE=1/k_BT\) defined there is the true identity of temperature. In words: "gain one unit of energy, and by what factor does the count of ways multiply?" ── the energy derivative of the \(S=k_B\ln\Omega\) from Episode 1 of the sister series "Renormalization That Clicks." So Episode 1's "temperature = the exchange rate between energy and bits" was literal.

Make \(\beta\) the lead and infinite temperature becomes merely \(\beta=0\), with negative temperature naturally continuing on the far side. The apparent wall in temperature is an artifact of writing a reciprocal.

This document is Episode 2 of the "Temperature That Clicks" series, a reading piece for physics-loving high-schoolers and undergraduates. That the Boltzmann factor follows from a first-order expansion of the logarithm of the bath's state count; the statistical-mechanical definition of temperature \(\beta=d\ln\Omega/dE=1/k_BT\) (equivalently \(1/T=\partial S/\partial E\) with \(S=k_B\ln\Omega\)); that thermal equilibrium is the equality of \(\beta\); the two-level occupancy ratio; and that the figure's model (indistinguishable quanta among distinguishable boxes exchanged at random) has a geometric equilibrium distribution ── all standard statistical mechanics. That the first-order expansion requires a sufficiently large bath (departures for small baths being the subject of Episode 4), that reaching equilibrium from random exchange is in general the assumption of ergodicity with known exceptions (integrable systems, glasses, many-body localisation), that the figure does not reproduce real molecular collisions, and that temperature is defined only in equilibrium or local equilibrium ── all spelled out in the body's "honest line." ── To print, use your browser's "Print" and "Save as PDF" (in the print version the slider and answers are frozen and hidden). Adjacent episodes: Episode 1, Temperature is not a property of matter / Episode 3, Heat is motion you stopped tracking / Contents / sister series Renormalization That Clicks.

Print / make a PDF: ⌘+P (Ctrl+P on Windows). On screen the counters keep moving and the histogram settles into an exponential. "Put them all in one box" resets; switching to a logarithmic axis turns it into a straight line. "See the answer" opens each solution.