7.17 Bose–Einstein Condensation: The Ceiling Saturates#

Elementary Computational Physics
Volume VII — Quantum Statistical Mechanics Notebook 7.17
Photons and phonons could always mint their own quanta; this gas cannot, and the conservation is the entire story. A bounded integral runs out of room for the particles, the chemical potential hits a ceiling the volume flagged ten notebooks ago, and the ground state absorbs a macroscopic remainder — a phase transition made of counting, with no interactions anywhere. We watch it assemble itself in an exact fifty-atom computation, check London's 1938 number against liquid helium, and compute the nanokelvin temperature at which, in 1995, it finally happened on a laboratory bench.
Level · advanced   •   Est. · 200–240 min
Raymond Amador v1.4.0  ·  2026-07-31  ·  CC BY 4.0 (text) / MIT (code)

Notebook overview#

This is the notebook the volume has been arming since its arsenal. §7.3 proved that the Bose integral \(g_{3/2}(z)\) is bounded (it climbs to \(\zeta(3/2) = 2.612\) at \(z = 1\) with a vertical tangent and can go no further) and flagged the fact for later. §7.7 derived the fugacity ceiling \(\mu < \varepsilon_{\min}\) the day the distributions were born, and flagged it loudly. §7.8 drew the degeneracy criterion \(n\lambda^3 \sim 1\) as a map. Photons (§7.14) and phonons (§7.16) then walked past the whole apparatus, because their number was unconserved and \(\mu = 0\) came free. Here, at last, the boson number is conserved, and the conservation is the entire story. Fixed \(N\) demands \(n\lambda^3 = g_{3/2}(z)\); the right side is bounded; cool or squeeze the gas past \(n\lambda^3 = 2.612\) and the equation simply runs out of solutions (verified bluntly below: solvable at 2.6 with \(z = 0.999988\), no solution at 3.0). The failure has a precise cause, stated as a crime and its correction: the continuum density of states \(\sqrt\varepsilon\) assigns the \(\varepsilon = 0\) ground state zero statistical weight: the integral cannot see the one state that matters most. Count that state separately (Einstein, 1925, building on Bose’s photon counting) and the books heal: below \(T_c\) the fugacity pins at the ceiling, the excited states saturate, and the ground state absorbs a macroscopic remainder, \(N_0/N = 1 - (T/T_c)^{3/2}\): the only phase transition in physics driven by counting alone, with no interactions anywhere.

The centerpiece makes the thermodynamic-limit story answer to an exact computation: the canonical recursion \(Z_N = (1/N)\sum_k Z_1(k\beta)Z_{N-k}\), exact for ideal bosons at fixed \(N\), implemented in logarithms with scipy.special.logsumexp on ground-shifted box levels, delivering the exact condensate \(\langle N_0\rangle(T)\) for \(N = 50\), \(200\), and \(800\) atoms. The transition visibly assembles itself: the above-\(T_c\) tail collapses as \(N\) grows while the finite gas hoards condensate below \(T_c\), and the whole exercise doubles as the ensemble equivalence of §7.7 re-examined at the hardest possible place. The density of states then decides which worlds condense: a 2D box inverts analytically to \(\mu < 0\) for every finite degeneracy (no ceiling, no condensation, and a float-precision subtlety worth its own demonstration), yet a 2D harmonic trap condenses, and the 3D trap obeys its own law \(k_BT_c = \hbar\bar\omega(N/\zeta(3))^{1/3}\) with fraction \(1 - t^3\): the formula the 1995 experiments actually measured (123 nK at JILA scale, computed). The data anchor behind it all is London 1938: the ideal-gas \(T_c\) at liquid helium’s density lands at 3.13 K beside the measured \(\lambda\)-point at 2.17 K, close enough that London dared connect them, with the honest footnote that neutron scattering finds real helium’s condensate fraction at only 7–10%. The thermodynamics carries the signature: a heat-capacity cusp at \(1.9257\,Nk_B\) (continuous to four digits, then descending to \(3/2\) from above), and below the transition a pressure that does not depend on the volume at all: flat isotherms, because the condensate pushes on nothing.

Conventions (this notebook). The reduced temperature is \(t = T/T_c\) throughout. The exact-recursion exercise runs in box units \(\varepsilon = n_x^2+n_y^2+n_z^2\) (i.e. \(\hbar^2\pi^2/2mL^2 = 1\), \(k_B = 1\)), with the single-particle ground energy shifted to zero (the stabilization: \(Z_1(k\beta) \ge 1\) always) and its box-unit \(T_c(N) = [8N/\pi^{3/2}\zeta(3/2)]^{2/3}\) derived in place; the data anchors run in SI. Polylogarithms \(g_s(z)\) come from mpmath.polylog (the validated route of §7.3, cast to float); fugacity inversions use scipy.optimize.brentq with the upper bracket at \(1 - 10^{-14}\) (a smaller margin misses roots when \(n\lambda^3\) approaches 2.612 — stated). Near the ceiling we compute \(\mu\), never \(z\): quantities like \(1 - z \sim 10^{-22}\) underflow the double next to 1 while \(\mu\) remains finite and negative (numpy.log1p is the right tool; demonstrated once, then standing). The \(g_{1/2}\) divergence at \(z = 1\) means the above-\(T_c\) heat capacity is evaluated only at \(t > 1\) with a stated margin — continuity is proven by limits, never by evaluating at the ceiling. Finite-size numbers are quoted with their \(N\): the hoarding and the tail are \(N\)-dependent facts, not sloppiness.

How to read the checks. Each exercise closes with a validate call against an independent fact: the fugacity inversion agreeing with stated values below the ceiling and failing explicitly above it; London’s 3.13 K; the exact recursion’s tail collapsing monotonically with \(N\) while the below-\(T_c\) curves hoard above the limit law; the 2D underflow demonstration; the 123 nK; the cusp continuous to four digits. A ✓ is strong evidence; a ✗ is a prompt to locate the discrepancy.

