sep(A, B) and the smallest |λᵢ(A) + μⱼ(B)| as the departure from normality grows, n = 6
At its defaults it draws sep(a, b) and the smallest |λᵢ(a) + μⱼ(b)| as the departure from normality grows, n = 6. A and B are upper triangular with diagonals 1, 2, …, 6 and μ above them, so every eigenvalue sum is at least 2 at every point on the axis and the flat line is exact rather than nearly flat. sep — the smallest Frobenius norm of AX + XB over X of unit Frobenius norm, and the reciprocal of the amplification a perturbation of C receives — starts equal to the gap at μ = 0, where the matrices are normal, and falls to 9.47·10⁻⁴ at μ = 8. The number a reader is invited to consult is the one that does not move.
sep-vs-gap is one function in lib/figures/sylvester.js —
matrix equations — the n²×n² coefficient matrix nobody forms, and sep. Everything below came out of it during this build, at
arguments taken from the essays rather than invented for this page. A figure here is the
figure a reader meets in an essay, and if the generator changes, this page changes with it.
At its defaults
Drawn even though every essay passes arguments — which on this site is every essay, at 100% of placements since the standard pass. A default nothing exercises is a trap for the next essay to call this with none, and this is the page where a default that has drifted from the figures around it becomes visible.
A and B are upper triangular with diagonals 1, 2, …, 6 and μ above them, so every eigenvalue sum is at least 2 at every point on the axis and the flat line is exact rather than nearly flat. sep — the smallest Frobenius norm of AX + XB over X of unit Frobenius norm, and the reciprocal of the amplification a perturbation of C receives — starts equal to the gap at μ = 0, where the matrices are normal, and falls to 9.47·10⁻⁴ at μ = 8. The number a reader is invited to consult is the one that does not move.
show: "sb-ratio"
The arguments are the ones A backward error the answer does not feel passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
n = 8, B = −A + δI, X commuting with A, C = δX; median over three seeds. Dashed: twice the square root of two times Higham's μ for the same equation. C = 0.5 X: κ 10^0 4.06, κ 10^2 5.72, κ 10^4 5.15, κ 10^6 5.6, κ 10^8 5.48; C = 10⁻² X: κ 10^0 4, κ 10^2 10.7, κ 10^4 48.8, κ 10^6 137, κ 10^8 185; C = 10⁻⁴ X: κ 10^0 4, κ 10^2 6.74, κ 10^4 283, κ 10^6 4989, κ 10^8 9306; C = 10⁻⁶ X: κ 10^0 4, κ 10^2 7.44, κ 10^4 221, κ 10^6 1.77·10⁴, κ 10^8 2.12·10⁵.
show: "sb-routes", delta: 0.000001
The arguments are the ones A backward error the answer does not feel passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Bartels–Stewart, residual: κ 10^0 3.7·10⁻¹⁶, κ 10^2 2.54·10⁻¹⁶, κ 10^4 2.15·10⁻¹⁶, κ 10^6 2.01·10⁻¹⁶, κ 10^8 1.82·10⁻¹⁶; Bartels–Stewart, backward error: κ 10^0 1.48·10⁻¹⁵, κ 10^2 1.53·10⁻¹⁵, κ 10^4 4.75·10⁻¹⁴, κ 10^6 2.33·10⁻¹², κ 10^8 3.86·10⁻¹¹; Kronecker, residual: κ 10^0 5.28·10⁻¹⁷, κ 10^2 4.68·10⁻¹⁷, κ 10^4 4.44·10⁻¹⁷, κ 10^6 5.39·10⁻¹⁷, κ 10^8 5.24·10⁻¹⁷; Kronecker, backward error: κ 10^0 2.11·10⁻¹⁶, κ 10^2 1.31·10⁻¹⁵, κ 10^4 4.24·10⁻¹⁴, κ 10^6 3.19·10⁻¹², κ 10^8 1.03·10⁻¹⁰. Median over three seeds.
show: "sb-mu"
The arguments are the ones A backward error the answer does not feel passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
120 solves. Largest ratio over μ: Bartels–Stewart 2.83, Kronecker 2.83; smallest, 4.96e-4 and 1.29e-2. The dashed line is twice the square root of two times μ.
show: "sb-split"
The arguments are the ones A backward error the answer does not feel passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
κ(X) 10^0: on A 50.0%, on B 50.0%, on C 0.0%, backward error 1.9·10⁻¹⁵; κ(X) 10^2: on A 48.9%, on B 51.1%, on C 0.0%, backward error 1.9·10⁻¹⁵; κ(X) 10^4: on A 65.2%, on B 34.8%, on C 0.0%, backward error 7.3·10⁻¹⁵; κ(X) 10^6: on A 59.3%, on B 40.5%, on C 0.1%, backward error 1.66·10⁻¹³; κ(X) 10^8: on A 4.4%, on B 12.2%, on C 83.4%, backward error 1.23·10⁻¹¹. Seed 3.
show: "sb-block"
The arguments are the ones A backward error the answer does not feel passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.
Bartels and Stewart's residual puts between 0.02 and 2.2 per cent of its squared size there; the Kronecker system's, between 6.9 and 41 per cent. Bartels–Stewart, basis 1: C = 0.5 X 0.00116, C = 10⁻² X 6.75·10⁻⁴, C = 10⁻⁴ X 2.82·10⁻⁴, C = 10⁻⁶ X 1.61·10⁻⁴; Bartels–Stewart, basis 2: C = 0.5 X 0.0064, C = 10⁻² X 0.00478, C = 10⁻⁴ X 0.00665, C = 10⁻⁶ X 0.00371; Bartels–Stewart, basis 3: C = 0.5 X 0.00481, C = 10⁻² X 0.00449, C = 10⁻⁴ X 0.00698, C = 10⁻⁶ X 0.022; Kronecker system, basis 1: C = 0.5 X 0.124, C = 10⁻² X 0.2, C = 10⁻⁴ X 0.0688, C = 10⁻⁶ X 0.086; Kronecker system, basis 2: C = 0.5 X 0.246, C = 10⁻² X 0.287, C = 10⁻⁴ X 0.304, C = 10⁻⁶ X 0.368; Kronecker system, basis 3: C = 0.5 X 0.31, C = 10⁻² X 0.411, C = 10⁻⁴ X 0.349, C = 10⁻⁶ X 0.313.
What it checked while drawing
Every figure above checked its own claims on the way to being drawn, and a claim that failed
would have stopped the picture rather than shipped a wrong one. Those checks used to leave
no trace at all: a passing one returned true and the only evidence the figure had
checked anything was that nothing crashed. The list below is what they actually said, collected
by running this generator with an observer installed — not a description of
what it is believed to check.
29 distinct claims across 6 sets of arguments, grouped below by shape — because most of them are one sentence with a different number in it, and how many separate times that sentence was put to the test is the informative part.
the smallest |λᵢ + μⱼ| is 2 at μ = 0, unchanged — checked 8 times
and it falls again at μ = 0.5 — checked 7 times
a kind the dial offers
a right-hand side this file builds
a route this file runs
a size of C the dial draws
a size of C the family is built at
a size the dial offers
a size the n²×n² singular value decomposition can afford
a solve that completes
and away from normality sep falls by orders of magnitude
at least one row
at μ = 0 the matrices are normal and sep IS the eigenvalue gap
curves with points on them
LU is for square matrices
matmul shapes agree
Against the rule
It draws a decomposition and prints its residual. It calls
svd,
and every figure above carries the badge — which residualcheck verifies by looking
for it in the emitted SVG rather than by finding the call that builds one. A badge that is
constructed and then left out of the body is the failure that check exists for.
Across the library: the rule bites on 217
of 397 generators —
199 print a residual and
18 are exempt with a published reason;
180 factorise nothing.
Read from lib/residual-rule.js, which is the same body the gate enforces from,
and the gate's last check fails the build if this page and it disagree about any generator.
Where it is called
Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.
A backward error the answer does not feel
Both ways of solving AX + XB = C leave a residual at the rounding level, and for a linear system that would be backward stability. For the equation it is not: the smallest perturbation of A, B and C that makes the computed X exact can be far larger. On a family built to make it so — X increasingly ill conditioned, C increasingly small beside AX — the structured backward error of Bartels and Stewart's solution climbs to 2.1·10⁵ times its residual, and the Kronecker system's, whose residual is four times smaller, to 2.0·10⁶, within the bound Higham's μ sets. And the error of the answer does not move. Against the exact X it stays where the size of C puts it, 6·10⁻¹⁵ to 1·10⁻⁹, across eight decades of κ(X). The perturbation that makes the backward error large has to sit on C, along directions X is insensitive to, and so the backward error rises and the answer never feels it.
Structure, and the solver that cannot see itAn equation whose unknown is a matrix
AX + XB = C is linear in X, so it has a coefficient matrix, and writing it down is the obvious thing to do. At n = 100 that matrix has a hundred million entries for a problem with ten thousand unknowns, and the algorithm everybody uses instead never forms it. Its conditioning is not the eigenvalue gap either, which is the number a reader is invited to consult.
Structure, and the solver that cannot see itThe residual knew the error
A Sylvester solve's structured backward error climbed by a factor of 26,000 while its forward error did not move, and the reading was that the condition number belonging to those structured perturbations must fall by the same factor. It was predicted to fall by at least ten thousand across the sweep, and its product with the backward error to match the forward error within ten. Neither happens. The structured condition number rises, by a factor of 2.8 at every size of C, because it is a worst case over every direction a perturbation of that size could take, and the backward error's perturbation takes the most harmless one. Their product overstates the error by up to 3·10⁶ on one route and 9·10⁶ on the other. The relative residual times the plain inverse of the Kronecker matrix's smallest singular value is within a factor of 0.96 to 9.7 of the forward error on all 120 solves.
Structure, and the solver that cannot see itThe size of the data, not its rank
A Lyapunov equation with rank-one data reopened a gap of thousands between a Sylvester solution's backward error and its residual, where random equations had shown under a dozen. Its data had two unusual features, low rank and a small size against the operator. Separated, the size does all of it. Rank-one data as large as AX can be keeps the ratio under 2.3 at every spread of the coefficients' eigenvalues; rank-one data along their smallest directions, at a size of 10⁻⁶ against the operator, puts it at 1 to 2·10⁵; and full-rank data of the same small size opens the gap just as wide. On every equation of these kinds, the Gramian's included, the ratio is between 0.07 and 0.5 times one over that size, and one plus one over the size is a ceiling no equation can pass. The earlier commuting family sits far under it, which says what else the gap needs. The forward error does not notice any of it.
Structure, and the solver that cannot see itWhat the commuting family was hiding
A Sylvester solve's structured backward error climbed 26,000 times above its residual while its forward error did not move, on a family built so that X commutes with A and B. Replace X by a random matrix with the same singular values, and the backward error is within a factor of eleven of the residual at every setting, on both routes. The structured product and the residual's estimate agree too, within 45 and 9 times the forward error. So that gap, the prediction said, was the family's geometry, and it was. But the perturbation's share on C does not fall below a half as predicted: it rises to 88 and 99 per cent. And a residual in the Schur bases that costs nothing is not the residual: it is a twentieth of it, because what is left is the Schur factorisations' own rounding.