Temperature and the Second Law

Entropy is the logarithm of the number of arrangements, and temperature is what its slope is called. Mix, stir and let heat flow, and follow a number that only goes up

Temperature and the Second Law

Take the logarithm of the number of arrangements and you have entropy. Ask how fast entropy grows as you add energy and you have temperature.

The second law is then not a new law at all: things go where there are more ways to be.

What Temperature Is

Drag the energy from one block to the other until the two tangents are equally steep, or let heat flow and watch it find that place. Then heat some spins past the point where hotter stops meaning positive.

0.876 k
slope for A: entropy per quantum. TA = 1/slope = 1.14
0.373 k
slope for B: entropy per quantum. TB = 1/slope = 2.68
+8.89 k
total, if 20 quanta move to A
240.0 ± 9.8
energy of A if every arrangement is equally likely
Block A is on the steeper part of its curve: it is the colder one, although it holds more energy. Give it 20 quanta and it gains 16.9 k, while the other loses only 7.98 k. There are more arrangements that way, so that is the way heat goes.
entropy, ln Ωtangent of the hotter blocktangent of the colder blockchange in entropy if 20 quanta crosspeak of the total

Drag on any chart to share the energy differently. Energies are whole quanta, entropies are in units of k and counted exactly, Ω = (q + N − 1 choose q), and temperatures are in quanta per k; the two upper charts use the same scales, so steepness can be compared by eye. The slope at a point is taken over the two quanta around it. “Let heat flow” moves one quantum at a time from a random oscillator to a random oscillator, in either block; nothing steers it.

Go deeper:One over T Is a Slope

Let a body hold energy E in Ω(E) different ways, and put S = k ln Ω. The logarithm is there because the arrangements of two separate bodies multiply, so that their entropies add. Give the body a little more energy and S grows at a rate that we call one over its temperature:

1/T = slope of S against E = dS/dE

Move a little energy δE from a body at T1 to one at T2 and the total changes by δE(1/T2 − 1/T1), which is positive exactly when T1 is the greater. So heat goes from hot to cold because “hot” is the name for the side that loses little entropy with its energy. Nothing here compares how much energy each has: temperature is not the total energy, nor is heat a stuff that a body is full of. Boltzmann’s constant adds no physics. It converts an energy, the natural unit for a temperature, to kelvin, and since 2019 its value is fixed by definition. With k = 1 entropy is a pure number, ln Ω, and temperature is in joules, or in quanta.

For most bodies more energy always means more arrangements, and T is positive. A set of spins in a magnetic field can take only so much, and above half of that the slope is negative. Edward Purcell and Robert Pound did it in 1951 with the nuclear spins of a lithium fluoride crystal: they turned the magnetic field over faster than the spins could follow, and for some minutes most of the spins pointed the costly way. Passing through infinite temperature, 1/T goes smoothly through zero, which is why the ruler of hotness in the demo is marked in −1/T: from 0+, the coldest, through ±∞, to 0−, the hottest of all.

At the other end the slope grows without limit. Walther Nernst proposed in 1906 that entropy changes vanish as the temperature goes to zero, and Planck put it as S → 0: a body in its one lowest state has ln 1. That is the third law, and it is why heat capacities must vanish at low temperature. (A few crystals are caught in one of many nearly equal arrangements and keep some entropy when cooled.) Absolute zero does not mean that everything stops: an oscillator in its lowest state still has its zero-point motion, which cannot be given away.

Can S itself be measured, and not only its changes? For a gas of single atoms Otto Sackur (1911) and Hugo Tetrode (1912) counted states in cells of size h, dividing by N! because atoms of a kind are alike:

S = Nk [ln((V/N)(2πmkT/h2)3/2) + 5/2]

For argon at 298.15 K and 1 bar this is 154.85 J/(mol K), or 18.6 k per atom. Tables give 154.85 J/(mol K), and adding up measured heat capacities and latent heats from near absolute zero agrees within its errors. Planck’s constant, read off from the entropy of a gas, in 1912.

Sackur–Tetrode entropies beside tabulated ones
298.15 K, 1 barformula, J/(mol K)tables, J/(mol K)
helium126.15126.15
neon146.33146.33
argon154.85154.85

See also: Counting Arrangements, The Boltzmann Distribution.

Entropy Accounts

Pick a process and watch who gains entropy and who loses it. Then try to design one whose total goes down, and see where the bar turns red.

0 J/K
total entropy gained so far
600.0 K
block A now
300.0 K
block B now
400.0 K
where both end
0 J
heat that has crossed, from A to B
The same heat leaves one block and enters the other, but a joule is worth 1/T of entropy, so it counts for more where it is cold. The gain always outweighs the loss. Each bar is C ln(T now ÷ T at the start).
gains entropyloses entropytotaltotal below zero: does not happen

Joules per kelvin throughout; divide by k = 1.38 × 10⁻²³ J/K to count in natural logarithms of arrangements. Rooms, lakes and reservoirs are so large that their temperatures do not change; heat capacities are taken as constant; the gas is ideal. Thermal light of energy E at temperature T carries an entropy of 4E/3T; the Earth is treated as a black body at one temperature, and the sunlight as not spread out or scattered on its way.

Go deeper:Clausius, Kelvin and the Total

A body at temperature T that takes in a little heat δQ gains entropy δQ/T, however the heat arrives; a body that is pushed slowly, with no heat, gains none. To find the change in anything, imagine a slow way of getting from the first state to the last, and add up δQ/T along it: for a block of constant heat capacity C that gives