Scope. Interactions (Gross–Pitaevskii, healing lengths, vortices), superfluid helium’s two-fluid hydrodynamics, BCS pairing as the fermionic echo, photon BEC in dye microcavities (the caveat of §7.14), and polaritons are named horizons. See Einstein 1925; London 1938; Anderson et al. 1995 and Davis et al. 1995 (Nobel 2001); Pathria & Beale (Ch. 7); Pethick & Smith, Bose–Einstein Condensation in Dilute Gases. Cross-reference §7.3 (the bounded integral and the constant-DOS flag, both decisive here), §7.7 (the ceiling; ensemble equivalence), §7.8 (the criterion, now a phase boundary), §7.14/§7.16 (the \(\mu = 0\) gases, contrasted), §7.9 (the fermionic counter-verdict), §5.10 (singularities live in the limit), and forward to §7.18/§7.19 (Movement V: quantum spins and criticality) and §7.20/§7.21 (this gas again, by path integrals).

Theory in brief#

The ceiling, and the integral’s crime#

The factorized boson gas of §7.7 plus the integral of §7.3 turn particle conservation into one equation:

(787)#\[n\lambda_T^3 = g_{3/2}(z), \qquad g_{3/2}(z) \le g_{3/2}(1) = \zeta(3/2) = 2.612\ldots\]

The left side grows without bound as the gas cools (\(\lambda_T \propto T^{-1/2}\)) or is compressed; the right side cannot follow: §7.3 proved \(g_{3/2}\) reaches its ceiling at \(z = 1\) with a vertical tangent and stops. Below the ceiling the inversion is routine (brentq; verified: \(z = 0.6986\), \(0.9656\), \(0.999988\) at \(n\lambda^3 = 1\), \(2\), \(2.6\)); at \(n\lambda^3 = 3.0\) no solution exists. The failure has a precise cause. The continuum density of states \(g(\varepsilon) \propto \sqrt\varepsilon\) assigns the \(\varepsilon = 0\) ground state zero weight: the integral literally cannot see the one state that matters most. A continuum approximation is an excellent servant for sums over many thermally-blurred levels and an outright criminal for a single level about to hold half the particles.

Einstein’s correction, and what condenses#

Count the invisible state separately:

(788)#\[N = N_0 + \frac{V}{\lambda_T^3}\,g_{3/2}(z) \quad\Longrightarrow\quad \frac{N_0}{N} = 1 - \left(\frac{T}{T_c}\right)^{3/2}, \qquad k_BT_c = \frac{2\pi\hbar^2}{m}\left(\frac{n}{\zeta(3/2)}\right)^{2/3}.\]

Below the saturation temperature the fugacity pins at \(z = 1^-\) (the ceiling reached, never crossed; \(\mu \to 0^-\)): the excited states hold all they can, \((V/\lambda^3)\zeta(3/2)\), and the ground state absorbs the macroscopic remainder. Note what the phase boundary is: \(n\lambda_T^3 = \zeta(3/2)\) is exactly the degeneracy criterion of §7.8 with its constant computed: the map’s line, crossed at last. And note what condensed: not a droplet in space but a macroscopic occupation of the \(k = 0\) mode, condensation in momentum space. In the language of §7.8, the thermal wavelength has grown past the interparticle spacing until the wavepackets fuse into a single coherent object the size of the container. The history fits in two sentences: Bose counted photon states in 1924; Einstein extended the counting to conserved atoms in 1925 and saw the transition; the prediction then sat, unrealized, for seventy years.

London’s number (data)#

The critical temperature just derived asks for nothing but a particle mass and a number density (no interaction parameter appears anywhere), so it can be evaluated for any real fluid one dares to model as an ideal gas. The first such evaluation on record reads:

(789)#\[T_c(\text{ideal gas at liquid He-4's density}) = 3.13\ \text{K} \qquad\text{vs}\qquad T_\lambda = 2.17\ \text{K}.\]

In 1938 London evaluated Einstein’s formula at liquid helium’s density and found it beside the freshly-discovered \(\lambda\)-point: a zero-interaction caricature landing within fifty percent of a strongly interacting liquid’s transition, close enough that he dared identify the two. The honesty attaches immediately: neutron scattering finds real He-4’s condensate fraction only \(\sim\)7–10% even as \(T \to 0\) (interactions deplete the condensate without destroying the transition), and superfluidity is related to, not identical with, BEC (the two-fluid model is the outward name).

The exact finite gas: the canonical recursion#

Everything so far has lived in the grand canonical ensemble and the thermodynamic limit. The centerpiece needs the canonical partition function of a finite gas at fixed \(N\), and for ideal bosons symmetrization hands it over in closed recursive form:

(790)#\[Z_N(\beta) = \frac{1}{N}\sum_{k=1}^{N} Z_1(k\beta)\,Z_{N-k}(\beta), \qquad \langle N_0\rangle = \sum_{k=1}^{N} \frac{Z_{N-k}(\beta)}{Z_N(\beta)}\,e^{-k\beta\varepsilon_0}.\]

Exact for ideal bosons at fixed \(N\): the recursion organizes the permanent over symmetrized states by cycle lengths \(k\), each cycle contributing a single-particle partition function at inverse temperature \(k\beta\) (the cycle-sum origin, credited to Landsberg’s and Borrmann–Franke’s treatments). It is also a numerical minefield crossed with two disciplines: the recursion must run in logarithms (scipy.special.logsumexp at every step; naive floats overflow as roughly \(Z_1^N\)), and the levels must be ground-shifted to \(\varepsilon_0 = 0\) (so \(Z_1(k\beta) \ge 1\) for every \(k\); unshifted energies underflow at large \(k\)). The payoff is a phase transition watched exactly as it assembles: above \(T_c\) the condensate tail collapses with \(N\); below \(T_c\) the finite gas hoards condensate above the limit curve; the approach is slow (\(\sim N^{-1/3}\)) and the finite-size \(T_c\) sits high. A “phase transition” in fifty atoms is a crossover; singularities live only in the thermodynamic limit (the lesson of §5.10, quantum edition), and this is the ensemble equivalence of §7.7 re-examined at a phase transition, the hardest place there is.

