The eigenvalue problem that is not linear

A guarantee paid for in digits

A hyperbolic quadratic has a real spectrum, but the route that computed it so far, a companion linearisation and a nonsymmetric Schur form, only happens to return one. The theory offers a route on which it cannot do otherwise: a symmetric linearisation that is a definite pencil, reduced by a Cholesky to a symmetric eigenproblem. Near the class's boundary that guarantee is the expensive route. On a damped chain at damping β*(1 + ε) the definite pencil's Crawford number — what its Cholesky divides by — vanishes like 0.228ε, every combination of the pencil shrinking with it, while the colliding pair the companion route has to resolve separates like 0.98√ε. At ε = 10⁻¹² the definite route keeps two or three digits and the companion route eight or nine. And on twenty rotated chains the companion route returns no complex pair at any margin from 10⁻⁴ to 10⁻¹², only on the boundary itself.

Worth reading first: Every eigenvalue real, and a test that says so · A matrix that depends on its own eigenvalue · A factorisation with nothing to pivot for.

Every eigenvalue real, and a test that says so introduced the class of quadratic eigenvalue problems whose spectrum is real as a property: Q is hyperbolic when there is a μ at which Q(μ) is negative definite, and one Cholesky that completes is the proof. It measured the class’s boundary on a damped chain, where at critical damping the arithmetic loses half its digits with nothing ill conditioned in the matrices, and a class a longer chain takes away found that the damping the class requires grows without bound with the chain.

Neither essay asked what computed the spectrum. It was the site’s general quadratic solver: a companion linearisation, its leading coefficient inverted, a nonsymmetric real Schur form. That route knows nothing about the class. A nonsymmetric eigensolver returns complex pairs whenever rounding pushes two close real eigenvalues onto a pair of complex conjugates, and near the boundary of the class two real eigenvalues are as close as they get. The class’s own theory offers a route that cannot do this, and the expectation a reader brings — the one a spectrum that comes in reciprocal pairs confirmed for another structure — is that a method that keeps the structure is the better method.

Near this boundary it is not. The guarantee is real, and it is paid for in exactly the digits the boundary threatens.

The route on which the spectrum has to be real

A quadratic Q(λ)=λ2M+λC+KQ(\lambda) = \lambda^2 M + \lambda C + K, the object a matrix that depends on its own eigenvalue introduced, has linearisations of many kinds, and when its coefficients are symmetric it has symmetric ones: pencils λX+Y\lambda X + Y of twice the size, with XX and YY symmetric, whose eigenvalues are those of QQ. One family of them, built from an ansatz vector [v1,v2][v_1, v_2], is X=[v1Mv2Mv2Mv2C−v1K]X = \begin{bmatrix} v_1 M & v_2 M \\ v_2 M & v_2 C - v_1 K \end{bmatrix} and Y=[v1C−v2Mv1Kv1Kv2K]Y = \begin{bmatrix} v_1 C - v_2 M & v_1 K \\ v_1 K & v_2 K \end{bmatrix}. When QQ is hyperbolic and μ\mu is a point where Q(μ)Q(\mu) is negative definite, the ansatz [1,−μ][1, -\mu] makes the pencil definite: some combination cos⁡t⋅X+sin⁡t⋅Y\cos t \cdot X + \sin t \cdot Y is positive definite.

A definite pencil is solved as a symmetric problem. Take the Cholesky factor LL of the positive definite combination, form the symmetric matrix L−1(−sin⁡t⋅X+cos⁡t⋅Y)L−TL^{-1}(-\sin t \cdot X + \cos t \cdot Y)L^{-\mathsf T}, compute its eigenvalues with a symmetric solver — Jacobi here — and map each back to an eigenvalue of the pencil. The eigenvalues of a symmetric matrix are real, so every eigenvalue the route returns is real, whatever the rounding did. The same μ that certified the class builds the pencil, so the certificate is used twice: once to prove the spectrum is real and once to compute it in a way that keeps it so.

The cost of the route is in one number. The Cholesky divides by the positive definite combination’s least eigenvalue, and the best the pencil allows is its Crawford number: the largest least eigenvalue over all angles tt. A perturbation of the pencil’s entries of size δ\delta moves its eigenvalues by up to about δ\delta over the Crawford number, so a backward-stable computation with errors of size uu in the entries delivers eigenvalues accurate to about uu over it.

Each route divides by something that vanishes

