The eigenvalue problem that is not linear

The circle a general solver leaves

A palindromic quadratic's eigenvalues come in reciprocal pairs, and on a real chain that made the small half one division from being right. A pair on the unit circle is the other case, and there reciprocity is a statement that the mode neither grows nor decays. A general solver owes that nothing: it moves unit-modulus eigenvalues off the circle by 10⁻⁷ at a leading factor's condition number of a million, and at a thousand it puts six of sixteen outside by more than rounding, which is a growing mode that is not there. A route through the definite pencil in λ + 1/λ stays within 2·10⁻¹⁶ at every conditioning, and its angles are nine decades better. Where two eigenvalues collide at λ = 1 the structure protects nothing, and both routes fail together.

Worth reading first: A spectrum that comes in reciprocal pairs.

A spectrum that comes in reciprocal pairs measured what a general solver does with a palindromic quadratic, λ2A+λB+A\lambda^2A + \lambda B + A. Such a quadratic reads the same backwards, so λ\lambda is an eigenvalue exactly when 1/λ1/\lambda is. The solver computes the large half perfectly and the small half to seven digits, and the small half is one division from being perfect too. That chain’s eigenvalues are all real. Its lesson was that a symmetry can be used rather than imposed, and that nothing beyond a division is needed.

There is another kind of palindromic spectrum, and it is the kind most physical problems have. When λ\lambda lies on the unit circle, 1/λ1/\lambda is its own complex conjugate, and the pair is already complete: a real matrix’s spectrum has the conjugate anyway. So the reciprocal pairing is automatic for those eigenvalues, the division has nothing to fix, and the property the structure imposes is a different one. It says the modulus is exactly one. In a discrete-time linear system that is the statement that the mode neither grows nor decays; in a vibrating rail, it is what separates a resonance from an instability. A computed modulus of 1+10−81 + 10^{-8} is a claim about what happens over a hundred million time steps. That number needs measuring separately from any question about the eigenvalue’s digits.

A problem whose spectrum is known

Dividing λ2A+λB+A\lambda^2A + \lambda B + A by λ\lambda gives (λ+1/λ)Ax=−Bx(\lambda + 1/\lambda)Ax = -Bx. Write μ=λ+1/λ\mu = \lambda + 1/\lambda. With AA positive definite and BB symmetric, μ\mu is an eigenvalue of a definite pencil and it is real. Then ∣μ∣<2|\mu| < 2 puts λ=e±iθ\lambda = e^{\pm i\theta} on the circle exactly, with μ=2cos⁡θ\mu = 2\cos\theta. And ∣μ∣>2|\mu| > 2 is a real reciprocal pair, the earlier essay’s case. That single substitution gives the structured route. It factors AA by Cholesky, solves a symmetric eigenproblem for μ\mu, and reads each λ\lambda from its μ\mu with a cosine and a sine. The modulus is one because cos⁡2+sin⁡2\cos^2 + \sin^2 is one, up to a single rounding.

For a general solver the same problem is a linearised eigenproblem of twice the size, passed to a real Schur factorisation that knows nothing about any of this. To score them, the problems are built backwards, so the true answers are known exactly: choose the angles, set C=Q diag(s)C = Q\,\mathrm{diag}(s) with QQ random orthogonal and singular values geometric down to 1/κ1/\kappa, and take A=CTCA = C^{\mathsf T}C and B=−CTdiag(μ)CB = -C^{\mathsf T}\mathrm{diag}(\mu)C. The order is eight, so there are sixteen eigenvalues and all of them belong on the circle. Everything is then read against κ\kappa, the condition number of the factor CC, and AA’s own condition number is its square.

How far each computed eigenvalue of a palindromic quadratic lies from the unit circle, by its angle, inside and outside, by a general solver and by the structured route, with the leading coefficient's factor at a condition number of 1000By the general solver, distance from the circle 2e-14, -1e-14, -3e-14, 7e-15, 2e-13, -5e-14, -6e-14, -3e-14 at increasing angle, where a positive value is a growing mode. By the structured route the largest is 2e-16.012310⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³the eigenvalue's angle, in radiansdistance from the unit circlegeneral, inside the circlegeneral, outsidestructuredorder 8 · κ(C) = 10³ · floored at 10⁻¹⁷a growing mode that is not there
Fig. 1 How far each computed eigenvalue lies from the unit circle, by its angle, inside and outside, by a general solver and by the structured route. The dial sets the condition number of the leading coefficient’s factor.

