Physics · Molecular physics and thermodynamics · Grade 9
Entropy and the arrow of time
Why don't mixed gases separate by themselves — and what if we ran time backwards?
The situation
If you put a spoonful of sugar into tea, it dissolves and spreads through the whole cup — but nobody has ever seen the sugar spontaneously gather in one place again. If perfume is sprayed in a corner of a room, the smell spreads through the whole room. Yet Newtonian mechanics is symmetric in time: every collision can also be “played” in reverse. So why do processes go only one way? Take away the barrier that separates two gases, and then try turning time backwards.
Topic
Statistical physics and entropy. Mixing of gases: why the reverse never happens by itself
Key ideas
- Microstate and macrostate
- S = k ln W
- Loschmidt's paradox
Formulas
Boltzmann's formula: the entropy of a macrostate is determined by the number of microstates that realise it — the statistical weight . J/K.
The number of ways in which of particles are in the left half (greatest at ), and the probability that all the particles by chance gather in their “own” half: for , .
Coarse-grained (by cells) entropy: is the probability that a particle is in cell (and is of that type). is Boltzmann's function.
The increase in entropy when two gases mix, or when a gas expands into a vacuum and its volume increases by a factor of 2.
The Clausius inequality (equality only for a reversible process) and the free energy: the maximum work that can be obtained at constant temperature.
Theory
Microstate, macrostate and ensemble
A macrostate is what we measure: how many blue particles there are in the left half. A microstate is the exact position and velocity of every particle. Many microstates give one macrostate; their number is the statistical weight (thermodynamic probability) of the macrostate. The experiment shows three ways of studying matter: dynamic (the computer solves the equation of motion of every disc), statistical (probabilities and ) and thermodynamic (only a macroscopic quantity — entropy). In a closed tray the energy does not change (E/E₀ in the panel); all possible microstates of such an isolated system are equally probable — the microcanonical distribution, so . The curve on the graph is the distribution over the ensemble, and the bars are a histogram collected over time by watching one tray for a long time: the two almost coincide (because of the finite size of the discs the histogram is slightly narrower). The particles are statistically independent, so the probabilities are multiplied: . In quantum mechanics the ensemble is described by the density matrix.
Entropy increase and the second law
The box is divided into cells. The more evenly the particles are spread over the cells and types, the larger . Once the barrier is removed, tends to the maximum — — and fluctuates slightly around it; the fluctuations shrink as . This is a manifestation of Boltzmann's H-theorem: as a result of collisions decreases — the law of increase of entropy. In an isolated system equilibrium is the maximum of entropy; deviations from it are less probable, so the equilibrium is stable (stability conditions: , ). The classical statements of the second law: Clausius — heat does not pass spontaneously from a cold body to a hot one; Thomson (Kelvin) — there is no cyclic machine that converts heat taken from a single heat source completely into work. In Boltzmann's interpretation the second law is a statistical law: for the gases may spontaneously separate again, but for this would take longer than the age of the universe. Radiation also has entropy — in the “Thermal radiation and Planck” experiment.
Reversible and irreversible processes
A reversible (quasi-static) process goes infinitely slowly through a sequence of equilibrium states and can also run in the opposite direction: for example, slowly mixing gases with semipermeable pistons. Removing the barrier suddenly is irreversible: the intermediate states are not in equilibrium. For any process the Clausius inequality holds, , with equality only for a reversible process. From it comes the fundamental equation of thermodynamics: for a reversible process , for an irreversible one . In “Gas → vacuum” mode but — the inequality is strict. The cells show local equilibrium: each cell is almost in equilibrium on its own, while the particles flow between neighbouring cells — for each type there is a balance equation: the change in the number of particles in a cell = incoming flow − outgoing flow (the particles are conserved). The flows produce entropy: the panel shows , and at equilibrium it falls to zero.
Loschmidt's paradox and the model
If we exactly reverse all the velocities, then by Newton's laws the particles retrace their paths and the gases separate again. In this simulation the calculation is done in integers, so “Time backwards” returns every particle exactly to its initial place. But if an error of is introduced into the particle positions, each collision magnifies it several times over (chaos): after a few dozen collisions the “memory” is lost. So the microscopic laws are reversible, but macroscopic processes are irreversible — irreversibility follows from probabilities and initial conditions. For a dilute gas this is described by Boltzmann's kinetic equation (in the “Transport phenomena” experiment). Model: two-dimensional discs; collisions are very hard elastic repulsion, and the kinetic energy is conserved to ≈ 2 % (E/E₀ in the panel). The integrator is the integer “leapfrog” (the Levesque–Verlet method). Because is finite, the maximum of the measured is slightly below (≈ 96 % for ).
Free energy, the third law and negative temperature
For systems that exchange heat with their surroundings, thermodynamic potentials are convenient: the internal energy , the enthalpy (heat function) , the free energy and the Gibbs potential . From their differentials come the Maxwell relations: for example, from we get ; the Gibbs–Helmholtz equation: . At constant a system tends to the minimum of , and at constant and to the minimum of (phase equilibrium — in the “Phase transitions” experiment). When ideal gases mix, does not change and : if the mixing were done reversibly, work could be obtained — in the panel this is the “maximum work lost”. The third law (Nernst's theorem): as the entropy tends to zero (), so the heat capacities also tend to zero and absolute zero cannot be reached in a finite number of steps. A two-level system: if of spins are in the upper level (), then — the graph below is exactly this. : if (a population inversion of levels, as in a laser), — a negative absolute temperature; such a system is “hotter” than any body with a positive temperature: heat always flows out of it.
Maxwell's demon
In 1867 Maxwell proposed this thought experiment: a “demon” operates a door in the barrier — it lets a blue particle pass only to the left and an orange one only to the right. No work is done, yet the gases separate and the entropy decreases — as if the second law were violated. See this in “Maxwell's demon” mode (in the model the door is the middle third of the barrier): . The solution of the puzzle is information. The demon watches each approaching particle, makes a decision and writes it into its memory — each decision is 1 bit. Memory is not unlimited: erasing it releases at least of heat (Landauer's principle, 1961). In the panel the number of demon decisions gives far more than the fall in gas entropy: — together with the demon the total entropy does not decrease. Entropy is often called a measure of disorder; more precisely, it is the number of microstates corresponding to the macrostate — a measure of the missing information about the system.
Did you know?
- Ludwig Boltzmann's entropy formula is carved on his gravestone in Vienna.
- The objection about reversing time was raised in 1876 by the Austrian physicist Josef Loschmidt — that is why it is called “Loschmidt's paradox”.
Inside the experiment
The experiment starts from a real-life situation: you predict the result, change the controls, run the experiment and draw a conclusion. Inside are missions, theory, a quiz and a guided tour in which the camera moves and explains the key points.
More experiments in this section
- Calorimeter: heat balance — Grade 7
- Tandoor and sandal: heat — Grade 7
- Gas under a piston — Grade 9
- Humidity and dew — Grade 9
- Heat engine: the Otto cycle — Grade 9
- Brownian motion and diffusion — Grade 9
- Surface tension and capillarity — Grade 9
- Crystalline and amorphous solids — Grade 9
- Phase transitions — Grade 10
- Thermal expansion — Grade 10