The measurement uses the earlier essays’ chain: nn unit masses, a stiffness KK that is the second-difference matrix, and damping proportional to it, C=βKC = \beta K. Its spectrum has a closed form, one quadratic λ2+βκλ+κ\lambda^2 + \beta\kappa\lambda + \kappa per stiffness eigenvalue κ\kappa, and the critical damping is β∗=1/sin⁡(π/2(n+1))\beta^* = 1/\sin(\pi/2(n+1)) — 5.758770483143636 at eight masses. At β=β∗(1+ε)\beta = \beta^*(1 + \varepsilon) the chain is hyperbolic by a margin ε\varepsilon, and the two roots of the softest mode’s quadratic are about to collide.

The figure at the top of the page is the result at eight masses. At ε=10−2\varepsilon = 10^{-2} both routes are accurate to fourteen digits: the companion route’s worst relative error is 8.9⋅10−158.9 \cdot 10^{-15} and the definite route’s 2.4⋅10−142.4 \cdot 10^{-14}. They separate as the margin closes. At 10−610^{-6}, 5.3⋅10−135.3 \cdot 10^{-13} against 1.5⋅10−101.5 \cdot 10^{-10}; at 10−1210^{-12}, 2.7⋅10−92.7 \cdot 10^{-9} against 2.0⋅10−32.0 \cdot 10^{-3}. Across the last six decades of margin the companion route’s error rises by 3.7 decades and the definite route’s by 7.1.

For the damped chain of eight masses at β*(1 + ε): the Crawford number of the definite linearisation and the separation of the colliding eigenvalue pair, against εε 10⁻²: Crawford number 0.002288, 0.2288 ε; separation 0.09848, 0.9848 times the square root of ε; ε 10⁻⁴: Crawford number 2.279·10⁻⁵, 0.2279 ε; separation 0.009823, 0.9823 times the square root of ε; ε 10⁻⁶: Crawford number 2.279·10⁻⁷, 0.2279 ε; separation 9.823·10⁻⁴, 0.9823 times the square root of ε; ε 10⁻⁸: Crawford number 2.279·10⁻⁹, 0.2279 ε; separation 9.823·10⁻⁵, 0.9823 times the square root of ε; ε 10⁻¹⁰: Crawford number 2.279·10⁻¹¹, 0.2279 ε; separation 9.823·10⁻⁶, 0.9823 times the square root of ε; ε 10⁻¹²: Crawford number 2.284·10⁻¹³, 0.2284 ε; separation 9.822·10⁻⁷, 0.9822 times the square root of ε.eight massesCrawford number ÷ ε0.23separation ÷ √ε0.9810⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³10⁻¹ε, the margin above critical dampingthe quantity each route divides bypair separationCrawford numberslopes one half and onethe guarantee's denominator falls faster
Fig. 1 For the eight-mass chain: the Crawford number of the definite linearisation, at its best angle, and the separation of the colliding eigenvalue pair, against the margin ε.

The two rates are the two denominators. The colliding pair, the quantity the companion route has to resolve, separates as 0.9823ε0.9823\sqrt{\varepsilon} at every margin measured, the square-root law the first essay found. A perturbation of size uu to a nonsymmetric matrix moves a pair of eigenvalues that close by about uu over their separation, so the companion route’s error should rise half a decade for each decade of margin. The Crawford number, the quantity the definite route divides by, is 0.2279ε0.2279\varepsilon to four digits from 10−410^{-4} to 10−1210^{-12}: linear in the margin, so the definite route’s error should rise a full decade per decade. The measured rises are 3.7 and 7.1 over six decades, both a little steeper than their denominators alone, and in the order the denominators set.

The first essay found that “the window of μ that works closes like the square root of the margin” while “the depth of the well” is a quarter of the margin, and that the certificate’s search is harder on the depth than on the width. The definite pencil inherits the depth. A μ always exists inside the class, which is why the route works at every margin, but the pencil it builds is only as definite as Q(μ)Q(\mu) is negative, and that is linear in the margin.

Each route meets its own bound

The denominators predict the rates; they also predict the errors, and the check is to multiply each error by its denominator and divide by the unit roundoff u=2−53u = 2^{-53}. If a route’s error is its denominator’s bound and nothing more, the product is a small number that does not move with the margin.

