Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Problem set — phase transitions and the Ising model

Problem set: phase transitions and the Ising model

Exam-style problems. Work them with a pen before touching a computer; problems 4 and 5 are meant to be finished in the laboratory, and problem 6 is a challenge. Solutions and marking rubrics live with the instructor material and are deliberately not on this site.

Energies are in units of the coupling JJ, temperatures in units of J/kBJ/\kB and fields in units of JJ, as in the module. The square lattice has q=4q = 4 neighbours per site and Onsager’s critical temperature is kBTc=2J/ln⁡(1+2)=2.2692 J\kB T_c = 2J/\ln(1 + \sqrt{2}) = 2.2692\,J.

Problem 1 — the acceptance rule is a choice, within limits

A Markov chain proposes to flip one spin, chosen uniformly at random, and accepts the proposal with probability A(ΔE)A(\Delta E), where ΔE\Delta E is the energy change of the flip.

(a) Show that detailed balance with respect to ps∝e−Es/(kBT)p_s \propto e^{-E_s/(\kB T)} holds if and only if A(ΔE)/A(−ΔE)=e−ΔE/(kBT)A(\Delta E)/A(-\Delta E) = e^{-\Delta E/(\kB T)} for every ΔE\Delta E. Why does the proposal step not appear in this condition?

(b) Verify that the Metropolis rule A=min⁡(1,e−ΔE/(kBT))A = \min(1, e^{-\Delta E/(\kB T)}) and the Glauber rule A=1/(1+eΔE/(kBT))A = 1/(1 + e^{\Delta E/(\kB T)}) both satisfy it.

(c) A student proposes A′=12min⁡(1,e−ΔE/(kBT))A' = \tfrac12 \min(1, e^{-\Delta E/(\kB T)}), “to be safe”. Does it sample the right distribution? What does it cost? Explain why no rule can use a constant c>1c > 1 in place of 12\tfrac12.

(d) For the square lattice at h=0h = 0 and kBT=2J\kB T = 2J, list the possible values of ΔE\Delta E for a single flip and the Metropolis and Glauber acceptance probabilities for each. Which rule accepts more often, and does that make it more correct?

(e) Show that the chain with acceptance AA leaves the Boltzmann distribution stationary, by summing detailed balance over the initial configuration. Then explain why stationarity does not say how many sweeps the chain needs to reach it.

Problem 2 — domain walls in one and two dimensions

(a) An open chain of NN spins at h=0h = 0 is all up. Show that introducing one domain wall costs ΔE=2J\Delta E = 2J and gains entropy ΔS≈kBln⁡N\Delta S \approx \kB \ln N, and hence that ΔF<0\Delta F < 0 for N>e2J/(kBT)N > e^{2J/(\kB T)}. Evaluate this threshold at kBT=0.5 J\kB T = 0.5\,J and kBT=0.2 J\kB T = 0.2\,J. What do you conclude about long-range order at any T>0T > 0?

(b) The exact energy per spin of the infinite chain is E/(NJ)=−tanh⁡(J/(kBT))E/(NJ) = -\tanh(J/(\kB T)). Show that this corresponds to a density of domain walls nw=(1−tanh⁡(J/(kBT)))/2n_w = (1 - \tanh(J/(\kB T)))/2 per bond, and compare 1/nw1/n_w with the threshold of part (a) at kBT=0.5 J\kB T = 0.5\,J.

(c) Now the square lattice, L×LL \times L. A domain of reversed spins enclosed by a closed wall of length ℓ\ell bonds costs 2Jℓ2J\ell. The number of closed walls of length ℓ\ell through a given bond is at most 3ℓ3^{\ell}. Show that the free energy of such walls is positive for kBT<2J/ln⁡3\kB T < 2J/\ln 3. Evaluate the bound and compare it with Onsager’s TcT_c.

(d) Explain in two or three sentences why part (c) permits order in two dimensions but does not prove it, and why the same argument cannot be repeated in one dimension.

Problem 3 — mean field: what it gets right and how wrong it is

(a) Starting from a single spin in a field heffh_{\mathrm{eff}}, ⟨s⟩=tanh⁡(heff/(kBT))\langle s \rangle = \tanh(h_{\mathrm{eff}}/(\kB T)), derive the mean-field equation m=tanh⁡((qJm+h)/(kBT))m = \tanh((qJm + h)/(\kB T)), naming the approximation precisely.

(b) Show graphically or by expansion that at h=0h = 0 the equation has nonzero solutions only below kBTcMF=qJ\kB T_c^{\mathrm{MF}} = qJ.

(c) Expand tanh⁡x≈x−x3/3\tanh x \approx x - x^3/3 and show that just below TcMFT_c^{\mathrm{MF}}, m0≈3(1−T/TcMF)m_0 \approx \sqrt{3(1 - T/T_c^{\mathrm{MF}})}. What is the mean-field exponent β\beta? What is the exact exponent on the square lattice?

