The previous page derived the canonical ensemble and showed that a system at fixed temperature minimises its free energy . Wen's notes now use that idea in three ways: to show that ordering a system costs energy even when no energy is stored in it, which leads to the energy cost of information; to derive the equipartition of energy and see where it fails; and to compute the free energy, entropy and pressure of the classical ideal gas (notes pp. 5–12, points ⑤ to ⑦). The 8.044 pages on canonical examples and polyatomic gases did the last two in more detail; here we follow Wen's route. (Wen's handwritten page numbers skip 8: his p. 9 follows p. 7.)
Stretching a chain with no internal energy#
Wen's model is a flexible chain of links, each pointing either right () or left () (notes p. 5, point ⑤). Its length is the sum, in units of the link length:
In words
Length equals ( plus 1) plus ( plus 1) plus (-1) plus ( plus 1) plus ( plus 1) plus and so on equals capital N sub capital R minus capital N sub capital L
with . The links do not interact, so every configuration has the same energy: there is no internal energy. The chain has configurations in all; the number with length zero, , is a binomial coefficient, which we call (notes p. 5):
In words
capital gamma nought equals capital N ! over the quantity ( the quantity capital N over 2, factorial ) squared
(The notes write , without the square.) The entropies follow from (notes p. 5):
In words
S sub tot equals k B log 2^ capital N equals capital N k B log 2, S nought equals k B log capital gamma nought is approximately capital N k B log 2, S one equals k B log 1 equals 0
Here counts all configurations, those of length zero and the single configuration of full length , all links pointing right. The approximation for is Stirling's formula, : almost all configurations have length close to zero, so to leading order in fixing the length at zero costs no entropy at all.
How much energy does it take to stretch the chain from length to length ? Since there is no internal energy, the tempting answer is none. Wen marks that answer wrong (notes p. 5). Put the chain in a heat bath at temperature (notes p. 6). Pulling it straight lowers its entropy from to zero, and since the total entropy cannot decrease, the bath's entropy must rise by at least . For a bath, , so its entropy can only rise if its energy does:
In words
capital delta capital E sub bath equals T capital delta S equals capital N k B T log 2 equals A sub final minus A sub init equals (- S sub final T) minus (- S sub init T) equals capital delta S T
The puller supplies this energy as work, and it ends up as heat in the bath. With no internal energy, , so the work is exactly the change in the chain's free energy. This is how a rubber band works: its tension is mostly entropic.
At intermediate lengths the same reasoning gives the free energy as a function of length. (The following is our extension of Wen's two end points.) With for a relative extension , Stirling's formula gives , which runs from at up to at full stretch. Its slope is the force needed to hold the chain at that length; in units of per link length it is , small and linear (Hooke's law) for small , and growing without limit as the chain approaches full length.
Pulling a molecular chain straight
Model a long molecule as a chain of segments, each pointing one of two ways as in Wen's model, in water at 310 K. What is the least work needed to pull it fully straight? And how good is the approximation for a short chain of ?
The energy cost of information#
Wen turns the chain into a memory (notes p. 6). A string of bits that is random has entropy , like the chain of length zero; a string set to a definite pattern, say , has entropy zero, like the stretched chain. To write a pattern into a random memory is to go from the first to the second, and the same argument applies: the total entropy can only increase, so the surroundings must take up at least of entropy per bit. Wen's conclusion, boxed in the notes:
In words
energy to encode one bit equals k B T log 2
This is now called Landauer's principle, after Rolf Landauer, who argued in 1961 that erasing a bit must dissipate at least ; the notes do not name it. Wen puts numbers to it for ideal devices at room temperature (notes p. 7). Taking 300 K:
- An ideal memory chip: programming 1 gigabyte, bits, needs at least J, which is Wen's erg.
- An ideal bus carrying bits per second needs a power of about W ( erg/s), against the roughly 100 W that a computer actually uses.
Real electronics dissipate many orders of magnitude more than this limit, so it is not yet what limits computers. (Strictly, the bound applies to logically irreversible steps such as erasing or overwriting bits, which is what Wen's random-to-ordered memory does; Charles Bennett showed in the 1970s that a computation done reversibly can in principle avoid it. This caveat is not in the notes.)
Measuring information#
If ordering costs entropy, information can be measured by entropy: the less entropy, the more we know. Wen defines (notes p. 7)
In words
information equals const minus entropy times k B to the power minus 1
A single bit makes it concrete. If the bit is or with 50% each, we know nothing: the entropy is and the information zero. If it is with certainty, the entropy is zero and the information is . In general, for a system with states and probability of state (notes p. 7, boxed):
In words
information equals log capital gamma minus the sum over i of rho i log 1 over rho i
The sum is the entropy in units of , the same expression that the previous page's worked example checked against . The information is zero if all states are equally likely, , and reaches its largest value, , if one . Measured in units of , it is the number of bits.
The Maxwell distribution and equipartition#
Point ⑥ applies the canonical ensemble to the motion of a gas molecule (notes p. 9). The energy of a molecule of mass is , so the probability of finding its momentum in a small volume is proportional to
In words
e to the power minus beta vector p to the power 2 over 2 m, end of power, d cubed p
and, since in a shell of speeds is proportional to , the probability of a speed between and is proportional to the Maxwell distribution:
In words
e to the power minus beta m v squared over 2, end of power, v squared d v
It rises as , peaks and falls off as a Gaussian. (Wen writes normalising constants in front of both; we leave them out.) The mean kinetic energy of motion along follows with a trick that recurs throughout the course: the average is a derivative of the logarithm of a normalising integral. The integrals over and cancel between top and bottom, and with (notes p. 9):
In words
the average of p sub x squared over the quantity 2 m, equals the quantity the integral of d p sub x p sub x squared over the quantity 2 m, times e to the power minus beta p sub x squared over 2 m, end of power, all over the quantity the integral of d p sub x e to the power minus beta p sub x squared over 2 m, end of power, equals minus d over d beta log the integral of d p sub x e to the power minus beta p sub x squared over 2 m, end of power, equals minus d over d beta log ( the square root of pi the square root of 2 m over beta, end of root, ) equals 1 over the quantity 2 beta, equals k B T over 2
The mass has dropped out. So every component has the same mean, and in a mixture of molecules of masses and the heavy and the light ones carry the same kinetic energy (notes p. 9):
In words
the average of p sub x squared over the quantity 2 m, equals the average of p sub y squared over the quantity 2 m, equals the average of p sub z squared over the quantity 2 m, equals k B T over 2 equals the average of p sub x prime squared over the quantity 2 m prime
This is the equipartition of energy: each quadratic term in the energy gets . For molecules of a monatomic gas the total energy and the heat capacity at constant volume are (notes p. 9)
In words
capital E equals 3 times capital N k B T over 2, capital C sub V equals d capital E over d T equals three halves capital N k B, mixed gas: capital C sub V equals three halves k B the quantity capital N one plus capital N two plus and so on
A helium and argon mixture
A mixture of 0.25 mol of helium (4.003 u) and 0.75 mol of argon (39.95 u) is at 300 K. Find each gas's mean kinetic energy per atom and root-mean-square speed, and the mixture's heat capacity at constant volume.
Kinetic energy
Both: J J per atom.
Speeds
: m/s for helium and m/s for argon. The light atoms move faster in exactly the proportion that makes their energies equal.
Heat capacity
mol J/K, whatever the proportions: only the number of atoms counts.
When equipartition fails: rotations and vibrations#
For hydrogen, , the heat capacity per molecule is not a single constant (notes p. 10). Wen sketches against temperature: (translation only) at the lowest temperatures, rising to when the molecule's two rotations join in, and to when its vibration does. Classical equipartition would give the top value at every temperature.
The reason is that rotation is quantised. Wen takes rotation about one axis, the z direction, whose angular momentum is with (the notes call this number m). The energy is
In words
capital E sub j equals L sub z squared over the quantity 2 capital I, equals capital E nought j squared, j equals 0, plus or minus 1, plus or minus 2, and so on
with the moment of inertia and (the notes leave as a constant; its value is our step), and the mean energy is the Boltzmann average
In words
the average of capital E equals the sum over j of capital E sub j e to the power minus beta capital E sub j over the quantity the sum over j of e to the power minus beta capital E sub j
High temperature, : many levels are occupied, the sums become Gaussian integrals over , and
In words
the average of capital E equals the integral of d j capital E nought j squared e to the power minus beta capital E nought j squared over the quantity the integral of d j e to the power minus beta capital E nought j squared, equals one half k B T
equipartition again. (The notes put a factor in front of in the top integral; without it, as here, the integral gives the stated .)
Low temperature, : only the ground state and the first excited level matter, and
In words
the average of capital E is approximately 2 capital E nought e to the power minus capital E nought over k B T, end of power
which vanishes exponentially: the rotation is frozen out. (The notes write ; the factor 2 comes from the two states , and it does not change the conclusion.) The crossover is at the temperature .
Wen's table gives the two crossover temperatures for three gases (notes p. 10):
| Gas | (K) | (K) |
|---|---|---|
| H₂ | 85.4 | 6100 |
| N₂ | 2.86 | 3340 |
| O₂ | 2.07 | 2230 |
For air at room temperature, then, translation and both rotations are fully active and the vibrations are frozen, so each molecule contributes to . (The notes write times the number of O₂ and N₂ molecules here; with the vibrations frozen, per molecule is the heat capacity at constant pressure, which is larger than by per molecule.) The real rotational levels of a diatomic molecule are those of a rotor in three dimensions, with energies proportional to l(l + 1) and degeneracy 2l + 1 for l = 0, 1, 2, …, as on the 8.044 page on polyatomic gases; Wen's one-axis model shows the same freezing more simply.
The free energy of the classical ideal gas#
Point ⑦ computes everything for the classical ideal gas of molecules in a volume (notes p. 11). The partition function is an integral over phase space, divided by (one state per cell of volume for each coordinate and its momentum) and by (the molecules are identical):
In words
capital Q (T, capital V ) equals the integral of d to the power 3 capital N p d to the power 3 capital N q over the quantity capital N ! h to the power 3 capital N, times e to the power minus beta the quantity p one squared plus and so on plus p sub N squared, all over 2 m, end of power, equals 1 over the quantity capital N !, times ( capital V over lambda cubed )^ capital N
The positions give , and each of the momentum integrals gives the inverse of a length (notes p. 11):
In words
the integral of d p over h, times e to the power minus beta p squared over 2 m, end of power, equals 1 over lambda, lambda equals the square root of 2 pi h bar squared over the quantity m k B T, end of root
the thermal wavelength, of the order of the de Broglie wavelength of a molecule with the typical thermal kinetic energy. The free energy, using Stirling's formula for , is (notes p. 11 and p. 12)
In words
A( capital V, T) equals minus k B T log capital Q equals capital N k B T the quantity log capital N lambda cubed over capital V minus 1
Since , differentiating gives the entropy (notes p. 11):
In words
S equals minus ( partial A over partial T )_ capital V equals capital N k B the quantity five halves plus log capital V over the quantity capital N lambda cubed
Wen reads as the number of states available per particle: the volume per particle measured in cells of the thermal wavelength. The classical treatment needs it to be large; when it is not, the gas is a quantum gas.
Pressure. Differentiate with respect to the volume at fixed temperature (notes p. 11):
In words
partial A over partial capital V evaluated at T equals minus k B T the quantity partial capital Q over partial capital V, all over capital Q equals minus k B T the quantity the sum over n of (- beta partial capital E sub n over partial capital V )e to the power minus beta capital E sub n, all over the quantity the sum over n of e to the power minus beta capital E sub n, equals the quantity the sum over n of d capital E sub n over d capital V, times e to the power minus beta capital E sub n, all over the quantity the sum over n of e to the power minus beta capital E sub n, equals minus the average of capital P
The last step is Wen's reading of : when an isolated system in its th state is slowly compressed, it stays in that state and its energy rises, and is the pressure it exerts. Averaging over states gives the pressure of the canonical ensemble. For the ideal gas (notes p. 12):
In words
capital P equals minus partial A over partial capital V evaluated at T, capital N equals capital N k B T over capital V
Helium at room temperature and pressure
Helium (4.003 u) is at 300 K and 1 atm (101325 Pa). Find its thermal wavelength, the number of states per particle , and its molar entropy.
The thermal wavelength
, the same as . With kg and J, m, about half an ångström.
States per particle
From the equation of state, m⁻³, so . Each atom has hundreds of thousands of states to itself, and the classical treatment is excellent.
Summary#
- A chain of links with no internal energy still costs energy to stretch at temperature : its entropy falls by , so the bath must gain at least , the change in .
- In the same way, writing one bit into a random memory costs at least (Landauer's principle), and information can be measured as , a constant minus the entropy in units of .
- In the canonical ensemble the momentum has the Maxwell distribution, and each quadratic term has mean whatever the mass (equipartition): for any monatomic gas or mixture.
- Quantised motions drop out below their level spacing: a rotation with levels gives for but only about for . Air at room temperature has per molecule.
- The classical ideal gas: , , , and from the pressure .