For the definite route the product is between 0 and 4 at every margin on every length: at eight masses it reads 0, 1, 0, 1, 2 and 4 from ε=10−2\varepsilon = 10^{-2} down to 10−1210^{-12}. The route delivers exactly what a backward-stable reduction of a pencil with that Crawford number can deliver, and not a digit less. Nothing in the Cholesky, the Jacobi sweeps or the map back from the reduced eigenvalues adds error of its own. For the companion route the product, error times pair separation over uu, is between 0.7 and 36 across the same eighteen cells, larger and noisier because a nonsymmetric Schur form’s perturbation of a close pair depends on the angle between the pair’s left and right eigenvectors as well as on their distance — the quantity two condition numbers of one matrix separates from a norm — but bounded, with no trend in the margin.

So neither route is doing badly. Each is as good as its own analysis says it can be, and the comparison is between the analyses: a backward error of uu divided by a quantity linear in the margin, or divided by a quantity that is its square root. Near the boundary the square root is the larger denominator by a factor of 1/ε1/\sqrt{\varepsilon}, which is a million at ε=10−12\varepsilon = 10^{-12}, and the two errors differ by roughly that.

No angle escapes the margin

The Crawford number is the best of a family, and it is natural to suspect that the family was searched badly: perhaps some combination of XX and YY other than the one found keeps a healthy least eigenvalue.

For the chain of eight masses at three margins above critical damping: the least eigenvalue of each combination cos t·X + sin t·Y of the definite linearisation, divided by the margin ε, against the angle tWhere the curve is above zero the combination is positive definite. ε 10⁻²: peak 0.2288 ε at t = 0.337; at t = 0, 0.2158 ε; at t = 1.5, 0.0901 ε; ε 10⁻⁴: peak 0.2279 ε at t = 0.334; at t = 0, 0.2153 ε; at t = 1.5, 0.0901 ε; ε 10⁻⁶: peak 0.2279 ε at t = 0.334; at t = 0, 0.2153 ε; at t = 1.5, 0.0901 ε. Divided by ε, the three profiles coincide.the Crawford numberε 10⁻²: peak ÷ ε0.23ε 10⁻⁴: peak ÷ ε0.23ε 10⁻⁶: peak ÷ ε0.2300.40.81.21.600.050.10.150.20.25angle t of the combinationleast eigenvalue ÷ εε = 10⁻²ε = 10⁻⁴ε = 10⁻⁶three margins, one curveno angle escapes the margin
Fig. 2 For the eight-mass chain at three margins: the least eigenvalue of every combination cos t·X + sin t·Y of the definite linearisation, divided by the margin ε, against the angle t.

None does. Divided by the margin, the least eigenvalue of every combination traces one curve at ε=10−2\varepsilon = 10^{-2}, 10−410^{-4} and 10−610^{-6}: 0.2153 at t=0t = 0, a peak of 0.2279 at t=0.334t = 0.334, 0.0901 at t=1.5t = 1.5. The three curves cannot be told apart in the figure. So the entire definite range of the pencil shrinks in proportion to the margin, and the search was not the problem: the best angle is only six per cent better than the simplest, t=0t = 0, which is XX itself. The pencil is definite at every margin and barely definite at all of them, and the shortfall is a property of the chain’s distance from its boundary, not of the linearisation’s construction.

The other choice in the construction is μ, and there the certificate already does the best that can be done. Any μ in the window where Q(μ)Q(\mu) is negative definite builds a definite pencil, and the window is the interval between the two roots that collide. The certificate’s search, which minimises the largest eigenvalue of Q(μ)Q(\mu), lands at the window’s midpoint to three digits at both ε=10−2\varepsilon = 10^{-2} and 10−610^{-6}. Measured across the window at those margins, the Crawford number over ε\varepsilon is 0.043 a twentieth of the way in from either end, 0.171 a quarter of the way in, and 0.228 at the middle, the same at both margins. A μ chosen anywhere but the middle costs up to a factor of five more, and the middle is still linear in the margin. The certificate’s μ is the right one, and the right one is not enough.

Both pairs real, one far off

The two eigenvalues of the eight-mass chain that collide at critical damping, at ε = 10⁻¹², as the closed form gives them and as each route computes themclosed form: -0.347296846423 and -0.347295864245; companion: -0.347296845490 and -0.347295865178; definite pencil: -0.347296355138 and -0.346602323314. The axis is centred on -0.3472963553 and 0.00174 wide.closed formapart by 9.82·10⁻⁷companionapart by 9.8·10⁻⁷definite pencilapart by 6.94·10⁻⁴eigenvalue, an axis 0.00174 wide about -0.347296the closed-form pair is a micro-unit apartboth real, one far off
Fig. 3 The two eigenvalues of the eight-mass chain that collide at critical damping, at ε = 10⁻¹², as the closed form gives them and as each route computes them, on an axis 1.7·10⁻³ wide.