At no conditioning both routes are fine, and the dial’s first stop shows it. Every point is within a few units of roundoff of the circle. Raise κ\kappa to a thousand and the general solver’s points rise to about 10−1310^{-13}, on both sides of the circle, while the structured route’s do not move at all. Raise it to a million and the general solver’s largest is 2⋅10−72 \cdot 10^{-7}.

The general solver leaves the circle at the square of the conditioning

The largest distance of a computed eigenvalue from the unit circle against the condition number of the leading coefficient's factor, by a general solver and by the structured route, median of five drawsGeneral: 2e-15, 4e-15, 1e-14, 7e-13, 6e-11, 1e-8, 2e-7. Structured: 2e-16, 2e-16, 2e-16, 2e-16, 2e-16, 2e-16, 2e-16, at condition numbers 1 to a million.110¹10²10³10⁴10⁵10⁶10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵condition number of the factor of the leading coefficientlargest distance from the circlegeneral solverstructured routeorder 8 · five drawsmodulus one is exact by construction
Fig. 2 The largest distance of a computed eigenvalue from the unit circle against the condition number of the leading coefficient’s factor, by each route, median of five draws.

The general solver’s distance from the circle is 2⋅10−152 \cdot 10^{-15} at κ=1\kappa = 1, 10−1410^{-14} at 100, 7⋅10−137 \cdot 10^{-13} at a thousand, 6⋅10−116 \cdot 10^{-11} at 10410^4, 10−810^{-8} at 10510^5 and 2⋅10−72 \cdot 10^{-7} at 10610^6. Past the first few values that is about a factor of a hundred for each factor of ten, or the square of κ\kappa, which is AA’s own condition number. The linearisation inverts AA, and AA’s conditioning passes straight through. The structured route’s distance is 2.2⋅10−162.2 \cdot 10^{-16} at every value of κ\kappa. There is nothing to amplify, because its modulus is not computed from anything that was rounded by more than a single operation.

That is a large gap on a number that has a physical meaning. Backward stability provides no comfort here. A linearised solver is normwise backward stable on its pencil, so it has found the exact eigenvalues of a nearby quadratic. But “nearby” in that sense does not mean nearby in the palindromic class: the quadratic it has solved is no longer palindromic, its pairing has gone, and so a mode of exactly neutral stability has no reason to stay that way. A nearby problem of the wrong kind is about that distinction on a different structure, and the claim that fails here is its direct consequence.

And some of these points land on the wrong side. At κ\kappa of a thousand and above, a median of six of the sixteen computed eigenvalues lie outside the circle by more than 10−1410^{-14}, on the general route. On the structured route none do. A small inward move is a mode that decays a little too quickly. An outward one is a growing mode that was not in the problem.

How many time steps a computed mode that left the circle by the general solver's largest distance takes to double in amplitude, by the condition number of the leading coefficient's factorcondition number 1: 2.8e+14 steps; condition number 10: 1.7e+14 steps; condition number 100: 5.0e+13 steps; condition number 1000: 9.8e+11 steps; condition number 10000: 1.2e+10 steps; condition number 100000: 6.9e+7 steps; condition number 1000000: 3.6e+6 steps.10⁶10⁹10¹²10¹⁵κ(C) = 1κ(C) = 10¹κ(C) = 10²κ(C) = 10³κ(C) = 10⁴κ(C) = 10⁵κ(C) = 10⁶steps until a mode has doubleda mode that should neither grow nor decaymillions of steps is not forever
Fig. 3 How many time steps a computed mode that left the circle by the general solver’s largest distance takes to double in amplitude, by the condition number of the leading coefficient’s factor.

