Six routes to one spectrum
Worth reading first: A matrix that depends on its own eigenvalue · The exact answer to a nearby problem.
There is a family of essays on this site with one shape. Two procedures are the same algebra written in a different order; a derivation cannot tell them apart; and a computer can. Two Gram–Schmidts is the original — classical and modified, the same projections in a different sequence, returning 10⁻¹⁵ and 1 for the same measurement. The road that squares the problem is the same shape for a least-squares fit. One sequence and two recurrences is it for a Krylov method.
This is that essay for a quadratic eigenvalue problem, and it has an extra turn in it: there are six procedures rather than two, and on the problem a reader would naturally test them on, none of them can be told from any other.
The six
Three linearisations. The first companion form C₁, which every textbook writes; a second companion form which puts the identity where C₁ puts K; and a symmetric member of the DL(Q) family, λ[[M,0],[0,−K]] + [[C,K],[K,0]], which is symmetric whenever M, C and K are and is therefore the one a structural engineer reaches for.
Two reductions. A linearisation is a pencil λA₁ + A₀, and a Schur factorisation wants a single matrix, so one of the two coefficients has to be inverted:
- leading — form −A₁⁻¹A₀, whose eigenvalues are λ. The default.
- trailing — form −A₀⁻¹A₁, whose eigenvalues are 1/λ, and invert them at the end. The route a code takes when the eigenvalues near zero are the ones wanted, because it sends them to the large end of the spectrum where a Schur factorisation resolves them best.
Six combinations, all of them exact in exact arithmetic, all of them ordinary.
Two of the six are the same matrix
The first thing the measurement shows is not about accuracy at all.
Under the leading reduction, the symmetric linearisation and the first companion form reduce to the same matrix. Write it out: for the symmetric form A₁ = [[M,0],[0,−K]] and A₀ = [[C,K],[K,0]], so
−A₁⁻¹A₀ = −[[M⁻¹, 0], [0, −K⁻¹]] [[C, K], [K, 0]] = [[−M⁻¹C, −M⁻¹K], [I, 0]],
which is exactly what C₁ gives. The two pencils are different objects — one is symmetric and the other is not — and the inversion throws the difference away. Whatever a symmetric linearisation is worth, it is worth it only to a method that keeps the pencil, which means QZ rather than QR, and the price of that is a factor of two or three in work.
Measured, the two routes agree to the last digit at every stop, which is the confirmation that this is an identity rather than a coincidence. The distinction between them survives only under the trailing reduction, where the matrices being inverted are genuinely different: A₀ is symmetric indefinite for the symmetric form and unsymmetric for C₁.
What the comparison anybody would run reports
Take the six, run them on the damped chain in sensible units, compare each computed spectrum with the closed form. The forward errors are
4.4·10⁻¹⁵ … 7.5·10⁻¹⁴,
a spread of seventeen at the fourteenth digit. That is noise. Not “small enough to ignore” — noise, in the sense that a different seed for the eigenvector iteration or a different compiler would reorder them. There is nothing in it to read.
Now the same six at a change of units of 10⁶:
| route | forward error |
|---|---|
| first companion, leading | 5.5·10⁻⁶ |
| symmetric, leading | 5.5·10⁻⁶ |
| symmetric, trailing | 4.1·10⁻⁵ |
| first companion, trailing | 4.6·10⁻⁵ |
| second companion, leading | 4.3·10⁻⁵ |
| second companion, trailing | 2.2·10⁻⁴ |
A spread of 41, at the fifth digit, in a stable order. Now there is something to read: the second companion form is worse than the first by about eight, the trailing reduction is worse than the leading by about eight, and the two effects compound.
And the whole table is wrong. Every one of the six has lost ten digits, because the units are badly chosen and the previous essay fixes that with two lines. The best route on this problem is six orders worse than the worst route on the scaled one.
Which is the ordering, and it is the finding
That is the practical content of the essay, and it is worth stating flatly because it is the kind of thing that gets the wrong answer from intuition. There are two knobs. One of them is worth a factor of forty and the other is worth ten orders of magnitude. Fix the units first.
It is also worth noticing what the comparison of spectra could and could not have reported. On the well-scaled problem it reports noise, so a reader who tested there would conclude the choice is free. On the badly scaled problem it reports a real ordering — and a reader who tested only there would conclude that the linearisation is the thing to get right, which is exactly the wrong lesson from the same data. The measurement that separates them is the one that varies the units and holds everything else fixed, which is the shape this site keeps arriving at: a comparison needs a control, and the control here is a change of variable that is exact.
Why the second companion form is the worse one
There is a reason, and it is visible in the norms rather than in the algebra.
C₁ places an identity block where the second companion form places K. So ‖A₀‖ for C₁ is governed by max(‖C‖, ‖K‖, 1), and for the second form by max(‖C‖, ‖K‖) with a K in a second place. When the coefficients are balanced the two are nearly identical; when ‖K‖ is far from one, the second form concentrates more of the imbalance into the matrix being factorised. Measured at γ = 10⁶: ‖A‖ is 2.83 for the first form and 6.78 for the second under the leading reduction, and 8.7·10¹² against 2.8·10¹² under the trailing one. The condition numbers of the two matrices are 8.3·10¹² and 3.9·10¹², within a factor of two of each other — so the difference in the answers is not explained by the conditioning of the matrices being factorised, which is the first thing anybody would check.
What explains it is the same thing that explains the whole field: the map from a perturbation of the linearised matrix back to a perturbation of the three coefficients differs between the forms, and it is worse where the identity blocks are outnumbered.
The trailing reduction, and when it is the right one
The measurement above makes the trailing reduction look like a mistake, and on this problem it is. It is not one in general, and the reason is the one it was invented for.
A Schur factorisation resolves the large end of a spectrum first and best: the smallest eigenvalues of a matrix whose spectrum spans twenty decades come back with a relative error governed by the largest of them. If the eigenvalues wanted are the small ones — the low-frequency modes of a structure, which is nearly always what is wanted — then inverting the problem so that they become the large ones is the correct move, and it is the same idea as the shift-and-invert step in restarting is a filter.
What the measurement here says is narrower and still useful: on a problem whose spectrum is not widely spread, the trailing reduction costs a factor of eight and buys nothing. The reciprocal family where it buys a great deal is a spectrum that comes in reciprocal pairs, where the small half of the spectrum is exactly the reciprocal of the large half and taking it that way is worth seven orders.
What a linearisation has to be, and why it is not just any pencil
The word is doing precise work and it is worth unpacking once, here rather than in the field’s first essay, because this is where six different ones are being compared.
A pencil L(λ) = λA₁ + A₀ of size 2n is a linearisation of Q when there exist matrix polynomials E(λ) and F(λ) with constant nonzero determinants — unimodular, in the same sense the descriptor pencil essay uses the word — such that
E(λ) L(λ) F(λ) = [ Q(λ) 0 ]
[ 0 I ].
The equality is between polynomial matrices, not between numbers, and that is what makes it stronger than “same eigenvalues”. It forces the elementary divisors to match, so a double eigenvalue of Q is a double eigenvalue of L, a defective one is defective to the same degree, and the Jordan structure carries across intact.
Why insist? Because without it, a linearisation could split a repeated eigenvalue into two simple ones, and a reader looking at two nearby computed numbers would have no way of telling a genuine pair from an artefact of the reformulation. All three used here are linearisations in the strict sense. So when the slider in a matrix that depends on its own eigenvalue walks two eigenvalues into a collision, the collision is a collision in every one of the six routes — and the half of the digits it costs, measured in every eigenvalue real, is a property of the problem rather than of any route to it.
Six routes and one eigenvector
Nothing above has mentioned eigenvectors, and the six differ there too, in a way that is easy to miss.
C₁’s eigenvector is [λx; x], so x can be read from either half. The second companion form’s is [x; Kx/λ], so the top half is the one wanted and the bottom carries a K in it. The symmetric form’s is [x; x/λ]. Under the trailing reduction every one of those is recovered from a vector belonging to 1/λ rather than λ, which exchanges the two halves’ roles again.
Six routes, and each of them offers two candidate eigenvectors with different backward errors, differing by a factor of |λ| — which on the badly scaled problem is 10⁻⁸. A library that takes a fixed half is leaving that factor on the table at every eigenvalue in the wrong group. The measurements in this field always take the better half, deliberately, so that the findings survive the most favourable reading of the method; a code that does not have a closed form to check against can take both and keep the one whose η is smaller, which costs two matrix–vector products.
What is the same across all six
It is worth listing what does not vary, because the list is longer than the one that does and it is what makes the comparison fair.
Every route computes the same 2n eigenvalues in exact arithmetic. Every route is backward stable for its own matrix, at the rounding level, at every stop — the Schur factorisation does not know which linearisation it was handed and its error analysis does not care. Every route inherits the same problem-level conditioning: κ for the quadratic is 4.98 whichever route is used, because it is a property of Q and the routes are all routes to Q.
And every route is destroyed by the same thing. At γ = 10⁸ all six have lost every digit; at γ = 1 all six are correct to fourteen. There is no route that is robust to badly chosen units, which is worth knowing precisely because a reader offered six options will look for the one that solves the problem. None of them does. Two lines of scaling do.
The one comparison that is not available
A reader might reasonably ask for the obvious experiment: perturb the coefficients, run all six, and see which one’s answer moves least. That would be a direct measurement of which linearisation inherits the least sensitivity, and it is not what is drawn here.
The reason is that it measures the wrong thing. A perturbation of (M, C, K) is a perturbation of the problem, and every route inherits it identically, because they all have exactly the eigenvalues of the perturbed quadratic. What differs between the routes is the perturbation each one manufactures out of the rounding in its own arithmetic, and the only way to see that is to compare against an answer that is exactly known. Which is why every number in this field is measured against a closed form and none of them against a better computation — a habit this site has had since an answer that is known and that this field needs more than any before it.
The seventh route, which is not on the list
Everything above forms a 2n × 2n object and factorises it. There is a route that does not, and it belongs in the list even though it is not measured here: build a subspace directly from the coefficients, project the quadratic onto it, and solve a small quadratic instead of a large matrix. That is a Krylov space for a problem that is not linear, and its arithmetic never forms a linearisation at all.
It is the right route when n is large enough that a dense 2n × 2n factorisation is out of reach, which is the ordinary case in the application this field comes from — a finite-element model of a damped structure has n in the hundreds of thousands and wants twenty eigenvalues near zero. What it inherits from this essay is the ordering: the subspace method is handed the same coefficients and the same units, and scaling them is as free and as necessary there as it is here.
What to take from six numbers that agree
The finding a reader should carry is not the ranking. It is that the experiment that would naturally be run to establish the ranking cannot see it.
Six spectra, on a problem in sensible units, agreeing to fourteen digits, is a measurement with no information in it — and it is the measurement anybody would make, because a well-scaled test problem is what a careful person constructs. The thing that has to vary for the difference to appear is the one nobody thinks of as a variable at all, since it is a change of units and changes of units are supposed to be free.
That is the same trap the site’s oldest essay is about, one level up. A residual can be small for a computation that has lost every digit; here a comparison of two computations can be empty for a choice that costs a factor of forty. In both cases what is missing is an answer known independently of the arithmetic being tested, and in both cases the fix is the same: construct the problem so that the truth is a closed form, and measure against it.
At other settings
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The roots are not the coefficients — both name backward error, companion form, condition number, matrix polynomial
- The units that overflow before the answer does — both name matrix polynomial, quadratic eigenvalue problem, scaling
- Two condition numbers of one matrix — both name backward error, condition number, scaling
- A condition number scaling cannot move — both name backward error, condition number
- A condition number sent to infinity — both name backward error, condition number
- A nearby problem of the wrong kind — both name backward error, condition number
Named objects
A flat tag is an object no other essay names yet.
Backward errorCompanion formCondition numberLinearisationMatrix polynomialQuadratic eigenvalue problemScalingSchur form