At ε=10−12\varepsilon = 10^{-12} the colliding pair sits near −0.347296-0.347296, and the closed form puts its two members 9.82⋅10−79.82 \cdot 10^{-7} apart. The companion route returns them 9.8⋅10−79.8 \cdot 10^{-7} apart, both real, at the right place to the resolution of this axis and beyond: its worst error over the whole spectrum is 2.7⋅10−92.7 \cdot 10^{-9}. The definite route returns them 6.94⋅10−46.94 \cdot 10^{-4} apart, both real, as it must. One of them is seven hundred times further from its partner than the closed form says. The route kept its promise exactly. Every eigenvalue is real; one of them is real and wrong in the fourth digit.

That is the shape of the trade at this boundary. The structured route guards a qualitative property and spends accuracy to do it. The unstructured route guards nothing and, measured, happens to keep the qualitative property as well as more of the accuracy.

Where the danger it guards against actually is

The case for the structured route rests on the companion route’s ability to return a complex pair, so the next measurement looks for one. The proportional chain is a weak test, because its matrices are all diagonal in one basis; so each chain is rotated by a random orthogonal congruence QT(⋅)QQ^{\mathsf T}(\cdot)Q, which leaves the spectrum and the class untouched and gives the solver a dense problem with no structure to find.

Twenty eight-mass chains rotated by random orthogonal congruences: on how many the companion route returns a complex eigenvalue pair, at four margins above critical dampingε 10⁻⁴: 0 of 20 reading every Schur block exactly, 0 at the default block tolerance; ε 10⁻⁸: 0 of 20 reading every Schur block exactly, 0 at the default block tolerance; ε 10⁻¹²: 0 of 20 reading every Schur block exactly, 0 at the default block tolerance; ε 0: 5 of 20 reading every Schur block exactly, 6 at the default block tolerance, largest imaginary part 5.3·10⁻⁸.ε = 10⁻⁴0 of 20ε = 10⁻⁸0 of 20ε = 10⁻¹²0 of 20ε = 05 of 20a complex pair only on the boundary itselfthe danger is a rounding wide
Fig. 4 Twenty eight-mass chains rotated by random orthogonal congruences: on how many the companion route returns a complex eigenvalue pair, at four margins above critical damping.

The count needs care, and the care is a finding of its own. A real Schur form’s 2 × 2 blocks hold complex pairs, and the routine that reads them off decides by a tolerance which subdiagonals count as zero; at its default of 10−1210^{-12} relative to the matrix, a genuinely complex pair whose block has a tiny subdiagonal would be read as two real numbers and hidden. So every block is read at tolerance zero, where a block is reported complex only if its discriminant is negative.

On twenty rotated chains at each of ε=10−4\varepsilon = 10^{-4}, 10−810^{-8} and 10−1210^{-12} the companion route returns no complex value on any run, read either way. At ε=0\varepsilon = 0, the boundary itself, where the colliding pair is an exact double root, it returns a complex pair on five of twenty, with an imaginary part up to 5.3⋅10−85.3 \cdot 10^{-8}, and on six at the default tolerance. The danger the guarantee guards against is real, and it is confined to a margin about as wide as the rounding: at ε=10−12\varepsilon = 10^{-12} the pair is already 10−610^{-6} apart, which is a hundred times more than the companion route’s perturbation of it, and it stays real.

Every length, the same order

At ε = 10⁻¹²: the worst relative error of each route on chains of four, eight and twelve masses4 masses: companion 9·10⁻¹⁰, definite 5.64·10⁻⁴, Crawford number 0.6495 ε, separation 1.748·10⁻⁶; 8 masses: companion 2.69·10⁻⁹, definite 0.002, Crawford number 0.2284 ε, separation 0.982·10⁻⁶; 12 masses: companion 2.45·10⁻⁹, definite 0.00114, Crawford number 0.1129 ε, separation 0.682·10⁻⁶.4 masses: companion9·10⁻¹⁰4 masses: definite5.64·10⁻⁴8 masses: companion2.69·10⁻⁹8 masses: definite0.00212 masses: companion2.45·10⁻⁹12 masses: definite0.00114bar: digits lost, from 10⁻¹⁶every length, the same order
Fig. 5 At ε = 10⁻¹², the worst relative error of each route on chains of four, eight and twelve masses, on a logarithmic bar from 10⁻¹⁶.

