The eigenvalue problem that is not linear

A problem with infinitely many eigenvalues

Let the matrix depend on λ through something that is not a polynomial and three things stop being true at once. There is no linearisation, there is no characteristic polynomial, and "compute the spectrum" is not a request that can be granted — the only finite question is how many eigenvalues are inside this circle.

Worth reading first: A matrix that depends on its own eigenvalue · The problem that arrives again · The last digit is the cheapest.

A quadratic eigenvalue problem is still a polynomial. It has 2n eigenvalues, a linearisation, and a finite answer that a finite computation can return. Everything in this field so far has been about what that answer costs.

Take one more step — let the matrix depend on λ through something that is not a polynomial —

T(λ) = A − λI + γe^−λI,

which is what a system with a delay produces, and three things stop being true at once.

There is no linearisation, because a 2n × 2n matrix has 2n eigenvalues and this problem has infinitely many. There is no characteristic polynomial, so the exact-degree route that counted the eigenvalues at infinity has nothing to interpolate. And “compute the spectrum” is not a request that can be granted at all.

A spectrum with no last eigenvalue: 12 of the infinitely many solutions of a delay problemT(λ) = A − λI + 1e^−λI for the model matrix at n = 4. The problem decouples in A's eigenvector basis, so each of its 4 eigenvalues μ contributes the scalar equation μ − λ + γe^−λ = 0, whose solutions are λ = μ + W_k(γe^−μ) — one for every branch of the Lambert W function, and therefore countably infinitely many, running off to the left along two curves. The marks are the closed form, each checked by substitution to 1.6·10⁻¹⁵. There is no computation that returns this set: the only well-posed question is which eigenvalues lie inside a region, and the circle of radius 4 contains 4 of them.-2-101234-5-3-1135real partimaginary part4 insidea countable spectruminside the contour4drawn12existingworst branch residual1.6·10⁻¹⁵there is no last eigenvalueso the question has to change
Fig. 1 Twenty-eight of the infinitely many eigenvalues of a four-by-four delay problem, in closed form, with a contour that makes a finite question of them.

The ground truth is a Lambert function

The site’s habit is to measure against something exactly known — the standing this Hilbert inverse has and the reason it is used — and it would be easy to assume that a problem with infinitely many eigenvalues cannot supply one. This one can.

A is the model matrix, whose eigenvalues μ are the closed form used everywhere here, and the nonlinearity is a scalar times the identity. So the problem decouples in A’s eigenvector basis and each μ contributes one scalar equation

μ − λ + γe^−λ = 0.

Rearranged, (λ − μ)e^(λ−μ) = γe^−μ, which is the defining equation of the Lambert W function — and W has infinitely many branches, so

λ = μ + W_k(γe^−μ),      k ∈ ℤ.

The whole spectrum, in closed form, countably infinite, lying along two curves that run off to the left. Each branch value is computed by Newton in complex arithmetic and checked twice: by substitution into the Lambert identity, and by asking whether T(λ) is actually singular — measured at 9.9·10⁻¹⁵ over twenty-eight values, which is the check that matters, because it is about the original problem rather than about the identity used to solve it.

The restriction that makes this available is stated rather than hidden. A general delay problem has a matrix coefficient on the exponential, does not decouple, and has no such formula. What is bought by the restriction is the same thing the Hilbert matrix buys elsewhere on this site: a family where the answer is known and the computation can therefore be graded rather than compared.

The question has to change

With infinitely many eigenvalues, “find the spectrum” is not merely expensive — it is ill posed. Every practical method for a nonlinear eigenvalue problem answers one of two narrower questions:

  • Which eigenvalue is near here? — Newton, or an inverse iteration, from a starting guess.
  • Which eigenvalues are inside this region? — a contour method.

Both are worth measuring, and the second is the one with an integer in it.

Newton, and the branch it does not find

Newton’s method for det T(λ) = 0 needs no determinant. The logarithmic derivative of a determinant is a trace,

(log det T)′ = tr(T(λ)⁻¹T′(λ)),

so the Newton step is λ ← λ − 1/tr(T⁻¹T′), which costs n complex solves. Started 0.15 + 0.15i away from a known branch value it converges quadratically — measured order 1.91 over ten runs — and lands on an eigenvalue of the problem to twelve digits every time.

Five of the ten land on a different eigenvalue from the one they were started beside.

That is not a failure of the method and it is the central fact about the shape of the problem. Neighbouring branches for neighbouring μ are 0.22 apart in this family, and a start 0.21 away is not near enough to decide anything. There is no “the” eigenvalue here, and which of infinitely many is returned is a property of where the method was pointed rather than of the problem.