(d) Above TcMFT_c^{\mathrm{MF}}, linearize in small hh and show that χ=∂m/∂h=1/(kB(T−TcMF))\chi = \partial m/\partial h = 1/(\kB(T - T_c^{\mathrm{MF}})): the Curie–Weiss law. What is the mean-field exponent γ\gamma?

(e) By what percentage does mean field overestimate the square lattice’s transition temperature? What does it predict for the chain (q=2q = 2), and what is the truth there?

(f) At kBT=2.0 J\kB T = 2.0\,J, mean field gives m0=0.958m_0 = 0.958 and Onsager–Yang give 0.911; at 1.5 J1.5\,J, 0.990 and 0.987. Explain why mean field is better at the lower temperature.

Problem 4 — locating T_c from the susceptibility peak

Use the laboratory’s temperature sweep, or thermolab.ising.temperature_scan.

(a) For L=8L = 8, 16 and 32, scan kBT\kB T from 2.20 J2.20\,J to 2.80 J2.80\,J in steps of 0.02 J0.02\,J, with at least 104 sweeps per temperature after burn-in. Record the temperature of the peak of χ′=N Var(∣m∣)/(kBT)\chi' = N\,\mathrm{Var}(|m|)/(\kB T) and its height. Repeat with three more seeds and quote each peak position with an error.

(b) Finite-size scaling predicts Tpeak(L)=Tc+a L−1/νT_{\mathrm{peak}}(L) = T_c + a\,L^{-1/\nu} with ν=1\nu = 1 for the square lattice. Fit your three peak positions against 1/L1/L and extrapolate to L→∞L \to \infty. Compare with Onsager’s TcT_c, and state whether the difference is within your error.

(c) Plot the peak height against LL on logarithmic axes and fit a power. The theory says γ/ν=7/4\gamma/\nu = 7/4; what do you find, and why might three small lattices disagree?

(d) A classmate fits Tpeak(L)T_{\mathrm{peak}}(L) against 1/L21/L^2 instead and gets a different extrapolation. What does the choice of the exponent assume, and which of your conclusions is independent of that assumption?

Problem 5 — measuring an exponent, and why the answer is biased

(a) At L=64L = 64, measure ⟨∣m∣⟩\langle |m| \rangle at kBT=1.8\kB T = 1.8, 1.9, 2.0, 2.1, 2.15, 2.2 and 2.25 J2.25\,J, with an error bar on each corrected for the autocorrelation time: σ/Neff\sigma/\sqrt{N_{\mathrm{eff}}} with Neff=n/(2τ)N_{\mathrm{eff}} = n/(2\tau). Report τ\tau at each temperature. Where is it largest?

(b) Fit ln⁡⟨∣m∣⟩\ln\langle|m|\rangle against ln⁡(Tc−T)\ln(T_c - T), using Onsager’s TcT_c. What exponent do you find? Compare with the exact 1/81/8.

(c) Repeat the fit using only the three temperatures furthest from TcT_c, then only the three closest. Explain the difference: name one bias that dominates far from TcT_c and one that dominates close to it.

(d) For your point at 2.25 J2.25\,J, compare the naive error σ/n\sigma/\sqrt{n} with the corrected one. By what factor were you about to overstate your precision?

(e) Run the 2.25 J2.25\,J point with four different seeds. Do the four values agree within their corrected error bars? Within the naive ones? What does this say about which error bar to quote?

Problem 6 — the paramagnet hidden inside the Ising model (challenge)

(a) Set J=0J = 0. Show that the spins become independent, that the partition function factorizes into module 12’s single-spin form, and that ⟨m⟩=tanh⁡(h/(kBT))\langle m \rangle = \tanh(h/(\kB T)) exactly.

(b) Take the exact chain magnetization from the module, m=sinh⁡(h/(kBT))/sinh⁡2(h/(kBT))+e−4J/(kBT)m = \sinh(h/(\kB T))/\sqrt{\sinh^2(h/(\kB T)) + e^{-4J/(\kB T)}}, and show that it reduces to the result of part (a) as J→0J \to 0. Then show that for small hh at fixed J>0J > 0, χ=∂m/∂h∣h=0=e2J/(kBT)/(kBT)\chi = \partial m/\partial h|_{h=0} = e^{2J/(\kB T)}/(\kB T), and explain physically why coupling makes the chain more susceptible than free spins.

(c) For J=0J = 0, verify the fluctuation identity χ=N Var(m)/(kBT)\chi = N\,\mathrm{Var}(m)/(\kB T) directly, computing Var(m)\mathrm{Var}(m) for NN independent spins.

(d) At h=0h = 0 and J>0J > 0 on the square lattice, explain why the identity of part (c) still holds for every finite NN, but the estimator the laboratory uses below TcT_c replaces mm by ∣m∣|m|. What would go wrong, in a run of 104 sweeps at kBT=2.0 J\kB T = 2.0\,J on an 8×88 \times 8 lattice, if you used mm?