home

Grand Canonical Occupation Fluctuations

Variance Δnk±=⟨nk2⟩−⟨nk⟩2=⟨nk⟩(1±⟨nk⟩)\Delta n_k^\pm = \langle n_k^2 \rangle - \langle n_k \rangle^2 = \langle n_k \rangle (1 \pm \langle n_k \rangle) of the occupation number of a single mode kk with εk−μ=1\varepsilon_k - \mu = 1 in an ideal Bose (+) and Fermi (−) gas in the grand canonical ensemble, plotted against temperature TT (with kB=1k_B = 1). Bosonic fluctuations 1/(4sinh2⁡(β/2))1 / (4 \sinh^2(\beta/2)) grow as T2T^2 at high temperature, while fermionic ones 1/(2+2cosh⁡β)1 / (2 + 2 \cosh \beta) saturate at 1/41/4 as ⟨nk⟩→1/2\langle n_k \rangle \to 1/2. Used in Exercise Sheet 11 of Statistical Physics by Manfred Salmhofer (2016), available at https://janosh.dev/physics/statistical-physics.


Grand Canonical Occupation Fluctuations

Download

PNG PDF SVG

Code

grand-canonical-occupation-fluctuations.typ (49 lines)
#import "@preview/cetz:0.5.3": canvas, draw
#import "@preview/cetz-plot:0.1.4": plot

#set page(width: auto, height: auto, margin: 8pt, fill: none)
#set text(size: 12pt)

#let size = (8, 5)

#canvas({
  let axis-mark = (end: "stealth", fill: black)
  draw.set-style(axes: (
    x: (mark: axis-mark, label: (anchor: "north-east", offset: 0.75)),
    y: (mark: axis-mark, label: (anchor: "north-west", offset: -0.2)),
  ))

  // Occupation-number variance of a mode with ε_k - μ = 1 at temperature T = 1 / beta.
  let fluctuation-plot(variance, y-label, y-tick-step, y-max: auto) = plot.plot(
    size: size,
    x-min: 0,
    x-max: 4.2,
    y-min: 0,
    y-max: y-max,
    x-label: [temperature $T$],
    y-label: y-label,
    x-tick-step: 1,
    y-tick-step: y-tick-step,
    axis-style: "left",
    plot.add(
      style: (stroke: blue + 1.5pt),
      domain: (0.01, 4.2), // avoid T = 0
      samples: 200,
      temp => variance(1 / temp),
    ),
  )

  // Bose: ⟨n⟩(1 + ⟨n⟩) = 1 / (4 sinh²(β/2)), Fermi: ⟨n⟩(1 - ⟨n⟩) = 1 / (4 cosh²(β/2)).
  fluctuation-plot(
    beta => 1 / calc.pow(2 * calc.sinh(beta / 2), 2),
    [boson occupation variance $Delta n_k^+$],
    5,
  )
  draw.translate((size.at(0) + 2.5, 0))
  fluctuation-plot(
    beta => 1 / (2 + 2 * calc.cosh(beta)),
    [fermion occupation variance $Delta n_k^-$],
    0.05,
    y-max: 0.28,
  )
})