Series

Matrix equation — the series

6 essays on one idea, from the one that introduces it to the one that assumes the rest.
  1. 01234567810⁻⁵10⁻⁴10⁻³10⁻²10⁻¹110¹μ, the entry above the diagonalsep, and the eigenvalue gapmin |λᵢ + μⱼ|sep(A, B)the spectra never moveeigenvalue gap, throughout2sep at μ = 02sep at μ = 89.5·10⁻⁴amplification there1056solvability is the eigenvaluesand conditioning is not

    An 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.

    part 1 · structure
  2. A6×6B6×6I ⊗ A + Bᵀ ⊗ I36×36one equation, two objectsentries in A and B72entries in the coefficient matrix1296two routes, relative gap1.7·10⁻¹⁶‖AX + XB − C‖/‖C‖1.4·10⁻¹⁶the small squares are the problemand the large one is the notation

    The elimination the matrix does not need

    The Kronecker form of AX + XB = C is dismissed with a hundred million entries and (2/3)n⁶ operations. Both price an elimination, and after the reduction both routes take, the matrix has exactly n³ nonzeros, none of them above the block diagonal, and nothing left to eliminate.

    part 2 · structure
  3. backward error ÷ residualC = 0.5 X, κ(X) 10⁸5.5C = 10⁻² X, κ(X) 10⁸185C = 10⁻⁴ X, κ(X) 10⁸9306C = 10⁻⁶ X, κ(X) 10⁸2.1·10⁵110¹10²10³10⁴10⁵10⁶10⁷κ(X), on a logarithmic scalebackward error ÷ residual10⁰10²10⁴10⁶10⁸C = 0.5 XC = 10⁻² XC = 10⁻⁴ XC = 10⁻⁶ Xdashed: 2√2 μ, the boundthe residual is not the backward error

    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.

    part 3 · structure
  4. 10⁻¹110¹10²10³10⁴10⁵10⁶10⁷κ(X), on a logarithmic scaleestimate ÷ forward error10⁰10²10⁴10⁶10⁸backward error ×structured conditionresidual ×unstructured conditiondashed: an estimate equal to the errorthe residual's estimate stays within ten

    The 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.

    part 4 · structure
  5. 110²10⁴10⁶10⁸110¹10²10³10⁴10⁵10⁶κ(X)backward error over residualcommuting, Bartels–Stewartnot commuting, Kroneckernot commuting, Bartels–Stewartorder 8 · C at the scale of 10⁻⁶ · three seedsthe gap belonged to the commuting family

    What 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.

    part 5 · structure
  6. 10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹1110¹10²10³10⁴10⁵10⁶γ = ‖C‖ / ((‖A‖ + ‖B‖)‖X‖)backward error over residualrank one, largest directionsrank one, smallest directionsrank one, randomfull rank, randomLyapunov, −bbᵀ0.2/γevery kind on one linesize, not rank

    The 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.

    part 6 · structure

All series