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 1 — The two-level system.
Look at the two horizontal levels: energy 0 (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.
Goal: can you pull the right formula off the shelf and plug numbers in?
Recall Solution
WHAT: apply the master bridge F=−kBTlnZ directly.
WHY: nothing to derive — F is defined as −kBTlnZ once you have Z.
F=−kBTln4=−kBT(1.3863)≈−1.386kBT.
The sign is negative because Z>1 means lnZ>0, 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 e−βEi over the two states.
WHY: the definition Z=∑ie−βEi — each state contributes one exponential.
Z=e−β⋅0+e−βε=1+e−βε.
At βε=1: Z=1+e−1=1+0.3679=1.3679.
Picture (Figure 1): the "1" is the ground level always counted with full weight; e−βε is the shrunk weight of the excited level — shrunk because it costs energy ε.
Goal: differentiate lnZ to get real thermodynamics.
Recall Solution
WHAT: take the β-derivative of lnZ.
WHY tool:U is the average energy ∑ipiEi; the parent note showed this weighted sum equals −∂βlnZ — the derivative "pulls down" an Ei from each exponent and the division by Z (hidden inside ln) does the averaging automatically.
lnZ=ln(1+e−βε),∂β∂lnZ=1+e−βε−εe−βε.U=−∂β∂lnZ=1+e−βεεe−βε=eβε+1ε.
At βε=1: U/ε=1/(e1+1)=1/3.7183=0.2689.
Sanity across cases:β→∞ (cold) ⇒U→0 (ground state). β→0 (hot) ⇒U→ε/2 (both states equally likely). Our value 0.269ε sits between, as it must.
Recall Solution
WHAT: use the assembled relation from the parent derivation, S=kBβU+kBlnZ.
WHY: it lets us reuse U (already found) and Z (already found) — no new sums.
βU=β⋅eβε+1ε=eβε+1βε=3.71831=0.2689.
lnZ=ln1.3679=0.3133.
S/kB=0.2689+0.3133=0.5822.Cross-check: the maximum possible entropy for a 2-state system is ln2=0.693 (both states equally likely). We are below it because at finite T the system still slightly favours the ground state. ✓
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 Ztot=Z1N. See Boltzmann distribution and microstates for why factorisation holds.
Ztot=Z1N=(1+e−βε)N.F=−kBTlnZ1N=−NkBTln(1+e−βε).
At βε=1: F/(NkBT)=−ln(1.3679)=−0.3133.
The lesson (extensivity):F∝N. The logarithm turned a productZ1N into a sumNlnZ1. This is precisely why free energy — not Z itself — is the natural thermodynamic potential. See Helmholtz vs Gibbs free energy.
Recall Solution
WHAT: examine ln(1+e−βε) in each temperature extreme.
WHY: limits reveal whether the formula behaves physically — a formula that misbehaves at 0 or ∞ is suspect.
T→0 (β→∞): e−βε→0, so ln(1+0)=0, giving F→0. Physically the system is frozen in the ground state (energy 0, entropy 0), so F=U−TS→0. ✓
T→∞ (β→0): e−βε→1, so ln2, giving F→−kBTln2→−∞. The entropy term −TS dominates (S→kBln2), and F dives to −∞. ✓
Figure 2 plots F/ε, U/ε, and TS/ε vs kBT/ε so you can seeF=U−TS pulling downward as T grows.
Figure 2 — F, U and TS versus temperature for one two-level system.
Goal: derive full thermodynamics for a continuous system.
Recall Solution
WHAT: do the two Gaussian integrals, then differentiate lnZ.
WHY the Gaussian tool: the Boltzmann weight e−β(…) of a quadratic Hamiltonian is a Gaussian in p and in x; the standard result ∫−∞∞e−ax2dx=π/a answers "what is the total weight over all positions and momenta?"
Z=h1∫e−βp2/2mdp∫e−βmω2x2/2dx=h1β2πmβmω22π=hβω2π=ℏβω1=ℏωkBT.
(Used h=2πℏ.)
Energy:lnZ=−lnβ+const, so
U=−∂β∂lnZ=−(−β1)=β1=kBT.
This is equipartition: two quadratic degrees of freedom (p and x), each contributing 21kBT.
Heat capacity:CV=∂T∂U=∂T∂(kBT)=kB.
Free energy:F=−kBTln(kBT/ℏω).
Recall Solution
WHAT: use S=−∂F/∂T.
WHY: this is the thermodynamic identity dF=−SdT−pdV+μdN read at fixed V,N; see Legendre transforms in thermodynamics.
Let x=kBT/ℏω, so F=−kBTlnx. Then
S=−∂T∂F=kBln(ℏωkBT)+kBT⋅T1=kBln(ℏωkBT)+kB.Check F=U−TS: with U=kBT,
U−TS=kBT−T[kBlnx+kB]=kBT−kBTlnx−kBT=−kBTlnx=F.✓
The kBT from U cancels the +kBT inside −TS, leaving pure −kBTlnZ — the same "U cancels" magic as the parent derivation.
WHAT: differentiate U with respect to T, using β=1/kBT.
WHY:C=∂U/∂T measures how much energy the system soaks up per degree — the fingerprint of a two-level ("Schottky") system.
Write U=ε(eβε+1)−1. Chain rule via β: dTdβ=−kBT21=−kBβ2.
∂β∂U=ε⋅(−(eβε+1)2εeβε)=−(eβε+1)2ε2eβε.C=∂T∂U=∂β∂UdTdβ=(−(eβε+1)2ε2eβε)(−kBβ2)=kB(βε)2(eβε+1)2eβε.
At βε=2: e2=7.389, denominator (8.389)2=70.38.
C/kB=4⋅70.387.389=4⋅0.10498=0.4199.Physics:C→0 at both T→0 (frozen) and T→∞ (no room to absorb more), peaking in between — the Schottky anomaly. See Entropy — Gibbs and Boltzmann definitions.
Recall Solution
WHAT: weight each state by e−β(E−μN) instead of e−βE.
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 Z. The two states are empty (N=0,E=0) and occupied (N=1,E=ε):
Z=e−β(0−μ⋅0)+e−β(ε−μ⋅1)=1+e−β(ε−μ).Step 2 — grand potential. Apply the definition directly:
Φ=−kBTln(1+e−β(ε−μ)).Step 3 — average occupation. The trick ⟨n⟩=β1∂μ∂lnZ works because differentiating with respect to μ pulls down a factor βN from each exponent, exactly building the number-weighted average:
⟨n⟩=β1∂μ∂lnZ=1+e−β(ε−μ)e−β(ε−μ)=eβ(ε−μ)+11.Interpretation. This is the Fermi–Dirac distribution — the same algebraic shape as the two-level energy, but now it counts particles. Setting μ=ε (at any T) gives ⟨n⟩=e0+11=21: the chemical potential is exactly the energy at which a level is half-filled.
Recall Solution
WHAT: use p=−∂F/∂V at fixed T,N; see Ideal gas from the partition function.
WHY: only Z1's V-dependence matters for pressure, and Z1∝V, so lnZ1=lnV+(V-independent).
F=−NkBTlnZ1=−NkBT(lnV−3lnλ).p=−∂V∂F=NkBT∂V∂lnV=NkBT⋅V1=VNkBT.
Multiplying both sides by the volume V gives the ideal-gas law:
pV=NkBT.✓
The whole ideal-gas law is just the derivative of lnV. (The 1/N! Gibbs correction shifts F by a V-independent amount, so it leaves p untouched — it fixes entropy extensivity, not pressure.)
Recall One-line summary of the ladder
L1 plug into F=−kBTlnZ ::: L2 differentiate lnZ for U,S ::: L3 multiply Z's, log makes F extensive ::: L4 Gaussian integrals + equipartition for the oscillator ::: L5 heat-capacity peak, grand ensemble, ideal-gas law — all from one lnZ.