ΔS = C ln(Tend/Tstart),    melting: ΔS = L/T,    ideal gas at fixed T: ΔS = nR ln(Vend/Vstart)

The slow way is only a way of finding the answer. Entropy belongs to the state, so a gas let into a vacuum gains as much as one let out slowly. What differs is the surroundings, and that is what makes one of them reversible. Spontaneous means that the total, of everything that takes part, goes up. A part may go down as far as you like, and in a freezer or a growing plant it does.

Rudolf Clausius in 1850, and more sharply in 1854, took as the principle that heat does not pass of itself from a colder body to a warmer. Lord Kelvin’s version of 1851 is that no cycle turns heat from a single source wholly into work. They are the same law. If heat could climb for nothing, you could send an engine’s waste heat back up and have Kelvin’s forbidden engine; if you had Kelvin’s engine, its work could drive a refrigerator, and heat would climb for nothing. Both are the statement that the total does not go down, which is how Clausius put it in 1865 after naming entropy: “Die Energie der Welt ist constant. Die Entropie der Welt strebt einem Maximum zu.” The energy of the world is constant; the entropy of the world strives towards a maximum.

What counting adds is how strict the law is. If one state of affairs has a total smaller than another by ΔS, it can come about in fewer ways by a factor eΔS/k. For a few particles that is a modest factor and the total slips back now and then, as the two gases in the demo show. One joule per kelvin is 7 × 1022 k.

The Earth is not an isolated body, and life on it breaks no law. Light at about 5800 K arrives and the same energy leaves at about 255 K. Thermal light carries entropy 4E/3T, and the number of photons goes as E/T, so some 23 infrared photons leave for each one that came. Whether the whole universe runs down to a final evenness, the “heat death” discussed since the 1850s, is a question about gravity and expansion which this simple bookkeeping cannot settle. See also: Engines, The Arrow of Time, Maxwell’s Demon.

Mixing and Stirring

Pull the partition and change how finely you look. Then mix a gas with itself, stir dye in and stir it out again, and find the work that mixing could have done.

discs
0.0 k
entropy of mixing seen through this grid
69.3 k
N ln 2, for 100 discs fully mixed
65.6 k
average on this grid if colours were dealt at random to these discs
13
discs per cell
Each side is pure, so every cell on its own is pure and the entropy of mixing is zero. Pull the partition.
one gasthe other gasentropy of mixing, as seen nowbefore the partition was pulledN ln 2colours dealt at random

Two kinds of disc that differ only in colour, in a flat gas. In each cell we record how many of each kind there are, and count the ways those could be arranged among the discs there, −Σ n ln(fraction). Finding a little less than N ln 2 is partly this counting: cells with few discs look purer than they are, by chance. Pushing the partition back in does not unmix anything.

Go deeper:Coarse Graining, and Gibbs’s Puzzle

To count arrangements you must first say which differences you are not looking at. Choose a grid and record only the numbers in each cell: the entropy is the logarithm of how many detailed arrangements fit the record. With one cell the record never changes; with a cell per molecule it fits one arrangement. In between it hardly matters, because a finer grid changes the entropy by nearly the same amount before and after. This is what it means that entropy is not simply disorder: it counts what a description leaves open. It is missing information, k ln 2 for each unanswered yes-or-no question. See also: Shannon Entropy.

Mixing n1 and n2 moles of ideal gases at the same pressure and temperature gains

ΔS = −R [n1 ln x1 + n2 ln x2],    x1 = n1/(n1 + n2)

however alike the two gases are, and nothing at all if they are the same. Josiah Willard Gibbs discussed this in 1876. There is no half-way: two gases either can be told apart by something, and then a membrane could in principle sort them and the mixing could have done work, or they cannot. Counting agrees only if swapping two particles of a kind makes no new arrangement. Then the count is divided by N!, the entropy of twice as much gas is twice as much (it is extensive), and the gain from pulling the partition drops from 2N ln 2 to about ½ ln(πN). This is how nature counts: particles of a kind are identical, not merely hard to label. See also: Quantum Gases.

Stirring an incompressible liquid preserves the area of every patch of dye, however long and thin. The fine-grained entropy of the pattern never changes; only the coarse-grained one grows, when threads become finer than the grid. So stirring by itself is reversible, as the demo shows. What makes mixing final is the small random motion that blurs the threads: it would take an age to spread the dye across the square, but once stirring has drawn the threads out it has hardly any way to go. See also: Phase Space and The Arrow of Time.

Mix through semipermeable pistons, slowly and at one temperature, and the work you can get is T ΔS. For salt and fresh water the pressure on the membrane is the osmotic pressure, close to cRT for c moles of dissolved particles per unit of volume (Jacobus van ’t Hoff, 1880s): the law of an ideal gas, for the same reason, that the particles are far apart and have the whole volume to be in. It comes to about 27 bar for the sea, which makes each cubic metre of river worth up to about three quarters of a kilowatt hour where it is thrown away.

Key Takeaways

  • Entropy is k times the logarithm of the number of arrangements, and 1/T is its slope against energy.
  • Heat goes from hot to cold because the cold side gains more entropy from a joule than the hot side loses with it.
  • Any part may lose entropy; the total of everything involved does not, or rather does so with odds that no large system ever meets.
  • Entropy counts what a description leaves open: mixing loses sight of which is where, and the work it could have done.

Spot a mistake or have an idea?

Search