2.4.12 · D4Thermodynamics & Statistical Mechanics (Advanced)

Exercises — Free energy from partition function

2,441 words11 min readBack to topic

Before we start, one figure fixes the picture we keep returning to: the two-level system, our workhorse. It is labelled Figure 1 below and referenced by that name throughout the solutions.

Figure — Free energy from partition function
Figure 1 — The two-level system.

Look at the two horizontal levels: energy (ground) and energy (excited). At low temperature the system sits low; as heat is poured in, the upper level starts to fill. Nearly every exercise below is either this picture, a copy of it, or a smooth (oscillator/gas) analogue.


Level 1 — Recognition

Goal: can you pull the right formula off the shelf and plug numbers in?

Recall Solution

WHAT: apply the master bridge directly. WHY: nothing to derive — is defined as once you have . The sign is negative because means , and there is a minus out front. Free energy of a system with many accessible states is low (very negative) — nature likes that.

Recall Solution

WHAT: sum Boltzmann weights over the two states. WHY: the definition — each state contributes one exponential. At : . Picture (Figure 1): the "" is the ground level always counted with full weight; is the shrunk weight of the excited level — shrunk because it costs energy .


Level 2 — Application

Goal: differentiate to get real thermodynamics.

Recall Solution

WHAT: take the -derivative of . WHY tool: is the average energy ; the parent note showed this weighted sum equals — the derivative "pulls down" an from each exponent and the division by (hidden inside ) does the averaging automatically. At : . Sanity across cases: (cold) (ground state). (hot) (both states equally likely). Our value sits between, as it must.

Recall Solution

WHAT: use the assembled relation from the parent derivation, . WHY: it lets us reuse (already found) and (already found) — no new sums.

  • .
  • . Cross-check: the maximum possible entropy for a 2-state system is (both states equally likely). We are below it because at finite the system still slightly favours the ground state. ✓

Level 3 — Analysis

Goal: extensivity, limits, and combining systems.

Recall Solution

WHAT: multiply single-system partition functions, then take the log. WHY tool: independent systems have additive energies in the exponent, and adding in an exponent means multiplying exponentials — so . See Boltzmann distribution and microstates for why factorisation holds. At : . The lesson (extensivity): . The logarithm turned a product into a sum . This is precisely why free energy — not itself — is the natural thermodynamic potential. See Helmholtz vs Gibbs free energy.

Recall Solution

WHAT: examine in each temperature extreme. WHY: limits reveal whether the formula behaves physically — a formula that misbehaves at or is suspect.

  • (): , so , giving . Physically the system is frozen in the ground state (energy , entropy ), so . ✓
  • (): , so , giving . The entropy term dominates (), and dives to . ✓ Figure 2 plots , , and vs so you can see pulling downward as grows.

Figure — Free energy from partition function
Figure 2 — , and versus temperature for one two-level system.


Level 4 — Synthesis

Goal: derive full thermodynamics for a continuous system.

Recall Solution

WHAT: do the two Gaussian integrals, then differentiate . WHY the Gaussian tool: the Boltzmann weight of a quadratic Hamiltonian is a Gaussian in and in ; the standard result answers "what is the total weight over all positions and momenta?" (Used .) Energy: , so This is equipartition: two quadratic degrees of freedom ( and ), each contributing . Heat capacity: . Free energy: .

Recall Solution

WHAT: use . WHY: this is the thermodynamic identity read at fixed ; see Legendre transforms in thermodynamics. Let , so . Then Check : with , The from cancels the inside , leaving pure — the same " cancels" magic as the parent derivation.


Level 5 — Mastery

Goal: build new results and connect frameworks.

Recall Solution

WHAT: differentiate with respect to , using . WHY: measures how much energy the system soaks up per degree — the fingerprint of a two-level ("Schottky") system. Write . Chain rule via : . At : , denominator . Physics: at both (frozen) and (no room to absorb more), peaking in between — the Schottky anomaly. See Entropy — Gibbs and Boltzmann definitions.

Recall Solution

WHAT: weight each state by instead of . WHY the new tool: now particle number can change, so we let the reservoir "pay" per particle. This is the grand canonical recipe. Step 1 — write . The two states are empty and occupied : Step 2 — grand potential. Apply the definition directly: Step 3 — average occupation. The trick works because differentiating with respect to pulls down a factor from each exponent, exactly building the number-weighted average: Interpretation. This is the Fermi–Dirac distribution — the same algebraic shape as the two-level energy, but now it counts particles. Setting (at any ) gives : the chemical potential is exactly the energy at which a level is half-filled.

Recall Solution

WHAT: use at fixed ; see Ideal gas from the partition function. WHY: only 's -dependence matters for pressure, and , so . Multiplying both sides by the volume gives the ideal-gas law: The whole ideal-gas law is just the derivative of . (The Gibbs correction shifts by a -independent amount, so it leaves untouched — it fixes entropy extensivity, not pressure.)


Recall One-line summary of the ladder

L1 plug into ::: L2 differentiate for ::: L3 multiply 's, log makes extensive ::: L4 Gaussian integrals + equipartition for the oscillator ::: L5 heat-capacity peak, grand ensemble, ideal-gas law — all from one .