The angles belonged to the coordinates
Worth reading first: A spectrum that comes in reciprocal pairs.
The circle a general solver leaves took a palindromic quadratic, with positive definite and symmetric, whose eigenvalues all lie on the unit circle. Dividing by turns it into , a definite pencil in , and a that is real and below two in size puts its pair of ’s exactly on the circle. A general quadratic solver, a linearisation and a nonsymmetric Schur form, owes the circle nothing and left it by at a condition number of a million. The route through , a Cholesky factorisation of and a symmetric eigensolve, stayed on it to . And its angles, the frequencies of the modes the quadratic describes, were nine decades better: against .
That essay knew its construction was a special one. It built and , so that every was known exactly, and it signed a prediction about the general case: with a random symmetric matrix, scaled so that every is below two, “the structured route’s angles lose accuracy in step with the pencil’s own conditioning … and no longer hold at ”, while the route stays on the circle regardless and the general solver’s distance from it stays where it was.
Half of that is right and the other half is right for a different reason. The structured route keeps the circle on every problem measured here. It loses its angles too, as predicted, but not because is unrelated to . It loses them because is no longer diagonal, and in the earlier construction it always was.
Finding μ when nothing is known in closed form
A random gives up the closed form for , and a measurement of angle errors at needs a reference better than that. There is an exact one. By Sylvester’s law of inertia, the number of eigenvalues of the pencil below a number equals the number of negative eigenvalues of the symmetric matrix , and that equals the number of sign changes along its leading principal minors. Every entry of and is a double, so every entry of is an exact rational for a dyadic , and fraction-free elimination on the scaled integers gives the minors exactly. Bisection on then pins each to about , with no rounding anywhere. On the earlier construction it agrees with the ’s the matrices were built from to , one unit in the last place, at every , so the rounding in forming and moved no by more than that; on the random constructions there is no closed form to compare with, and the bisection is the only reference there is. That reference is what the four constructions below are scored against.
The constructions are the earlier essay’s and three variations on it, all of order 8, at from 1 to , five draws each:
- diagonal , a congruence: the earlier construction exactly, with orthogonal and geometric down to ;
- diagonal , random: the same , and a symmetric matrix of independent Gaussians scaled so the largest is 1.9;
- full , a congruence, and full , random: both problems rotated by a second random orthogonal matrix , so that has the same eigenvalues and is full.
The rotation is a congruence, so it changes no eigenvalue of the quadratic. It changes the coordinates the problem is written in.
The earlier A was diagonal
The reason for the second pair is in one line of algebra. If with orthogonal, then . The earlier construction’s was a diagonal matrix, and its condition number dial was a dial on how unevenly its diagonal was scaled.
Computed, the earlier ’s largest off-diagonal entry is to of the geometric mean of its two diagonal neighbours, at every : rounding in forming , nothing else. The rotated ’s is at and , a matrix whose coordinates are coupled about as completely as a positive definite matrix allows. At both are the identity and the rotation does nothing.
A diagonally scaled problem is one that the route through handles exactly in a sense the general solver does not. Cholesky of a diagonal matrix is a square root of each entry. The route then forms , which for diagonal divides each entry of by two numbers, with an error of one rounding per entry relative to that entry, whatever their sizes. So the symmetric matrix the eigensolver sees is the true one to relative rounding entry by entry, and it is well scaled: its eigenvalues are the ’s, all below two. Scaling is invisible to this route. The general solver linearises the quadratic into a pencil of twice the size and reduces it with orthogonal transformations, which mix rows of very different scale and pay for the scale in the norm.
On the diagonal A, B makes no difference to the route
At the dial’s first two stops, the two diagonal constructions, the route through holds its angles between and at every . The random the prediction was about changes nothing: at , against for the congruence. So the first half of the prediction fails as stated. A unrelated to does not cost the route its angles while is diagonal.
The general solver, on the other hand, is transformed by the random on the diagonal : its angles hold at and it stays on the circle to , where with the congruence it lost both, in angle and in modulus. The congruence is graded exactly as is, with entries that span twelve decades, and a random scaled to keep below two is not graded at all; it is small. Its ’s spread geometrically from 1.9 down to , so most of its eigenvalues sit near , and the linearisation the general solver builds from a small ungraded and a diagonal is one it can reduce accurately. The general solver’s trouble in the earlier essay came from and being graded together.
Rotate A and the angles go as the square of its conditioning
Turn the dial to the two full constructions and the route through loses its angles as fast as the general solver does. On the full with a congruence its largest angle error is at , at and at , a fitted slope of 1.91 in ; with a random it is at , a slope of 2.01. The general solver’s angles on the same problems are and . The nine decades between the routes are gone. What is left is a factor of one and a half to two in the route’s favour, which no one would choose a method for.
The prediction said the angles would be lost “in step with the pencil’s own conditioning, about ”. Its exponent was off by one: the loss is , which is , since . Its mechanism was off entirely. The loss does not need an unrelated , and it does not happen without a full .
The condition number, and when it is attained
The normwise condition number of an eigenvalue of a definite pencil is for an eigenvector normalised so that , and on all four constructions it grows like : about 4 at and to at . It is the same number on the diagonal and the full , because rotating a problem does not change its normwise sensitivity. The rounding a computation actually commits does depend on the coordinates. On the full the route’s error in rises to within two decades of the bound, and at against a bound of and . On the diagonal it stays at , ten decades under the same bound. A condition number answers the question of what an arbitrary perturbation of a given size could do; on a diagonally scaled problem the route’s perturbations are not arbitrary, they are relative to each entry, and the normwise bound overstates them by the whole of the scaling.
So the earlier essay’s sentence, that its construction gave “a conditioning of one”, was wrong in the letter and right in effect. The conditioning was throughout. What was one was the conditioning under perturbations the route actually makes, and that was because was diagonal, not because was a congruence.
The circle survives every construction
The other half of the prediction holds without qualification. The route through keeps every eigenvalue on the circle to one or two units of roundoff on all four constructions at every : or , the rounding in a cosine and a sine. That is not an accuracy, it is a consequence of the route’s shape: a real below two in size is turned into , which has modulus one whatever is. On the full the route’s angles are as wrong as the general solver’s, but its eigenvalues still lie on the circle, so a mode it reports as undamped is undamped, at a slightly wrong frequency.
The general solver leaves the circle on three constructions of four, and how far depends on . With a congruence it leaves by on the diagonal and on the full one; with a random , by on the full and not at all on the diagonal one. The prediction said the general solver’s distance would stay near its earlier value; on a random it falls by two decades or more. Its distance from the circle reads the grading of with , and its angles read the conditioning of ; the route through reads only the second, and only in its angles.
All four at the far end of the dial
Read at , the table has one constant and three variables. The constant is the route’s distance from the circle, at the bottom of every group. The route’s angles depend on whether is diagonal: if it is, if not. The general solver’s angles depend on that and on : they are good only on the diagonal with an ungraded . And its distance from the circle depends on ’s grading most of all.
Why a rotation is enough to undo it
It is worth being precise about what the rotation changes, because nothing about the problem’s mathematics moves. The quadratic has the same eigenvalues as and eigenvectors rotated by , and every quantity a theorem about it could state is the same. What changes is which numbers are stored. A diagonal with entries from one down to is stored as eight numbers, each to relative rounding. The rotated is stored as sixty-four numbers of size about one, each to absolute rounding near , and its smallest eigenvalue, , is now a difference between those numbers rather than one of them. Ten of its sixteen digits are below the rounding of the entries that carry it.
The route through cannot recover digits the stored matrix does not hold. Its Cholesky factor of the rotated is backward stable, so it is the exact factor of a matrix within of entry by entry, and a perturbation of that size moves ’s smallest eigenvalue by about , a relative change of . That is the size of the damage the stored matrix has already done before any eigensolver runs, and the route’s angle errors of a few parts in a million sit inside it. On the diagonal the same backward stability is a perturbation of each entry relative to itself, which moves the smallest eigenvalue by a relative . The algorithm is identical. The data it is given is not.
The number that moves when the problem does is the general form of this observation for quadratic eigenproblems, a condition number that depends on what is being perturbed. The four constructions here put that into a single comparison: the same eigenvalues, the same route, digits that are present or absent according to how the matrices were written down.
What a person holding such a model should take from it
A structural engineer’s mass and stiffness matrices are rarely diagonal, and they are rarely graded across twelve decades either. The model problem for this whole family is a damped vibration, and six routes to one spectrum showed how much a linearisation’s choice moves the answer on a well-scaled one; a mass matrix with lumped masses is diagonal by construction, and a consistent one is full. Where they are, as in a model whose degrees of freedom carry different units, the scaling that buys ten orders showed a change of variables recovering what a general solver had lost, and a backward stable answer to a problem nobody asked showed the loss hiding behind a residual at rounding. Both of those are about coordinates, and this measurement says the earlier essay’s nine decades were about coordinates too. A diagonal scaling of is exactly what the route through removes for nothing, and exactly what a general solver pays for.
What the route offers on a problem that is badly conditioned in a way no scaling removes is the circle, and that is a real property. A computed spectrum with some eigenvalues a hair outside the unit circle describes modes that grow; one with all of them on it describes modes that do not. A simulation that steps a model forward many times will see the difference long before it sees a wrong frequency. A spectrum that comes in reciprocal pairs began this line with the reciprocity on a real chain, and its advice to use a structure rather than preserve it still stands, with the qualification this adds: the structure being used here is the reality of , and what it buys is a modulus, not a digit of frequency. Every eigenvalue real, and a test that says so drew the same distinction for hyperbolic quadratics, where a Cholesky that completes is a certificate of real eigenvalues and not of accurate ones, and a guarantee paid for in digits priced it: the route that guarantees the structure gave up accuracy to the route that merely happened to respect it.
A practical rule follows. Scale to unit diagonal before choosing a route, which costs a division per entry and changes no eigenvalue. If the scaled is well conditioned, either route will do and the general solver may as well be used. If it is still badly conditioned, the route through will not give better frequencies than a general solver, but it will give eigenvalues that are exactly on the circle, and for a model whose purpose is to say what grows that may be the only digit that matters.
What eight unknowns and five draws do not decide
The order is eight, the draws are five, and each reading is a median, so a single draw’s worst case is not in these numbers. The rotation was a random orthogonal matrix; a structured rotation, or an that is banded rather than full, would sit between the diagonal and full cases and this does not say where. Only one scaling of the random was measured, the one that puts the largest at 1.9; a scaled so that several ’s approach two would bring pairs near the collision at , where the earlier essay found the structure protecting nothing. And the exact reference is exact for the stored and , which is the right reference for an accuracy measurement and says nothing about errors in forming them.
Still open: scaling first, and a B that grades the other way
Unit diagonal, then the general solver. The account here says the general solver’s loss on the full constructions is , not a scaling. The prediction with a sign is that scaling to unit diagonal before the linearisation leaves the general solver’s angle error on the two full constructions within a factor of three of its unscaled value at , while on the diagonal-congruence construction it removes the loss entirely, to below , and brings it back onto the circle to .
A B graded against A. On the diagonal a congruence is graded with and a random not at all. A graded in the opposite order, large where is small, is the remaining case. The prediction is that the route through still holds its angles at there, since the scaling is still diagonal, and that the general solver leaves the circle by more than it did with the congruence, at least at , because the linearisation then mixes the largest entries of one coefficient with the smallest of the other.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A perturbation that keeps the symmetry — both name palindromic quadratic, quadratic eigenvalue problem, reciprocal pair, structure-preserving
- A class a longer chain takes away — both name condition number, quadratic eigenvalue problem
- Two matrices and one problem — both name condition number, generalised eigenvalue problem
Named objects
A flat tag is an object no other essay names yet.
Condition numberGeneralised eigenvalue problemPalindromic quadraticQuadratic eigenvalue problemReciprocal pairStructure-preserving