Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Complex Root Finding and Argument-Principle Searches

    Newton's method can find a resonance and still miss most of the spectrum. Several starting guesses may converge to the same zero, while a narrow basin hides another. A contour count asks a different question first: how many zeros lie in this region, including multiplicity?

    We develop that count, use it to isolate roots, and apply it to the scalar BTZ spectral function. The same example exposes two common mistakes: an underresolved phase curve can give the wrong integer, and a harmless choice of radial normalization can introduce poles whose winding cancels that of genuine modes.

    Preparation: Analytic functions, residues and complex Newton iteration. The BTZ shooting and collocation calculation supplies the physical boundary problem and an independent numerical comparison.

    A spectral function must be specified

    Suppose a boundary-value problem is reduced to

    D(ω)=0.(1)D(\omega)=0. \tag{1}

    Possible choices include a matching Wronskian, a boundary-source coefficient or a determinant. They need not have the same analytic properties. Multiplying by a function that never vanishes and has no poles in the region preserves the zero set. A multiplier with zeros or poles changes the count unless those factors are accounted for.

    For a discrete pencil, D(ω)=det⁡(A−ωB)D(\omega)=\det(A-\omega B) is a polynomial, but direct determinant evaluation can underflow, overflow or obscure conditioning. Stable factorizations, analytic matching functions or contour methods for the matrix inverse may be preferable. Here a solvable scalar example lets us test the count against known analytic structure without pretending that every determinant evaluation is well conditioned.

    The nonrotating BTZ scalar uses

    Ω=ωℓ2rh,K=kℓrh,ν=1+m2ℓ2,β=1+ν2.\Omega=\frac{\omega\ell^2}{r_h},\qquad K=\frac{k\ell}{r_h},\qquad \nu=\sqrt{1+m^2\ell^2},\qquad \beta=\frac{1+\nu}{2}.

    With time dependence e−iωte^{-i\omega t}, ingoing horizon behavior and the standard AdS source condition, an entire spectral function is

    D(Ω)=1Γ(a)Γ(b),a=β−i2(Ω−K),b=β−i2(Ω+K).(2)\begin{aligned} D(\Omega)&=\frac1{\Gamma(a)\Gamma(b)},\\ a&=\beta-\frac{i}{2}(\Omega-K),\qquad b=\beta-\frac{i}{2}(\Omega+K). \end{aligned} \tag{2}

    The reciprocal gamma function is entire with simple zeros at 0,−1,−2,…0,-1,-2,\ldots. Thus, for nonzero real KK, Eq. (2) has simple zeros

    Ωn±=±K−2i(n+β),n=0,1,….(3)\Omega_n^\pm=\pm K-2i(n+\beta),\qquad n=0,1,\ldots. \tag{3}

    We use K=1K=1 and ν=0.7\nu=0.7, hence β=0.85\beta=0.85. These exact roots are withheld from the numerical isolation algorithm and compared with its output afterward. The reciprocal-gamma statement is in DLMF §5.2(i); the BTZ source condition follows from the hypergeometric connection formula and Son–Starinets §4.3. DLMF Eq. 15.10.21; Son–Starinets

    Why phase winding counts zeros minus poles

    Let ff be meromorphic on and inside a positively oriented simple contour CC, with neither a zero nor a pole on CC. Near a zero of multiplicity mm,

    f(z)=(z−z0)mg(z),g(z0)≠0,f(z)=(z-z_0)^m g(z),\qquad g(z_0)\ne0,

    so f′/f=m/(z−z0)+g′/gf'/f=m/(z-z_0)+g'/g. At a pole of order pp, the residue instead equals −p-p. The residue theorem therefore gives

    12πi∮Cf′(z)f(z) dz=NZ−NP=ΔCarg⁡f2π.(4)\boxed{\frac1{2\pi i}\oint_C\frac{f'(z)}{f(z)}\,dz=N_Z-N_P =\frac{\Delta_C\arg f}{2\pi}}. \tag{4}

    The counts include multiplicity. The phase is followed continuously along the contour; subtracting two principal arguments at the start and end would always discard whole turns. These hypotheses and the argument principle are stated in DLMF Eq. 1.10.9.

    For sampled points z0,…,zM=z0z_0,\ldots,z_M=z_0, a practical phase sum is

    N^=12π∑j=0M−1Arg⁡ ⁣[f(zj+1)f(zj)].(5)\widehat N=\frac1{2\pi}\sum_{j=0}^{M-1} \operatorname{Arg}\!\left[\frac{f(z_{j+1})}{f(z_j)}\right]. \tag{5}

    This formula assumes that no phase turn has been hidden between samples. If the true phase advances by more than π\pi on one segment, its principal increment can select the wrong branch. An answer very close to an integer is consequently necessary but insufficient: even a badly sampled closed curve often gives an exact wrong integer.

    Our calculation compares uniform refinements with midpoint insertion. The latter checks the two half-segment phase increments against π/4\pi/4 and has a fixed maximum subdivision depth. It also records the minimum sampled boundary amplitude relative to its maximum. These are useful numerical safeguards, not a proof that an unsampled excursion is impossible. A certified count would require a bound on variation between samples, interval control, or an appropriate analytic estimate such as a Rouché bound.

    An independent contour integral

    For Eq. (2), the logarithmic derivative can be evaluated without numerical differentiation:

    D′(Ω)D(Ω)=i2 [ψ(a)+ψ(b)],(6)\frac{D'(\Omega)}{D(\Omega)} =\frac{i}{2}\,[\psi(a)+\psi(b)], \tag{6}

    where ψ=Γ′/Γ\psi=\Gamma'/\Gamma is the digamma function and the prime here means d/dΩd/d\Omega. The factor is i/2i/2 because both aa and bb have derivative −i/2-i/2 and the gamma functions are in the denominator. A derivative with respect to physical ω\omega has the additional factor ℓ2/rh\ell^2/r_h.

    Gauss–Legendre integration of Eq. (6) around each rectangle edge supplies a count independent of phase unwrapping. A failure of the two counts to agree rejects that numerical rectangle until its integration is refined; it is not rounded away.

    Isolating roots before Newton refinement

    If a holomorphic DD has no poles inside CC, the more general moments are

    Sj=12πi∮CzjD′(z)D(z) dz=∑αmαzαj.(7)S_j=\frac1{2\pi i}\oint_C z^j\frac{D'(z)}{D(z)}\,dz =\sum_\alpha m_\alpha z_\alpha^j. \tag{7}

    In particular S0S_0 is the root count. If a region contains exactly one simple root, S1/S0S_1/S_0 estimates its position. If it contains several roots, this ratio is their multiplicity-weighted centroid and is not generally a root.

    A useful search proceeds as follows:

    1. Count a chosen outer rectangle and verify it under boundary refinement and independent quadrature.
    2. Subdivide rectangles with a nonzero count. Check that the child counts sum to the parent count. Avoid placing a zero or pole on a new boundary.
    3. Retain small boxes with count one. Use their first moments to initialize local refinement.
    4. Apply Newton's method, retain the final residual and correction, and check that the recovered roots are distinct and account for the total count.

    For a simple zero, Newton's step is

    zj+1=zj−D(zj)D′(zj).(8)z_{j+1}=z_j-\frac{D(z_j)}{D'(z_j)}. \tag{8}

    It is locally effective when the derivative is not too small and the initial point is sufficiently close. A multiple root slows ordinary Newton convergence; a small derivative also makes the root sensitive to errors in DD. A real sign bracket is useful only when an appropriate scalar function is real and continuous on the bracket. Ordering complex numbers does not provide a corresponding sign-change theorem.

    For the BTZ example, nonzero KK keeps the two families separate and the roots simple. The implementation stops Newton iterations using both the residual and, when used, the size of the correction. A small residual alone has no scale-independent meaning: replacing DD by 10−100D10^{-100}D leaves every root unchanged while making all residual values tiny.

    Keep a matching function holomorphic

    A two-sided shooting determinant can be a holomorphic function of frequency away from its normalization singularities. Dividing by ∥vL∥∥vR∥\|v_L\|\|v_R\|, where the norms involve complex conjugation, generally destroys this property. One may still use the resulting magnitude to diagnose matching, but Cauchy integral formulas and the analytic derivative in Eq. (8) do not then apply to it as if nothing had changed.

    Likewise, forming log⁡D\log D with an independent principal branch at every point can lose its winding. The safe phase calculation tracks ratios or unwraps a resolved path. The logarithmic derivative D′/DD'/D is single-valued away from the zeros and poles even though log⁡D\log D is not.

    Six BTZ modes in a specified rectangle

    Take the counterclockwise contour around

    R:−1.6≤Re⁡Ω≤1.6,−6.4≤Im⁡Ω≤−0.8.(9)\mathcal R:\quad -1.6\leq\operatorname{Re}\Omega\leq1.6, \qquad -6.4\leq\operatorname{Im}\Omega\leq-0.8. \tag{9}

    It contains the n=0,1,2n=0,1,2 modes of both families. The retained study samples each edge at 64,128,256,51264,128,256,512 points and independently uses 16,32,64,12816,32,64,128 Gauss points per edge. At the final refinement, the phase count is 66 and the logarithmic-derivative integral differs from 66 by about 3.6×10−153.6\times10^{-15}. The first moment is −22.2i-22.2i to the reported arithmetic precision.

    The coarse controls demonstrate a real aliasing failure:

    Samples per edgeSampled winding of DD
    1100
    2222
    44−2-2
    8866
    646466
    51251266

    The negative value at four samples per edge cannot be the true zero count of this entire function. It is the winding of an inadequately sampled image curve. The refined count, together with the independent integral and known analytic example, diagnoses the error.

    The search divides the longer side at the fixed fraction 0.470.47, reducing the chance of repeatedly placing symmetric roots on midpoint boundaries. This is an implementation choice, not a substitute for testing the boundary. It visits 79 boxes and stops at six single-root boxes of side lengths below 0.350.35. Two boxes need the bounded adaptive quadrature fallback after fixed Gauss orders fail the count-agreement tolerance. All those unsuccessful quadrature attempts remain in the output.

    Moment initialization and Newton refinement then recover:

    Familyn=0n=0n=1n=1n=2n=2
    Negative real part−1−1.7i-1-1.7i−1−3.7i-1-3.7i−1−5.7i-1-5.7i
    Positive real part1−1.7i1-1.7i1−3.7i1-3.7i1−5.7i1-5.7i

    The maximum difference from Eq. (3) is below 10−1510^{-15}. This is a check of the analytic spectral-function search. It does not transfer that accuracy to a separately discretized radial function.

    In particular, the baseline double-precision shooting function evaluated at these recovered roots has normalized mismatches about 3.1×10−113.1\times10^{-11}, 4.7×10−64.7\times10^{-6} and 0.2390.239 for the three overtones. The higher-mode shooting check fails. The independently assembled high-precision pencil and 120-term Frobenius matching provide the successful radial comparisons described in the QNM article, with their own truncation limits.

    A physical source normalization changes the winding

    The unit-normalized ingoing EF solution has source coefficient

    Au(Ω)=2iΩΓ(1−iΩ)Γ(ν)D(Ω).(10)A_u(\Omega)=2^{i\Omega}\Gamma(1-i\Omega)\Gamma(\nu)D(\Omega). \tag{10}

    The factors 2iΩ2^{i\Omega} and Γ(ν)\Gamma(\nu) are nonzero and introduce no poles. However, Γ(1−iΩ)\Gamma(1-i\Omega) has simple poles at Ω=−ij\Omega=-ij, j≥1j\geq1. At K=1K=1 these poles do not coincide with the zeros of DD, so they are not canceled.

    There are six such poles in R\mathcal R. Consequently

    12πi∮∂RAu′Au dΩ=6−6=0.(11)\frac1{2\pi i}\oint_{\partial\mathcal R}\frac{A_u'}{A_u}\,d\Omega =6-6=0. \tag{11}

    A zero winding of this source function does not mean that the region contains no quasinormal modes. It means that its zero and pole counts cancel. The source-normalization poles originate in the chosen ingoing Frobenius normalization, whose recurrence becomes singular at these frequencies; they are not extra physical resonances.

    The derivative used for the independent check is

    Au′Au=ilog⁡2−iψ(1−iΩ)+D′D.(12)\frac{A_u'}{A_u}=i\log2-i\psi(1-i\Omega)+\frac{D'}D. \tag{12}

    For a second rectangle, −0.4≤Re⁡Ω≤0.4-0.4\leq\operatorname{Re}\Omega\leq0.4 and −2.4≤Im⁡Ω≤−0.6-2.4\leq\operatorname{Im}\Omega\leq-0.6, there are no DD zeros and two source poles. The respective windings are 00 and −2-2. Both refined phase sums and independent integrals reproduce those values. Multiplication of DD by the nonvanishing entire function e(0.3+0.2i)Ωe^{(0.3+0.2i)\Omega} leaves its outer winding equal to 66, as it must.

    Six recovered BTZ zeros and six source-normalization poles inside a rectangle, with resolved and underresolved phase windings along its boundary.

    Left: the six isolated zeros of DD and the six additional poles of the unit-EF source coefficient. Small boxes are numerical isolation regions. Right: resolved phase changes around the counterclockwise outer contour. The source has zero net winding, while the four-samples-per-edge approximation to DD gives the wrong winding −2-2.

    What this calculation establishes

    The companion btz_root_counts.py retains the uniform and adaptive counts, subdivision trials, root boxes, Newton traces and unsuccessful coarse controls in btz-root-results.json. Its search does not seed from the exact spectrum; the comparison with Eq. (3) occurs after root recovery. The primary contour and all refinement settings are fixed before examining the results.

    For this solvable problem, analytic pole information and numerical refinement agree. For a new resonance problem, a reliable count still depends on the actual spectral function: its domain of analyticity, normalization singularities, numerical evaluation error and behavior between boundary samples. A small singular value of a matrix, a small scalar residual and an integer phase sum answer different questions. They become convincing evidence only when their assumptions and failure modes are examined together.

    Summary

    Contour integration adds a global counting step to local root refinement. The argument principle counts zeros minus poles, while contour moments help isolate individual roots. In the BTZ example it finds six resonances, detects phase aliasing, and explains why the meromorphic boundary-source normalization can have zero winding in a region that contains six modes.

    Exercises

    1. Count poles before interpreting a winding

    For K=1K=1, ν=0.7\nu=0.7, let DD and AuA_u be Eqs. (2) and (10). Compute their windings in the outer rectangle of Eq. (9) and the central rectangle described after Eq. (12). Then evaluate the first contour moment of AuA_u in each region. Explain why the outer moment is not the sum of the six resonance positions alone.

    Solution

    The outer rectangle contains the six simple zeros ±1−1.7i\pm1-1.7i, ±1−3.7i\pm1-3.7i and ±1−5.7i\pm1-5.7i. Their sum is

    2(−1.7−3.7−5.7)i=−22.2i.2(-1.7-3.7-5.7)i=-22.2i.

    The central rectangle contains none of those zeros. Because DD is entire, its two windings are therefore 66 and 00.

    The source factor has poles at −i,−2i,…-i,-2i,\ldots. There are six in the outer rectangle and two in the central rectangle, with no cancellations at K=1K=1. The windings of AuA_u are consequently 6−6=06-6=0 and 0−2=−20-2=-2.

    The residue of zAu′/AuzA_u'/A_u at a zero is its position, while that at a simple pole is minus the pole position. Hence the outer first moment is

    −22.2i−[−(1+2+3+4+5+6)i]=−1.2i.-22.2i-[-(1+2+3+4+5+6)i]=-1.2i.

    For the central rectangle it is 0−[−i−2i]=3i0-[-i-2i]=3i. These are the retained numerical moments. Ignoring the source-normalization poles would turn both the count and the inferred sum of resonance positions into incorrect conclusions.

    2. When is a contour centroid a root?

    Let DD be holomorphic inside CC and nonzero on it. Show that S1/S0S_1/S_0 equals the enclosed root when there is one root of multiplicity mm, but need not be a root when two distinct zeros are enclosed. Derive the multiplicity-corrected Newton step near the repeated root. Finally show that multiplying DD by a holomorphic nonvanishing function preserves all nonnegative-integer moments in Eq. (7).

    Solution

    For D(z)=(z−z0)mg(z)D(z)=(z-z_0)^m g(z) with g(z0)≠0g(z_0)\ne0, the residue calculation gives S0=mS_0=m and S1=mz0S_1=mz_0, so S1/S0=z0S_1/S_0=z_0. Multiplicity does not change this centroid if there is only one distinct zero.

    With two simple roots z1,z2z_1,z_2, the ratio is (z1+z2)/2(z_1+z_2)/2. For example, D(z)=z2−1D(z)=z^2-1 has two zeros inside a circle of radius two, but the centroid is 00 and D(0)=−1D(0)=-1. A zero correction inferred from symmetry at that point would not identify a root. Subdivision or higher moments are needed.

    Near a root of multiplicity mm,

    D(z)D′(z)=z−z0m+O((z−z0)2).\frac{D(z)}{D'(z)}=\frac{z-z_0}{m}+O((z-z_0)^2).

    Ordinary Newton therefore has leading error multiplier 1−1/m1-1/m. If mm is known, the modified step z↦z−mD/D′z\mapsto z-mD/D' cancels the linear term and restores quadratic local convergence under the usual smoothness assumptions. A root cluster at finite precision must not be declared a multiple root merely because its separation is small.

    Now let D~=hD\widetilde D=hD with hh holomorphic and nonzero throughout the enclosed region. Then

    D~′D~=D′D+h′h.\frac{\widetilde D'}{\widetilde D}=\frac{D'}D+\frac{h'}h.

    The function zjh′/hz^j h'/h is holomorphic inside CC for every integer j≥0j\geq0, so its contour integral vanishes. Every SjS_j is unchanged. If hh has a zero or pole, this argument fails by exactly the additional residues counted in Exercise 1.

    References

    1. NIST Digital Library of Mathematical Functions, §1.10(iv), especially Eq. (1.10.9), §5.2(i), and Eq. (15.10.21). Argument principle, gamma-function analytic structure and hypergeometric connection coefficients.
    2. D. T. Son and A. O. Starinets, “Minkowski-space correlators in AdS/CFT correspondence: recipe and applications,” Journal of High Energy Physics 09 (2002) 042, arXiv:hep-th/0205051v2, Eqs. (44)–(46) and §4.3. Article; PDF; DOI.

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.