The DOS decides: dimension and confinement#

The whole condensation argument used the 3D box at exactly one step: its \(\sqrt\varepsilon\) density of states picked which polylogarithm does the counting, and that polylogarithm happened to be bounded. Change the dimension or the confinement and the verdict can flip either way:

(791)#\[\text{2D box: } \mu = k_BT\,\ln\!\left(1 - e^{-n\lambda^2}\right) < 0 \;\;\forall\, n\lambda^2 \qquad\text{but}\qquad \text{3D trap: } k_BT_c = \hbar\bar\omega\left(\frac{N}{\zeta(3)}\right)^{1/3}, \;\; \frac{N_0}{N} = 1 - t^3 .\]

In a 2D box the density of states is constant (the flag of §7.3) and the inversion is analytic: \(n\lambda^2 = g_1(z) = -\ln(1-z)\), unbounded, so \(\mu\) stays strictly negative at every finite degeneracy and nothing condenses (for the interacting case the outward name is Mermin–Wagner). Confinement rewrites the verdict: a 2D harmonic trap has \(g(\varepsilon) \propto \varepsilon\), whose integral \(g_2(z)\) is bounded (by \(\zeta(2)\)), so trap BEC exists; the 3D trap has \(g \propto \varepsilon^2\) and its own law. The general rule: a density of states \(\propto \varepsilon^\alpha\) hands the counting to \(g_{\alpha+1}\), which is bounded iff \(\alpha > 0\)… precisely: condensation occurs iff \(g_{\alpha+1}(1)\) converges, and the fraction is \(1 - t^{\,\alpha+1}\). Condensation is a property of the density of states, not of bosons per se.

1995 (data)#

The experiments that finally realized the transition held their atoms not in a box but in a magnetic trap, so the trap law of the previous section is the one nature was asked to obey; at the parameters of the first rubidium experiment it gives

(792)#\[T_c = \frac{\hbar\bar\omega}{k_B}\left(\frac{N}{\zeta(3)}\right)^{1/3} = 123\ \text{nK} \quad (N = 2\times10^4,\ \bar\omega = 2\pi\cdot100\ \text{Hz}),\]

the JILA scale. Why the seventy-year wait: \(T_c \propto n^{2/3}/m\), and a gas that must stay gaseous must stay dilute, hence cold beyond any cryostat; it took laser cooling plus evaporative cooling to reach it. The smoking gun was the bimodal time-of-flight velocity distribution: a broad thermal pedestal with a needle growing at \(v = 0\) (Anderson et al., rubidium; Davis et al., sodium; Nobel 2001). The atom laser and matter-wave interference are the outward cousins of the stimulated amplification of §7.15.

Thermodynamics of the transition#

A transition must leave marks on measurable thermodynamics. Differentiating the energy of the boson gas of §7.7 on each side of \(T_c\), and reading the pressure from the same expressions below it, yields the signature (Pathria & Beale, Ch. 7, carries the full derivations):

(793)#\[\frac{C}{Nk_B}\bigg|_{t<1} = \frac{15\,\zeta(5/2)}{4\,\zeta(3/2)}\,t^{3/2} \;\to\; 1.9257, \qquad \frac{C}{Nk_B}\bigg|_{t>1} = \frac{15}{4}\frac{g_{5/2}}{g_{3/2}} - \frac{9}{4}\frac{g_{3/2}}{g_{1/2}}, \qquad P\big|_{t<1} = \frac{k_BT}{\lambda_T^3}\,\zeta(5/2).\]

Below \(T_c\) everything is a \(z = 1\) polylogarithm and \(C\) rises as \(t^{3/2}\) to \(1.9257\); above, the \(g_{1/2}\) divergence kills the second term as \(t \to 1^+\) (continuity to four digits: 1.9256 at \(t = 1.0001\)) and the curve descends to \(3/2\) from above: a cusp, a genuine maximum at \(T_c\) with a slope discontinuity. Helium’s \(\lambda\)-point, by contrast, diverges logarithmically: the Greek letter belongs to the interacting liquid; the ideal cusp is its caricature, right about location and scale, wrong about shape. And the pressure makes the transition mechanical: below \(T_c\), \(P\) contains no density at all: compressing the gas at fixed \(T\) just files more particles into the condensate at constant pressure. Flat isotherms, a coexistence-like plateau, the condensate as a zero-pressure phase: it sits at \(k = 0\) and carries no momentum flux. Set it beside the degenerate fermions of §7.9 pushing with gigapascals at \(T = 0\): the two statistics’ zero-temperature verdicts, side by side.

Setup#

Data and instruments only: the series colours, the SI constants, the two data anchors (liquid helium-4’s density and mass), the zeta values that fix every ceiling in the notebook, the near-1 brentq bracket the fugacity inversion needs, and the mpmath.polylog wrapper every Bose integral is routed through. The physics this notebook is about is built in the exercises: the fugacity inversion and its honest failure in Exercise 1, the condensate fraction in Exercise 2, London’s \(T_c\) formula in Exercise 3, the exact canonical recursion with its ground-shifted levels in Exercise 4, the 2D chemical potential in Exercise 5, the trap law in Exercise 6, and the heat capacity in Exercise 7.

The Setup below holds this notebook’s data and instruments — nothing you are asked to build. It is collapsed so the building stays yours; expand it whenever you want the details.