Compare that with the polynomial case, where the answer is a set and a solver returns all of it — and with the six routes that differ in accuracy while agreeing about which numbers they are computing. The whole apparatus of a small residual is not a small error assumes there is a right answer to be compared against; here the right answer depends on the question, and the question is a starting point.

The count is an integral and the integral is an integer

The one thing that is finite is the number of eigenvalues inside a contour, and it is available without finding any of them. By the argument principle applied to det T,

N = (1/2πi) ∮ tr(T(z)⁻¹T′(z)) dz.

On a circle, with the trapezoidal rule, an analytic periodic integrand converges exponentially in the number of quadrature points — the same phenomenon that makes the trapezoidal rule the right choice for a periodic function, and the reason contour methods are practical at all.

Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 2, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 2, from the closed form. The error runs 0.00282, 0.0572, 0.0151, 5.25·10⁻⁴, 3.6·10⁻⁷, 1.35·10⁻¹³ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count2at 4 points2at 128 points2finest error1.4·10⁻¹³the integral is an integerand a rounding hides how far it was
Fig. 2 The distance from the true count against the number of quadrature points. The marks are coloured by whether the rounded answer is right, which is a different question from whether the integral has converged.

Measured on a circle of radius two, where two eigenvalues lie inside:

4 points      5.7·10⁻²
8             1.5·10⁻²
16            5.3·10⁻⁴
32            3.6·10⁻⁷
128           1.4·10⁻¹³

Each doubling buys more than the last, which is what exponential convergence looks like on an arithmetic axis.

Then the answer is rounded to an integer, and the rounding is where the trap is. At eight points on that circle the rounded count is already right while the integral is 0.06 away — so a coarse quadrature can be correct by luck. And on a circle of radius four, which passes closer to the spectrum, eight points return a count of minus two where the answer is four.

A negative number of eigenvalues. From a quantity that is an integer whenever it has converged, by a routine that has not failed, thrown or warned. The only evidence available either way is the distance from the nearest integer — which is why that distance is the quantity drawn, and why a contour method that does not report it is reporting half of its answer.

The convergence rate is set by how far the contour is from the nearest eigenvalue, not by how many are inside. A circle passing close to one has a nearly singular integrand and needs several times as many points for the same accuracy, which is visible on the slider: at radius 1.5, which runs close to an eigenvalue at 1.587, a hundred and twenty-eight points reach only 7.6·10⁻⁴.

Two routes to the trace

Every number above rests on tr(T(z)⁻¹T′(z)) being computed correctly in complex arithmetic, and this site does not take that on trust.

There is no complex kernel here and this field did not write one. A complex n × n solve is a real 2n × 2n solve — [[Re, −Im], [Im, Re]] against [xᵣ; xᵢ] — so the whole of the complex linear algebra is an embedding and a call to the same pivoted elimination elimination is a sequence of choices describes. The embedding doubles the size and squares nothing.

The second route is a closed form: since T is A plus a scalar times the identity, T⁻¹T′ has eigenvalues −(1 + γe^−z)/(μⱼ − z + γe^−z), and the trace is a sum of n scalars. The two agree to 5.6·10⁻¹⁵ at sixteen points around a contour. One is n solves of a 2n × 2n real system; the other is n divisions. Nothing is shared, which is what makes the agreement worth printing.

The ceiling nothing announces

The practical contour method — Beyn’s — does more than count. It probes with a random n × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ.

How many eigenvalues a contour method can return: the probe block is a ceiling and does not say soBeyn's method probes the contour with a random 4 × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ whatever is inside, so a probe block narrower than the number of eigenvalues present returns ℓ of them — with small residuals, and with nothing in the returned object to say that there were more. Measured with 4 eigenvalues inside |z| = 4: the rank is 1, 2, 3, 4, 4 at ℓ = 1, 2, 3, 4, 5, rising with the probe count and then stopping at 4. A caller who asked for two gets two. The counting integral is the check that says so, and it costs one more pass round the same contour.1 probe12 probes23 probes34 probes45 probes44 insidea ceiling nothing announceseigenvalues inside4rank at 1 probe1rank at 5 probes4the binding ceiling4the residuals are smalland half the answer is missing
Fig. 3 The rank of the probed moment against the number of probes, with four eigenvalues inside the contour. It rises, and then it stops.

Measured with four eigenvalues inside: the rank is 1, 2, 3, 4, 4 at ℓ = 1, 2, 3, 4, 5. A caller who asked for two gets two — with small residuals, each of them a genuine eigenvalue, and nothing in the returned object to say there were four.

And there is a third ceiling, which a reader would not predict. The block is n × ℓ, so its rank cannot pass n either. On a circle of radius five, which contains twelve eigenvalues of this four-by-four problem, the rank stops at four however many probes are used: the first moment simply cannot represent more than n eigenvalues, and recovering the rest needs higher moments rather than a wider block.

