Skip to content

Numerical Iteration, Convergence, and Error Estimates

A nonlinear integral equation can converge to machine precision and still answer the wrong problem. An FFT may have periodized unequal endpoints; a principal logarithm may have changed sheets; an excited root may have been held fixed; or a kernel pole may already have crossed the contour. The raw iteration residual does not by itself detect or bound any of these errors.

This page builds an auditable solver around the real minimal-chamber TBA and then extends the workflow to complex NLIE and Riemann–Hilbert equations. The central estimate is simple. If the exact map is a contraction with constant q<1q<1, then a continuum defect ρ\rho gives

ε^ερ1q.\|\widehat\varepsilon-\varepsilon^*\| \leq \frac{\rho}{1-q}.

The hard part is constructing ρ\rho. After the branch, contour, and chamber passport has passed, tail truncation, quadrature, FFT embedding, reconstruction, roots, arithmetic, and the nonlinear solve must all be included. Where contraction fails, a residual becomes a bound only after an inverse-Jacobian or Newton–Kantorovich estimate is supplied.

After each route has been rewritten in its declared unknowns, use the following schematic numerical wrapper:

ε=T(ε)=d+S+σKKL(ε),L(z)=Log(1+ez),σK{1,+1}.\begin{aligned} \varepsilon &= \mathcal T(\varepsilon) = d+S+\sigma_K\mathcal K L(\varepsilon), \\ L(z) &= \Log(1+\ee^{-z}), \qquad \sigma_K\in\{-1,+1\}. \end{aligned}

Here dd is the drive, SS contains declared divisor or residue sources, and K\mathcal K includes the graph, measure, and contour. The residual is

F(ε)=εdSσKKL(ε).F(\varepsilon) = \varepsilon-d-S-\sigma_K\mathcal K L(\varepsilon).

The wrapper is literal for fused TBA and pseudoenergy-form RH equations. A DDV equation generally has two bankwise logarithms with route-specific signs. Rewrite those as separate components first; their lateral measures, branches, and orientations are not erased by the compact notation.

Before assigning a grid, record the following data.

Passport entryWhat the code must store
Equation routeFused TBA, DDV/NLIE, or exact-WKB/GMN RH equation
UnknownYY, Y1Y^{-1}, pseudoenergy, counting function, or multiplicative coordinate
LogarithmInitial branch, unwrapped increments, and continuation history
ContourParametrization, orientation, lateral bank, and indentation
AsymptoticsDrive, constants at each end, and the subtraction profile
State divisorSource locations, multiplicities, and integers IjI_j
ChamberActive charges, phases, pairings, and current coordinate chart
ObservablePeriod, energy, determinant, or quantization function and its normalization
Independent checkA Y-system, jump, symmetry, asymptotic, or direct-ODE identity not used by the solver

Changing one entry defines a new numerical problem. Reusing the same array after a change is useful as a predictor, but it does not identify the two problems.

The one-sided conformal or massless ODE/IM equations used here typically have an exponentially growing drive at the right end and a nonzero constant at the left. Sampling the full pseudoenergy wastes dynamic range, while periodizing its nonlinear logarithm creates an endpoint jump. Choose a switch χ\chi analytic in the working strip, with

χ()=1,χ(+)=0,\chi(-\infty)=1, \qquad \chi(+\infty)=0,

and write, node by node,

εa(θ)=da(θ)+caχ(θ)+ua(θ),La(θ)=aχ(θ)+va(θ).\begin{aligned} \varepsilon_a(\theta) &= d_a(\theta)+c_a\chi(\theta)+u_a(\theta), \\ L_a(\theta) &= \ell_a^- \chi(\theta)+v_a(\theta). \end{aligned}

The remainders ua,vau_a,v_a should decay at both ends in the intended chart. Compute K(χ)\mathcal K(\ell^-\,\chi) analytically or to higher accuracy once, then convolve only the decaying remainder. A sharp window merely replaces one tail problem by Gibbs oscillations.

For real xx, evaluate the nonlinear logarithm without overflow as

log(1+ex)=max(0,x)+log(1+ex).\log(1+\ee^{-x}) = \max(0,-x) + \log(1+\ee^{-|x|}).

For complex zz one may factor the dominant exponential,

Log(1+ez)=z+Log(1+ez)+2πin,\Log(1+\ee^{-z}) = -z+\Log(1+\ee^z)+2\pi\ii n,

but the integer nn is fixed by the transported sheet. Choosing a fresh principal logarithm independently at each node can manufacture 2πi2\pi\ii jumps. Near 1+ez=01+\ee^{-z}=0, cancellation is a geometric event to track, not just a request for more digits.

Three geometries need different discretizations.

  1. Parallel translation-invariant contours. Use uniform trapezoidal nodes and FFT-accelerated convolution after endpoint subtraction.
  2. General smooth rays or arcs. Parametrize each contour and use a Nyström rule with panelwise Gauss, Clenshaw–Curtis, or mapped quadrature. Retain its complex Jacobian and orientation.
  3. On-contour Cauchy kernels. Subtract the singularity and add the declared lateral term. For x(T,T)x\in(-T,T),