Hide code cell source

import matplotlib.pyplot as plt
import mpmath
import numpy as np
from scipy.optimize import brentq
from scipy.special import logsumexp, zeta

from ecp import draw, validate

ACCENT, INK, SOFT = draw.ACCENT, draw.INK, draw.SOFT
RED = "#c1121f"

# Constants (SI, for the data anchors) and the volume's polylog conventions (§7.3).
from scipy.constants import hbar as HBAR  # J·s
from scipy.constants import k as KB  # J/K (exact)
from scipy.constants import m_u as U_AMU  # atomic mass constant, kg

# data: the bounded-integral ceilings this notebook is organized around, and the two
# London anchors (helium-4's liquid density and atomic mass) his 1938 evaluation used.
ZETA_32 = float(zeta(1.5))  # 2.612...
ZETA_52 = float(zeta(2.5))
ZETA_3 = float(zeta(3.0))
N_HE4 = 2.18e28  # liquid He-4 number density, m^-3 (London's input; standard value)
M_HE4 = 4.002602 * U_AMU
Z_BRACKET_TOP = (
    1.0 - 1e-14
)  # brentq upper end: any smaller margin misses roots near 2.612


# instrument: the single point where mpmath is called and its float-cast trap is handled.
# §7.3 built a polylogarithm from scratch as a partial sum; this is not that object but the
# arbitrary-precision library route §7.3 validated it against, so it claims no lineage — it
# is plumbing, and every result below would read the same had it come straight from mpmath.
def g_poly(s, z):
    """The Bose–Einstein function g_s(z) = polylog(s, z), by mpmath (the validated route of §7.3).

    mpmath.polylog wants a plain float (numpy.float64 triggers its complex branch —
    the recorded trap of §7.8), and returns an mpf for 0 ≤ z < 1, cast here to float.
    Used for s = 1/2, 3/2, 5/2; g_{1/2} diverges as z → 1 and is only ever
    evaluated at a stated margin below the ceiling.

    Parameters
    ----------
    s : float
        Polylog order.
    z : float
        Fugacity, 0 ≤ z < 1.

    Returns
    -------
    float
        g_s(z).
    """
    return float(mpmath.polylog(s, float(z)))


print(
    f"ζ(3/2) = {ZETA_32:.4f} — the ceiling; ζ(5/2) = {ZETA_52:.4f}; ζ(3) = {ZETA_3:.4f}"
)
print(
    f"brentq upper bracket: 1 − 1e-14 (g_3/2 there = {g_poly(1.5, Z_BRACKET_TOP):.6f})"
)
ζ(3/2) = 2.6124 — the ceiling; ζ(5/2) = 1.3415; ζ(3) = 1.2021
brentq upper bracket: 1 − 1e-14 (g_3/2 there = 2.612375)

Exercise 1 — The ceiling bites#

The equation that runs out of solutions, and the precise crime that causes it. \(g_{3/2}\) is monotone in \(z\), so a bracketing root find is guaranteed to succeed wherever a root exists at all — and the bracket’s upper end is load-bearing: near the ceiling the root sits within \(10^{-5}\) of 1, so a casual \(1 - 10^{-6}\) would already exclude the root at \(n\lambda^3 = 2.6\), while \(1 - 10^{-14}\) (the Setup’s Z_BRACKET_TOP) holds it. Above the ceiling there is no root to find, and the honest answer is to say so rather than raise or return a wrong number. Cite Eq. 787.

  1. Assemble \(n\lambda^3 = g_{3/2}(z)\) from the gas of §7.7 and the integral of §7.3.

  2. Write solve_fugacity(nl3): invert that equation with scipy.optimize.brentq on the Setup’s g_poly, over \([10^{-12}, 1-10^{-14}]\), returning None when the demand exceeds the ceiling.

  3. Verify the ceiling numerically: \(z = 0.6986\), \(0.9656\), \(0.999988\) at \(n\lambda^3 = 1\), \(2\), \(2.6\), and no solution at \(3.0\), handled explicitly rather than silently.

  4. State the integral’s crime precisely: \(g(\varepsilon) \propto \sqrt\varepsilon\) weights the ground state zero: the continuum approximation fails at exactly one state, and it is the important one.

  5. Plot the \(g_{3/2}(z)\) figure of §7.3 with the no-solution region shaded: the arsenal figure, now with teeth. (Computation + one prose sentence on the ten-notebook setup.)

  nλ^3 = 1.0:  z = 0.698614   (1 − z = 3.01e-01)
  nλ^3 = 2.0:  z = 0.965585   (1 − z = 3.44e-02)
  nλ^3 = 2.6:  z = 0.999988   (1 − z = 1.22e-05)
  nλ^3 = 3.0:  NO SOLUTION — the ceiling ζ(3/2) = 2.6124 is below the demand
../../_images/12f31dc933b8453e39aa454df9b883f1893468bde9ed5a66d4a26da3ff19a089.png

Fig. 697 The arsenal figure, now with teeth. The bounded Bose integral of §7.3 \(g_{3/2}(z)\) (amber), climbing to its ceiling \(\zeta(3/2) = 2.612\) at \(z = 1\) with a vertical tangent — and the conservation law \(n\lambda^3 = g_{3/2}(z)\) (Eq. 787) read as a horizontal line hunting for an intersection. Below the ceiling the fugacity inversion is routine (markers: \(z = 0.6986\), \(0.9656\), \(0.999988\) at \(n\lambda^3 = 1, 2, 2.6\), by brentq); in the shaded band above it there is no solution at all: cool or compress the gas past \(n\lambda^3 = 2.612\) and the excited-state integral simply cannot hold the particles. The failure is caused by a precise crime — the \(\sqrt{\varepsilon}\) density of states assigns the ground state zero weight — and Einstein’s correction is to count that one invisible state by hand.#

