Animations › Entropy and the second law
Entropy and the second law HL
A gas spreads out when a partition is removed, and never gathers back on its own. Counting the ways the particles can be arranged shows why, and Boltzmann's equation turns that count into entropy. Then heat flowing from hot to cold, the second law in its three forms, and how a freezer can lower the entropy of the water inside it. B.4 Entropy and microstates
What the animation shows
All of B.4 is HL. The particles are drawn hugely enlarged, slowed down and in two dimensions. They move in straight lines and bounce off the walls without hitting each other (an ideal gas); their motion is worked out from the time alone, with a fixed set of random starting speeds, so every replay is the same.
- A box has a partition across the middle. 60 gas particles are on the left and there is a vacuum on the right.
- The partition is removed. Nothing pushes the particles to the right: they simply keep moving, and some cross into the empty half.
- Soon the particles fill the whole box. The numbers on the two sides go up and down a little but stay near 30 and 30 (in this run, between 24 and 37).
- Predict: will all 60 ever be back on the left at the same moment?
- It isn't impossible, but each particle is equally likely to be on either side, so the chance that all 60 are on the left at a given moment is $\left(\tfrac{1}{2}\right)^{60} \approx 9 \times 10^{-19}$. It is never seen.
- With only 4 particles it happens often: on average all four are on the left $\left(\tfrac{1}{2}\right)^{4} = \tfrac{1}{16}$ of the time. The few seconds of the small box shown on screen were chosen so that you can see it happen once.
- A microstate says exactly which particle is where; a macrostate says only how many are on each side. All microstates are equally likely.
- 4 particles, each on one of 2 sides: $2^4 = 16$ microstates. The macrostates "4 left, 0 right", "3–1", "2–2", "1–3" and "0–4" have $\Omega = 1, 4, 6, 4$ and $1$ microstates.
- The even split has the most microstates (6); all four on the left has only 1.
- With 10 particles there are $2^{10} = 1024$ microstates: 252 for the even split (5–5) and 1 for all on the left.
- With 100 particles, the chance that all are on the left is $\left(\tfrac{1}{2}\right)^{100} \approx 8 \times 10^{-31}$. A few litres of real gas contain about $10^{23}$ particles, so the spread-out macrostate is overwhelmingly likely.
- Boltzmann's equation turns the count into entropy: $S = k_B \ln \Omega$, with $k_B = 1.38 \times 10^{-23}\ \text{J K}^{-1}$.
- For the 2–2 split, $S = 1.38 \times 10^{-23} \times \ln 6 = 2.5 \times 10^{-23}\ \text{J K}^{-1}$; for 3–1, $S = 1.38 \times 10^{-23} \times \ln 4 = 1.9 \times 10^{-23}\ \text{J K}^{-1}$; with only one microstate, $\ln 1 = 0$, so $S = 0$ (counting only the particles' positions, as here).
- Spreading out takes the gas from a macrostate with few microstates to one with very many, so its entropy increases. It never goes back on its own.
- Two large blocks at 360 K and 240 K touch, and $Q = 720$ J of thermal energy flows from the hot one to the cold one. The blocks are large, so their temperatures hardly change.
- Using $\Delta S = \dfrac{\Delta Q}{T}$: hot block $\Delta S = -\dfrac{720}{360} = -2.00\ \text{J K}^{-1}$; cold block $\Delta S = +\dfrac{720}{240} = +3.00\ \text{J K}^{-1}$.
- Total: $\Delta S = +1.00\ \text{J K}^{-1}$. The same energy is worth more entropy at the lower temperature, so the cold block gains more than the hot block loses.
- Energy flowing the other way, from cold to hot, would give a total of $-1.00\ \text{J K}^{-1}$, even though energy would still be conserved, so it never happens on its own.
- The second law: the total entropy of an isolated system never decreases (it stays the same in a reversible process and increases in an irreversible one; real processes are irreversible).
- Clausius form: thermal energy never flows spontaneously from a colder body to a hotter one.
- Kelvin form: no engine working in a cycle can take thermal energy from a hot reservoir and turn it completely into work. See The first law and heat engines.
- Entropy can fall locally. 0.20 kg of water freezing at 0 °C (273 K) in a freezer gives out $Q = mL_f = 0.20 \times 3.34 \times 10^5 = 6.68 \times 10^4$ J, so its entropy changes by $\Delta S = -\dfrac{6.68 \times 10^4}{273} = -245\ \text{J K}^{-1}$.
- That energy, plus $2.0 \times 10^4$ J of work done by the freezer's motor, ends up in the kitchen at 293 K: $\Delta S = +\dfrac{8.68 \times 10^4}{293} = +296\ \text{J K}^{-1}$. (Only the freezing water is counted, and the kitchen is taken to stay at 293 K.)
- Total: $-244.7 + 296.2 = +51.6 \approx +52\ \text{J K}^{-1}$. Living things lower their own entropy in the same way, by using energy and raising the entropy around them by more.
- Summary: $S = k_B \ln \Omega$ (more microstates, more entropy); $\Delta S = \dfrac{\Delta Q}{T}$; the total entropy of an isolated system never decreases.
Read more in B.4 section 9: the second law of thermodynamics, section 10: entropy from heat and temperature, section 11: entropy and microstates and section 12: local decreases in entropy. For engines, cycles and the Kelvin form in action, watch The first law and heat engines.