Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Spurious Modes and Spectral Convergence

    An eigenvalue can remain unchanged as the grid is refined, have a tiny matrix residual, and still fail to describe the intended physical problem. A boundary equation may have introduced it artificially, or the computation may have converged to a different operator domain. Checking more digits of the same matrix does not resolve either mistake.

    We demonstrate both failures for a solvable scalar box. First, an incorrect replacement of endpoint rows creates two stable, arbitrary eigenvalues; eliminating the endpoint unknowns removes them. Second, a legitimate Robin boundary condition produces negative levels that are real properties of that different problem. The distinction prevents the word “spurious” from becoming a synonym for an unexpected result.

    Preparation: Spectral collocation supplies interpolation and off-grid residuals. Sparse Hermitian eigenproblems explains what an algebraic residual does and does not establish. For constrained pencils and infinite eigenvalues, see generalized eigenproblems.

    The reference problem includes its endpoints

    Take the dimensionless operator

    HD=−d2dx2,−1<x<1,u(−1)=u(1)=0.H_D=-\frac{d^2}{dx^2},\qquad -1<x<1, \qquad u(-1)=u(1)=0.

    Its domain is H2([−1,1])∩H01([−1,1])H^2([-1,1])\cap H_0^1([-1,1]) in L2(dx)L^2(dx). Integration by parts gives

    ⟨u,HDu⟩=∫−11∣u′∣2dx≥0.\langle u,H_Du\rangle=\int_{-1}^1|u'|^2dx\geq0.

    Solving the differential equation and the two endpoint conditions yields

    Ej=(jπ2)2,uj(x)=sin⁡ ⁣[jπ(x+1)2],j=1,2,….E_j=\left(\frac{j\pi}{2}\right)^2, \qquad u_j(x)=\sin\!\left[\frac{j\pi(x+1)}2\right], \qquad j=1,2,\ldots.

    These functions have unit L2([−1,1])L^2([-1,1]) norm. In particular the lowest level is π2/4\pi^2/4, not zero. A negative level or an additional state below it requires an explanation; it cannot be attributed to the intended positive Dirichlet operator.

    For Chebyshev degree NN, retain both endpoints in the first-derivative matrix DD. Form D2D^2 on that full interpolation space before eliminating endpoint values. The proper Dirichlet collocation matrix is

    AD=−(D2)II,A_D=-(D^2)_{II},

    where II denotes the interior nodes. This matrix is generally not symmetric in the unweighted nodal Euclidean inner product. We therefore use a general eigensolver and separately compare with the self-adjoint continuum spectrum; we do not feed the collocation matrix to a symmetric solver merely because the differential operator is self-adjoint.

    The need to impose numerical boundary conditions, as opposed to selecting a regularity class through the basis, is explained in Boyd, §§6.3–6.4, pp. 109–111 (PDF). A row replacement appropriate to a boundary-value linear system cannot simply be transplanted into an eigenproblem with an unchanged identity matrix on the right.

    A row replacement creates two false levels

    Construct a deliberately incorrect standard eigenproblem. Keep the interior rows of −D2-D^2, but replace both endpoint rows by γ\gamma times the corresponding identity rows, where γ\gamma is a chosen constant. Then solve

    Abadv=Ev.A_{\mathrm{bad}}v=E v.

    At each endpoint the equation now reads

    γv∂=Ev∂.\gamma v_{\partial}=E v_{\partial}.

    This forces zero endpoint values only when E≠γE\ne\gamma. At E=γE=\gamma it places no condition on them. In a fixed-source linear system the right side of a Dirichlet boundary row would be zero. Here the unchanged eigenvalue right side is the error.

    Ordering interior variables first makes the defect explicit:

    Abad=(ADC0γI2).A_{\mathrm{bad}}= \begin{pmatrix} A_D&C\\ 0&\gamma I_2 \end{pmatrix}.

    Therefore

    det⁡(Abad−EI)=(γ−E)2det⁡(AD−EI).\det(A_{\mathrm{bad}}-EI) =(\gamma-E)^2\det(A_D-EI).

    When γ\gamma is outside the spectrum of ADA_D, the matrix has two additional eigenvalues equal to γ\gamma. They remain at precisely the same place under grid refinement. Changing the arbitrary row scale changes their location, while leaving the corrected interior spectrum unchanged.

    The retained calculation chooses γ=1\gamma=1 and γ=5\gamma=5. Neither is a Dirichlet-box level. Each appears with multiplicity two at every degree in the sequence N=16N=16, 2424, 3232, 4848 and 6464. These are artifacts of the endpoint equation. They are not a degeneracy of the scalar box, nor eigenvalues that should be selected by a physical stability criterion.

    The defective matrix is also generally non-Hermitian. A small residual for it is a backward check of its own algebraic equation; the Hermitian forward-error bound from the preceding article cannot be applied without its assumptions. Correcting the problem means removing the two fixed endpoint unknowns, not merely increasing the eigensolver accuracy.

    Interior residuals can pass while the boundary fails

    For an arbitrary boundary vector bb, an eigenvector at the false level satisfies

    (AD−γI)vI=−Cb.(A_D-\gamma I)v_I=-Cb.

    Choose b=(1,1)Tb=(1,1)^T and b=(−1,1)Tb=(-1,1)^T to obtain deterministic even and odd ghost vectors. This avoids depending on how a numerical eigensolver mixes vectors in the repeated eigenspace.

    Their continuum limits solve the interior equation −u′′=γu-u''=\gamma u. Up to normalization, they approach

    ueven(x)=cos⁡(γx),uodd(x)=sin⁡(γx).u_{\mathrm{even}}(x)=\cos(\sqrt\gamma x), \qquad u_{\mathrm{odd}}(x)=\sin(\sqrt\gamma x).

    Both satisfy the differential equation perfectly. Neither satisfies the intended Dirichlet endpoints for our choices of γ\gamma. An off-grid residual by itself therefore cannot distinguish them from physical solutions.

    Let pN(x)p_N(x) be the interpolating polynomial, normalized by ∫−11∣pN∣2dx=1\int_{-1}^1|p_N|^2dx=1. We report three different quantities:

    rmatrix=∥Abadv−γv∥2∥v∥2,r_{\mathrm{matrix}} =\frac{\lVert A_{\mathrm{bad}}v-\gamma v\rVert_2}{\lVert v\rVert_2}, rODE=(∫−11∣−pN′′−γpN∣2dx)1/2,bD=∣pN(−1)∣2+∣pN(1)∣2.r_{\mathrm{ODE}} =\left(\int_{-1}^1|-p_N''-\gamma p_N|^2dx\right)^{1/2}, \qquad b_D=\sqrt{|p_N(-1)|^2+|p_N(1)|^2}.

    The integral norm and the endpoint residual use dimensionless xx and unit continuous L2L^2 normalization. Without this stated normalization, rescaling a vector could make its endpoint error look arbitrarily small. The first quantity is instead scale-invariant under nodal-vector rescaling.

    For γ=1\gamma=1, the retained results include:

    DegreeEven rODEr_{\mathrm{ODE}}Odd rODEr_{\mathrm{ODE}}Even bDb_DOdd bDb_D
    16169.74×10−149.74\times10^{-14}3.75×10−133.75\times10^{-13}0.633540.633541.611451.61145
    32321.16×10−121.16\times10^{-12}3.07×10−123.07\times10^{-12}0.633540.633541.611451.61145
    64642.56×10−112.56\times10^{-11}4.02×10−114.02\times10^{-11}0.633540.633541.611451.61145

    Across both choices of γ\gamma, the largest matrix residual is below 4.8×10−114.8\times10^{-11}. The continuous norm is evaluated with Gauss quadrature; increasing its order from 128 to 256 changes bDb_D by less than 1.3×10−141.3\times10^{-14}. The mild growth of derivative residuals at higher degree is an arithmetic effect visible in the retained output. None of these refinements cures the order-one endpoint error.

    Arbitrary endpoint-row eigenvalues remain at one or five under refinement, while normalized ghost functions visibly remain nonzero at the two Dirichlet endpoints.

    The ghost eigenvalues follow the chosen row scale γ\gamma, while the lowest corrected Dirichlet level approaches π2/4\pi^2/4. The profiles at degree 3232 use γ=1\gamma=1 and unit continuous L2L^2 norm. They solve the interior differential equation accurately but fail both zero-endpoint conditions. The valid Dirichlet ground-state profile supplies a comparison.

    Check the corrected spectrum in another representation

    Removing the endpoint variables leaves the N−1N-1 interior collocation eigenvalues. For the first six levels, the maximum difference from the exact spectrum is:

    Chebyshev degreeLargest error among six corrected levels
    16161.20×10−31.20\times10^{-3}
    24245.31×10−95.31\times10^{-9}
    32323.84×10−133.84\times10^{-13}
    48482.33×10−132.33\times10^{-13}
    64643.46×10−133.46\times10^{-13}

    The selected levels converge until their errors reach the rounding floor. The matrix at degree 16 already contains accurate low levels, while its sixth level needs more resolution.

    An independent centered Dirichlet grid with MM intervals, h=2/Mh=2/M, has eigenvalues

    Ej,h=4h2sin⁡2 ⁣(jπ2M),j=1,…,M−1.E_{j,h}=\frac4{h^2}\sin^2\!\left(\frac{j\pi}{2M}\right), \qquad j=1,\ldots,M-1.

    The companion compares the actual tridiagonal solve with this finite-grid formula and with the continuum levels, for M=64M=64, 128128, 256256 and 512512. Its quadratic spacing error is distinct from the rapid low-mode convergence of the polynomial basis. Agreement between these independently constructed approximations is useful because both enforce the intended endpoints.

    Constraint elimination can remove algebraic infinite eigenvalues when reducing a generalized pencil to its physical variables. A correctly formulated descriptor pencil may legitimately contain those eigenvalues; they need not signal an endpoint mistake. The generalized-eigenproblem article treats this different mechanism explicitly. In radiative problems, even boundedness at a singular endpoint need not select the desired branch; the BTZ calculation distinguishes the ingoing analytic branch from an unwanted outgoing one.

    A different self-adjoint domain gives different real modes

    Not every unwanted mode is an artifact of a finite matrix. Keep −d2/dx2-d^2/dx^2 but replace the intended endpoints by

    −u′(−1)=αu(−1),u′(1)=αu(1),α>0.-u'(-1)=\alpha u(-1),\qquad u'(1)=\alpha u(1),\qquad \alpha>0.

    These are attractive Robin conditions, written with the outward derivative. Their quadratic form is

    qα[u]=∫−11∣u′∣2dx−α(∣u(−1)∣2+∣u(1)∣2),\mathfrak q_\alpha[u]=\int_{-1}^1|u'|^2dx -\alpha\bigl(|u(-1)|^2+|u(1)|^2\bigr),

    on H1([−1,1])H^1([-1,1]). The negative boundary term allows negative eigenvalues. The operator is self-adjoint on its Robin domain; it is simply not HDH_D.

    For a negative energy E=−κ2E=-\kappa^2, the even and odd solutions are proportional to cosh⁡(κx)\cosh(\kappa x) and sinh⁡(κx)\sinh(\kappa x). The endpoint condition gives

    κtanh⁡κ=α(even),κcoth⁡κ=α(odd).\kappa\tanh\kappa=\alpha\quad\text{(even)}, \qquad \kappa\coth\kappa=\alpha\quad\text{(odd)}.

    The even solution exists for every α>0\alpha>0, while the odd solution requires α>1\alpha>1. This follows from the monotonic ranges of the two functions, and is worked out in Exercise 2. The source's inward-sign parameters are the negatives of our outward-positive α\alpha; see Ivrii, §4.2, Eqs. (4.2.27)–(4.2.33) and Appendix 4.A, Eqs. (4.A.4)–(4.A.14).

    At α=4\alpha=4, independently bracketed scalar equations give

    Eeven=−16.0213695119,Eodd=−15.9784288120.E_{\mathrm{even}}=-16.0213695119, \qquad E_{\mathrm{odd}}=-15.9784288120.

    We also discretize the Robin form directly. On a uniform grid including both endpoints, the piecewise-linear stiffness KK has endpoint diagonal 1/h1/h, interior diagonal 2/h2/h and nearest-neighbor entries −1/h-1/h. Subtract α\alpha from each endpoint diagonal. A lumped norm is

    W=h diag⁡(1/2,1,…,1,1/2).W=h\,\operatorname{diag}(1/2,1,\ldots,1,1/2).

    Writing Kα=K−αE∂K_\alpha=K-\alpha E_{\partial}, the strong matrix W−1KαW^{-1}K_\alpha is self-adjoint in the WW inner product. The Euclidean symmetric matrix is

    A~=W−1/2KαW−1/2.\widetilde A=W^{-1/2}K_\alpha W^{-1/2}.

    This mass-lumped scheme is not an exact continuum Rayleigh–Ritz bound. It gives the following two negative eigenvalues:

    IntervalsEven levelOdd level
    6464−15.9596300-15.9596300−15.9161302-15.9161302
    128128−16.0058442-16.0058442−15.9627637-15.9627637
    256256−16.0174825-16.0174825−15.9745068-15.9745068
    512512−16.0203974-16.0203974−15.9774480-15.9774480

    The errors decrease approximately quadratically toward the two Robin roots. In the stated WW norm, the intended Dirichlet endpoint residuals remain about 2.822.82 and 2.832.83. Restricting the same form to zero endpoint entries removes the Robin term and returns the positive Dirichlet grid operator. The negative states disappear because the domain has changed, not because an accurate Robin eigensolver malfunctioned.

    These finite examples distinguish three questions: whether an eigenpair solves the discrete equation, whether that discretization converges, and whether the limiting domain is the one the physics requires. The companion examples/computational-qft/spectral-problems/endpoint_spectra.py retains all three checks and their normalizations.

    Summary

    A spectral calculation must test its boundary prescription as well as its interior equation. An incorrect endpoint row can create eigenvalues that are exactly stable under refinement; a legitimate but unintended Robin domain can produce convergent negative modes. Independent representations, normalized endpoint residuals and an explicitly stated operator domain distinguish these failures from physical states. More digits alone cannot do so.

    Exercises

    1. The arbitrary boundary eigenvalue

    Suppose AbadA_{\mathrm{bad}} has the block form above and γ\gamma is not an eigenvalue of ADA_D. Derive the two additional eigenvalues and their eigenspace. For γ=1\gamma=1, compute the normalized endpoint residuals of the limiting even and odd ghosts and compare them with the table.

    Solution

    The determinant of a block triangular matrix is the product of its diagonal-block determinants. Hence (γ−E)2(\gamma-E)^2 contributes algebraic multiplicity two. For every b∈C2b\in\mathbb C^2,

    v=(−(AD−γI)−1Cbb)v=\begin{pmatrix}-(A_D-\gamma I)^{-1}Cb\\ b\end{pmatrix}

    is an eigenvector with eigenvalue γ\gamma. The map from bb is injective, so the eigenspace also has dimension two. If γ\gamma coincides with an interior eigenvalue, this argument needs modification; our chosen controls avoid that collision.

    At γ=1\gamma=1, the unit-normalized limits are

    ue(x)=cos⁡x1+sin⁡2/2,uo(x)=sin⁡x1−sin⁡2/2.u_e(x)=\frac{\cos x}{\sqrt{1+\sin2/2}}, \qquad u_o(x)=\frac{\sin x}{\sqrt{1-\sin2/2}}.

    Their endpoint residuals are

    be=2∣cos⁡1∣1+sin⁡2/2≃0.63354,bo=2∣sin⁡1∣1−sin⁡2/2≃1.61145.b_e=\frac{\sqrt2|\cos1|}{\sqrt{1+\sin2/2}} \simeq0.63354, \qquad b_o=\frac{\sqrt2|\sin1|}{\sqrt{1-\sin2/2}} \simeq1.61145.

    Both solve −u′′=u-u''=u exactly, so the differential residual is zero. Their boundary residuals are not. This is an explicit counterexample to accepting a mode solely because the interior equation and refinement appear satisfactory.

    2. Count the Robin negative modes

    Derive the attractive Robin form and show precisely when the even and odd negative modes exist. What happens at α=1\alpha=1, and why do the negative levels not contradict positivity of the Dirichlet box?

    Solution

    Integration by parts gives

    ∫−11u∗(−u′′)dx=∫−11∣u′∣2dx−[u∗u′]−11.\int_{-1}^1u^*(-u'')dx =\int_{-1}^1|u'|^2dx-[u^*u']_{-1}^1.

    Using u′(1)=αu(1)u'(1)=\alpha u(1) and u′(−1)=−αu(−1)u'(-1)=-\alpha u(-1) produces the negative endpoint term in qα\mathfrak q_\alpha. For E=−κ2<0E=-\kappa^2<0, even and odd parity reduce the solution to a multiple of cosh⁡κx\cosh\kappa x or sinh⁡κx\sinh\kappa x, giving the two root equations.

    For κ>0\kappa>0,

    ddκ(κtanh⁡κ)=tanh⁡κ+κsech⁡2κ>0.\frac{d}{d\kappa}(\kappa\tanh\kappa) =\tanh\kappa+\kappa\operatorname{sech}^2\kappa>0.

    This function ranges from zero to infinity. The even negative state therefore exists uniquely for every α>0\alpha>0. Similarly,

    ddκ(κcoth⁡κ)=sinh⁡κcosh⁡κ−κsinh⁡2κ>0,\frac{d}{d\kappa}(\kappa\coth\kappa) =\frac{\sinh\kappa\cosh\kappa-\kappa}{\sinh^2\kappa}>0,

    because the numerator vanishes at zero and has derivative 2sinh⁡2κ>02\sinh^2\kappa>0. Its range is (1,∞)(1,\infty), so the odd negative state exists uniquely only when α>1\alpha>1. At α=1\alpha=1, the limiting odd zero mode is u=xu=x. At α=0\alpha=0, the even constant is the Neumann zero mode. A second-order equation has only one independent solution of each parity for a fixed negative energy; the monotonic root equations thus give the complete negative-mode count.

    Dirichlet functions have zero endpoint values, so the boundary term vanishes and their quadratic form stays nonnegative. The Robin states are outside that domain. Calling them a Dirichlet instability would confuse two distinct self-adjoint problems.

    References

    • Boyd, John P. Chebyshev and Fourier Spectral Methods. Second edition, Dover, 2001. PDF, §§6.3–6.4, pp. 109–111: behavioral and numerical endpoint conditions, boundary bordering and basis recombination. The gamma-row counterexample is derived here.
    • Ivrii, Victor. Partial Differential Equations, online notes for APM346, University of Toronto, 2015. §4.2, Examples 6–7, Eqs. (4.2.27)–(4.2.33), and Appendix 4.A, Eqs. (4.A.4)–(4.A.14): Robin forms and parity equations, translated to the outward-derivative sign used here.
    • Saad, Yousef. Numerical Methods for Large Eigenvalue Problems. Revised edition, SIAM, 2011. Author's PDF, §3.2: residual bounds depend on the matrix class and concern the stated algebraic problem, rather than validating a continuum boundary prescription.

    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.