Validation 1#

✓  below the ceiling the inversion is routine — and hugs z = 1 as the demand approaches 2.612   [max|Δ| = 1.49445e-05 (rtol=0.05, atol=1e-09)]
✓  the ceiling: at nλ^3 = 3.0 no fugacity exists, and the failure is handled explicitly
True

Exercise 2 — Einstein’s correction: the macroscopic ground state#

Count the one state the integral cannot see, and the transition appears. Cite Eq. 788.

  1. Write \(N = N_0 + (V/\lambda^3)g_{3/2}(z)\) and derive \(T_c\) and the fraction \(N_0/N = 1 - t^{3/2}\).

  2. Write condensate_fraction(t, power) for that law, clipped to zero above the transition. Keep the exponent an argument rather than hard-coding \(3/2\): Exercise 5 shows it is the density-of-states power plus one, and the traps will want \(3\).

  3. Compute and plot \(\mu(T)\) across the transition — above \(T_c\) with the solve_fugacity you wrote in Exercise 1, on \(n\lambda^3 = \zeta(3/2)\,t^{-3/2}\) with \(\mu = k_BT\ln z\), pinned at \(0^-\) below (the near-ceiling rule previewed: Exercise 5 shows why one computes \(\mu\), never \(z\), there).

  4. State what condensed (prose): the \(k = 0\) mode, macroscopically; momentum space, not real space; the wavepackets of §7.8 fused into one coherent object.

  5. Tell the history in two sentences (Bose 1924 → Einstein 1925 → seventy years), and restate the criterion of §7.8 as a phase boundary.

condensate fraction at t = 1/2: 0.646447   (1 − 0.5^1.5 = 0.646447)
μ/k_BT_c: -2.600 at t = 3.0 → -3.05e-07 at t = 1.0005 → 0⁻ below
../../_images/4a35090db31afd2bc74fcafd7643d04693947d96146a7618fab6f45bdbcc06b6.png

Fig. 698 The ceiling reached, never crossed. The chemical potential of the conserved-number Bose gas across its transition (in units of \(k_BT_c\)): above \(T_c\) the fugacity inversion of Exercise 1 gives \(\mu < 0\), climbing toward zero as the gas cools; at \(t = 1\) it arrives at the ceiling §7.7 flagged the day the distributions were derived — and pins there (\(\mu = 0^-\), amber below the transition), because the excited states are saturated and every additional particle files into the ground state instead (Eq. 788). The kink at \(t = 1\) is the transition. Near the pin one computes \(\mu\) directly rather than \(z\) (Exercise 5 demonstrates the underflow that makes this a standing rule).#

Validation 2#

✓  the condensate fraction: 1 − t^{3/2}   [got 0.646447 vs expected 0.646447 (rtol=1e-10, atol=1e-09)]
✓  and μ climbs monotonically to the ceiling as t → 1⁺, arriving at 0⁻   [μ/k_BT_c = -3.1e-07 at t = 1.0005]
True

Exercise 3 — London’s number#

The ideal gas aimed at liquid helium — and landing within fifty percent. Cite Eq. 789.

  1. Write Tc_uniform(n, m) for \(k_BT_c = (2\pi\hbar^2/m)(n/\zeta(3/2))^{2/3}\) (Eq. 788) — the degeneracy criterion of §7.8 solved for \(T\), and a formula with no interaction parameter in it anywhere, which is exactly what licenses aiming it at a liquid.

  2. Evaluate it at liquid He-4’s density (\(n = 2.18\times10^{28}\) m⁻³, \(m = 4\)u).

  3. Compare with \(T_\lambda = 2.17\) K and tell London’s 1938 argument (prose): a zero-interaction formula close enough to a strongly interacting liquid’s transition that the identification had to be real.

  4. Attach the honesty (prose + cited number): neutron scattering finds real He’s condensate fraction \(\sim\)7–10% at \(T \to 0\); interactions deplete the condensate without destroying the transition; superfluidity related to, not identical with, BEC (two-fluid model named, outward).

  5. Note the fermionic control (one line): He-3, same chemistry, no \(\lambda\)-point at these temperatures — statistics, not chemistry, drives the transition.

ideal-gas T_c at liquid He-4's density: 3.13 K   (measured λ-point: 2.17 K)

Validation 3#

✓  London 1938: the ideal gas lands beside the λ-point   [got 3.13284 vs expected 3.13 (rtol=0.01, atol=1e-09)]
True

Exercise 4 — The transition assembles itself: the exact canonical recursion#

Fifty atoms, then two hundred, then eight hundred — watched exactly. Cite Eq. 790.

  1. Write box_levels(n_max): the box spectrum \(\varepsilon = n_x^2+n_y^2+n_z^2\) over a numpy.meshgrid, shifted so that \(\varepsilon_0 = 0\), collapsed to unique energies with their degeneracies. Then write canonical_lnZ — the recursion \(Z_N = (1/N)\sum_k Z_1(k\beta)Z_{N-k}\) in logarithms, with scipy.special.logsumexp at every step — and ground_occupation via \(\sum_k \exp(\ln Z_{N-k} - \ln Z_N)\). State both traps as you defend against them: the naive-float overflow, and the underflow the ground shift removes. Write these yourself — the implementation is the lesson.

  2. Derive \(T_c(N) = [8N/\pi^{3/2}\zeta(3/2)]^{2/3}\) for the box units and compute the exact \(\langle N_0\rangle/N\) across \(t\) for \(N = 50\), \(200\), \(800\), checking that the level cutoff is thermally dead at the hottest point of the sweep.

  3. Verify the sharpening: the above-\(T_c\) tail collapses monotonically with \(N\) at \(t = 1.3\); plot the three exact curves converging on the \(1 - t^{3/2}\) of your Exercise 2 condensate_fraction.

  4. Teach the finite-size truth (prose + the numbers, quoted with their \(N\)): below \(T_c\) the finite gas hoards condensate above the limit curve; the approach is slow (\(\sim N^{-1/3}\)) and \(T_c(N)\) sits high; a phase transition in fifty atoms is a crossover; singularities live in the limit (§5.10, quantum edition; the ensemble equivalence of §7.7 at a phase transition).