The comparison does not depend on the chain. At ε=10−12\varepsilon = 10^{-12} the companion route’s error is 9.0⋅10−109.0 \cdot 10^{-10}, 2.7⋅10−92.7 \cdot 10^{-9} and 2.5⋅10−92.5 \cdot 10^{-9} on four, eight and twelve masses, and the definite route’s 5.6⋅10−45.6 \cdot 10^{-4}, 2.0⋅10−32.0 \cdot 10^{-3} and 1.1⋅10−31.1 \cdot 10^{-3}. The constants move with the length — the Crawford number is 0.6498ε0.6498\varepsilon, 0.2279ε0.2279\varepsilon and 0.1130ε0.1130\varepsilon, the pair separation 1.75ε1.75\sqrt{\varepsilon}, 0.982ε0.982\sqrt{\varepsilon} and 0.682ε0.682\sqrt{\varepsilon} — and the powers do not. A class a longer chain takes away found the critical damping growing with the length; at a fixed relative margin from it, both denominators shrink with the length and neither changes its law.

Why structure did not help here

A spectrum that comes in reciprocal pairs is the case where a structured method is decisively better: a general solver computes the large half of a palindromic spectrum to full accuracy and the small half to seven digits, and a solver that pairs them recovers the rest. The structure there is a symmetry of the spectrum, and enforcing it removes an error the general solver makes. The structure here is a sign: every eigenvalue real. The general solver does not make the error the structure forbids, except within a rounding of the boundary, and the method that enforces it does so through a factorisation whose pivot is the margin itself.

Six routes to one spectrum found that linearisations equal in exact arithmetic differ in floating point by how they are reduced, and this is a seventh route with the same lesson, the one a backward-stable answer to a problem nobody asked put most sharply: a pencil can be exactly right, provably structured and backward stable in every step, and still divide by a number the problem has made small. The symmetric eigensolver at its heart is not the weak point; Jacobi computes the reduced matrix’s eigenvalues to full accuracy. The weak point is the reduction to it, a Cholesky of a combination whose least eigenvalue is 0.23ε0.23\varepsilon.

A code choosing between the routes has both denominators in hand before it computes anything, because the certificate’s search reports them. The first essay found that the window of μ that works is exactly as wide as the colliding pair’s separation, and that the well’s depth is a quarter of the margin; the Crawford number follows the depth. So the search that proves the spectrum real also says which route will compute it more accurately, and on every chain and margin measured here the answer is the one that does not enforce the proof.

What three chains do not show

One family: proportional damping on a uniform chain, where the closed form makes every error exact. With damping not proportional to the stiffness there is no closed form, and the comparison would need a reference computed in higher precision. One structured algorithm, the Cholesky reduction of the best combination; there are algorithms for definite pencils that avoid forming that Cholesky, working with the indefinite symmetric structure directly, and they are designed for exactly this weakness. One unstructured algorithm, the same real Schur form used throughout, with its convergence tolerance at 10−1410^{-14}. The complex-pair survey is twenty rotations at four margins; a margin between 10−1210^{-12} and zero, where the pair’s separation falls through the companion route’s perturbation of it, would locate the first complex pair more finely than this does.

Still open: a reduction that does not divide by the margin, and the margin where the pair turns complex

A definite route without the Cholesky. Methods for definite pencils that work with the indefinite matrix cos⁡t⋅X+sin⁡t⋅Y\cos t \cdot X + \sin t \cdot Y through an indefinite factorisation, or with hyperbolic rotations that preserve its inertia, do not divide by its least eigenvalue. The prediction with a sign is that a hyperbolic Jacobi method on this pencil, at ε=10−12\varepsilon = 10^{-12} on the eight-mass chain, returns the spectrum with a worst relative error no larger than ten times the companion route’s — so that the guarantee and the accuracy stop being a trade.

Where the first complex pair appears. The companion route moved the colliding pair by about 10−810^{-8} relative at ε=10−12\varepsilon = 10^{-12}, while the pair was 10−610^{-6} apart. The prediction is that on the twenty rotated chains the first complex pair appears at a margin between 10−1610^{-16} and 10−1410^{-14}, where the separation 0.98ε0.98\sqrt{\varepsilon} falls to the size of the companion route’s perturbation of it, and that no run returns one at 10−1310^{-13} or above.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

CholeskyCondition numberDefinite pencilDouble rootExact ground truthHyperbolic quadraticLinearisationQuadratic eigenvalue problem