The practical size of that depends on how long a model is run. A modulus of 1+e1 + e doubles a mode’s amplitude after about 0.69/e0.69/e steps. At κ=1\kappa = 1 that is about 3⋅10143 \cdot 10^{14} steps, which nobody will reach. At κ=106\kappa = 10^6 it is under four million, which an ordinary time-domain simulation can reach in an afternoon. So a stability assessment read from such a solver can be wrong by a margin that some user’s run length will expose. A spectral radius that grows first looked at another way in which an eigenvalue’s modulus can mislead about growth, through transients and not through arithmetic; the two have to be kept apart, since here the true dynamics are entirely neutral.

It also keeps the frequencies

The modulus was the point of the construction, and the structured route’s keeping it is unsurprising. What was less obvious in advance is what happens to the angle, which a general solver might be expected to hold well, since it is a well-separated eigenvalue’s real information.

The largest error in an eigenvalue's angle against the condition number of the leading coefficient's factor, by a general solver and by the structured routeGeneral: 4e-15, 5e-15, 4e-14, 6e-12, 4e-10, 1e-8, 4e-6. Structured: 5e-15, 4e-15, 4e-15, 3e-15, 5e-15, 6e-15, 4e-15.110¹10²10³10⁴10⁵10⁶10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³condition number of the factor of the leading coefficientlargest error in the anglegeneral solverstructured routeorder 8 · five draws · true angles knownthe structure buys the frequencies as well
Fig. 4 The largest error in an eigenvalue’s angle against the condition number of the leading coefficient’s factor, by each route.

It does not. The general solver’s largest error in an angle goes from about 4⋅10−154 \cdot 10^{-15} with no conditioning to 6⋅10−126 \cdot 10^{-12} at κ=103\kappa = 10^3, and 4⋅10−64 \cdot 10^{-6} at 10610^6. The structured route’s stays between 3⋅10−153 \cdot 10^{-15} and 6⋅10−156 \cdot 10^{-15} the whole way across, and at the far end the two are nine decades apart. So at a large κ\kappa the vibration frequencies computed by the general solver have six correct digits, and those from the structured route have fourteen or fifteen.

The earlier essay found that “preserving a structure and using one are different acts”, and it preferred the use. On its chain the structured Cayley route cost accuracy in the large half, and it recommended printing the reciprocity and dividing. That was the right reading for that chain, since real pairs far from one are a case in which the general solver’s large half is perfect. On the circle there is no large half to rely on. All sixteen eigenvalues have modulus one, so none of them gets the benefit of being largest, and the general solver’s difficulty has no good half to be repaired from. This route is also not the same one that essay measured. The Cayley route needs a definite S2S_2 on real spectra and handles a different pencil; the μ\mu route needs AA definite. The advice that a structure-aware route is rarely needed was a statement about real pairs, and it does not extend to this case.

The cost of the route is small and the requirement is not. The route uses Cholesky on AA, one symmetric eigensolve, and a sine and cosine per eigenvalue, and it is cheaper than the linearisation by a factor of about eight. But it needs AA positive definite and BB symmetric, and that is a real limit on what it applies to. A general palindromic pencil, λ2AT+λB+A\lambda^2A^{\mathsf T} + \lambda B + A with AA unstructured, is the case the literature’s structured methods exist for, and they are much harder.

A larger order, and what the route gives up

Order eight is small for a vibration model, so the same construction was run at orders 4, 8, 16 and 32, with κ\kappa at one and at a thousand. The conditioning is what matters. At κ=1\kappa = 1 the general solver’s distance from the circle goes from 2⋅10−152 \cdot 10^{-15} to 6⋅10−156 \cdot 10^{-15} across that range, a slow rise of the kind any stable routine shows. At κ=103\kappa = 10^3 it is 2⋅10−132 \cdot 10^{-13}, 7⋅10−137 \cdot 10^{-13}, 10−1210^{-12} and 10−1210^{-12}, so the size does not add much to the conditioning’s effect. What grows is the count on the wrong side, at four of 8, eight of 16, eighteen of 32 and thirty of 64. Close to half of every spectrum comes back outside the circle, which is what one would expect if the error’s sign is unrelated to anything in the problem. A code that scans a model of this size for its largest modulus will find a value above one every time.

