An error committed before the arithmetic
Worth reading first: The problem the solver was actually given · Why a Gramian can be truncated at all · A problem with infinitely many eigenvalues.
The problem the solver was actually given establishes that a nonlinear eigenvalue problem is approximated before it is solved, and that the approximation contributes a term no residual contains. This essay is about the decision that sets that term, which is made before the approximation is built and is not the choice of approximant.
It is the target set: the region a caller believes the eigenvalues lie in.
The decision
The function is γ√(λ + c), with a branch point at −c. A caller does not know where the eigenvalues are — that is what they are asking — so they name a region they believe contains them, and the approximation is fitted on that region.
How far the region reaches towards the branch point is the whole difficulty. Measured with ten poles:
| target set reaches to | ‖g − r‖ |
|---|---|
| the smallest eigenvalue | 6.8·10⁻⁹ |
| 30% of the way to the cut | 1.4·10⁻⁶ |
| 6% of the way | 1.3·10⁻⁴ |
| 1% of the way | 1.6·10⁻³ |
Five orders, from a sentence — the same size of effect the scaling that buys ten orders measures for a change of units, and from a decision of the same kind: free to make, impossible to revise, and reported by nothing. The eigenvalues have not moved. The function has not changed. The same ten poles, the same fitting procedure, the same linearisation of the same size — and the answer that comes out of the whole chain is between nine digits and three.
Why the reach costs so much
A rational function with poles on a branch cut approximates √ geometrically, and the rate is set by the conformal distance from the target set to the singularity. A target set standing well clear sees a function that is analytic on a neighbourhood of it and converges at a rate like ρ^k for a ρ comfortably below one. A target set touching the cut sees a function with unbounded derivatives at one end, and the achievable rate degrades towards algebraic.
That is the same structure as the Zolotarev rate in where to put the poles of a rational function: a geometric rate whose ratio depends logarithmically on how hard the region is. Here the hardness is the distance to a branch point rather than the condition number of a spectrum, and the dependence has the same shape.
The consequence is worth stating as advice rather than as a rate. A region larger than the question needs is paid for. A caller who names a generous target set out of caution — better to be safe, the eigenvalues might be anywhere — has paid orders for the caution, and paid them in a term nothing downstream will report.
Where the poles go
Given the target set, the poles are placed on the cut, and the rule is the one this collection keeps arriving at: geometric clustering towards the branch point.
Measured against evenly spaced poles, on a target set that stands off from the cut:
| poles | 4 | 6 | 8 | 10 |
|---|---|---|---|---|
| even ÷ clustered | 2.2 | 3.5 | 5.6 | 9.0 |
Clustering wins, by an amount that grows with the number of poles, which is what a rate difference looks like.
And where the rule stops
On a target set that reaches to within a hundredth of the branch point, the same comparison:
| poles | 4 | 6 | 8 | 10 |
|---|---|---|---|---|
| even ÷ clustered | 0.72 | 0.50 | 0.63 | 0.92 |
Clustering wins nothing, and on three of the four settings loses slightly.
The reason is a real constraint rather than a numerical accident. The poles are placed geometrically from the target set’s near end down to its far end, and when the near end is a hundredth of the way to the cut, the tightest poles sit closer to the cut than any point where the function is being sampled. Two such poles produce basis functions 1/(λ − ξ₁) and 1/(λ − ξ₂) that are nearly identical over every sample point, the least-squares problem that fits the coefficients becomes ill conditioned, and the extra resolution is spent on a direction the fit cannot resolve.
So the rule is not cluster towards the singularity. It is cluster relative to the region of interest, and the two coincide only when the region stands off from the singularity. That is the same qualification the ADI shifts have — shifts outside the spectrum are wasted — arriving here in a form where it actually bites, because a target set can approach a branch point in a way a spectrum cannot approach its own end.
What is actually being fitted
Worth one paragraph, because the fitting procedure is deliberately dull and that is a design decision.
The poles are fixed in advance, so r(λ) = c₀ + Σ αⱼ/(λ − ξⱼ) is linear in its unknown coefficients, and fitting it is one least-squares problem — a QR factorisation of a tall matrix and nothing else. No iteration, no greedy selection, no tolerance.
That matters because the approximation is supposed to be a fixed, known term in the error decomposition. An adaptive procedure that chose its own poles would have an accuracy story of its own, and the three-way separation in the previous essay would become a four-way one with a fuzzy boundary. Here ‖g − r‖ is a number that exists before anything else happens and stays fixed.
The sample points are geometric from the branch point rather than linear across the interval, for the same reason the poles are: a linear grid on an interval whose left end is a hundredth of the way to a singularity puts almost no points where the function is difficult. That is the same failure as evenly spaced ADI shifts, made one level down in the same construction, and it is easy to make twice.
The interaction nobody warns about
Two decisions have now been named — the reach, and the pole placement — and they are not independent.
The reach sets how hard the approximation problem is. The pole placement is a response to that hardness, and its effectiveness is limited by the reach: on an easy target set clustering is worth an order and on a hard one it is worth nothing. So a caller who reaches further towards the cut both makes the problem harder and removes the tool that would have helped.
That is an unpleasant interaction and it is the practical reason to be conservative about the target set. The cost of a generous region is not the smooth degradation the first table suggests; it is a degradation that also disables the response.
The counterpart in the reduction field is milder. There the spectrum’s ends are a property of the
problem rather than a choice, and geometric shifts work across the whole range — a wider spectrum
costs a slower rate and nothing else. It is worth noticing which of the two situations a given
construction is in — the distinction
a condition number scaling cannot move draws
between a difficulty that is a property and one that is a choice, because only one of them rewards care about the parameter.
What the target set is not
Three readings are natural and all three would make the decision sound less consequential than it is.
It is not a tolerance. Nothing about the target set says how accurate the answer should be. It says where the answer is expected to live, and the accuracy follows from that as a consequence rather than as a request. A caller who wants more accuracy on the same region adds poles; a caller who names a smaller region gets more accuracy for free.
It is not a filter. Eigenvalues outside the target set are not excluded from the computation. They are simply approximated badly, and — as the eigenvalues that are answers to nothing shows — the linearisation returns a great many numbers outside the region, most of which are not eigenvalues of anything anybody asked about. Naming a region is a statement about where the approximation is good, not about what will come back.
It is not revisable. Once the approximant exists and the n(m+1) matrix has been factorised, the answer is what it is. There is no correction step that recovers the approximation error from the computed eigenvalues, in the way iterative refinement recovers rounding: refinement works because the residual against the original problem can be computed, and here it can — which suggests a repair and is the reason the next paragraph exists.
That last point deserves the qualification, because the repair does exist and is not part of this essay’s measurement. A computed λ can be polished by Newton on the original scalar equation, using the approximant’s answer as a start, and that removes the approximation error entirely at a cost of a few evaluations of g. What it does not do is find eigenvalues the approximation moved so far that Newton converges to a different one — which is the same failure a problem with infinitely many eigenvalues measures for Newton on a determinant, where five of ten runs land beside a different eigenvalue from the one they were started near.
What a caller can actually do
Three things, and the first is by far the most valuable.
Estimate where the eigenvalues are before naming the target set. A handful of steps of any cheap method — a few Newton iterations on det T, a coarse contour count, an eigenvalue estimate of A alone — narrows the region enormously, and every order of narrowing is an order of approximation error. The estimate does not have to be good; it has to be a bracket.
Compute ‖g − r‖ once the approximant exists. It is a maximum of a scalar function over an interval and costs a few hundred evaluations. It is the term that will dominate the answer, and it is available before any eigenvalue is computed.
Check whether clustering is helping. Fit twice, once clustered and once evenly spaced, and compare the two maxima. It costs two QR factorisations of a few hundred rows. If the ratio is near one, the target set is touching the singularity and the real fix is to narrow it rather than to add poles.
All three are cheap relative to a single eigensolve of the n(m+1) matrix at the end, which is the recurring shape of the whole subject: the decisions that dominate the answer are the ones that cost nothing, and the expensive step is the one with the least influence over the result.
The two sample grids, and a defect that was made twice
Building this family produced one defect worth recording, because it was the same mistake at two levels of the same construction and the second instance was made after the first had been found.
The approximation is fitted by least squares over sample points on the target set, and the first version sampled them linearly across the interval. On a target set whose left end is six per cent of the way to the branch point, that puts perhaps three of two hundred and forty points in the region where the function is difficult — so the fit is optimising a quantity dominated by the easy part of the interval, and the reported maximum, measured on a different grid, is far worse than the fit’s own objective.
The symptom was that adding poles stopped helping much earlier than it should. The repair is to sample geometrically from the branch point, which puts a fixed fraction of the points in each decade of distance from it.
The same error had already been made and fixed one level up, in the pole placement, where evenly spaced poles put every pole in the easy part of the region. Finding it a second time in the sample grid is the useful part of the story: the rule is about any set of points placed across a region whose difficulty is not uniform, and a construction can contain two such sets whose spacing is decided in two different places.
approximationError measures on a geometric grid too, so the objective and the report agree. Getting
those two grids to disagree is a separate way to be wrong: a fit optimised on one grid and reported
on another produces a number that is neither the fit’s accuracy nor the function’s, and it is right
often enough not to look broken.
What the five orders are worth in context
It is worth putting the size of this effect beside the others this field has measured, because the ordering of the four is the field’s practical content.
| decision | worth |
|---|---|
| the units the polynomial is written in | ten orders |
| the target set for the approximation | five orders |
| the placement of the poles | one order, where there is room |
| the choice of linearisation | a factor of forty |
All four are made before any expensive arithmetic happens, and the eigensolve — which is the whole
cost — comes last and has no influence on any of them. A reader arriving from the error field will
recognise the shape: the algorithm is not where the accuracy is decided, and measuring the algorithm
is measuring the part that was never in doubt.
The ordering is also the order to fix them in. Units first, because ten orders; then the region, because five; then the poles and the form. It is settled rather than argued, which is the same service six routes to one spectrum performed for the two decisions it compared.
At other settings
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A constraint is a weight at infinity — both name condition number, least squares
- The conditioning that rises with the ceiling — both name condition number, nonlinear eigenvalue problem
- The half of a problem a sketch may touch — both name condition number, least squares
- The observation that cannot be removed — both name condition number, least squares
- Three errors and one number — both name approximation before linearisation, condition number
- When the matrix is wrong too — both name condition number, least squares
Named objects
A flat tag is an object no other essay names yet.
Approximation before linearisationBranch pointCondition numberLeast squaresNonlinear eigenvalue problemRational approximationShift selectionTarget setZolotarev number