N =   50:  T_c(N) =   9.11 box units;  ⟨N_0⟩/N at t = 0.7: 0.754
N =  200:  T_c(N) =  22.96 box units;  ⟨N_0⟩/N at t = 0.7: 0.680
N =  800:  T_c(N) =  57.85 box units;  ⟨N_0⟩/N at t = 0.7: 0.619
grid adequacy: top-decile weight in Z_1 at the hottest point = 1.1e-16

the tail at t = 1.3:  N = 50: 0.297   N = 200: 0.146   N = 800: 0.049
the hoard at t = 0.7:  N = 200 exact: 0.680   vs thermodynamic limit 0.414
../../_images/540d386470715f97ae8cd93c97410d057db4623a5f537d73560a0081b595ac37.png

Fig. 699 A phase transition assembling itself, computed exactly. The condensate fraction \(\langle N_0\rangle/N\) from the canonical recursion of Eq. 790 — exact for ideal bosons at fixed \(N\), run in logarithms with logsumexp on ground-shifted box levels — for \(N = 50\), \(200\), and \(800\) atoms, against the thermodynamic-limit law \(1 - t^{3/2}\) (dashed). Above \(T_c\) the finite systems keep a condensate tail the limit forbids, and it collapses as \(N\) grows (0.30 → 0.15 → 0.05 at \(t = 1.3\)): the singularity sharpening before the reader’s eyes. Below \(T_c\) the finite gas hoards condensate above the limit curve (0.68 vs 0.41 at \(t = 0.7\), \(N = 200\)), the approach is slow (\(\sim N^{-1/3}\)), and \(T_c(N)\) sits high. Fifty atoms have a crossover, not a transition — singularities live only in the limit (the lesson of §5.10), and canonical-vs-grand-canonical agreement as \(N\) grows is the ensemble equivalence of §7.7 at a phase transition.#

Validation 4#

✓  the transition assembles itself: the above-T_c tail collapses with N while finite gases hoard below   [tail(t=1.3): 0.297 → 0.146 → 0.049]
✓  the N = 200 landmarks: the tail and the hoard, exactly where the recursion puts them   [max|Δ| = 0.0057303 (rtol=0.2, atol=1e-09)]
✓  grid adequacy: the level cutoff is thermally dead even at the hottest point of the sweep   [top-decile weight 1.1e-16]
True

Exercise 5 — The DOS decides: dimension and confinement#

An analytic no-go in the 2D box, a reprieve in the 2D trap, and a new exponent in the 3D trap. Cite Eq. 791.

  1. Invert the 2D box relation analytically: \(n\lambda^2 = g_1(z) = -\ln(1-z)\) gives \(\mu = k_BT\ln(1 - e^{-n\lambda^2})\), strictly negative for every finite \(n\lambda^2\) (no ceiling, no condensation; Mermin–Wagner one breath).

  2. Write mu_2d(nl2) for it — and write it as numpy.log1p(-numpy.exp(-nl2)), never as a logarithm of \(1 - z\) formed explicitly. Write this one yourself — the implementation is the lesson: the next part is what happens when you do it the other way.

  3. Demonstrate the display subtlety: at \(n\lambda^2 = 50\) the naive 1 - numpy.exp(-50) rounds to exactly 1.0 (so \(\ln z = 0\): false condensation), while the numpy.log1p route keeps \(\mu/k_BT = -1.9\times10^{-22}\): near the ceiling, compute \(\mu\), never \(z\) (the standing rule).

  4. Show confinement rewrites the verdict: 2D trap \(g \propto \varepsilon \Rightarrow g_2 \le \zeta(2)\) bounded \(\Rightarrow\) BEC returns; 3D trap \(g \propto \varepsilon^2 \Rightarrow\) a critical temperature of its own (Exercise 6) and fraction \(1 - t^3\); state the general rule (DOS \(\propto \varepsilon^\alpha \Rightarrow g_{\alpha+1}\), fraction \(1 - t^{\alpha+1}\)) and plot \(1 - t^3\) against \(1 - t^{3/2}\) — your Exercise 2 condensate_fraction at both powers, which is what the power argument was for.

  5. Read it (prose): condensation is a property of the density of states, not of bosons per se; the arsenal’s counting (§7.3) decides which worlds condense.

nλ^2 = 50:  naive z = 1 − e^-50 = np.float64(1.0)  →  μ/kT = 0.0
            log1p route:            μ/kT = -1.929e-22  (finite, strictly negative)

bounded trap integrals: ζ(2) = 1.6449 (2D trap), ζ(3) = 1.2021 (3D trap)
../../_images/af24b46b0ca354736917b967651fd4835ee2415647a18e37a41bc6a9bf3d4f5a.png

Fig. 700 The density of states decides. Left: the 2D box’s chemical potential \(\mu = k_BT\,\mathrm{log1p}(-e^{-n\lambda^2})\) (Eq. 791) — strictly negative at every finite degeneracy, approaching the ceiling exponentially but never reaching it: no saturation, no condensation (the naive float route, dotted, collapses to exactly zero at \(n\lambda^2 \gtrsim 36\) — a fake condensate born of double precision; near the ceiling one computes \(\mu\), never \(z\)). Right: the condensate-fraction laws where condensation does occur — the uniform gas’s \(1 - t^{3/2}\) (amber) against the 3D trap’s \(1 - t^{3}\) (dark): one general rule, DOS \(\propto \varepsilon^\alpha\) gives fraction \(1 - t^{\alpha+1}\), with the trap’s steeper law the one the 1995 experiments measured.#