That is the same shape as the sketch that is spent: a random probe carries a fixed budget of information, and asking it for more than it holds returns something plausible rather than an error. Three ceilings, one number, and the returned object distinguishes none of them. The counting integral is the check — it costs one more pass round the same contour with the same integrand — and it is the difference between a method that answers the question and a method that answers as much of it as it happened to have room for.

Why there is no linearisation, precisely

The impossibility is worth one paragraph of proof rather than an assertion, because it is what divides this essay from the six before it.

A linearisation of a matrix polynomial of degree d is a pencil of size dn whose eigenvalues are exactly the polynomial’s, elementary divisors included. Any pencil of any finite size has finitely many eigenvalues. T here has infinitely many — the Lambert branches are indexed by ℤ, and each of the n values of μ contributes one per branch. So no pencil of any size has T’s spectrum, and the device the whole field has been built on is simply unavailable.

What replaces it, in the methods that do exist, is approximation rather than equivalence: interpolate T by a polynomial or a rational function of some degree on a region of interest, linearise that, and accept that the eigenvalues found are the eigenvalues of the approximant. Which turns the problem into two error terms rather than one — the approximation of T, and the arithmetic of the linearised approximant — and the field’s whole ledger has to be redone with an extra column in it. That is a real subject and it is not this essay’s; what this essay establishes is the boundary, and the two questions that survive it.

The difference between infinitely many and merely a lot

It is tempting to file this as “very many eigenvalues” and reach for the machinery that handles large spectra: compute a few, restart, filter. That machinery — which restarting is a filter sets out — rests on there being a finite set with a distinguished part of it, a largest, a smallest, a nearest to a shift.

Here there is no largest. Follow the branches leftwards and the eigenvalues run to infinity in both imaginary directions, with |λ| unbounded and no last one. “The dominant eigenvalue” exists only relative to a region; “the ten smallest” exists only relative to a point. Every request has to name a region before it means anything, which is why both surviving questions above have a where in them — near this point, or inside this circle.

That is the structural change, and it is bigger than the loss of the linearisation. A finite spectrum can be described; an infinite one can only be interrogated.

What this field ends on

The polynomial field opened with an object that is not a matrix and ends with one that is not a polynomial either, and the arc is the same one this site keeps walking: each time the object gets further from a matrix, a quantity that was a property becomes a decision.

The number of eigenvalues was 2n, a fact. Then it was a degree, when M went singular. Now it is a contour integral rounded to an integer, with a convergence that has to be checked and a probe count that has to be chosen. An eigenvalue count that cannot be slightly wrong has a sequel and the sequel is that the count can be wrong by any amount, including a negative one, and that the only defence is to print the distance from the integer rather than the integer.

What a caller has to decide

Collecting what this field’s last essay leaves in the reader’s hands, because it is more than the polynomial case leaves and the difference is the subject.

A region. There is no default. “The eigenvalues” is not a request, and every method needs either a point to start near or a contour to integrate around. For the delay problem the physically interesting region is the right half plane — an eigenvalue there is an instability — which is a region with an infinite boundary and therefore needs a truncation whose omission has to be argued for separately.

A quadrature resolution, and evidence for it. The distance from the nearest integer is that evidence, it is free, and it is the difference between a count and a guess.

And a probe count, which cannot be chosen without the count. Three ceilings bind it and only one of them is under the caller’s control.

Three decisions, none of which exists for a matrix eigenvalue problem, all of which have to be made before a number appears. That is what it costs to leave polynomials behind, and it is worth knowing before a model with a delay in it is written down rather than after.

At other settings