The structured route’s distance stays at 2.2⋅10−162.2 \cdot 10^{-16} at every order. Its angles are a different matter, and the comparison there is not one-sided. At κ=1\kappa = 1 its angle error rises with the order, from 7⋅10−167 \cdot 10^{-16} to 5⋅10−155 \cdot 10^{-15}, 2⋅10−142 \cdot 10^{-14} and 9⋅10−149 \cdot 10^{-14}. The general solver holds about 10−1410^{-14} there, so at order 32 and no conditioning it is the structured route that is behind, by a factor of about nine. The likely cause is near the ends of the spectrum. As the order rises, the outermost angles lie closer to 00 and π\pi, μ\mu lies closer to ±2\pm 2, and taking an arccosine is conditioned by one over the sine of the angle, an effect the collision below shows at its extreme.

So the structured route has not simply beaten the general solver at everything. It holds the modulus at rounding without qualification. It holds the angle better wherever the leading coefficient’s conditioning is large, by nine decades at κ=106\kappa = 10^6, and it is modestly behind on an already well-conditioned coefficient at a large order. At κ=103\kappa = 10^3 the two are again far apart: 10−1110^{-11} against 8⋅10−148 \cdot 10^{-14} at order 32.

Where the structure buys nothing

Every argument above treats eigenvalues well away from each other. The interesting part of a palindromic spectrum, physically, is where two eigenvalues on the circle meet at λ=±1\lambda = \pm1 and leave along the real line. That is the point where a stable mode turns unstable, and it is the place a person using such a solver most wants a right answer.

As two eigenvalues approach λ = 1 along the circle, the median relative error in their angle by each route, against their separation in μGeneral: 7e-15, 4e-14, 7e-13, 6e-12, 9e-11, 7e-10, 3e-9, 4e-8, 5e-7, 9e-6, 5e-5, 5e-4, 4e-3, 3e-2, 4e-1, 1e+0. Structured: 2e-15, 9e-14, 8e-13, 7e-12, 3e-11, 1e-9, 5e-9, 8e-8, 3e-7, 3e-6, 2e-5, 4e-4, 3e-3, 6e-2, 3e-1, 1e+0, at separations from a tenth to ten to the minus sixteen.10⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1separation, 2 − μrelative error of the anglegeneral solverstructured routeorder 6 · κ(C) = 10 · eight drawsthe collision defeats both
Fig. 5 As two eigenvalues approach λ=1\lambda = 1 along the circle, the median relative error in their angle by each route, against their separation 2−μ2 - \mu.

For that case one pair is set at μ=2−δ\mu = 2 - \delta and the separation runs down to 10−1610^{-16}. Near the collision the angle is about δ\sqrt{\delta}, and its relative error by either route grows as one over δ\delta: 10−1410^{-14} at δ\delta of a tenth, 8⋅10−88 \cdot 10^{-8} at 10−810^{-8}, 4⋅10−44 \cdot 10^{-4} at 10−1210^{-12}, and about one at 10−1610^{-16}. The two curves in the figure can barely be told apart. The structured route has no advantage at all near a collision, since what it computes accurately is μ\mu, to one unit of 22; and μ\mu to one unit near two is an angle whose square has an absolute error of that size. The conditioning of θ\theta as a function of μ\mu is the whole of the problem, and neither route can touch it.

So the pair’s fate at the end is close to a coin toss for both.

On how many of eight draws the pair approaching λ = 1 comes back real, off the circle, by each route, at the four smallest separationsseparation 1e-13: general 0, structured 0; separation 1e-14: general 0, structured 0; separation 1e-15: general 0, structured 3; separation 1e-16: general 2, structured 7.02468separation 1e-13general solver0structured route0separation 1e-14general solver0structured route0separation 1e-15general solver0structured route3separation 1e-16general solver2structured route7draws of eight with the pair on the real lineorder 6 · κ(C) = 10structure does not protect the collision
Fig. 6 On how many of eight draws the pair approaching λ=1\lambda = 1 comes back real, off the circle, by each route, at the four smallest separations.