Validation 5#

✓  the 2D box: μ strictly negative at every finite degeneracy — no ceiling, no condensation   [μ/kT at nλ^2 = 50: -1.9e-22]
✓  the display subtlety: the naive float route fakes a condensate; log1p keeps the truth   [naive 0.0, log1p -1.9e-22]
✓  and the safe route lands on the analytic −e^{−nλ^2} tail   [got -1.92875e-22 vs expected -1.92875e-22 (rtol=1e-06, atol=1e-09)]
True

Exercise 6 — 1995: the nanokelvin number#

The trap formula at experiment scale, and the smoking gun described. Cite Eq. 792.

  1. Write Tc_trap(N, wbar) for the trap law \(k_BT_c = \hbar\bar\omega(N/\zeta(3))^{1/3}\) (Eq. 792) — the \(\varepsilon^2\) density of states of Exercise 5 handing the counting to \(g_3\), bounded by \(\zeta(3)\).

  2. Evaluate it for exemplar 1995-scale parameters (\(N = 2\times10^4\), \(\bar\omega = 2\pi\cdot100\) Hz; the real experiments’ parameters, cited to Anderson et al. 1995 in order of magnitude).

  3. Chart the seventy-year gap (prose + one scaling line): why nanokelvin? \(T_c \propto n^{2/3}/m\) demands dilute (to stay gaseous) and therefore cold; laser plus evaporative cooling named as the enabling inventions.

  4. Describe the smoking gun (prose + a computed sketch): the bimodal time-of-flight distribution, a thermal Gaussian pedestal with a condensate needle at \(v = 0\), sketched from the two components at \(t = 0.9\) (the trap weighting from your Exercise 2 condensate_fraction at power=3).

  5. Point outward: matter-wave interference and the atom laser (the bosonic-amplification cousin of §7.15); Nobel 2001 named.

T_c(N = 2e4, ω̄ = 2π·100 Hz) = 123 nK
bimodal components at t = 0.9 (trap law): condensate fraction = 0.27
../../_images/0c6120259608ec84b056dcb48c3402fb1ef31c454b10f7d9da12c44c351b4ce5.png

Fig. 701 The smoking gun of 1995. The time-of-flight velocity distribution of a partly condensed trapped gas, sketched from its two computed components at \(t = 0.9\) (trap law, Eq. 792): a broad thermal pedestal (dark, width \(\propto \sqrt{T}\)) carrying 73% of the atoms, and the condensate needle at \(v = 0\) (amber) carrying the other 27% — macroscopic occupation of a single momentum state, made visible by switching off the trap and photographing the flying cloud. This bimodality, growing a needle as the temperature fell through \(T_c \approx 123\) nK, was the signature by which the JILA rubidium and MIT sodium experiments announced condensation (Nobel 2001).#

Validation 6#

✓  1995: condensation at one hundred twenty nanokelvin   [got 122.52 vs expected 123 (rtol=0.02, atol=1e-09)]
True

Exercise 7 — The cusp and the flat isotherm#

The transition’s thermodynamic signature: continuous, kinked, and mechanically strange. The two branches of Eq. 793 do not meet by accident: below \(T_c\) every polylogarithm sits at \(z = 1\) and \(C\) is a bare \(t^{3/2}\), while above it the \(g_{1/2}\) in the second term diverges as \(z \to 1^+\), which is exactly what kills that term and leaves the below-branch value behind. Since \(g_{1/2}(1)\) does not exist, the upper branch may only ever be evaluated at a stated margin above \(t = 1\): continuity here is established by limits, never by evaluating at the ceiling. Cite Eq. 793.

  1. Write heat_capacity(t) on both branches: below, the \(z = 1\) closed form \((15\zeta(5/2)/4\zeta(3/2))\,t^{3/2}\); above, the fugacity from \(g_{3/2}(z) = \zeta(3/2)t^{-3/2}\) with the solve_fugacity you wrote in Exercise 1, then \((15/4)g_{5/2}/g_{3/2} - (9/4)g_{3/2}/g_{1/2}\).

  2. Verify the cusp: \(1.9257\) from below at \(t = 1\), \(1.9256\) at \(t = 1.0001\) (continuity to four digits), and the approach to \(3/2\) from above (\(1.71\) at \(t = 1.5\); a genuine maximum at \(T_c\)); plot the full curve.

  3. Compare shapes honestly (prose): the ideal cusp vs helium’s logarithmic \(\lambda\); the Greek letter belongs to the interacting liquid; the caricature gets location and scale, not shape.

  4. Derive and plot the flat isotherm: \(P = (k_BT/\lambda^3)\zeta(5/2)\) below the transition, with continuity onto the \(g_{5/2}\) branch (your Exercise 1 inversion again, now at fixed \(T\) against volume) checked at the critical volume; close with the contrast to the fermions of §7.9.

C/Nk at t = 1 (below-branch): 1.9257
C/Nk at t = 1.0001:           1.9256   (continuity to four digits)
C/Nk at t = 1.5:  1.710;   at t = 6: 1.524   → 3/2 from ABOVE
isotherm continuity at v_c: |P(v_c^+) − ζ(5/2)|/ζ(5/2) = 0.0e+00
../../_images/b675da72a90df9f7cded1ea9ee409b87fd6874a3866f11b2f0fc36847f97fd14.png