PVTTf(y)yx ⁣dy=TTf(y)f(x)yx ⁣dy+f(x)logTxT+x.\begin{aligned} \operatorname{PV} \int_{-T}^{T} \frac{f(y)}{y-x}\,\dd y ={}& \int_{-T}^{T} \frac{f(y)-f(x)}{y-x}\,\dd y \\ &+ f(x)\log\frac{T-x}{T+x}. \end{aligned}

The upper or lower bank then supplies its signed iπf(x)\ii\pi f(x) term, multiplied by the normalization of the RH kernel. A principal-value rule without this bank passport solves a different boundary-value problem.

A general Nyström discretization is

εa,i=da,i+Sa,i+σKb,jwjKab(θi,θj)L(εb,j).\varepsilon_{a,i} = d_{a,i}+S_{a,i} + \sigma_K \sum_{b,j} w_j K_{ab}(\theta_i,\theta_j) L(\varepsilon_{b,j}).

Its transparent O(r2N2)O(r^2N^2) implementation is an excellent reference even when the production solver uses FFTs.

For the earlier routes, the minimal fused TBA normally falls in case 1. DDV uses two coupled lateral banks, so the bank displacement must be refined as an independent control. GMN rays normally use mapped panel quadrature; Plemelj subtraction enters only when a boundary trace is actually evaluated on its jump ray.

FFT convolution keeps the mesh factor and lag order

Section titled “FFT convolution keeps the mesh factor and lag order”

On an even-NN circular grid of interval length L=2TL=2T

θj=T+jh,h=LN,0j<N,\theta_j=-T+jh, \qquad h=\frac{L}{N}, \qquad 0\leq j<N,

store the circular lag samples as

