Skip to content

A tiny nonlinear residual can coexist with an inaccurate pressure. Solve the repulsive Bose gas at T=1T=1, μ=0\mu=0, c=1c=1 in units ℏ=2m=kB=1\hbar=2m=k_B=1. You will obtain p≃0.28291325p\simeq0.28291325 and n≃0.28037711n\simeq0.28037711 by two routes and identify which numerical variations probe different errors.

Set K(d)=c/[π(c2+d2)]K(d)=c/[\pi(c^2+d^2)]. The entropy variation gives ϵ=k2−μ−K∗g\epsilon=k^2-\mu-K*g with g=Tlog⁡(1+e−ϵ/T)g=T\log(1+e^{-\epsilon/T}). On [−B,B][-B,B] make a Gauss–Legendre grid with weights wjw_j and use Kij=wjK(ki−kj)K_{ij}=w_jK(k_i-k_j). Starting at the bare energy, the downloadable calculation solves for ϵ\epsilon by Newton iteration; it evaluates the logarithm stably for either sign of ϵ\epsilon. The pressure is p=∑jwjgj/(2π)p=\sum_jw_jg_j/(2\pi). Yang and Yang, §IV, Eqs. (15)–(17), and §V, Eqs. (19)–(26)

Independently obtain the occupied density. With ϑi=1/(1+eϵi/T)\vartheta_i=1/(1+e^{\epsilon_i/T}), solve

ρi=ϑi(12π+∑jKijρj),n=∑jwjρj. \rho_i=\vartheta_i\left(\frac1{2\pi}+\sum_jK_{ij}\rho_j\right), \qquad n=\sum_jw_j\rho_j .

The filling multiplies the row in this equation. The integration weight multiplies the column in KijK_{ij}. Swapping them can leave plausible looking output.

  1. Nonlinear solve. At B=8B=8 and 128 nodes, the maximum absolute dressed-energy residual is 3.5×10−153.5\times10^{-15}, in energy units.
  2. Cutoff. At 96 nodes, increasing BB from three to four to six changes pp from 0.28290622740.2829062274 to 0.28291324320.2829132432 to 0.28291324780.2829132478.
  3. Resolution. At fixed B=8B=8, 32 nodes give 0.28302606050.2830260605 even though their residual is 3.1×10−153.1\times10^{-15}. At 64 nodes p=0.2829133019p=0.2829133019; at 128 it is 0.28291324780.2829132478.
  4. Thermodynamic identity. At 128 nodes, n=0.2803771135n=0.2803771135. Recompute the full pressure at μ=±h\mu=\pm h and take its central difference. For h=0.01h=0.01 and 0.0010.001 the absolute errors against nn are 3.90×10−63.90\times10^{-6} and 3.90×10−83.90\times10^{-8}. Their ratio is consistent with second-order differentiation. This identity tests the normalization of two observables.

Your turn. A colleague reports ten digits from the 32-node run because the nonlinear equations are solved to machine precision. Use the mesh test to estimate the pressure discrepancy. Compare it with the nonlinear residual.

Check the pressure discrepancy

Subtract the fine-mesh pressure, 0.2829132478, from the coarse-mesh result, 0.2830260605. The difference is about 1.13×10−41.13\times10^{-4} in pressure units. In the chosen units the dressed-energy residual is about eleven orders of magnitude smaller numerically. It measures the error in satisfying the discretized energy equation. Mesh refinement tests the reported pressure.

Test the equation between the solver’s nodes

Section titled “Test the equation between the solver’s nodes”

The small residual tests a finite set of equations. To test the approximation elsewhere, keep B=8B=8 and take 384 fresh Gauss–Legendre points qaq_a with weights vav_a on the same interval. First extend your coarse-grid solution using the integral equation itself. Then evaluate its convolution on the fine grid:

ϵM(qa)=qa2−μ−∑jwjK(qa−kj)gj,g~a=Tlog⁡[1+exp⁡(−ϵM(qa)/T)],Ra=ϵM(qa)−qa2+μ+∑bvbK(qa−qb)g~b.\begin{aligned} \epsilon_M(q_a)&=q_a^2-\mu-\sum_j w_j K(q_a-k_j)g_j,\\ \widetilde g_a&=T\log[1+\exp(-\epsilon_M(q_a)/T)],\\ R_a&=\epsilon_M(q_a)-q_a^2+\mu +\sum_b v_b K(q_a-q_b)\widetilde g_b . \end{aligned}

At the stated inputs the maximum ∣Ra∣|R_a| is 1.17×10−31.17\times10^{-3} with 32 coarse nodes and 4.17×10−74.17\times10^{-7} with 64. At 128 it is below 10−1210^{-12}. The two quadratures agree on the equation as the coarse grid resolves the kernel. A separate change of BB still tests the omitted tails.

Transfer. Choose c=2,T=4,μ=0c=2,T=4,\mu=0. Predict the new density, pressure and rapidity cutoff for the same scaled interval.

Check the scaled state

The bare energies increase by four under k↦2kk\mapsto2k, leaving ϵ/T\epsilon/T unchanged at corresponding nodes. Hence nn doubles and pp grows by eight. The reference run therefore predicts n≃0.56075423n\simeq0.56075423 and p≃2.26330598p\simeq2.26330598. Use cutoff 16 to keep the same scaled integration interval. The companion checks the two independent runs. For a low-temperature edge, resolution near the rapidity where ϵ\epsilon changes sign becomes a separate concern.

  • C. N. Yang and C. P. Yang, “Thermodynamics of a One-Dimensional System of Bosons with Repulsive Delta-Function Interaction,” Journal of Mathematical Physics 10 (1969), 1115–1122. DOI