Fig. 702 The transition’s thermodynamic signature. Left: the heat capacity of the ideal Bose gas (Eq. 793): rising as \(t^{3/2}\) to a cusp of \(1.9257\,Nk_B\) at \(T_c\) — continuous to four digits (the \(g_{1/2}\) divergence kills the second term as \(t \to 1^+\)) but kinked, a genuine maximum — then descending to the classical \(3/2\) (dotted) from above. Helium’s measured \(\lambda\)-shape diverges logarithmically instead: the caricature gets location and scale, not shape. Right: the isotherm in the \(P\)\(v\) plane: for \(v < v_c = \lambda^3/\zeta(3/2)\) the pressure is \((k_BT/\lambda^3)\zeta(5/2)\), with no volume dependence at all — compression files particles into the condensate at constant pressure, a coexistence-like plateau whose second phase pushes on nothing. The fermions of §7.9 answered the same \(T \to 0\) question with gigapascals.#

Validation 7#

✓  the cusp: continuous to four digits, kinked, maximal at T_c   [max|Δ| = 2.83245e-05 (rtol=0.001, atol=1e-09)]
✓  and the descent to 3/2 from above — a genuine maximum at the transition   [max|Δ| = 0.0038826 (rtol=0.02, atol=1e-09)]
✓  the flat isotherm: density-independent pressure below the transition, continuous at v_c   [edge mismatch 0.0e+00]
True

Exercise 8 — Movement IV, closed: the ceiling was the story#

Four notebooks ago the movement opened with a gas that could always print more quanta; it closes with one that cannot, and the difference turned out to be a phase transition. Everything was in place ten notebooks early (the bounded integral in the arsenal, the fugacity ceiling flagged the day the distributions were derived, the degeneracy criterion drawn as a map), and this notebook only had to let the constraint bite. What followed: a macroscopic quantum state predicted in 1925, argued into liquid helium in 1938, and finally condensed on a laboratory bench in 1995 at a tenth of a microkelvin; an exact fifty-atom computation in which the transition visibly assembles itself; a heat capacity that peaks and kinks; and a gas that, compressed, simply files the excess into its ground state at constant pressure. The volume’s two statistics have now each delivered their zero-temperature verdict: the fermions a pressure that holds up stars, the bosons a single wavefunction the size of the container.

It is worth admiring how cheap the mechanism is. No force, no attraction, no symmetry breaking imposed by hand: just an integral that cannot exceed 2.612 and a conservation law with nowhere else to put the particles. Einstein found a phase transition hiding in bookkeeping, and it took the twentieth century seventy years to build a thermometer cold enough to check.

Movement V turns to spins, and to the question the Ising chain of Volume V left open: what does criticality look like when the fluctuations are quantum (§7.18, §7.19)?

Notebook summary#

Movement IV’s finale: the conserved-number boson gas, and the ceiling that was the story.

  • The ceiling bites Eq. 787: \(n\lambda^3 = g_{3/2}(z)\) inverts routinely below \(\zeta(3/2) = 2.612\) (\(z = 0.6986/0.9656/0.999988\) at \(1/2/2.6\), gated) and has no solution at 3.0 (gated, handled explicitly), because the \(\sqrt\varepsilon\) density of states assigns the ground state zero weight: the integral’s precise crime.

  • Einstein’s correction Eq. 788: count the invisible state and \(N_0/N = 1 - t^{3/2}\) (gated at \(10^{-10}\)) with \(\mu\) pinned at \(0^-\) (monotone arrival gated): the criterion of §7.8 as a phase boundary; condensation in momentum space.

  • London 1938 Eq. 789: 3.13 K (gated) beside the measured 2.17 K, with the honesty that neutron scattering finds real helium’s condensate at 7–10%, and He-3 as the fermionic control.

  • The exact recursion Eq. 790: logsumexp throughout, ground-shifted levels, grid adequacy gated; the above-\(T_c\) tail collapses \(0.30 \to 0.15 \to 0.05\) across \(N = 50/200/800\) (monotonicity gated; landmarks gated) while finite gases hoard below: crossovers, not singularities (§5.10), and the ensemble equivalence of §7.7 at a transition.

  • The DOS decides Eq. 791: the 2D box inverts analytically to \(\mu < 0\) always (gated), with the underflow demonstration gated (naive float fakes a condensate; numpy.log1p keeps the \(10^{-22}\)), while traps condense by their own laws; DOS \(\propto \varepsilon^\alpha\) gives fraction \(1 - t^{\alpha+1}\).

  • 1995 Eq. 792: \(T_c = 123\) nK at JILA scale (gated); the seventy-year wait explained by \(T_c \propto n^{2/3}/m\); the bimodal smoking gun sketched from its computed components.

  • The cusp and the flat isotherm Eq. 793: \(1.9257/1.9256\) across the transition (gated to four digits), the descent to \(3/2\) from above (gated), and the density-independent pressure below \(T_c\) (flatness and continuity gated): the condensate pushes on nothing, where the fermions of §7.9 pushed with gigapascals.

Movement V opens next door: quantum spins, and criticality with quantum fluctuations.

Outlook#

  • Movement V (§7.18, §7.19). Quantum paramagnets and Brillouin; the transverse-field Ising chain and quantum criticality: Volume V’s open question, resumed.

  • Interactions. Gross–Pitaevskii, healing lengths, vortices; superfluid helium’s two fluids; BCS pairing as the fermionic echo (outward horizons, named).

  • Photon BEC. Dye microcavities engineer a conserved photon number (the caveat of §7.14, revisited in one line); polaritons (outward).

  • The imaginary-time road. This notebook’s \(z = 1\) gas re-derived by path integrals (§7.20/§7.21).

  • Cross-reference §7.3 (the bounded integral and the 2D flag, both decisive), §7.7 (the ceiling; the ensembles), §7.8 (the map’s line, crossed), §7.14/§7.16 (the \(\mu = 0\) contrast), §7.9 (the fermionic verdict), §5.10 (singularities in the limit).

Take this notebook with you
Use the download button (↓) in the toolbar above to save this notebook and run it yourself. The published notebooks ship without worked solutions; if you would like the reference solutions — to teach from or to check your own work — get in touch: hello@ramador.me.