κr={K(rh),0rN/2,K((rN)h),N/2<r<N.\kappa_r = \begin{cases} K(rh),&0\leq r\leq N/2,\\ K((r-N)h),&N/2<r<N. \end{cases}

With the standard FFT and an inverse transform carrying 1/N1/N,

cj=hIFFT[FFT(κ)FFT(f)]j.c_j = h\, \operatorname{IFFT} \left[ \operatorname{FFT}(\kappa) \operatorname{FFT}(f) \right]_j.

There is one factor hh and no extra 1/N1/N. The zero lag must occupy index zero. Sampling KK on the ordered coordinate array (T,,Th)(-T,\ldots,T-h) without a shift puts K(0)K(0) in the middle and translates the result. Replacing K((jk)h)K((j-k)h) by K((kj)h)K((k-j)h) convolves with the reflected kernel K()K(-\mathord\cdot). The error is invisible for an even real kernel and reappears for phase-shifted kernels.

For even NN, the Nyquist lag r=N/2r=N/2 represents both +L/2+L/2 and L/2-L/2. The circular storage above is therefore unambiguous only when those two kernel samples agree, as they do for an even kernel. For a nonsymmetric shifted kernel, use an odd grid with analogous signed-lag storage or the nonperiodic Toeplitz embedding below.

This formula is a circular convolution. For nonperiodic data, embed the Toeplitz first column and first row in a transform of length at least 2N12N-1, zero-pad the weighted data, transform, and crop the physical entries. The companion code uses a length-2N2N embedding and verifies it against the dense Nyström matrix. Padding removes wraparound of the discrete sum; it does not remove continuum tail or quadrature error. Unlike the circular example, that code uses odd NN, includes both endpoints, takes h=2T/(N1)h=2T/(N-1), and applies endpoint trapezoidal weights.

Tail distance and strip width set different errors

Section titled “Tail distance and strip width set different errors”

Page 1’s scalar kernel family is

Kη(x)=14ηsech(πx2η),η>0,Kη1=12.K_\eta(x) = \frac{1}{4\eta} \operatorname{sech} \left(\frac{\pi x}{2\eta}\right), \qquad \eta>0, \qquad \|K_\eta\|_1=\frac12.

Its exact two-sided tail mass is

xDKη(x) ⁣dx=2πarctanexp ⁣(πD2η).\int_{|x|\geq D}K_\eta(x)\,\dd x = \frac{2}{\pi} \arctan \exp\!\left(-\frac{\pi D}{2\eta}\right).

If LM|L|\leq M outside [T,T][-T,T], then for θT0<T|\theta|\leq T_0<T the omitted convolution is bounded by

Etail(θ)Mπ[arctaneπ(Tθ)/(2η)+arctaneπ(T+θ)/(2η)].\begin{aligned} E_{\mathrm{tail}}(\theta) \leq \frac{M}{\pi} \bigg[& \arctan\ee^{-\pi(T-\theta)/(2\eta)} \\ &+ \arctan\ee^{-\pi(T+\theta)/(2\eta)} \bigg]. \end{aligned}

Consequently,

Etail2Mπexp ⁣[π(TT0)2η].E_{\mathrm{tail}} \leq \frac{2M}{\pi} \exp\!\left[ -\frac{\pi(T-T_0)}{2\eta} \right].

Bound the two ends separately when the driven right tail is superexponentially smaller than the constant left tail. For

Kδ(x)=12πcosh(x+iδ),δ<π2,K_\delta(x) = \frac{1}{2\pi\cosh(x+\ii\delta)}, \qquad |\delta|<\frac\pi2,

one has Kδ(x)secδK0(x)|K_\delta(x)|\leq\sec\delta\,K_0(x). The bound deteriorates as a kernel pole approaches; crossing the wall requires Page 5’s residue or new-coordinate equation, not an enormous grid.

Mesh error is controlled by the analytic strip instead. If a genuinely LL-periodic function is analytic and bounded by MaM_a in the periodic strip z<a|\Im z|<a, the NN-point trapezoidal rule satisfies

IIN2LMaexp(2πaN/L)1.|I-I_N| \leq \frac{2L M_a}{ \exp(2\pi aN/L)-1 }.

If the integrand is analytic in z<a|\Im z|<a, tends uniformly to zero as z|\Re z|\to\infty throughout that strip, and satisfies

Rf(x+ib) ⁣dxBa(b<a),\int_{\mathbb R} |f(x+\ii b)|\,\dd x \leq B_a \qquad (|b|<a),

then the infinite trapezoidal rule satisfies

IIh2Baexp(2πa/h)1.|I-I_h| \leq \frac{2B_a}{ \exp(2\pi a/h)-1 }.

The usable aa is bounded by the nearest kernel pole, logarithmic divisor, source cut, or singularity of the subtraction. On a finite interval one must additionally verify that the periodic extension is analytic across the joined endpoints; equality of endpoint values alone is insufficient.

Let

w(z)=11+ez.w(z)=\frac{1}{1+\ee^z}.

Then

DT(ε)v=σKK(w(ε)v).D\mathcal T(\varepsilon)v = -\sigma_K\mathcal K\bigl(w(\varepsilon)v\bigr).

For a weighted component norm

vω=maxavaωa,ωa>0,\|v\|_{\boldsymbol\omega} = \max_a \frac{\|v_a\|_\infty}{\omega_a}, \qquad \omega_a>0,

define the induced contour norm and nonlinear bound

κab=supθCaCbKab(θ,θ) ⁣dθ,\kappa_{ab} = \sup_{\theta\in C_a} \int_{C_b} |K_{ab}(\theta,\theta')|\,|\dd\theta'|, Bab=κabsupεUθCbw(εb(θ)).B_{ab} = \kappa_{ab} \sup_{\substack{ \varepsilon\in\mathscr U\\ \theta'\in C_b }} |w(\varepsilon_b(\theta'))|.

A sufficient Lipschitz constant on an invariant set U\mathscr U is

qω=maxa1ωabBabωb.q_{\boldsymbol\omega} = \max_a \frac{1}{\omega_a} \sum_b B_{ab}\omega_b.

If qω<1q_{\boldsymbol\omega}<1 and T\mathcal T maps the complete set U\mathscr U into itself, Picard iteration exists, converges, and has a unique fixed point there. Equivalently, positive weights can be sought when the spectral radius of the nonnegative matrix BB is below one. For a translation-invariant real-line convolution, κab=Kab1\kappa_{ab}=\|K_{ab}\|_1.

For the real scalar kernel K=1/(2πcosh)K=1/(2\pi\cosh), w1|w|\leq1 and K1=1/2\|K\|_1=1/2, so q1/2q\leq1/2. In the real minimal ArA_r system, graph degree at most two and a common lower bound εaB0\varepsilon_a\geq B_0 give

q11+eB0<1.q \leq \frac{1}{1+\ee^{B_0}} <1.

Complex shifted kernels require absolute L1L^1 norms, and w(z)|w(z)| can diverge near 1+ez=01+\ee^z=0. The real estimate cannot be continued by analogy.

Damped Picard uses

ε(k+1)=(1ω)ε(k)+ωT(ε(k)),0<ω1.\varepsilon^{(k+1)} = (1-\omega)\varepsilon^{(k)} + \omega\mathcal T(\varepsilon^{(k)}), \qquad 0<\omega\leq1.

When the undamped global bound is q<1q<1, the damped bound is

qω1ω(1q).q_\omega \leq 1-\omega(1-q).

Thus damping slows the certified contraction. It can stabilize overly negative or oscillatory local modes when ρ((1ω)I+ωDT)<1\rho((1-\omega)I+\omega D\mathcal T)<1, but it cannot prove convergence from a norm bound q1q\geq1.

Newton–Krylov takes over near hard branches

Section titled “Newton–Krylov takes over near hard branches”

Anderson acceleration often reduces Picard iterations, but its mixed iterate must still be evaluated with the original residual FF. Restart or damp it when divisor or kernel clearance shrinks; accelerated convergence on the wrong logarithm sheet is still wrong.

For the frozen convention above, the Jacobian action is

DF(ε)v=v+σKK(w(ε)v).DF(\varepsilon)v = v+\sigma_K\mathcal K\bigl(w(\varepsilon)v\bigr).

One matrix-free Jacobian product therefore costs approximately one additional convolution. Newton–Krylov solves

DF(εk)δk=F(εk),εk+1=εk+λkδk,DF(\varepsilon_k)\,\delta_k = -F(\varepsilon_k), \qquad \varepsilon_{k+1} = \varepsilon_k+\lambda_k\delta_k,

with a line search or trust region that also rejects steps crossing an undeclared logarithmic cut or kernel pole. A dense small-NN Nyström–Newton solve is a valuable independent comparison.

Preconditioning matters at production sizes. For a translation-invariant system, freeze w(ε)w(\varepsilon) at a plateau value or current average and invert the resulting small block Fourier symbol mode by mode. For a general Nyström system, use a block-diagonal or coarse-grid Jacobian. Record GMRES iterations alongside the nonlinear residual: their growth is an inexpensive warning that the chosen chart or branch is becoming ill-conditioned.

An inexact Krylov solve may stop when

Fk+DFkδkηkFk.\|F_k+DF_k\delta_k\| \leq \eta_k\|F_k\|.

If the initial iterate is sufficiently close, DFDF is nonsingular at the solution, and DFDF is Lipschitz nearby, a uniform bound 0ηkηmax<10\leq\eta_k\leq\eta_{\max}<1 gives local q-linear convergence; ηk0\eta_k\to0 gives q-superlinear convergence; and ηk=O(Fk)\eta_k=O(\|F_k\|) gives q-quadratic convergence. Oversolving the inner linear system wastes work once the continuum discretization floor has been reached.

A residual becomes a bound only after consistency

Section titled “A residual becomes a bound only after consistency”

Let RN\mathcal R_N restrict a function to the discrete data used by the implementation, let IN\mathcal I_N reconstruct those data in the chosen function space, and lift the finite map TN\mathcal T_N as

T~N=INTNRN.\widetilde{\mathcal T}_N = \mathcal I_N\mathcal T_N\mathcal R_N.

For the reconstructed numerical field ε^\widehat\varepsilon, define

ηiter=ε^T~Nε^,δdisc=T~Nε^Tε^.\begin{aligned} \eta_{\mathrm{iter}} &= \|\widehat\varepsilon- \widetilde{\mathcal T}_N\widehat\varepsilon\|, \\ \delta_{\mathrm{disc}} &= \|\widetilde{\mathcal T}_N\widehat\varepsilon- \mathcal T\widehat\varepsilon\|. \end{aligned}

First pass a categorical gate: equation normalization, logarithm sheets, contour banks, chamber, and event history must define the intended exact map T\mathcal T. A failed gate changes the problem and is not a small additive error. Once it passes, δdisc\delta_{\mathrm{disc}} contains tail, quadrature, wrap, reconstruction, controlled contour-displacement, root, and arithmetic defects. A residual evaluated only at collocation nodes is not yet a bound on either function-space norm.

This field-only qq-certificate treats source positions as fixed. For the augmented excited system (F,G)=0(F,G)=0, certification requires a stability bound for the full block Jacobian or a separately proved contraction of an augmented map.

Outside a contraction regime, the heuristic Newton correction DF(ε^)1F(ε^)\|DF(\widehat\varepsilon)^{-1}\|\,\|F(\widehat\varepsilon)\| becomes a certificate only after the inverse and derivative variation are bounded, for example by interval Newton, Newton–Kantorovich, or a radii-polynomial argument.

A convergence plot shows nonlinear iteration reaching coarse- and refined-grid floors; a second panel first checks the branch, contour, and chamber passport, then combines tail, quadrature, iteration, and root defects before applying a stability factor and propagating to an observable.

Iteration stops buying digits when it reaches the consistency floor. Branch, contour, and chamber passports must pass first; they are validity gates, not small errors. The remaining tail, quadrature, nonlinear, root, reconstruction, and arithmetic defects then receive a stability factor. The observable has its own evaluation error.

Excited roots belong to the nonlinear unknown

Section titled “Excited roots belong to the nonlinear unknown”

For the sourced equations of Page 5, solve for the field samples and root positions together:

U=(εa,k,θ1,,θm).U = \left( \varepsilon_{a,k}, \theta_1,\ldots,\theta_m \right).

Augment the field residual by

Gj(U)=εbj(θj)(2Ij+1)πi=0.G_j(U) = \varepsilon_{b_j}(\theta_j) -(2I_j+1)\pi\ii =0.

The Newton system has the block form

(ABCD)(δεδθ)=(FG).\begin{pmatrix} A&B\\ C&D \end{pmatrix} \begin{pmatrix} \delta\varepsilon\\ \delta\boldsymbol\theta \end{pmatrix} = - \begin{pmatrix} F\\G \end{pmatrix}.

Here A=IDεTA=I-D_\varepsilon\mathcal T and the root column has the sign

B=Fθ=DθT.B = F_{\boldsymbol\theta} = -D_{\boldsymbol\theta}\mathcal T.

If the roots enter only through SS, then B=θSB=-\partial_{\boldsymbol\theta}S. The remaining blocks act as

δGj=(δεbj)(θj)+εbj(θj)δθj.\delta G_j = (\delta\varepsilon_{b_j})(\theta_j) + \varepsilon_{b_j}'(\theta_j)\delta\theta_j.

A simple divisor requires εbj(θj)0\varepsilon_{b_j}'(\theta_j)\neq0. Evaluate off-grid and off-axis quantities with controlled spectral or barycentric interpolation, or directly from the integral representation. Snapping a root to the nearest real grid point changes the quantization problem.

Continuation is predictor–corrector with event detection

Section titled “Continuation is predictor–corrector with event detection”

For H(U,λ)=0H(U,\lambda)=0, where HUH_U is invertible, a tangent predictor solves the Davidenko equation

HUU(λ)=Hλ.H_U U'(\lambda) = -H_\lambda.

Newton then corrects the full system at the new parameter. Near a fold, replace λ\lambda as the continuation coordinate by pseudo-arclength and realify the complex system. Using the normalized previous tangent (tU,tλ)(t_U,t_\lambda) and real λ\lambda, add the one real equation

tUT(UU0)+tλ(λλ0)=Δs.t_U^{\mathsf T}(U-U_0) + t_\lambda(\lambda-\lambda_0) = \Delta s.

Every accepted step should monitor at least

clog=minainfzΓaactive1+eεa(z),c_{\log} = \min_a \inf_{z\in\Gamma_a^{\mathrm{active}}} |1+\ee^{-\varepsilon_a(z)}|,

where the active contours exclude already declared divisor indentations. Also track each known zero’s signed normal distance to its contour, source-root separations, branch integers, a Jacobian conditioning indicator, and Page 5’s first kernel-wall functions

gab+=π2(ϕbϕa),gab=π2+(ϕbϕa).g_{ab}^{+} = \frac\pi2-(\phi_b-\phi_a), \qquad g_{ab}^{-} = \frac\pi2+(\phi_b-\phi_a).

If a signed pole-to-contour distance or wall function changes sign, or if clogc_{\log} or a source-root separation falls below its alarm threshold, return to the last checkpoint and locate the event off-grid.

A grid approximation to clogc_{\log} is only an event alarm: a zero can lie between grid points or off the real line. Before updating any Page 5 ledger, confirm the crossing by off-grid analytic zero tracking or by comparing argument-principle counts at the two bracketing checkpoints; a sampled minimum alone does not determine its orientation.

A fully converged corrector removes the predictor error only up to the discrete nonlinear tolerance; it does not remove discretization, event-detection, or branch-selection error. Repeat the path with smaller steps and test continuity of a normalization-independent observable.

The symmetric A₂ equation calibrates the real TBA discretization

Section titled “The symmetric A₂ equation calibrates the real TBA discretization”

Set m1=m2=1m_1=m_2=1 in the real minimal A2A_2 system and impose reflection symmetry. The two equations reduce to

ε(θ)=eθRlog(1+eε(θ))2πcosh(θθ) ⁣dθ.\varepsilon(\theta) = \ee^\theta - \int_{\mathbb R} \frac{ \log(1+\ee^{-\varepsilon(\theta')}) }{ 2\pi\cosh(\theta-\theta') } \dd\theta'.

As θ\theta\to-\infty the drive vanishes. With Y=eεY_-=\ee^{-\varepsilon_-} and K=1/2\int K=1/2, the constant equation gives

Y2=1+Y,Y=1+52,ε=logY.Y_-^2=1+Y_-, \qquad Y_-=\frac{1+\sqrt5}{2}, \qquad \varepsilon_-=-\log Y_-.

This golden-ratio plateau checks the kernel normalization, nonlinear logarithm, sign, and left-tail model simultaneously.

The downloadable reference implementation uses an endpoint-weighted trapezoidal rule, integrates the constant left tail analytically, embeds the Toeplitz product in a length-2N2N FFT, and compares that product with a dense matrix. On the recorded environment the physical-kernel dense/FFT difference was 5.55×10175.55\times10^{-17}, the asymmetric lag-order audit differed by 4.44×10164.44\times10^{-16}, and the fixed-point map converged in 26 iterations.

The following cutoff sweep keeps h1/32h\approx1/32. The final column compares with the script’s internal T=20T=20, N=4097N=4097 refinement value; it is not an external exact answer.

TTNNε(0)\varepsilon(0)Change from internal refinement
63850.80915754332574637.30×1067.30\times10^{-6}
85130.80916456950947712.73×1072.73\times10^{-7}
106410.80916483637062106.21×1096.21\times10^{-9}
127690.80916484331800467.41×10107.41\times10^{-10}

At fixed T=12T=12, refining N=193,385,769,1537N=193,385,769,1537 changes ε(0)\varepsilon(0) from 0.80916486199512180.8091648619951218 to 0.80916484238387140.8091648423838714. The tiny discrete residuals, about 101510^{-15}, clearly do not equal the forward changes. Cutoff and mesh refinements reveal errors that the inner iteration cannot see.

A production report separates every control

Section titled “A production report separates every control”

Record a run as a refinement tuple such as

R=(T,T+,N,PFFT,p,τNL,δbank,Δλ,τroot),\mathcal R = (T_-,T_+,N,P_{\mathrm{FFT}},p, \tau_{\mathrm{NL}}, \delta_{\mathrm{bank}}, \Delta\lambda, \tau_{\mathrm{root}}),

where PFFTP_{\mathrm{FFT}} is the FFT embedding length and pp the working precision. Given an observable tolerance τO\tau_{\mathcal O}, contraction allocates the approximate field-defect budget

ηiter+δdisc(τOδO)(1q)LO,\eta_{\mathrm{iter}}+\delta_{\mathrm{disc}} \leq \frac{ (\tau_{\mathcal O}-\delta_{\mathcal O})(1-q) }{L_{\mathcal O}},

provided τO>δO\tau_{\mathcal O}>\delta_{\mathcal O}. Stop the nonlinear iteration once ηiter\eta_{\mathrm{iter}} is safely below the dominant consistency contribution; further inner digits do not improve the target observable.

Vary one component of R\mathcal R at a time to identify error sources, then perform at least one combined diagonal refinement. That final run can expose cancellation between, for example, cutoff and mesh errors.

Error or failure modeIndependent control
Equation/passportRecheck normalization, branches, sources, and chamber
Left and right tailsIncrease TT_- and T+T_+ separately
QuadratureReduce hh or increase panel order at fixed domain
FFT wrap or lag errorIncrease padding and compare a direct convolution
Nonlinear solveTighten the raw FF residual without changing the grid
Root interpolationIncrease interpolation order and evaluate off-grid
Arithmetic and conditioningRaise precision and estimate DF1DF^{-1}
Lateral prescriptionVary the bank displacement and extrapolate in its valid chart
Observable evaluationRefine its integral independently of the field solve
Spectral rootOn a real monotone bracket, divide the residual by a verified lower bound for $

Finally test identities not imposed by the solver: evaluate the continuum residual on a shifted or doubled grid, verify the original Y-system inside the safe strip, reconstruct an RH jump on both banks, recover the WKB drive or moment, test node symmetries, and compare the target observable with direct ODE data. Two implementations sharing the same FFT indexing bug are not independent checks.

Calling a small collocation residual an error bound. It controls the finite nonlinear solve. First validate the passport; then bound tail, quadrature, reconstruction, arithmetic, and stability errors.

Claiming spectral convergence across an endpoint jump. Strip analyticity does not repair a discontinuous periodization. Subtract the unequal asymptotics or use a nonperiodic rule.

Using signed kernel mass in a contraction test. Bounds require K\int|K|, especially for complex shifted kernels. Cancellation is not a global Lipschitz certificate.

1. Stabilize the nonlinear logarithm. Prove that for real xx,

log(1+ex)=max(0,x)+log(1+ex),\log(1+\ee^{-x}) = \max(0,-x) + \log(1+\ee^{-|x|}),

and find its derivative. Why does the same rewrite need an extra integer for complex xx?

Solution

For x0x\geq0 the maximum vanishes and the identity is immediate. For x<0x<0, factor out ex\ee^{-x}:

log(1+ex)=x+log(1+ex).\log(1+\ee^{-x}) = -x+\log(1+\ee^x).

In both regions,

 ⁣d ⁣dxlog(1+ex)=11+ex.\frac{\dd}{\dd x} \log(1+\ee^{-x}) = -\frac{1}{1+\ee^x}.

For complex xx, factorization remains algebraically valid, but the two logarithms may differ by 2πin2\pi\ii n. Continuation and the declared branch, not the sign of x\Re x alone, determine nn.

2. Calibrate the hyperbolic kernel. For

K(u)=12πcoshu,K(u)=\frac{1}{2\pi\cosh u},

compute its L1L^1 norm and two-sided tail mass. Then solve the constant zero-drive equation

ε=Klog(1+eε).\varepsilon = -K*\log(1+\ee^{-\varepsilon}).
Solution

Since Rsechu ⁣du=π\int_{\mathbb R}\operatorname{sech}u\,\dd u=\pi,

K1=12.\|K\|_1=\frac12.

The antiderivative gives

u>TK(u) ⁣du=2πarctan(eT).\int_{|u|>T}K(u)\,\dd u = \frac{2}{\pi}\arctan(\ee^{-T}).

Put Y=eεY=\ee^{-\varepsilon}. Constancy of the convolution gives

logY=12log(1+Y),-\log Y = -\frac12\log(1+Y),

so Y2=1+YY^2=1+Y. Positivity selects

Y=1+52,ε=log1+52.Y=\frac{1+\sqrt5}{2}, \qquad \varepsilon=-\log\frac{1+\sqrt5}{2}.

This one number tests the sign, nonlinear function, and kernel normalization.

3. Recover linear convolution with an FFT. Two sampled arrays have length NN. Explain why a transform length PFFT2N1P_{\mathrm{FFT}}\geq2N-1 prevents wraparound, and identify the continuum mesh factor.

Solution

Their linear discrete convolution has indices 0,,2N20,\ldots,2N-2 and hence length 2N12N-1. A length-PFFTP_{\mathrm{FFT}} DFT computes indices modulo PFFTP_{\mathrm{FFT}}. When PFFT2N1P_{\mathrm{FFT}}\geq2N-1, no two linear coefficients are identified. Embed the positive and negative kernel lags in circulant order, zero-pad the weighted data, multiply transforms, and crop the desired NN entries.

The inverse FFT already contains 1/PFFT1/P_{\mathrm{FFT}}. The Riemann sum contributes the single additional factor hh:

cj=hkK((jk)h)fk.c_j = h\sum_k K((j-k)h)f_k.

Padding fixes discrete wraparound, not the omitted infinite tails.

4. Choose a mesh from strip clearance. Suppose

Eh2Bexp(2πa/h)1.E_h \leq \frac{2B}{\exp(2\pi a/h)-1}.

Find a sufficient condition on hh for EhτE_h\leq\tau. Interpret the limit a0a\to0.

Solution

It is enough that

exp(2πa/h)12Bτ.\exp(2\pi a/h)-1 \geq \frac{2B}{\tau}.

Therefore

h2πalog(1+2B/τ).h \leq \frac{2\pi a}{ \log(1+2B/\tau) }.

As a kernel pole, source cut, or logarithmic divisor approaches the contour, aa tends to zero and the required mesh becomes arbitrarily fine. At a genuine crossing the correct response is a contour or coordinate update, not infinite refinement of the obsolete chart.

5. Turn consistency into a forward bound. Let T\mathcal T be a contraction with constant q<1q<1, and suppose the passport gate has passed. Assume T\mathcal T maps a complete set U\mathscr U into itself. A lifted discrete map T~N\widetilde{\mathcal T}_N and continuous candidate xUx\in\mathscr U satisfy

xT~Nxr,T~NxTxδ.\|x-\widetilde{\mathcal T}_Nx\|\leq r, \qquad \|\widetilde{\mathcal T}_Nx-\mathcal Tx\|\leq\delta.

Bound its distance from the exact fixed point xx^*. If an observable is LOL_{\mathcal O}-Lipschitz and its numerical evaluation has defect δO\delta_{\mathcal O}, also bound its forward error.

Solution

Using x=Txx^*=\mathcal Tx^*,

xxxT~Nx+T~NxTx+TxTx.\begin{aligned} \|x-x^*\| \leq{}& \|x-\widetilde{\mathcal T}_Nx\| + \|\widetilde{\mathcal T}_Nx-\mathcal Tx\| \\ &+ \|\mathcal Tx-\mathcal Tx^*\|. \end{aligned}

Hence

xxr+δ+qxx,\|x-x^*\| \leq r+\delta+q\|x-x^*\|,

and therefore

xxr+δ1q.\|x-x^*\| \leq \frac{r+\delta}{1-q}.

The term rr is the nonlinear-solve defect; δ\delta must still bound the tail, quadrature, reconstruction, controlled contour-displacement, root, and arithmetic consistency errors. The observable consequently obeys

OnumO(x)δO+LOr+δ1q.|\mathcal O_{\mathrm{num}}-\mathcal O(x^*)| \leq \delta_{\mathcal O} + L_{\mathcal O}\frac{r+\delta}{1-q}.

6. Decide what damping can stabilize. If μ\mu is an eigenvalue of DT(ε)D\mathcal T(\varepsilon^*), find the corresponding eigenvalue of damped Picard iteration. Can positive damping stabilize (a) μ=2\mu=-2 and (b) μ=1.2\mu=1.2?

Solution

The damped linearized eigenvalue is

μω=1ω+ωμ=1ω(1μ).\mu_\omega = 1-\omega+\omega\mu = 1-\omega(1-\mu).

For μ=2\mu=-2, the condition 13ω<1|1-3\omega|<1 gives

0<ω<23.0<\omega<\frac23.

Thus under-relaxation can stabilize this oscillatory mode. For μ=1.2\mu=1.2,

μω=1+0.2ω>1\mu_\omega=1+0.2\omega>1

for every positive ω\omega. Damping cannot stabilize that growing positive mode, nor does an empirical stable run replace a global norm argument.

7. Linearize an excited root. Let a sourced field equation be written as F(ε,θ)=0F(\varepsilon,\theta_*)=0 and impose

G(ε,θ)=εb(θ)(2I+1)πi=0.G(\varepsilon,\theta_*) = \varepsilon_b(\theta_*)-(2I+1)\pi\ii =0.

Write the Newton blocks and state the simple-root condition.

Solution

The coupled correction obeys

(FεFθGεGθ)(δεδθ)=(FG).\begin{pmatrix} F_\varepsilon&F_{\theta_*}\\ G_\varepsilon&G_{\theta_*} \end{pmatrix} \begin{pmatrix} \delta\varepsilon\\ \delta\theta_* \end{pmatrix} = - \begin{pmatrix} F\\G \end{pmatrix}.

Since F=εTF=\varepsilon-\mathcal T, the root column is

Fθ=θT.F_{\theta_*} = -\partial_{\theta_*}\mathcal T.

If the root enters only through the oriented source SS, this becomes Fθ=θSF_{\theta_*}=-\partial_{\theta_*}S. The lower blocks are

Gεδε=(δεb)(θ),Gθ=εb(θ).G_\varepsilon\delta\varepsilon = (\delta\varepsilon_b)(\theta_*), \qquad G_{\theta_*} = \varepsilon_b'(\theta_*).

The divisor is simple when εb(θ)0\varepsilon_b'(\theta_*)\neq0. A small derivative makes the root ill-conditioned and calls for off-grid analytic evaluation rather than snapping it to a node.

8. Predict the first continuation event. At λ0\lambda_0, suppose

Δϕ=1.50, ⁣dΔϕ ⁣dλ=0.40,\Delta\phi=1.50, \qquad \frac{\dd\Delta\phi}{\dd\lambda}=0.40,

while

clog=0.08, ⁣dclog ⁣dλ=0.30.c_{\log}=0.08, \qquad \frac{\dd c_{\log}}{\dd\lambda}=-0.30.

Assuming these derivatives remain constant and the same smooth minimizer of clogc_{\log} remains active, estimate whether the first positive kernel wall or the logarithmic-divisor alarm occurs first.

Solution

The first positive kernel wall is at Δϕ=π/2\Delta\phi=\pi/2, so the linear prediction is

ΔλKπ/21.500.400.177.\Delta\lambda_K \approx \frac{\pi/2-1.50}{0.40} \approx0.177.

The predicted divisor clearance reaches zero after

Δλlog0.080.300.267.\Delta\lambda_{\log} \approx \frac{0.08}{0.30} \approx0.267.

The kernel event is predicted first. The extrapolated zero of sampled clogc_{\log} would only be an alarm requiring off-grid confirmation. Shorten the step, locate the kernel event, and update the contour-residue ledger. Do not add an excited root merely because another clearance is decreasing, and do not infer a BPS-index change without the separate chamber data.

  • L. N. Trefethen and J. A. C. Weideman, “The Exponentially Convergent Trapezoidal Rule”, SIAM Review 56 (2014), 385–458, especially Theorems 3.2 and 5.1. Gives the periodic- and infinite-line strip-analytic error estimates and explains their decay and singularity hypotheses.
  • K. E. Atkinson and F. A. Potra, “Projection and Iterated Projection Methods for Nonlinear Integral Equations”, SIAM Journal on Numerical Analysis 24 (1987), 1352–1373. Gives convergence results near isolated solutions for projection and iterated projection discretizations; it is not a theorem for an arbitrary TBA branch.
  • D. A. Knoll and D. E. Keyes, “Jacobian-Free Newton–Krylov Methods: A Survey of Approaches and Applications”, Journal of Computational Physics 193 (2004), 357–397. Reviews matrix-free Newton–Krylov methods, globalization, and preconditioning.
  • S. C. Eisenstat and H. F. Walker, “Choosing the Forcing Terms in an Inexact Newton Method”, SIAM Journal on Scientific Computing 17 (1996), 16–32. Supplies the forcing-term criteria behind the local convergence claims used here.
  • H. F. Walker and P. Ni, “Anderson Acceleration for Fixed-Point Iterations”, SIAM Journal on Numerical Analysis 49 (2011), 1715–1735. Analyzes Anderson acceleration, its quasi-Newton/secant interpretation, and its linear-problem relation to GMRES; it does not make a branch-incorrect fixed point physically valid.
  • H. B. Keller, “Numerical Solution of Bifurcation and Nonlinear Eigenvalue Problems,” in P. H. Rabinowitz (ed.), Applications of Bifurcation Theory, Publication of the Mathematics Research Center 38, Academic Press, 1977, 359–384. Develops the pseudo-arclength continuation framework used in the predictor–corrector discussion.
  • L. M. Delves and J. N. Lyness, “A Numerical Method for Locating the Zeros of an Analytic Function”, Mathematics of Computation 21 (1967), 543–560. Develops argument-principle contour methods useful for checking complex source roots and collisions.
  • P. Dorey and R. Tateo, “Excited States by Analytic Continuation of TBA Equations”, Nuclear Physics B 482 (1996), 639–659, especially §2. Uses damped iteration, small continuation steps, zero tracking, and contour deformation, while explicitly reporting the limitations of the numerical iteration.
  • K. Ito, M. Mariño, and H. Shu, “TBA Equations and Resurgent Quantum Mechanics”, Journal of High Energy Physics 2019 (2019), 228, especially §§4–5. Implements Fourier discretizations and independent spectral or WKB checks; its reported high-resolution computations and independent comparisons are strong evidence rather than universal certified bounds.
  • D. Gaiotto, G. W. Moore, and A. Neitzke, “Four-Dimensional Wall-Crossing via Three-Dimensional Field Theory”, Communications in Mathematical Physics 299 (2010), 163–224, especially Appendix C. Establishes contraction of successive RH iterates in a sufficiently large-RR regime under support and growth assumptions; it does not certify an arbitrary floating-point discretization.
  • NIST Digital Library of Mathematical Functions, §3.5, “Quadrature”. An official overview of classical quadrature rules, error terms, and practical qualifications.