A spectrum with no last eigenvalue: 12 of the infinitely many solutions of a delay problemT(λ) = A − λI + 0.5e^−λI for the model matrix at n = 4. The problem decouples in A's eigenvector basis, so each of its 4 eigenvalues μ contributes the scalar equation μ − λ + γe^−λ = 0, whose solutions are λ = μ + W_k(γe^−μ) — one for every branch of the Lambert W function, and therefore countably infinitely many, running off to the left along two curves. The marks are the closed form, each checked by substitution to 1.2·10⁻¹⁵. There is no computation that returns this set: the only well-posed question is which eigenvalues lie inside a region, and the circle of radius 4 contains 4 of them.-3-2-101234-5-3-1135real partimaginary part4 insidea countable spectruminside the contour4drawn12existingworst branch residual1.2·10⁻¹⁵there is no last eigenvalueso the question has to change
Fig. 4 A weaker delay term, where the real eigenvalues sit further left.
A spectrum with no last eigenvalue: 12 of the infinitely many solutions of a delay problemT(λ) = A − λI + 10e^−λI for the model matrix at n = 4. The problem decouples in A's eigenvector basis, so each of its 4 eigenvalues μ contributes the scalar equation μ − λ + γe^−λ = 0, whose solutions are λ = μ + W_k(γe^−μ) — one for every branch of the Lambert W function, and therefore countably infinitely many, running off to the left along two curves. The marks are the closed form, each checked by substitution to 1.3·10⁻¹⁵. There is no computation that returns this set: the only well-posed question is which eigenvalues lie inside a region, and the circle of radius 4 contains 4 of them.01234-5-3-1135real partimaginary part4 insidea countable spectruminside the contour4drawn12existingworst branch residual1.3·10⁻¹⁵there is no last eigenvalueso the question has to change
Fig. 5 And a stronger one, which pushes them right and pulls the complex branches in.
Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 1.5, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 1, from the closed form. The error runs 0.473, 0.39, 0.289, 0.142, 0.0268, 7.58·10⁻⁴ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count1at 4 points1at 128 points1finest error7.6·10⁻⁴the integral is an integerand a rounding hides how far it was
Fig. 6 A contour that runs close to an eigenvalue: the same exponential convergence, several times slower.
Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 4, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 4, from the closed form. The error runs 2.23, 5.64, 1.38, 0.167, 0.00222, 0.00483 at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 3 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count4at 4 points6at 128 points4finest error0.0048the integral is an integerand a rounding hides how far it was
Fig. 7 And the radius where eight points return minus two.
Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 5, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 12, from the closed form. The error runs 1.81, 3.37, 0.706, 0.0412, 0.0052, 1.43·10⁻⁵ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 3 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count12at 4 points10at 128 points12finest error1.4·10⁻⁵the integral is an integerand a rounding hides how far it was
Fig. 8 Twelve eigenvalues inside, on a four-by-four problem.
How many eigenvalues a contour method can return: the probe block is a ceiling and does not say soBeyn's method probes the contour with a random 4 × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ whatever is inside, so a probe block narrower than the number of eigenvalues present returns ℓ of them — with small residuals, and with nothing in the returned object to say that there were more. Measured with 2 eigenvalues inside |z| = 2: the rank is 1, 2, 2, 2, 2 at ℓ = 1, 2, 3, 4, 5, rising with the probe count and then stopping at 2. A caller who asked for two gets two. The counting integral is the check that says so, and it costs one more pass round the same contour.1 probe12 probes23 probes24 probes25 probes22 insidea ceiling nothing announceseigenvalues inside2rank at 1 probe1rank at 5 probes2the binding ceiling2the residuals are smalland half the answer is missing
Fig. 9 Two eigenvalues inside, where two probes are enough and three buy nothing.
How many eigenvalues a contour method can return: the probe block is a ceiling and does not say soBeyn's method probes the contour with a random 4 × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ whatever is inside, so a probe block narrower than the number of eigenvalues present returns ℓ of them — with small residuals, and with nothing in the returned object to say that there were more. Measured with 12 eigenvalues inside |z| = 5: the rank is 1, 2, 3, 4, 4 at ℓ = 1, 2, 3, 4, 5, rising with the probe count and then stopping at 4, which is the SIZE of the problem rather than the number of eigenvalues — a second ceiling, because an 4 × ℓ block cannot have rank above 4 whatever is inside the contour. A caller who asked for two gets two. The counting integral is the check that says so, and it costs one more pass round the same contour.1 probe12 probes23 probes34 probes45 probes44 rowsa ceiling nothing announceseigenvalues inside12rank at 1 probe1rank at 5 probes4the binding ceiling4the residuals are smalland half the answer is missing
Fig. 10 And where the binding ceiling is the size of the matrix rather than the number of eigenvalues.
The 16 eigenvalues of an 8 × 8 quadratic eigenvalue problem, computed and in closed formλ²M + λC + K for a chain of 8 masses with C = 0.3M + 0.1K. The crosses are the closed form — one scalar quadratic per eigenvalue of K, whose roots are known exactly — and the discs are the eigenvalues a real Schur factorisation returns from the 16 × 16 first companion linearisation. There are 16 of them for a matrix with 8 rows, of which 16 are complex and arrive in conjugate pairs, so the eigenvectors cannot be independent: 9 vectors in 8 dimensions never are. The worst disagreement between the two routes is 2.12·10⁻¹⁵, and the routes share nothing but the three coefficient matrices.00.0939569-2-1.24498-0.4899610.2650581.020081.7751real partimaginary parttwo routes, one spectrumeigenvalues16rows8complex16against the closed form2.1·10⁻¹⁵n rows and 2n eigenvaluesso the eigenvectors are not a basis
Fig. 11 The polynomial case, where the spectrum is a finite set.
Where the missing eigenvalues went: an 6 × 6 quadratic with 1 of its masses removedA chain of 6 masses with the first 1 of them set to zero, so M is singular of rank 5. det Q(λ) is a polynomial of degree at most 12; interpolated exactly in BigInt rationals at 13 nodes it has degree 11, so 1 of the 12 eigenvalues are at infinity — the same object a descriptor pencil has, arriving here because a degree of freedom with no inertia is an algebraic constraint. The float route counts the singular values of M judged to be zero and reaches 1, backed by a gap of ∞ between consecutive singular values. One integer, two routes, and only the second of them is a decision.finite eigenvalues (degree of det Q)11at infinity (2n − degree)1at infinity, by the rank of M12n, if M were nonsingular12a degree, not a decisiondegree of det Q11at infinity1by the rank of M1singular-value gapthe count is a degreeand the other route is a judgement
Fig. 12 And the count as a degree, which is the last time it was a fact.
Two trace estimators against their budget, on a 80×80 matrix whose spectrum decays at 0.85Two curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.54 and Hutch++'s is -2.55. The deflation changes the exponent rather than the constant, which is what makes it worth two thirds of the budget.10¹10²10⁻⁴10⁻³10⁻²10⁻¹1products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.54fitted rate, Hutch++-2.5error at 96, Hutchinson0.024error at 96, Hutch++4.4·10⁻⁴both axes count products with Aso the sketch is paid for in the picture
Fig. 13 A trace estimated rather than computed, from the randomised field.
160 single-probe estimates of one 40×40 trace, from the two standard probe distributionsTwo clouds of points, each one estimate of the trace from one random vector. Both are centred on the true value of 171.14 — the estimator has no bias at all — and the dashed bands are the standard deviation each distribution is known in closed form to have: 59.14 for the ±1 probe and 72.01 for the normal one. Measured over these draws they come out 56.68 and 68.57.027548110813544119.306194.613269.919345.226420.532drawzᵀAz from one probenormal±1two routes to one spreadthe trace171±1 spread, predicted59±1 spread, measured57normal ÷ ±11.2no bias in either cloudand one of them is narrower for a reason
Fig. 14 And what the choice of random probe is worth there.
ν(σ), the number of eigenvalues below σ, counted from the signs of an unpivoted LDLᵀThe staircase is the number of negative pivots in an LDLᵀ factorisation of A − σI, taken with no pivoting at all. Congruence preserves the signs, so that count is the number of eigenvalues below σ — Sylvester's law of inertia, used as an algorithm. The vertical marks are the 10 eigenvalues a Jacobi decomposition returns, which is a completely different computation; every step of the staircase is at one of them and every one of them has a step. Over 2000 shifts placed at random across the interval the two answers disagree 0 times. That is not a statement about a tolerance: the output is a count, so it is exactly right or wrong by a whole eigenvalue, and there is nothing in between for a rounding error to land in.-3-1.84971-0.6994290.4508571.601142.751433.901710246810shift σν(σ)an answer that is an integershifts2000disagreements0eigenvalues10steps10the marks are a Jacobi decompositionand the staircase never saw one
Fig. 15 An eigenvalue count that is exact by construction, one field over.
Newton on the Bratu problem: analytic Jacobian, differenced Jacobian at ε = 10^-6, and matrix-freeThree residual sequences, all starting from zero. The analytic Jacobian gives 8, 0.052, 3·10⁻⁶, 5.2·10⁻¹³; a Jacobian differenced at ε = 10^-6, whose entries are correct to about 1.3·10⁻¹⁰, gives 8, 0.052, 3·10⁻⁶, 4.6·10⁻¹³. They stop at the same residual. The matrix-free run, where GMRES sees only a closure and no entry exists anywhere, lands 8.1·10⁻¹⁶ from the analytic answer in 438 products.0123456710⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1Newton step‖F(x)‖analytic Jdifferenced Jmatrix-freeone fixed point, three derivativesanalytic floor4.2·10⁻¹³differenced floor3.9·10⁻¹³matrix-free floor3.8·10⁻¹³products used, matrix-free438the derivative chooses the stepand the residual decides the answer
Fig. 16 Newton’s method converging quadratically, in the field that first measured it.
The Krawczyk operator on a box of half-width 0.4Two rectangles in the plane. The outer one is the box handed in; the inner one is K(X), the image the operator returns; and the marked point is the root (√2, √2), known in closed form. The image is narrower than the box — 0.2263 against 0.8 — and the verdict is: exactly one root.11.522.511.52xyexactly one roota verdict, not a bound‖I − C F′(X)‖0.28width of X0.8width of K(X)0.23strictly inside is a proofand overlapping is nothing at all
Fig. 17 And a method that proves an answer is inside a region rather than finding it.
Where a quadratic stops being hyperbolic, located by a Cholesky and by a sineThe overdamping margin min over modes of (βκ)² − 4κ, for a chain of 8 masses, against β. It reaches zero at β* = 1/sin(π/2(n+1)) = 5.75877048314, which is the closed form. Bisecting on a completely different question — does a Cholesky of −Q(μ) complete for some μ — gives 5.75877048314, agreeing to 13 digits. Neither route computes an eigenvalue. The marks below the axis are the largest imaginary part in the computed spectrum, which is zero to the rounding level above β* and not below it, so a third route agrees with the other two about where the boundary is.44.95985.919596.879397.839188.7989810⁻¹110¹10²stiffness damping βoverdamping marginβ* = 5.75877two routes to a boundaryclosed form β*5.8by certificate5.8difference3.6·10⁻¹³bisection steps44a factorisation that completesand a sine, agreeing to twelve digits
Fig. 18 A boundary located by two routes, in the field’s fifth essay.
The 12 eigenvalues of a palindromic quadratic, in 6 pairs whose products are oneλ²A + λB + Aᵀ with A and B symmetric reads the same backwards, so λ is an eigenvalue exactly when 1/λ is. The axis is log₁₀|λ|, the marks are the computed eigenvalues and each arc joins a pair; the vertical line is |λ| = 1, about which the whole picture is symmetric. The spectrum spans 9.56 decades at b = 10⁴. Measured, the general solver's spectrum departs from being closed under λ ↦ 1/λ by 3.27·10⁻⁹, and the structured route's — one symmetric generalised eigenvalue problem of size 6 rather than an unsymmetric one of size 12 — by 2.21·10⁻¹⁶, which is the rounding level and is by construction.-5-3.20611-1.412210.3816782.175573.969460log₁₀ |λ||λ| = 1λλ′ = 1, in the algebrapairs6decades of spectrum9.6pairing error, general3.3·10⁻⁹pairing error, structured2.2·10⁻¹⁶a symmetry the solver never knew aboutand the half of the answer it decides
Fig. 19 And a spectrum with a symmetry, rather than no end.
A spectrum with no last eigenvalue: 12 of the infinitely many solutions of a delay problemT(λ) = A − λI + 2e^−λI for the model matrix at n = 4. The problem decouples in A's eigenvector basis, so each of its 4 eigenvalues μ contributes the scalar equation μ − λ + γe^−λ = 0, whose solutions are λ = μ + W_k(γe^−μ) — one for every branch of the Lambert W function, and therefore countably infinitely many, running off to the left along two curves. The marks are the closed form, each checked by substitution to 1.8·10⁻¹⁵. There is no computation that returns this set: the only well-posed question is which eigenvalues lie inside a region, and the circle of radius 4 contains 6 of them.-101234-5-3-1135real partimaginary part6 insidea countable spectruminside the contour6drawn12existingworst branch residual1.8·10⁻¹⁵there is no last eigenvalueso the question has to change
Fig. 20 A delay coefficient of two, with the real eigenvalues pushed right.
Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 2, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 2, from the closed form. The error runs 0.00282, 0.0572, 0.0151, 5.25·10⁻⁴, 3.6·10⁻⁷, 1.35·10⁻¹³ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 0 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count2at 4 points2at 128 points2finest error1.4·10⁻¹³the integral is an integerand a rounding hides how far it was
Fig. 21 The count on a circle placed in a gap, where the quadrature converges fastest.
Counting the eigenvalues inside a circle: an integral that is an integer once it has convergedThe number of eigenvalues of the delay problem inside |z| = 3, computed as (1/2πi)∮tr(T(z)⁻¹T′(z))dz by the trapezoidal rule. The true count is 3, from the closed form. The error runs 0.151, 0.532, 0.0874, 0.0263, 8.44·10⁻⁴, 7.21·10⁻⁷ at 4 to 128 points — a straight line on this axis is a constant factor a doubling, and this falls faster than that, which is what exponential convergence looks like when the integrand is analytic on the contour. The answer is then ROUNDED, and 1 of the 6 quadratures round to the wrong integer while looking exactly as confident as the ones that do not. The only evidence available is the distance from the nearest integer, which is the quantity plotted.11.31.61.92.210⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹10²log₁₀ quadrature pointsdistance from the true counthalf an eigenvaluean integer, eventuallytrue count3at 4 points3at 128 points3finest error7.2·10⁻⁷the integral is an integerand a rounding hides how far it was
Fig. 22 And on one that passes nearer the spectrum.
How many eigenvalues a contour method can return: the probe block is a ceiling and does not say soBeyn's method probes the contour with a random 4 × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ whatever is inside, so a probe block narrower than the number of eigenvalues present returns ℓ of them — with small residuals, and with nothing in the returned object to say that there were more. Measured with 3 eigenvalues inside |z| = 3: the rank is 1, 2, 3, 3, 3 at ℓ = 1, 2, 3, 4, 5, rising with the probe count and then stopping at 3. A caller who asked for two gets two. The counting integral is the check that says so, and it costs one more pass round the same contour.1 probe12 probes23 probes34 probes35 probes33 insidea ceiling nothing announceseigenvalues inside3rank at 1 probe1rank at 5 probes3the binding ceiling3the residuals are smalland half the answer is missing
Fig. 23 Three eigenvalues inside, where the third probe is the last one that buys anything.
Newton on the Bratu problem: analytic Jacobian, differenced Jacobian at ε = 10^-6, and matrix-freeThree residual sequences, all starting from zero. The analytic Jacobian gives 8, 0.052, 3·10⁻⁶, 5.2·10⁻¹³; a Jacobian differenced at ε = 10^-6, whose entries are correct to about 1.3·10⁻¹⁰, gives 8, 0.052, 3·10⁻⁶, 4.6·10⁻¹³. They stop at the same residual. The matrix-free run, where GMRES sees only a closure and no entry exists anywhere, lands 8.1·10⁻¹⁶ from the analytic answer in 438 products.0123456710⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1Newton step‖F(x)‖analytic Jdifferenced Jmatrix-freeone fixed point, three derivativesanalytic floor4.2·10⁻¹³differenced floor3.9·10⁻¹³matrix-free floor3.8·10⁻¹³products used, matrix-free438the derivative chooses the stepand the residual decides the answer
Fig. 24 Newton’s quadratic convergence in the field that first measured it.
Total inner iterations for a whole inexact Newton solve, against the constant forcing termEvery point is a complete solve of the same problem to the same outer tolerance of 10^-10. At η = 10⁻¹⁴ it takes 9358 conjugate gradient iterations across 9 Newton steps; at η = 0.1 it takes 980 across 10. The left arm is oversolving and the right arm is too many outer steps. The open circle is the adaptive rule, which is not a constant: it costs 1009 iterations and reaches 3.37·10⁻¹¹.10⁻¹⁵10⁻¹²10⁻⁹10⁻⁶10⁻³110²10³10⁴10⁵constant forcing term ηtotal inner iterationsthe adaptive ruleoversolvingstarving the outer loopone problem, twelve budgetsη = 10⁻¹⁴, inner iterations9358cheapest constant0.1its inner iterations980adaptive rule, iterations1009adaptive final residual3.4·10⁻¹¹outer tolerance asked for10⁻¹⁰a tolerance is a cost decisionand its optimum is not machine precision
Fig. 25 An inner tolerance chosen against an outer one, which is the other place a start decides an answer.
The Krawczyk operator on a box of half-width 0.4Two rectangles in the plane. The outer one is the box handed in; the inner one is K(X), the image the operator returns; and the marked point is the root (√2, √2), known in closed form. The image is narrower than the box — 0.2263 against 0.8 — and the verdict is: exactly one root.11.522.511.52xyexactly one roota verdict, not a bound‖I − C F′(X)‖0.28width of X0.8width of K(X)0.23strictly inside is a proofand overlapping is nothing at all
Fig. 26 A method that certifies a region rather than returning a point.
Every column's 1-norm on a 24×24 matrix built to stop Hager's walk one column short24 bars, one per column, each the sum of the absolute values in that column — the quantity the estimator maximises, whose largest is the matrix's 1-norm. The walk visits 1 of them and returns 24.00; column 2 has 1-norm 474.24 and is never visited, because its entries alternate in sign and cancel against every sign vector the walk stands on.the estimator maximises this quantity over the columns it visitscolumn 1 ‹visited›24column 2 ‹the answer›474.2column 322.8column 422.8column 522.8column 622.8column 722.8column 822.8column 922.8column 1022.8column 1122.8column 1222.8column 1322.8column 1422.8column 1522.8column 1622.8column 1722.8column 1822.8column 1922.8column 2022.8column 2122.8column 2222.8column 2322.8column 2422.8estimate 24.0a walk that stopped earlythe estimate returned24the true 1-norm474columns visited1products with the matrix5the walk's own stopping test firedand every column it could see was smaller
Fig. 27 A trace estimated by probes, which is what the counting integral does per quadrature point.
Relative error of e^Ab by Krylov against the number of matrix–vector products, n = 100The exponential of a 100×100 matrix is never formed: m products with A build a Krylov basis, the exponential of the m×m Hessenberg matrix is taken, and one combination of the basis vectors is the answer. The error falls superlinearly — 0.026, 8.4·10⁻⁴, 1.5·10⁻⁵, 1.6·10⁻⁷, 1.1·10⁻⁹ at m = 4, 6, 8, 10, 12 — and crosses the accuracy of the full dense exponential, drawn as the flat line at 3·10⁻¹⁶, at m = 18. That is 0.36 against 2.00 megaflops, on a dense matrix; on a sparse one the ratio is far larger.0481216202410⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹matrix–vector products, mrelative error in e^Abforming e^A: 3·10⁻¹⁶crosses at m = 18the vector, not the matrixsteps to the dense answer18dimension100Krylov megaflops0.36dense megaflops2the exponential that is computedis 18×18
Fig. 28 A matrix function computed without forming it, which is the other place a contour integral appears here.
Where the missing eigenvalues went: an 6 × 6 quadratic with 3 of its masses removedA chain of 6 masses with the first 3 of them set to zero, so M is singular of rank 3. det Q(λ) is a polynomial of degree at most 12; interpolated exactly in BigInt rationals at 13 nodes it has degree 9, so 3 of the 12 eigenvalues are at infinity — the same object a descriptor pencil has, arriving here because a degree of freedom with no inertia is an algebraic constraint. The float route counts the singular values of M judged to be zero and reaches 3, backed by a gap of −∞ between consecutive singular values. One integer, two routes, and only the second of them is a decision.finite eigenvalues (degree of det Q)9at infinity (2n − degree)3at infinity, by the rank of M32n, if M were nonsingular12a degree, not a decisiondegree of det Q9at infinity3by the rank of M3singular-value gap−∞the count is a degreeand the other route is a judgement
Fig. 29 A count that is a degree, from the field’s first essay.
Two Krylov methods for one quadratic, priced by the numbers they storeA chain of 24 masses. Arnoldi on the 48 × 48 linearisation stores m vectors of length 48 and returns m Ritz values; the second-order recurrence stores m vectors of length 24 and its projection is taken onto the QUADRATIC, which has 2m eigenvalues for an m × m problem. So at every subspace size the second route holds half as many numbers and returns twice as many approximations — a factor of four in Ritz values per number stored, exactly and by construction. Plotted against storage, its curve is the lower one at every point: at 144 numbers it is 0.01305 from the dominant eigenvalue where the linearised route needs 288 to reach 0.06995. Both converge slowly — twenty-six vectors buy three digits — because the chain's spectrum is an arc with no isolated extreme, and that is the honest half: this is a comparison of prices rather than a fast method.310⁻⁴10⁻³10⁻²10⁻¹1log₁₀ numbers storeddistance to the dominant eigenvalueArnoldi, linearisedprojected quadraticper number heldstorage, linearised1248storage, second-order624Ritz values, linearised26Ritz values, second-order52half the storageand twice the approximations
Fig. 30 And a subspace method for the polynomial case, where the spectrum is finite.
A spectrum with no last eigenvalue: 12 of the infinitely many solutions of a delay problemT(λ) = A − λI + 10e^−λI for the model matrix at n = 4. The problem decouples in A's eigenvector basis, so each of its 4 eigenvalues μ contributes the scalar equation μ − λ + γe^−λ = 0, whose solutions are λ = μ + W_k(γe^−μ) — one for every branch of the Lambert W function, and therefore countably infinitely many, running off to the left along two curves. The marks are the closed form, each checked by substitution to 1.3·10⁻¹⁵. There is no computation that returns this set: the only well-posed question is which eigenvalues lie inside a region, and the circle of radius 4 contains 4 of them.01234-5-3-1135real partimaginary part4 insidea countable spectruminside the contour4drawn12existingworst branch residual1.3·10⁻¹⁵there is no last eigenvalueso the question has to change
Fig. 31 The strongest delay coefficient drawn.
How many eigenvalues a contour method can return: the probe block is a ceiling and does not say soBeyn's method probes the contour with a random 4 × ℓ block V and reads the eigenvalues out of the rank of ∮T(z)⁻¹V dz. That rank is at most ℓ whatever is inside, so a probe block narrower than the number of eigenvalues present returns ℓ of them — with small residuals, and with nothing in the returned object to say that there were more. Measured with 12 eigenvalues inside |z| = 5: the rank is 1, 2, 3, 4, 4 at ℓ = 1, 2, 3, 4, 5, rising with the probe count and then stopping at 4, which is the SIZE of the problem rather than the number of eigenvalues — a second ceiling, because an 4 × ℓ block cannot have rank above 4 whatever is inside the contour. A caller who asked for two gets two. The counting integral is the check that says so, and it costs one more pass round the same contour.1 probe12 probes23 probes34 probes45 probes44 rowsa ceiling nothing announceseigenvalues inside12rank at 1 probe1rank at 5 probes4the binding ceiling4the residuals are smalland half the answer is missing
Fig. 32 And the contour where the size of the matrix is the binding ceiling.

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.

Named objects

A flat tag is an object no other essay names yet.

Argument principleComplex arithmeticContour integralExact ground truthLambert wMatrix polynomialNewton iterationNonlinear eigenvalue problemQuadrature