1This week's plan
Datta Part A, Chapters 15–16 (pp. 195–226): the second law and the fuel value of information.
Colab notebook week11_second_law.ipynb: both widgets, Einstein-solid counting, Fock-space averages, the info-battery and the exercises.
Quiz (aim for 8/10), the practice problems and one mini-investigation. These ideas return in C6 next week.
By the end of the week you should be able to
- State the second law for a channel with several reservoirs and show the elastic resistor obeys it.
- Explain P(−ε)/P(+ε) = eε/kT from the reservoir's number of states and 1/T = dS/dE.
- Apply pi ∝ e−(Ei−µNi)/kT to Fock-space states: Fermi, Bose and interacting levels.
- Derive S = −Nk Σ p ln p and the Boltzmann distribution from minimum free energy.
- Explain the info-battery, NkT ln 2, Landauer's principle and Maxwell's demon.
Optional video: Datta's nanoHUB-U course, Unit 4: L4.5–L4.9.
2Key ideas in five sentences
- The second law for transport. The total entropy of all reservoirs increases: Σ (Ei − µiNi)/Ti ≤ 0; at one temperature a battery can only lose energy.
- Entropic asymmetry. Emitting ε into a reservoir multiplies its states by eε/kT, so emission beats absorption by that factor. Every model with energy exchange must build this in.
- One law of equilibrium. States of the whole system (Fock space) are occupied with e−(E−µN)/kT/Z; for one level it is the Fermi function, for one mode the Bose function, with interactions something new.
- Entropy and free energy. S = −Nk Σ p ln p; the Boltzmann distribution minimises F = E − TS, and any other distribution carries extra free energy.
- Information is fuel. A known state (S = 0) of N spins can drive an info-battery with up to NkT ln 2; erasing costs at least that (Landauer).
3Equation sheet
4Physics refresher: counting, temperature, Boltzmann
N spins with n up: W = N!/(n!(N − n)!). The half-up macrostate has W ≈ 2N; for N = 10²³ every other macrostate is negligible. S = k ln W adds for independent systems.
A small system in contact with a big reservoir: p(E) ∝ WR(Etot − E) ∝ e−E/kT, because ln WR decreases by E/kT (1/T = dS/dE).
Stirling in one line
ln n! = Σ ln k ≈ ∫₁ⁿ ln x dx = n ln n − n + 1 ≈ n ln n − n for large n.Why the Fermi function has E − µ but the Bose function only ħω
Electrons are conserved: an electron entering a contact at E dissipates E − µ, the rest is the energy µ of the added particle. Photons and phonons are created and absorbed, so the full ħω is exchanged.5Glossary
| Term | Meaning |
|---|---|
| Reservoir | A system so large that exchanges do not change its T and µ. |
| Entropy S | k times the log of the number of accessible states. |
| Free energy F | E − TS; decreases in any spontaneous process at fixed T. |
| Fock space | States of the whole system labelled by occupation numbers (00, 01, 10, 11, …). |
| Law of equilibrium | pi ∝ e−(Ei−µNi)/kT for Fock-space states. |
| Info-energy | T(Seq − S): extractable because the state is known. |
| Landauer's principle | Erasing N bits costs at least NkT ln 2. |
| Maxwell's demon | A sorter that uses information to create a temperature difference. |
6Calculators
Boltzmann, Fermi and Bose
Entropy and information
Info-battery and Landauer
7Self-check quiz
Click an answer: you get instant feedback. Score: 0 / 0
8Practice problems
k = 1.381 × 10⁻²³ J/K = 86.17 µeV/K; kT = 25.85 meV and kT ln 2 = 17.92 meV at 300 K.
An Einstein solid with N = 100 oscillators holds Q = 100 quanta. Find W(Q)/W(Q − 1) and kT/ε. Compare with the large-N formula.
Hint
W = C(Q + N − 1, Q).Solution
W(Q)/W(Q − 1) = (Q + N − 1)/Q = 1.99 ⇒ kT/ε = 1/ln 1.99 = 1.453; large-N 1/ln 2 = 1.443.Show from Eqs. 15.2–15.3 with T₁ = T₂ = T₀ that µ₁N₁ + µ₂N₂ ≥ 0, and interpret.
Solution
Multiply 15.3 by T: E₁ + E₂ + E₀ − (µ₁N₁ + µ₂N₂) ≤ 0, and E₁ + E₂ + E₀ = 0 ⇒ µ₁N₁ + µ₂N₂ ≥ 0: the battery can only deliver energy, never be charged by surroundings at the same temperature.Hydrogen 2p–1s: ε = 10.2 eV. Ratio of upward to downward rates at 300 K?
Solution
e−10.2/0.02585 = e−394.6 ≈ 10−171: absorption from the thermal field essentially never happens.(a) Level 0.1 eV above µ at 300 K: occupation? (b) Phonon mode ħω = 10 meV at 300 K: average number?
Solution
(a) 1/(e3.868 + 1) = 0.0205. (b) 1/(e0.3868 − 1) = 2.12.g levels, U₀ → ∞, ε = µ. Average n for g = 2 and g = 6? What would non-interacting levels give?
Solution
n = 1/(1 + 1/g): 2/3 and 6/7 = 0.857. Non-interacting: g/2 = 1 and 3.N = 10²⁰ spins with p = ¼, ¾. Find S.
Solution
S/Nk = 0.5623 ⇒ S = 10²⁰ × 1.381 × 10⁻²³ × 0.5623 = 7.76 × 10⁻⁴ J/K.PU = 0.9 at 300 K: open-circuit voltage, and energy still available per spin?
Solution
Δµ/q = 25.85 mV × ln 9 = 56.8 mV. Available T(Seq − S) = (0.693 − 0.325)kT = 9.5 meV per spin.Landauer minimum to erase 1 GB (8 × 10⁹ bits) at 300 K?
Solution
8 × 10⁹ × 2.871 × 10⁻²¹ J = 2.3 × 10⁻¹¹ J, many orders of magnitude below what real memories spend.Show that F = Σ p̃i(Ei + kT ln p̃i) with Σ p̃i = 1 is minimised by the Boltzmann distribution, and that Fmin = −kT ln Z.
Hint
Lagrange multiplier.Solution
∂/∂p̃i: Ei + kT ln p̃i + kT − λ = 0 ⇒ p̃i ∝ e−Ei/kT. Then Ei + kT ln p̃i = −kT ln Z for all i ⇒ F = −kT ln Z.9Common mistakes
10Explore
Files are in the course folder (course_materials).
Mini-investigations (15 min each)
- In the reservoir widget, use NR = 20 and Q/NR = 0.2. Is the histogram still Boltzmann? Why not?
- In the info-battery, find the load at which half of NkT ln 2 is delivered. How long did it take compared with the largest load?
- Erase with η = 0.1 and η = 2: how much extra work did the fast erasure cost?
11Can I…?
Tick what you can do without notes. Your ticks are saved in this browser.
12Looking ahead: Week 12 and circular session C6
Part B begins: Contact-ing Schrödinger (Datta Part B, Ch. 17), then C6: a Colab lab on tight-binding chains and on this week's statistics.
- How can a differential equation become a matrix?
- Why does a chain of atoms give a band E(k) = ε + 2t cos ka?
- How do we connect a matrix Hamiltonian to two contacts?