Down to 10−1410^{-14} both routes keep the pair complex on all eight draws. That is the general solver’s case for a reason worth noting: it computes a real two-by-two block, and a complex pair in such a block has a modulus equal to the square root of the block’s determinant, so it can be off the circle only if the determinant is. At 10−1510^{-15} the structured route has lost it on three draws of eight and the general solver on none, and at 10−1610^{-16} on seven and two. The structured route loses first, because rounding only has to carry μ\mu past two, and that is a one-bit decision, with nothing in the pencil to hold it back.

A property imposed exactly away from a collision is still a property that a collision takes away. This is the same result as real or complex by the sign of an error on a hyperbolic quadratic, where a real pair’s separation falls below what any route can decide. Whether the real line or the circle is the correct place for a pair within 10−1510^{-15} of λ=1\lambda = 1 is not a question floating-point arithmetic can answer, and neither route’s answer is more than a guess there. A guarantee paid for in digits makes the point about a certificate for a neighbouring class: the guarantee stops at some margin, and no route’s result ever passes beyond it.

What a person with such a model should do

The operational summary is short. If AA is definite and BB symmetric, the eigenvalue problem can be solved in the variable μ\mu, with one symmetric eigensolve. The cost is less than the linearisation’s, and at any conditioning the result stays on the circle and gets the frequencies right. Print μ\mu rather than λ\lambda: it is real, its distance from ±2\pm2 measures closeness to a collision directly, and a code that sees μ=1.9999999999999\mu = 1.9999999999999 can state how few digits the corresponding angle has. A code that has only a general solver should print the largest distance from the circle, which needs no reference and is a measurement of the solver’s damage on this problem, just as the earlier essay’s printed reciprocity was.

Two ways of writing one quadratic as a pencil have been compared by their backward errors, and none of those routes has the structure to return modulus one. Each has its digits limited by AA’s conditioning, and if AA is badly conditioned there is an extra reason to avoid inverting it. And every eigenvalue real and a test that says so is the hyperbolic sibling of this page. There also, an eigenvalue’s kind can be known in advance from the structure, a general solver will not respect it, and a route exists that does.

The limits of this measurement

The order is eight and six, and the angles are placed well away from each other except for the one approaching a collision. The factor’s singular values are geometric and its orthogonal part random, so AA is badly conditioned with no particular structure, and BB shares its congruence. That is what makes μ\mu exact to begin with: a matrix BB unrelated to AA would have a less obliging μ\mu, whose own conditioning is that of the pencil. In the construction used here the pencil’s eigenvalues are perfectly conditioned at every κ\kappa, a property it may be unfair to credit to the route. The general solver has been run with its default leading reduction and no scaling; a scaled linearisation, as the scaling essays measure on other problems, would reduce some of this damage, and how much is not known from these numbers.

Still open: a pencil that is not a congruence, and a scaled linearisation

A BB unrelated to AA. The construction here gives μ\mu a conditioning of one by making BB a congruence of a diagonal. The prediction with a sign is that with BB a random symmetric matrix scaled so that every μ\mu is below two, the structured route’s angles lose accuracy in step with the pencil’s own conditioning, about κ\kappa, and no longer hold at 10−1510^{-15}. It stays on the circle regardless, to 2⋅10−162 \cdot 10^{-16}, because that is not a statement about μ\mu at all, and the general solver’s distance from the circle stays near κ2u\kappa^2 u.

A scaled linearisation. The damage comes through A−1A^{-1}. The prediction is that balancing the linearised pencil lowers the general solver’s distance from the circle by a factor of at most κ\kappa, so that at κ=106\kappa = 10^6 it is still above 10−1210^{-12}, since scaling repairs a coefficient’s norm and not its conditioning.

What links here

Computed from the collection, not written here: the essays that point at this one.

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.

Generalised eigenvalue problemPalindromic quadraticQuadratic eigenvalue problemReciprocal pairStructure-preservingStructured backward error