Mathematics · Article
Conditioning, stability and error propagation
Local and finite sensitivity, constructive backward errors, residual certificates, stable reformulation, recurrences, differencing, spectral and least-squares perturbations, regularization and scientific uncertainty through complete worked derivations.
Back to MathematicsAfter reading, you can
- Define absolute, relative, componentwise and structured conditioning for a stated data domain, choice of norms and set of physical units.
- Derive local sensitivity from derivatives and finite bounds from valid paths, remainders, inverse maps and matrix perturbation arguments.
- Distinguish forward, backward and mixed stability, residual size and inherent problem sensitivity using complete exact examples.
- Analyze recurrence direction, finite-difference steps, eigenvalue perturbations, nonnormal growth and least-squares sensitivity under their stated hypotheses.
- Explain how scaling, regularization and deterministic or covariance uncertainty models change the interpretation of an error bound.
- Construct a justified stopping rule and total-error certificate that separates data, model, discretization, reconstruction and arithmetic errors.
Sensitivity of a problem and behavior of an algorithm
The preceding study of floating-point arithmetic explains how operations can perturb represented numbers. This lesson asks two further questions: how strongly does the exact answer react to a change in its data, and how faithfully does a chosen algorithm respect that answer? Conditioning addresses the first question and stability addresses the second. We develop both through derivatives, exact finite perturbations and constructive examples, then connect them to scientific error budgets.
The prerequisite tools are linear algebra, derivatives and integrals. The worked examples and exercises build from scalar sensitivity to linear solves, roots, recurrences, finite differences, spectral perturbations, least squares, regularization, covariance and a discrete boundary-value problem. These connections matter in computing and AI, physics and engineering, where a small algebraic residual can coexist with uncertain measurements, model bias or unresolved discretization error.
Unless a statement explicitly invokes a complex linear or spectral setting, data and scalar arithmetic here are real. Euclidean and spectral norms are identified when used; a star denotes conjugate transpose, while the covariance formula for real random vectors uses ordinary transpose. The residual-rounding bound uses the real normal-range arithmetic model, not an unchanged rule for arbitrary complex implementations. In identity-penalty Tikhonov regularization, lambda denotes the quadratic penalty coefficient; Hansen’s alternative parameter lambda_H satisfies lambda=lambda_H squared. Every comparison below retains its own domain, scales and admissible perturbations.
A problem, its data and its units
Write the exact problem as y=F(x), with x in a stated admissible data set D and y in an output space. The data may be a measured length, a coefficient vector, a matrix together with a right-hand side, or a function sampled under a specified model. A numerical algorithm produces an approximation to F(x); it is not the definition of F. Before discussing accuracy, identify both the mathematical target and what is allowed to change in its input.
A size comparison needs norms and units. For a scalar map from metres to square metres, an absolute sensitivity has units of metres; for a vector combining temperature, time and mass, an unweighted Euclidean norm silently chooses relative scales between unlike physical quantities. One can instead work with dimensionless coordinates x_j/s_j using positive declared scales s_j. A change of units changes the numerical absolute derivative, so that number cannot be interpreted independently of its coordinate convention.
Admissible perturbations matter as much as size. Independent errors in each matrix entry, a common calibration multiplier, a symmetry-preserving change and a perturbation of one physical parameter are different models. Their worst cases need not coincide. A condition number takes a supremum over its declared perturbation class; it does not assert that every admissible disturbance is equally harmful or that a measured disturbance attains the worst direction.
The analysis below first uses finite-dimensional normed spaces and an interior point of an open data domain. Constrained or boundary data require the corresponding admissible directions rather than an unqualified full-space derivative norm. A problem may have a unique continuous answer but a large condition, or even fail to have a continuous locally single-valued answer. Such difficulties exist before an algorithm is chosen. Stability will describe the algorithm under a separate arithmetic contract. For problem-dependent conditioning and the underlying derivative setting, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html).
Absolute condition as a derivative norm
Suppose F is Fréchet differentiable at an interior point x. This means F(x+h)=F(x)+J h+R(h), where J is a linear map and ||R(h)||/||h|| tends to zero as h tends to zero. Define the local absolute condition by C_abs(x)=lim_(epsilon down to 0) sup_(0<||h||<=epsilon) ||F(x+h)-F(x)||/||h||. The input and output norms can differ; the induced norm of J is the supremum of ||J v|| over unit input vectors.
The triangle inequality gives ||F(x+h)-F(x)||/||h|| <= ||J||+||R(h)||/||h||. Fréchet differentiability makes the second term uniformly small for every sufficiently small nonzero h, so the limiting supremum is at most ||J||. This uniform statement is why an arbitrary list of directional derivatives would not by itself establish the result. It controls all nearby input directions in the chosen finite-dimensional norm.
For the reverse inequality, choose a unit vector v with ||J v|| within any positive delta of ||J||; in finite dimensions a maximizing vector also exists by compactness. Set h=t v and let positive t tend to zero while remaining inside the data domain. The reverse triangle inequality makes the change quotient approach ||J v||. Letting delta tend to zero proves C_abs(x)=||J||, including the case J=0.
This equality is local. If J=0, the first-order absolute condition is zero, but a nonconstant quadratic remainder can still change the answer at finite distances. If F is not differentiable, the defining limiting supremum may still make sense, but it need not equal the norm of a derivative that does not exist. On a constrained domain, only feasible directions can supply the lower-bound construction. The exact finite perturbation must be assessed separately when its size is no longer asymptotically small. For Fréchet derivatives and local conditioning, see [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/).
Relative and mixed condition numbers
At a point with ||x||>0 and ||F(x)||>0, allow normwise relative input changes ||h||<=epsilon||x||. Divide the output change by epsilon||F(x)|| and take the small-epsilon supremum. Substituting h=epsilon||x||v into the derivative expansion gives kappa_rel(x)=||J|| ||x||/||F(x)||. Both factors of scale belong to the definition: the same derivative can have a different relative interpretation at different input and output magnitudes.
The statement ||delta y||/||y|| <= kappa_rel(x) epsilon+o(epsilon) is a first-order worst-case bound. It does not mean that a finite perturbation exactly multiplies by kappa, nor that the neglected term is harmless without a neighborhood estimate. The number is dimensionless when consistent units are used, and a pure change of scalar input and output units cancels in the ratio. A general reweighting of multiple coordinates changes the perturbation model rather than merely renaming a common unit.
At x=0, a relative input ball of radius epsilon||x|| contains only the unchanged datum. At F(x)=0, the proposed relative output quotient divides by zero. Neither difficulty is resolved by printing zero or infinity without explaining the question. Use an absolute input radius, an absolute output tolerance, or positive reference scales s_in and s_out instead. The resulting scaled local condition is ||J|| s_in/s_out and answers that explicitly scaled question.
Mixed measures can be useful when one output is a small correction to a large physical baseline. For example, an absolute error in a near-zero residual may matter even though its relative error is large. Report the residual units and tolerance instead of demanding a meaningful relative residual at an exact zero. In systems with several outputs, a zero component may need its own absolute scale while nonzero components retain relative scales. A condition statement is complete only after these choices are visible. For absolute and relative condition numbers, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/).
Scalar sensitivity and dimensionless derivatives
For a differentiable real scalar function with x nonzero and f(x) nonzero, the derivative norm is |f′(x)|. Thus kappa_rel(x)=|x f′(x)/f(x)|. This is a logarithmic sensitivity in magnitude: a small relative input change produces at most this factor times its size in relative output, to first order. The formula does not require taking a real logarithm of a negative value; absolute values already specify the local relative magnitudes.
For f(x)=x^m with positive integer m and x nonzero, f′(x)=m x^(m-1), so the relative condition is m. The absolute condition is m|x|^(m-1), which depends on scale. At x=0 the relative formula is unavailable, although the absolute derivative exists and may vanish. A large exponent therefore amplifies small relative input uncertainty even when the value can be computed by an algorithm with a small backward error.
For f(x)=exp(x), absolute condition is exp(x) and relative condition is |x| when x is nonzero. The exact relative output change under an absolute input change h is |exp(h)-1|, bounded by exp(|h|)-1. To express this using a relative input tolerance epsilon at the base x, replace |h| by epsilon|x|. This substitution prevents confusing one unit of absolute input uncertainty with one unit of relative uncertainty.
Differentiate x⁴ to obtain 4x³ and take its absolute value for the local absolute condition. When x and f(x) are nonzero, scaling by |x/f(x)| gives four. The binomial expansion gives the exact higher terms, bounded by (6x²+4|x|/10+1/100)h² on the chosen input region.
| Quantity | Exact result |
|---|---|
| Base and perturbed value | 16, 194481/10000 |
| Absolute local condition | 32 |
| Relative local condition | 4 |
| Exact Δf | 34481/10000 |
| Linear term | 16/5 |
| Exact remainder | 2481/10000 |
| Uniform remainder bound on |h|≤1/10 | 2481/100 h² |
| Bound at the selected step | 2481/10000 |
| Relative input/output magnitudes | 1/20, 34481/160000 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| x | 2 |
| h | 1/10 |
For f(x)=sin(x), the relative formula is |x cot(x)| wherever x and sin(x) are nonzero. It is zero at a nonzero extremum such as pi/2 because the first derivative vanishes there, while finite second-order changes remain. As x tends to zero through nonzero values, x cot(x) tends to one, but the relative quotient at the exact base x=0 is still undefined. Near a nonzero root of sine the denominator becomes small and the relative condition grows without bound. For scalar condition numbers and differentiation, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html).
Componentwise and weighted perturbations
Let real input errors satisfy |h_j|<=epsilon a_j, where a_j>=0 are declared component scales. The derivative contribution obeys |(J h)_i|<=epsilon sum_j |J_ij| a_j. Each row bound is attainable to first order by choosing signs of h_j that align its nonzero terms. One sign choice need not maximize every row simultaneously, but maximizing over rows still gives the induced infinity-norm output bound.
With positive output scales b_i, the scaled first-order condition is max_i (sum_j |J_ij| a_j)/b_i. In matrix notation this is ||D_b inverse J D_a||_infinity when all input scales are positive; zero input scales simply freeze their components and can be handled without taking their inverse. Independent relative input errors correspond to a_j=|x_j|. Relative output components use b_i=|F_i(x)| only when those components are nonzero.
For a single nonzero scalar output the familiar componentwise relative condition is sum_j |partial F/partial x_j| |x_j| / |F(x)|. This differs from the normwise condition because its input set is a box rather than a ball scaled by ||x||. The formula is exact for the stated first-order supremum, not a statement that independent errors are random. In complex data, suitable phases replace the real sign alignment, with the associated complex-linear derivative interpretation.
The linear difference gives independent absolute change at most ε(|a|+|b|), with opposite operand perturbations achieving either endpoint. A common multiplier gives exact output change δ(a−b). Dividing by the base output is meaningful only when that output is nonzero.
| Quantity | Exact result |
|---|---|
| Base output | 1 |
| Independent signed output range | (−201/100, 201/100) |
| Positive attaining corner (Δa,Δb) | (101/100, −1) |
| Negative attaining corner | (−101/100, 1) |
| Independent relative upper bound | 201/100 |
| Common signed rule | ΔF=δ(a−b) |
| Common absolute bound | 1/100 |
| Common relative bound | 1/100 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 101 |
| b | 100 |
| epsilon | 1/100 |
A zero data component remains fixed under a purely relative componentwise model. If measurement or storage can introduce an absolute error there, give that component a positive absolute scale instead. Likewise, a zero output component needs an absolute output scale. These details are essential in sparse systems and physical models: preserving zero entries is a substantive restriction, and changing a scale can change the worst-case uncertainty being described. Weighted analysis exposes those assumptions rather than hiding them in one large dimensionless number. For conditioning models and derivative matrices, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html).
Finite perturbations and nonlinear remainders
A derivative measured at x does not control an arbitrarily long change to x+h. If F is continuously differentiable along the entire segment x+t h, zero<=t<=1, the fundamental theorem of calculus gives F(x+h)-F(x)=integral_0^1 J(x+t h) h dt. Therefore ||F(x+h)-F(x)|| <= ||h|| sup_(0<=t<=1)||J(x+t h)||. The segment must remain in the valid domain; a nearby pole or loss of uniqueness can invalidate the proposed neighborhood.
If F is twice continuously differentiable and the bilinear operator norm of its second derivative is at most L along that segment, subtract J(x)h and integrate once more. The integral remainder is integral_0^1 (1-t) D²F(x+t h)[h,h] dt, whose norm is at most L||h||²/2. This supplies a numerical finite remainder once L and the domain are actually bounded; an unspecified big-O term is not such a certificate.
For f(x)=1/(1-x), the exact difference is h/((1-x-h)(1-x)). If |h|<|1-x|, taking absolute values yields |f(x+h)-f(x)|/|f(x)| <= |h|/(|1-x|-|h|). Its first-order limit agrees with the derivative-based condition, but the finite denominator records the approach to the pole. Replacing that denominator by |1-x| would discard the very instability that matters near the boundary.
Finite uncertainty sets can be propagated by direct interval or monotonicity arguments even when a derivative estimate is inconvenient. Such an enclosure answers a worst-case finite question. A linearized estimate can be shorter and informative, but it must be labeled approximate unless the remainder is controlled. The same distinction will appear for matrix perturbations, residual certificates and probabilistic propagation: local sensitivity, finite enclosure and statistical coverage are separate statements with separate evidence. For the domain-sensitive derivative bounds underlying the finite argument, see [Basic Analysis II, Section 8.4: continuity and the derivative](https://www.jirka.org/ra/html/sec_svthedercont.html).
Composition and alignment
Suppose F maps one normed data space to another and G maps that intermediate space to the output, with both differentiable at the relevant points. The chain rule gives D(G composed with F)(x)=DG(F(x)) DF(x). The induced-norm inequality then gives C_abs(G composed with F,x)<=||DG(F(x))|| ||DF(x)||. The intermediate norm used on both factors must be the same; otherwise the displayed product compares incompatible scale conventions.
When x, F(x) and G(F(x)) have nonzero norms, multiply the corresponding relative conditions. The intermediate norm ||F(x)|| cancels, leaving the product upper bound kappa_rel(G composed with F,x)<=kappa_rel(G,F(x)) kappa_rel(F,x). This is an inequality. The most sensitive input direction of G may not lie in the range of DF, or the image of the most sensitive direction of F may point where G is insensitive.
An exact Euclidean example makes the gap explicit. Let F(t)=(t,t), so ||DF||=sqrt(2), and let G(v,w)=v-w, so ||DG||=sqrt(2). Their product bound is two. Yet G(F(t))=0 for every real t, and its absolute derivative and absolute condition are zero. The two intermediate components are perfectly linked by the problem; treating them as independently perturbable would change the problem itself.
This example uses absolute conditions because the composite output is zero and its relative output condition is undefined. It also explains why a computational expression can expose intermediate vulnerabilities that are absent from the original data-to-answer map. Arithmetic errors inserted between F and G can break the exact linkage of their intermediate values. A stable implementation must analyze those inserted disturbances, while the mathematical composition condition continues to describe perturbations of its original input alone. For the chain rule used in this derivation, see [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html).
Sums, differences and dot products
For s=sum_j x_j with s nonzero and independent componentwise relative input changes |h_j|<=epsilon|x_j|, the exact change is sum_j h_j. Its largest magnitude is epsilon sum_j |x_j|, attained by aligned signs. Thus kappa_sum=sum_j|x_j|/|s| is both the first-order relative condition and the exact finite relative amplification for this linear problem. A zero exact sum requires an absolute output bound instead.
A difference a-b is the same linear problem with coefficients one and minus one. Near cancellation, |a|+|b| can be much larger than |a-b|, so independent relative uncertainty in the two operands can dominate the answer. If both operands instead share the same multiplier 1+delta, their difference also receives that multiplier and the relative output change is only |delta|. The correlation restriction changes the admissible perturbations and therefore changes the condition statement.
For a dot product d=a transpose b with one vector fixed and the other independently perturbed componentwise, the analogous relative condition is sum_j |a_j b_j|/|d|. If both vectors have independent relative errors bounded by epsilon, expansion gives delta d=sum_j(b_j delta a_j+a_j delta b_j+delta a_j delta b_j). Hence |delta d|<= (2epsilon+epsilon²) sum_j |a_j b_j|. The first-order factor is twice the one-vector condition for that two-vector perturbation model.
These are properties of the exact sums and dot products. The arithmetic error of a specific summation order, fused dot product or compensated algorithm is additional. A highly sensitive sum may nevertheless be evaluated exactly for particular represented inputs, and an insensitive sum may still be evaluated poorly by a deliberately unstable procedure. Use the preceding floating-point lesson for its operation-path bounds; here the data condition explains how a backward perturbation of those inputs would affect the exact answer. For the distinction between problem sensitivity and arithmetic stability, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
A well-conditioned target can have an unstable expression
Consider f(x)=sqrt(1+x)-1 for x>-1, with x nonzero. Put s=sqrt(1+x)>0. Since x=(s-1)(s+1) and f′(x)=1/(2s), its relative condition simplifies to |x/(2s(s-1))|=(s+1)/(2s). As x tends to zero through nonzero values, this tends to one. The original input-to-answer problem is therefore relatively well conditioned near, but not at, its zero output.
The literal expression first forms 1+x, then a square root, then subtracts one. An absolute error of order u in the near-one intermediate square root can become a large relative error in a result of order x/2. This is an inserted arithmetic disturbance at an intermediate node, not a perturbation of the original x by the same relative amount. If 1+x has already rounded to one, subsequent exact subtraction returns zero and cannot recover the lost increment.
Rationalization gives the same exact target as x/(sqrt(1+x)+1). Near zero its denominator stays close to two, so intermediate absolute errors need not be magnified by subtraction of nearly equal near-one values. A complete arithmetic proof still needs the actual rounding, elementary-function and range contracts; an algebraic reformulation alone does not certify every implementation. In particular, underflow of the final tiny result or errors already present in x remain separate limitations.
At x=0 use an absolute output measure or a positive reference scale, not the relative formula with zero denominator. As x approaches -1 from above, s tends to zero and (s+1)/(2s) diverges: the exact target then becomes ill conditioned, and rationalization cannot remove that mathematical sensitivity. This single function separates a locally well-conditioned target with a vulnerable expression from a genuinely sensitive boundary of the same target. For conditioning and stability context for this independently derived reformulation, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Polynomial data and evaluation arguments
Let p(x)=sum_(j=0)^n a_j x^j at a fixed x with p(x) nonzero. Independent coefficient perturbations |delta a_j|<=epsilon|a_j| change the value by exactly sum_j delta a_j x^j. Thus the componentwise relative coefficient condition is kappa_coeff=(sum_j |a_j||x|^j)/|p(x)|. For real data, signs can align all contributions; coefficient zeros are fixed under this particular relative model.
If the coefficients are fixed and only a nonzero argument x changes, the local relative argument condition is kappa_arg=|x p′(x)/p(x)|. These are different data questions. A small coefficient perturbation need not correspond to a small argument perturbation or vice versa. When both vary independently at a common relative first-order level, the triangle inequality gives the sum of their corresponding contributions, while a finite joint bound must also account for higher powers of the argument change.
Near a simple zero of p, the value p(x) is small and a relative evaluation condition may become large. At the exact zero, relative output error for evaluation is undefined. Root finding asks for the location of a zero as a function of coefficients and has another derivative formula, developed next. Confusing the evaluation output p(x) with the root location can therefore attach the right formula to the wrong mathematical problem.
A backward-stable polynomial evaluator in a coefficientwise sense returns the exact value of a polynomial with slightly perturbed coefficients under its stated arithmetic assumptions. The coefficient condition then converts that statement into a forward value estimate. It does not by itself prove stability with respect to perturbing only x, nor does a small value residual alone bound the error in a root location. Representation, coefficient scale and the chosen data model must remain visible. For normwise conditioning and a distinct polynomial-root perturbation model, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/).
Simple roots and multiple roots
For a real equation f(r,d)=0, suppose f is continuously differentiable near the base solution and its scalar derivative f_r is nonzero there. The implicit-function theorem then gives a locally unique differentiable root branch r(d). Differentiating the identity yields delta r=-(f_d delta d)/f_r+o(||delta d||). The existence, branch and nonzero-derivative hypotheses are part of this named theorem; they cannot be replaced by a small observed residual.
For a polynomial p(r)=sum_j a_j r^j with a simple real root, the coefficient differential is delta r=-(sum_j delta a_j r^j)/p′(r) to first order. Independent relative coefficient changes therefore give the absolute first-order bound epsilon sum_j |a_j||r|^j/|p′(r)|. If r is nonzero, division by |r| gives the corresponding relative root condition. At r=0 retain the absolute form or declare a positive output scale.
A multiple root can behave differently. The base polynomial x^m has root zero of multiplicity m. Perturb its constant term to obtain x^m-t. For positive real t, its positive real root is t^(1/m). When m>1 the ratio t^(1/m)/t grows without bound as t decreases to zero, so no finite local linear absolute amplification describes that branch at t=0. For an even m and negative t there is no real root, demonstrating an additional domain and branch limitation.
This fractional-power example does not say that every coefficient direction splits every multiple root in the same way. A restricted perturbation can preserve multiplicity or move the polynomial within a special family. It does show why the simple-root denominator p′(r) cannot be used when it vanishes. Numerical root certificates must establish an appropriate neighborhood and branch, or use a method tailored to multiplicity rather than assigning a finite inverse-slope bound where none is available. For the local implicit-function theorem and root-conditioning context, see [Basic Analysis II, Section 8.5: inverse and implicit function theorems](https://www.jirka.org/ra/html/sec_svinvfuncthm.html); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/).
Inverse maps and singular derivatives
Let F map open subsets of equal-dimensional real vector spaces and be continuously differentiable near x, with invertible derivative J=DF(x). The inverse-function theorem supplies neighborhoods on which F has a differentiable local inverse H, and differentiating H(F(x))=x gives DH(F(x))=J inverse. Its local absolute condition is therefore ||J inverse|| in the paired output-to-input norms. This is a local theorem, not global injectivity of F.
For compatible norms, ||J||||J inverse||>=||I||=1. A small forward derivative can therefore make the inverse problem highly sensitive in at least one direction. In Euclidean coordinates the largest and smallest singular values describe these two extreme gains. In more than one dimension, forward and inverse absolute conditions are generally not reciprocals: they use the largest singular value and the reciprocal of the smallest singular value, respectively.
For a scalar local inverse with nonzero x, y=f(x), and derivative f′(x), the two relative conditions do multiply to one: |x f′(x)/y| times |y/(x f′(x))| equals one. This scalar identity requires every displayed denominator to be nonzero. It should not be promoted to a multivariable identity or applied at a zero output simply by continuity of a nearby formula.
A singular derivative means that the stated differentiable-inverse theorem does not apply. It does not prove the original map lacks a set-theoretic inverse. The real map F(x)=x^3 is globally one-to-one and onto, but its inverse is the cube root and has unbounded difference quotients at zero. Its forward absolute derivative at zero is zero, while the inverse is not differentiable there. This distinction separates invertibility, continuity, differentiability and finite local condition. For the local inverse theorem and its limitations, see [Basic Analysis II, Section 8.5: inverse and implicit function theorems](https://www.jirka.org/ra/html/sec_svinvfuncthm.html).
Linear solves with a fixed matrix
For a fixed nonsingular square matrix A, the exact solve is F(b)=A inverse b. Its derivative with respect to b is the same linear map A inverse, so the absolute condition in compatible norms is ||A inverse||. At b nonzero the solution x is nonzero, and the normwise relative condition is kappa_b=||A inverse||||b||/||x||. This depends on the actual right-hand side as well as on A.
Because b=Ax, the inequality ||b||<=||A||||x|| gives kappa_b<=kappa(A)=||A||||A inverse||. The matrix condition is a convenient worst-case upper bound, not the exact directional condition for every b. In spectral norm, a singular-value decomposition gives ||A||_2=sigma_max and ||A inverse||_2=1/sigma_min, hence kappa_2(A)=sigma_max/sigma_min.
The upper bound is attainable in the Euclidean model. Choose x to be a unit right singular vector for sigma_max, so ||b||=sigma_max, and perturb b in a left singular-vector direction for sigma_min. Then the baseline output scale is one while the perturbation is amplified by 1/sigma_min, attaining the local relative factor sigma_max/sigma_min. This constructs a worst-case combination rather than assuming every right-hand side realizes it.
If b instead lies in a most-amplified direction of A inverse, its own relative b condition can be one even when kappa(A) is large. Matrix uncertainty still presents another sensitivity, and a small fixed-A b condition does not remove it. State whether A is exact, uncertain, measured or itself computed. The same stored matrix can represent different scientific problems depending on which parts of its data are allowed to move. For matrix norms, singular directions and perturbations, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Finite matrix and right-hand-side perturbations
Let A be nonsingular, b nonzero, x=A inverse b, and consider (A+E)(x+delta x)=b+f. If q=||A inverse E||<1 in a compatible induced norm, the series sum_(k=0)^infinity (-A inverse E)^k converges in norm, multiplies I+A inverse E to I and has norm at most 1/(1-q). Thus A+E is nonsingular. This Neumann-series argument is a sufficient local-radius statement with a specific denominator.
Subtracting Ax=b gives (A+E)delta x=f-Ex, so delta x=(I+A inverse E) inverse A inverse(f-Ex). Consequently ||delta x|| <= ||A inverse|| (||f||+||E||||x||)/(1-q). This finite inequality precedes any simplification to relative quantities and remains useful when the actual norm ||A inverse E|| is smaller than the generic product ||A inverse||||E||.
Put delta_A=||E||/||A|| and delta_b=||f||/||b||. If kappa(A)delta_A<1, then q<=kappa(A)delta_A, while ||b||/||x||<=||A||. Dividing the preceding inequality by ||x|| gives ||delta x||/||x|| <= kappa(A)(delta_A+delta_b)/(1-kappa(A)delta_A). The matrix and right-hand-side disturbances both enter; discarding the matrix term would answer a different fixed-matrix problem.
For very small disturbances, expansion of the denominator gives the familiar first-order kappa-weighted estimate. For a finite certificate keep the denominator itself. Reaching or exceeding kappa(A)delta_A=1 makes this sufficient bound unavailable; it does not prove that every such E is singular. A particular perturbation can be harmless outside the guaranteed ball, while a worst direction reaches singularity at the spectral distance derived next. Additional structure can sharpen the admissible set and its bound. For the Neumann-series matrix perturbation argument, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Distance to singularity
In spectral norm let A be a nonsingular square matrix with smallest singular value sigma_min>0. If A+E is singular, choose a unit vector z in its nullspace. Then Az=-Ez, so sigma_min<=||Az||_2<=||E||_2. Every singularizing perturbation therefore has spectral norm at least sigma_min. This lower bound uses the variational characterization of the smallest singular value, not an entrywise estimate.
Choose unit right and left singular vectors v_min,u_min satisfying A v_min=sigma_min u_min. Define E=-sigma_min u_min v_min conjugate-transpose. This rank-one matrix has spectral norm sigma_min, and (A+E)v_min=0. It attains the lower bound, so the exact unstructured spectral distance to singularity is sigma_min. The real case uses an ordinary transpose; complex singular vectors use the conjugate transpose.
Dividing by ||A||_2=sigma_max gives the relative distance 1/kappa_2(A). This is a geometric interpretation of the condition number: a large condition places some singular matrix close in the declared relative spectral metric. It does not identify the likely physical perturbation, nor promise that an entrywise, symmetric, sparse or parameter-constrained change can realize the same closest direction.
For a rectangular full-column-rank matrix, an analogous singular-vector construction gives distance sigma_min to loss of column rank, but the problem then concerns a left inverse or least squares rather than an ordinary square inverse. For a square singular matrix the distance is already zero and the inverse-based condition is not finite. Preserve these rank and shape distinctions before importing a distance formula into a solver or an inverse scientific problem. For spectral distance to singularity, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Componentwise backward error from a residual
For a real matrix A, right-hand side b and candidate xhat, define the exact residual r=b-A xhat. Allow independent entrywise perturbations |E_ij|<=eta|A_ij| and |f_i|<=eta|b_i|, asking that (A+E)xhat=b+f. This is an unstructured relative-data backward-error problem; zero data entries stay zero, and no additional symmetry or parameter coupling is imposed. The perturbed equation is required to hold, without an extra uniqueness constraint on its perturbed matrix.
The required identity is E xhat-f=r. By the triangle inequality, |r_i|<=eta D_i, where D_i=sum_j |A_ij||xhat_j|+|b_i|. Therefore every feasible eta is at least max_i |r_i|/D_i over positive D_i. If D_i=0 for an exact residual of these same inputs, both b_i and every contributing A_ij xhat_j vanish, so r_i=0; define its ratio 0/0 as zero. A nonzero externally supplied residual at zero D_i would be inconsistent evidence, not a valid application of the formula.
To attain the bound, put theta_i=r_i/D_i when D_i>0 and zero otherwise. Set E_ij=theta_i |A_ij| sign(xhat_j), with sign(0)=0, and f_i=-theta_i|b_i|. Then (E xhat-f)_i=theta_i D_i=r_i. Each entry is bounded by eta_star times its data magnitude, where eta_star=max_i |r_i|/D_i. This constructs a feasible perturbation at the lower bound and proves the exact minimum.
The formula is componentwise, finite and constructive; it is not a statement about floating-point residual evaluation. If only an enclosure of r is available, outward upper bounds can yield a backward-error upper certificate but not automatically its exact value. Symmetry, positive definiteness, a common calibration parameter or another coupling may forbid the rowwise construction. Such a structured problem needs a separate minimization, and it can have a substantially different backward error. For the matrix and backward-error framework of this explicit construction, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Normwise backward error from a residual
Use Euclidean vector norms and their induced spectral matrix norm. For an exact residual r=b-A xhat, define a normwise relative backward perturbation by ||E||<=eta||A||, ||f||<=eta||b|| and (A+E)xhat=b+f. The matrix entries are unrestricted apart from this norm bound. We ask that xhat satisfy the perturbed equation; no additional uniqueness, symmetry or positivity constraint is built into this minimization.
Since E xhat-f=r, every feasible perturbation obeys ||r||<=eta D, where D=||A||||xhat||+||b||. Thus eta>=||r||/D if D>0. If r=0, the zero perturbation attains zero. If D=0, then b=0 and either A=0 or xhat=0, so the exact residual is also zero; assign backward error zero. This zero case is an exact-data statement and does not excuse an inconsistent supplied residual.
For r nonzero and xhat nonzero, let v=r/||r|| and eta_star=||r||/D. Set E=eta_star||A|| v xhat conjugate-transpose/||xhat|| and f=-eta_star||b||v. The rank-one spectral norm of E is eta_star||A||, and E xhat-f=eta_star D v=r. If xhat=0 and r nonzero, then r=b and eta_star=1; E=0, f=-b gives the same attainment. Therefore eta_star is the exact minimum for this Euclidean/spectral perturbation model.
The formula differs from componentwise backward error because a small normwise change may be large relative to a tiny row or entry. Its rank-one construction may destroy a structure that matters physically, so it is not an automatic structured certificate. Other norm pairs require their own attainment argument rather than importing this Euclidean construction unchanged. A computed residual must also be enclosed before its norm is substituted as if it were exact. For the normwise and backward-error framework of this construction, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Residuals and forward errors
Let A be nonsingular, x=A inverse b and e=xhat-x. With r=b-A xhat, multiplication gives A e=-r and hence e=-A inverse r exactly. This identity is more informative than a norm inequality when a verified enclosure of A inverse r can actually be obtained. It also fixes the sign convention: defining error as exact minus computed would reverse the sign while preserving all norm bounds.
For b nonzero, ||e||/||x|| <= ||A inverse||||r||/||x|| <= kappa(A)||r||/||b|| because ||b||<=||A||||x||. Thus the relative residual gives a forward upper bound only after conditioning is included. Conversely, ||r||<=||A||||e|| and ||b||>=||x||/||A inverse|| give ||e||/||x|| >= (||r||/||b||)/kappa(A). The two-sided interval can be very wide when kappa(A) is large.
If rhat is a computed residual with an established bound ||r-rhat||<=rho, use ||r||<=||rhat||+rho in the forward upper estimate. Observing a tiny rhat is insufficient if rho is larger. The bound rho itself needs the actual matrix-vector and subtraction evaluation contract, including conversion and underflow assumptions. A single empirical residual check cannot prove an arithmetic error bound or a condition estimate.
The second forward error is divided by the exact solution norm √2. Multiplication by the small singular value damps the same direction in the residual. The normwise backward error uses the sum ||A||||xhat||+||b||. The componentwise denominator uses |A||xhat|+|b| row by row, so the second ratio need not be small.
| Quantity | Exact result |
|---|---|
| Exact solution | (1,1) |
| Trial solution | (1, 2) |
| Spectral condition number | 10000 |
| Forward error vector | (0, 1) |
| Signed residual b−Axhat | (0, −1/10000) |
| Signed second componentwise ratio | −1/3 |
| κ times relative residual | 1/√(100000001/100000000) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| sigma | 1/10000 |
| second | 2 |
| Quantity | Value |
|---|---|
| Relative forward error | 1/√2 |
| Relative residual | 1/10000/√(100000001/100000000) |
| Normwise backward error | 1/10000/(√(5)+√(100000001/100000000)) |
| Componentwise backward error | 1/3 |
A residual measures how closely xhat satisfies the stored equation. It does not measure whether that equation accurately represents a physical model, nor whether discretization or measurement uncertainty is acceptable. At b=0, the relative residual denominator is unavailable, but the exact identity e=-A inverse r and absolute bounds remain valid. Componentwise residual scales may also reveal a poor tiny equation that a single Euclidean norm conceals. For matrix perturbation and norm context, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
From backward stability to forward accuracy
For a specified family of arithmetic implementations, a normwise backward-stability statement asserts that the returned value equals F(x+delta x) for a nearby admissible datum, with ||delta x||/||x|| bounded by a stated C(n)u plus controlled higher-order terms. Here u is the arithmetic unit round-off, n may describe problem size, and the domain, scales and admissible perturbations are part of the statement. A constant allowed to grow arbitrarily like 1/u would make the claim uninformative.
If F is differentiable and the backward perturbation remains in its valid neighborhood, Taylor expansion gives ||F(x+delta x)-F(x)||/||F(x)|| <= kappa_rel(x)||delta x||/||x||+o(||delta x||/||x||). A backward bound of order u therefore yields a first-order forward bound of order kappa_rel(x)u, with its actual constants and dimension dependence retained. Nonzero input and output norms are required for these relative expressions.
For a finite statement, replace the local expansion by a justified neighborhood Lipschitz bound or by the finite matrix perturbation denominator already derived. If kappa times the backward perturbation is near one, a first-order estimate may be unreliable. A stable algorithm cannot manufacture information that the uncertain data do not determine. Conversely, a well-conditioned problem can be solved inaccurately by an unstable algorithm that introduces a much larger effective perturbation.
A proof of stability analyzes the algorithm and its arithmetic contract across the declared class of inputs; it is not established by one successful numerical experiment. A particular answer can have a small measured backward error even if its generating algorithm lacks a general stability theorem. Pure backward stability may also be impossible for some output structures, motivating mixed statements. Zero outputs and componentwise constraints need their own scale conventions rather than a forced use of the normwise formula. For the distinction between stability and conditioning, see [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/).
Small backward error and large forward error
Take A=diag(1,delta), b=(1,delta) transpose with 0<delta<1, and exact solution x=(1,1) transpose. Consider xhat=(1,2) transpose. Its forward error e=(0,1) has relative Euclidean norm 1/sqrt(2), independent of delta. The residual is r=(0,-delta), whose relative norm is delta/sqrt(1+delta²) and tends to zero with delta.
The spectral condition is 1/delta. Multiplying it by the relative residual gives 1/sqrt(1+delta²), a valid upper bound for 1/sqrt(2). Thus a tiny residual did not certify a tiny forward error; the sensitivity factor restores the missing scale. The exact normwise backward error is delta/(sqrt(5)+sqrt(1+delta²)), also small as delta tends to zero. This candidate is an exact solution of a nearby problem in that unstructured normwise sense.
Its componentwise backward error tells another story. The first row residual is zero. In the second row the denominator |A||xhat|+|b| is 2delta+delta=3delta, so the row ratio is 1/3. That does not shrink with delta. A small normwise perturbation is allowed to be a substantial relative change in the small second equation; a componentwise model exposes that limitation.
This construction is a statement about one candidate and two perturbation models, not a proof that an algorithm is backward stable. It also shows why reporting only one residual norm or one backward-error label can be misleading. A scientific tolerance should state whether errors in tiny equations or variables matter separately, and which physical data can vary. The appropriate condition and backward model must describe the same data assumptions before their conclusions are combined. For the stability and matrix-perturbation setting of this exact example, see [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Forward stability, convergence and consistency
A forward-error bound compares the computed result directly with the exact answer to the stated data. In arithmetic analysis, forward stability commonly means that the error is comparable, with controlled constants and declared scales, to the error expected from small admissible arithmetic-sized data perturbations. A first-order condition number often supplies that comparison, but zero derivatives, zero outputs and final output rounding can require absolute terms or higher-order analysis. There is no useful universal formula obtained by ignoring those cases.
Convergence asks about another parameter limit. A discretization may approach an exact function as a mesh width h tends to zero in exact arithmetic. An iteration may approach its fixed point as k tends to infinity. Neither statement by itself bounds round-off on a finite implementation. A convergent difference quotient can become inaccurate when a smaller h magnifies fixed evaluation errors, and a convergent iteration can stop changing once its updates round away.
Consistency asks whether a discrete equation or local approximation agrees with the target equation in the appropriate limiting sense. It also needs a stated norm and regularity class. Consistency alone does not guarantee convergence or a well-conditioned discrete solution map. Numerical differential-equation theory uses additional notions such as zero-stability or energy stability; those are scoped properties of a discretization family and should not be silently substituted for floating-point backward stability.
A complete numerical argument can therefore need several layers: the model has an appropriate solution, the approximation converges under its assumptions, the finite discrete problem has acceptable sensitivity, and the implemented algorithm has a suitable arithmetic-error bound. Demonstrating one layer does not close the others. Retaining those distinctions makes it possible to improve an algorithm without changing the scientific target or to change the model deliberately when the target itself is too sensitive. For arithmetic stability terminology, see [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Mixed stability and output perturbations
A mixed stability statement permits both nearby data and a small additional output perturbation. One form is yhat=F(x+delta x)+delta y, with declared bounds on delta x and delta y in their own scales. A componentwise multiplicative output form is another possibility, but its zero-component conventions must be stated. Mixed stability is a specific relation to nearby exact answers, not a general license to call every observed discrepancy harmless.
Pure backward stability is the special case delta y=0 with an admissible data perturbation of controlled size. Allowing a nonzero output perturbation is generally weaker: the exact range of F may not contain yhat at all. To turn a mixed result into a pure backward result would require a suitable local inverse or right-inverse sensitivity and compatibility with every data constraint. A small forward error alone does not supply those properties.
For an exact example, let F(t)=(t,1) and return yhat=(t,1+epsilon). In Euclidean norm the output error has size |epsilon|. It is a mixed statement with unchanged data and delta y=(0,epsilon). No input perturbation can make F(t+delta t) equal yhat when epsilon is nonzero, because every exact output has second component one. Thus even an arbitrarily small forward error need not admit a pure backward interpretation for this problem.
The example concerns the output range, not a particular floating-point platform. In larger problems, normalization, orthogonality, conservation or rank constraints can impose similar structure. A mixed theorem can still provide a useful forward estimate by combining data sensitivity with its explicit output term. Preserve that output term rather than silently folding it into an impossible data perturbation or asserting a stronger stability property than the proof establishes. For mixed stability and the importance of an admissible nearby problem, see [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Cancellation in a well-conditioned trigonometric target
Let f(x)=1-cos(x) for a nonzero x with f(x) nonzero. Its relative condition is |x sin(x)/(1-cos(x))|=|x cot(x/2)|, using the half-angle identities. As x tends to zero through nonzero values, this tends to two. The target is therefore locally well conditioned in relative x near that zero, even though the value itself is of order x².
Suppose the computed cosine has absolute error at most a before the subtraction is performed. Even with exact final subtraction, the induced absolute error in f is at most a, and its possible relative size is a/|1-cos(x)|, of order 2a/x² near zero. If the cosine rounds to exactly one, the subtraction returns zero. An arithmetic disturbance inserted after the original input can therefore overwhelm the target without contradicting the condition of the original x-to-f map.
The identity f(x)=2 sin²(x/2) avoids subtracting two near-one quantities. If the relevant division, sine evaluation, squaring and final scaling satisfy suitable relative-error and range contracts, their small relative errors can be propagated without the cancellation factor. This statement needs an actual sine contract and representable nonzero intermediates; the identity by itself proves neither a library’s correct rounding nor immunity to underflow.
At x=0 the relative output condition is undefined despite its finite nearby limit. Near a nonzero multiple of 2pi, the factor |x cot(x/2)| grows without bound, reflecting a sensitive target rather than merely a vulnerable expression. The scientific input might also be an uncertain angle obtained by subtracting two measured phases, adding another conditioning layer. Keep the target, its input construction and its evaluation algorithm separate. For the conditioning-versus-stability framework of this trigonometric derivation, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
A recurrence with an unstable direction
For integer n>=0 define I_n=integral_0^1 x^n/(x+5) dx. Since 1/6<=1/(x+5)<=1/5 on the interval, integration gives 1/(6(n+1))<=I_n<=1/(5(n+1)). For n>=1, divide x^n by x+5 to obtain x^n/(x+5)=x^(n-1)-5x^(n-1)/(x+5). Hence I_n=1/n-5I_(n-1), with I_0=log(6/5). These identities and bounds are exact.
If the forward recurrence is evaluated exactly apart from an initial error delta_0, the propagated error is delta_n=(-5)^n delta_0. With additional absolute local errors rho_j in the jth computed recurrence, it becomes delta_n=(-5)^n delta_0+sum_(j=1)^n (-5)^(n-j)rho_j. Thus small disturbances can be multiplied by large powers even while the true I_n decreases like 1/n. This is an unstable recurrence direction for the desired small solution.
Rearrange instead as I_(k-1)=(1/k-I_k)/5 and start at an integer M>n with the approximation I_M=0. With exact subsequent arithmetic, the terminal error propagates as delta_n=(-1/5)^(M-n)(-I_M). The integral bound gives |delta_n|<=1/(5^(M-n+1)(M+1)). This is a rigorous truncation certificate for the chosen finite backward recurrence, not a claim that the terminal value really vanishes.
Use x^n/(x+a)=x^(n−1)−a x^(n−1)/(x+a). The denominator stays between a and a+1, giving rigorous bounds for the terminal integral. Forward errors multiply by −a, while backward errors multiply by −1/a. The parity of the step count fixes the signs of the propagated bounds.
| Quantity | Exact result |
|---|---|
| I₀ | ln((6)/5) |
| Forward recurrence | I_n=1/n−5 I_(n−1) |
| Terminal integral bounds | (1/54, 1/45) |
| Backward signed multiplier | −1/3125 |
| Target signed error interval (computed minus true) | (1/168750, 1/140625) |
| Backward approximation at target | 22651/525000 |
| Forward initial and final signed errors | (1/1000000000000, 1/2560000) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 5 |
| terminal | 8 |
| target | 3 |
| initial | 1/1000000000000 |
| n | Signed error |
|---|---|
| 0 | 1/1000000000000 |
| 1 | −1/200000000000 |
| 2 | 1/40000000000 |
| 3 | −1/8000000000 |
| 4 | 1/1600000000 |
| 5 | −1/320000000 |
| 6 | 1/64000000 |
| 7 | −1/12800000 |
| 8 | 1/2560000 |
If backward step j introduces an additional absolute error rho_j in I_j, the final extra error is sum_(j=n)^(M-1)(-1/5)^(j-n)rho_j. A uniform bound |rho_j|<=rho therefore contributes at most rho sum_(l=0)^(M-n-1)5^(-l)<=5rho/4. The damping helps, but the numerical value of rho still needs the actual arithmetic and input-evaluation contract. Choosing a recurrence direction and certifying its terminal and arithmetic errors are separate tasks. For calculus bounds and stability context for this independently derived recurrence, see [Basic Analysis II, Section 8.4: continuity and the derivative](https://www.jirka.org/ra/html/sec_svthedercont.html); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Differentiation balances truncation and arithmetic noise
Take h>0 with the entire needed interval inside the domain. If |f″|<=M_2 on [x,x+h], Taylor’s integral remainder gives |(f(x+h)-f(x))/h-f′(x)|<=M_2 h/2. Suppose each supplied function value has absolute error at most epsilon_f and the displayed subtraction and division are exact for this error model. Their two disturbances contribute at most 2epsilon_f/h, so the total forward-difference bound is M_2 h/2+2epsilon_f/h.
For M_2>0 and epsilon_f>0, differentiate this positive-step bound or complete the arithmetic-geometric-mean inequality. Its minimum occurs at h=2sqrt(epsilon_f/M_2), with value 2sqrt(M_2 epsilon_f), provided that step is admissible. The first term decreases when h shrinks, but the second grows. If the allowed interval restricts h, minimize over that actual interval; if a bound constant vanishes, the interior minimizer formula no longer applies unchanged.
For a central difference, assume |f‴|<=M_3 on [x-h,x+h]. Taylor expansion on each side, with their third-order remainder bounds, gives truncation error at most M_3 h²/6. The two absolute evaluation errors contribute at most epsilon_f/h after division by 2h. For positive M_3 and epsilon_f, minimizing M_3 h²/6+epsilon_f/h gives h=(3epsilon_f/M_3)^(1/3). At that step the bound equals M_3 h²/2.
These are rigorous bounds under the declared evaluation-error model, not a universal instruction to use a particular machine step. Floating subtraction and division, rounded sample locations, uncertainty in x, noisy measured data and elementary-function behavior can add other terms. If epsilon_f itself depends on h, the minimization must use that dependence. A good step balances the actual errors and remains in the domain where the derivative bounds and function-evaluation assumptions hold. For derivative bounds and arithmetic-error context for this step-size derivation, see [Basic Analysis II, Section 8.4: continuity and the derivative](https://www.jirka.org/ra/html/sec_svthedercont.html); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/).
Nonlinear residuals need an inverse-slope bound
Suppose a real continuous function has a root alpha in an interval I and is differentiable between alpha and a candidate xhat in that interval. If |f′(t)|>=m>0 throughout the relevant interval, the mean-value theorem gives f(xhat)=f′(xi)(xhat-alpha) for some intermediate xi. Hence |xhat-alpha|<=|f(xhat)|/m. This is a finite root-error certificate, with a lower derivative bound rather than merely a derivative sampled at the candidate.
Existence of alpha is a separate requirement. A verified sign change and continuity can establish it; a fixed-point theorem or another exact argument may also do so. A continuously differentiable function whose derivative never vanishes on I is strictly monotone there, giving uniqueness in that interval. A small residual at one point by itself establishes neither existence elsewhere nor the needed derivative lower bound over a valid root neighborhood.
A computed residual needs its own error enclosure. If |f(xhat)-rhat|<=rho, substitute |rhat|+rho for the unknown exact magnitude. If the data or the equation itself is uncertain, first specify whether the target is a root of the stored equation or of every admissible original equation. The latter question needs the model perturbation in addition to the residual enclosure. One cannot transfer a certificate to a different function without that additional reasoning.
For f(x)=x^m at alpha=0 with m>1, a positive candidate xhat has residual xhat^m but error xhat. The ratio of error to residual is xhat^(1-m), unbounded near zero. This demonstrates why a universal linear residual-to-error constant fails at a multiple root. The exact nonlinear relation error=residual^(1/m) can still be informative when its domain, branch and function identity are known. For inverse-function and derivative-bound context, see [Basic Analysis II, Section 8.5: inverse and implicit function theorems](https://www.jirka.org/ra/html/sec_svinvfuncthm.html); [Basic Analysis II, Section 8.4: continuity and the derivative](https://www.jirka.org/ra/html/sec_svthedercont.html).
Hermitian eigenvalue sensitivity
Let H and E be Hermitian n-by-n matrices and order the real eigenvalues increasingly. The Courant–Fischer min-max theorem states lambda_k(H)=min_(dim S=k) max_(v in S,||v||_2=1) v conjugate-transpose H v. This is a named spectral theorem input. The perturbation inequality below follows directly from it; the exposition does not pretend that checking a few matrices proves the min-max theorem itself.
For every unit vector v, the spectral-norm inequality gives |v conjugate-transpose E v|<=||E||_2. Therefore the maximum Rayleigh quotient of H+E on any fixed k-dimensional subspace is at most the corresponding maximum for H plus ||E||_2. Taking the minimum over those subspaces yields lambda_k(H+E)<=lambda_k(H)+||E||_2. The spaces and the ordering are the same in the two min-max expressions.
Apply the same argument to H+E and its Hermitian perturbation -E to obtain the reverse inequality. Combining them gives |lambda_k(H+E)-lambda_k(H)|<=||E||_2 for each ordered k, including repeated eigenvalues. Hermitian structure ensures real ordered spectra and permits this paired statement. An arbitrary non-Hermitian perturbation does not satisfy this same ordered-real-eigenvalue formulation.
This is an absolute eigenvalue bound. Relative error in an eigenvalue near zero may be large, and eigenvectors or individual bases of a repeated eigenspace have different sensitivity questions. Even when all eigenvalues are stable, a small spectral gap can make a chosen eigenvector direction sensitive. State whether the target is an eigenvalue, an invariant subspace, a normalized eigenvector or a physical observable before interpreting spectral stability as accuracy of every spectral output. For the min-max input and Hermitian eigenvalue perturbation setting, see [MA221, Lecture 28: symmetric eigenvalue perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_28.html).
Nonnormal eigenvalues and defective limits
Suppose a square complex matrix is diagonalizable as A=V Lambda V inverse, with Lambda diagonal and V nonsingular. Let lambda_tilde be any eigenvalue of A+E and z a nonzero corresponding eigenvector. Put w=V inverse z. The eigenvalue equation becomes (Lambda-lambda_tilde I)w=-V inverse E V w. Since w is nonzero, it can be used to compare the diagonal distance with the induced norm.
Set d=min_j |lambda_j(A)-lambda_tilde|. In Euclidean norm, ||(Lambda-lambda_tilde I)w||_2>=d||w||_2. The preceding identity therefore gives d<=||V inverse E V||_2<=kappa_2(V)||E||_2. This proves the Bauer–Fike inclusion for the stated diagonalization. It locates every perturbed eigenvalue inside a union of disks; it does not say every point in those disks is realized, or pair each disk with an invariant eigenvalue label.
For a normal A one can choose unitary V, so kappa_2(V)=1. For a nonnormal but diagonalizable A the factor can be larger, and rescaling eigenvector columns can change the bound associated with a particular V. A poor bound from one diagonalization is not by itself an exact intrinsic condition number. If A is defective, no such nonsingular eigenvector matrix exists, so this theorem cannot simply be applied with an invented finite V.
The defective example J=[[0,1],[0,0]] makes the boundary concrete. With E=[[0,0],[delta,0]] for delta>0, ||E||_2=delta and the characteristic polynomial of J+E is lambda²-delta. Its eigenvalues are plus and minus sqrt(delta), a distance sqrt(delta) from the original zero spectrum. The displacement-to-perturbation ratio grows without bound as delta tends to zero. This is a fractional-power response at a defective limit, not a violation of a theorem whose diagonalizability assumption fails there. For nonnormal and defective eigenvalue perturbation context, see [MA221, Lecture 22: nonsymmetric eigenvalue perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_22.html).
Transient growth and an analysis horizon
Use nondimensional time and A=[[-1,K],[0,-2]] with K>0. The second component of z′=Az is z_2(t)=exp(-2t)z_2(0). Substituting this in the first scalar equation and integrating gives z_1(t)=exp(-t)z_1(0)+K(exp(-t)-exp(-2t))z_2(0). Therefore exp(tA) has diagonal entries exp(-t), exp(-2t), lower entry zero and upper entry K(exp(-t)-exp(-2t)). This follows directly from the differential equations.
For the unit initial state z(0)=(0,1), take t=log(2). The state is then (K/4,1/4), with Euclidean norm sqrt(K²+1)/4. It exceeds one when K>sqrt(15) and can be arbitrarily large as K increases. Both eigenvalues remain -1 and -2. The off-diagonal scalar factor exp(-t)-exp(-2t) is maximized at this time, but that observation is not a claim that the entire matrix norm has its global maximum there.
Every entry of exp(tA) tends to zero as t tends to infinity, so asymptotic decay and transient growth coexist. At a fixed time, the initial-data-to-state map has absolute condition ||exp(tA)||_2; the exhibited input supplies a lower bound for that norm. Nonnormal coupling can therefore matter over a finite observation horizon even when an eigenvalue-only asymptotic test predicts eventual decay.
This exact flow analysis is distinct from the arithmetic or discretization stability of an ODE solver. A highly amplified physical flow can require more accurate initial data even when the numerical method is reliable. Conversely, a poorly chosen time-stepping method can add instability to a benign flow. Physical units would give A inverse-time units and require a declared time scale before these dimensionless entries are interpreted as rates. For nonnormal transient-growth context, see [Hydrodynamic Stability Without Eigenvalues](https://people.maths.ox.ac.uk/trefethen/ttrd.pdf).
Least squares and normal equations
Let a real m-by-n matrix A have full column rank, m>=n. The unique Euclidean least-squares solution is x=(A transpose A) inverse A transpose b, and its residual r=b-Ax satisfies A transpose r=0. With A fixed, the derivative in b is A plus=(A transpose A) inverse A transpose, with spectral norm 1/sigma_min. For x nonzero the exact local relative b condition is ||A plus||||b||/||x||; a large component of b orthogonal to the columns can enlarge this ratio.
The singular values of A transpose A are the squared singular values of A, so kappa_2(A transpose A)=kappa_2(A)². This exact identity explains a vulnerability of forming normal equations; it is not a proof that every implementation always loses a specified number of digits. An orthogonal factorization avoids that particular squaring in its representation, but it does not change the data-to-solution sensitivity of the original least-squares problem.
For small perturbations E in A and f in b that preserve full column rank, differentiate the normal equation A transpose(b-Ax)=0. Its first-order terms give delta x=A plus(f-Ex)+(A transpose A) inverse E transpose r, plus a remainder little-o of the joint perturbation size. The second term is specific to a nonzero residual: matrix uncertainty can rotate the column space and couple that residual into the solution. Treating least squares as merely a square solve would omit this effect.
When x and b are nonzero define cos(theta)=||Ax||/||b|| and tan(theta)=||r||/||Ax|| using their orthogonal decomposition. With delta_A=||E||/||A|| and delta_b=||f||/||b||, the first-order norm bound is ||delta x||/||x|| <= (kappa_2(A)/cos(theta))delta_b+[kappa_2(A)+kappa_2(A)² tan(theta)]delta_A, plus higher-order terms. This follows from ||Ax||<=||A||||x|| and the inverse-Gram norm 1/sigma_min². It is a stated upper bound, not an exact condition in every direction. At x=0 use absolute scales; finite perturbations also need a rank-preserving neighborhood. For full-column-rank least-squares sensitivity and singular-value context, see [MA221, Lecture 13: least-squares sensitivity](https://people.eecs.berkeley.edu/~demmel/ma221_Fall10/Lectures/Lecture_13.html); [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Scaling and preconditioning preserve a stated target
Choose nonsingular equation and variable transformations S and D, write x=Dz, and transform Ax=b to Bz=g with B=SAD and g=Sb. Exact solutions correspond one-to-one, but the Euclidean norms of the coordinates have changed. If zhat approximates z, the original error is D(zhat-z); its norm can be bounded by ||D||||zhat-z||. The transformed residual is S(b-A D zhat), so returning to the original residual requires S inverse.
For A=diag(1,delta), positive delta, choose S=diag(1,1/delta) and D=I. Then B=I has condition one. However an original perturbation in the small second component of b is magnified by 1/delta in g=Sb. Treating that transformed perturbation as if it had the same unweighted absolute size would change the data model. The improved matrix number alone does not establish that uncertain original measurements now determine a more accurate physical answer.
Useful scaling can align numerical coordinates with meaningful component magnitudes, avoid an inappropriate comparison of unlike units, and improve the behavior of a chosen algorithm. Preconditioning can also improve convergence of an iterative solve. Its cost, numerical application error and transformed perturbation scales still belong to the analysis. Exact access to A inverse would make an ideal left-preconditioned matrix the identity, but obtaining and applying that inverse is itself a nontrivial computational problem.
A report should therefore name the original target and uncertainty, the transformations, the algorithmic benefit actually established, and the conversion of any certificate back to original units. A changed normwise condition can be a valid and useful statement about new coordinates without being a reduction of the original scientific uncertainty. Structure-preserving or parameter-aware scaling may answer the intended question more faithfully than minimizing one unqualified matrix condition number. For coordinate-dependent conditioning and matrix norms, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Regularization trades amplification for bias
For lambda>0, Euclidean Tikhonov regularization minimizes ||Ax-b||²+lambda||x||². The normal matrix A conjugate-transpose A+lambda I is positive definite even if A is rank deficient, and x_lambda=(A conjugate-transpose A+lambda I) inverse A conjugate-transpose b. This changes the mathematical problem by penalizing the solution norm. It is not simply a more accurate evaluation of an unchanged inverse target.
A singular-value decomposition gives the nonzero-mode data filter g(sigma)=sigma/(sigma²+lambda). Since (sigma-sqrt(lambda))²>=0, the denominator is at least 2sigma sqrt(lambda), proving g(sigma)<=1/(2sqrt(lambda)) for sigma>=0, with equality at sigma=sqrt(lambda). Thus the Euclidean noise gain for fixed A is at most that value. The actual gain is the maximum of g over A’s singular values and can be smaller.
If b=A x_true+e, subtract x_true from the formula to obtain x_lambda-x_true=-lambda(A conjugate-transpose A+lambda I) inverse x_true+(A conjugate-transpose A+lambda I) inverse A conjugate-transpose e. The first term is deterministic regularization bias; the second is propagated noise. In a full-column-rank problem their norms are bounded by lambda/(sigma_min²+lambda)||x_true|| and ||e||/(2sqrt(lambda)), respectively. A nullspace component, when present, can remain completely unrecovered through the bias term.
Stationarity of the strictly convex scalar objective gives xhat=αb/(α²+λ). Substitute b=αx_true+e and separate the signed deterministic bias from the contribution of the bounded noise. The extremal signs on that interval attain the absolute bound.
| Quantity | Exact result |
|---|---|
| Data b | 1/50+e |
| Regularized estimate | 1+(50)e |
| Unregularized estimate | 2+(100)e |
| Regularized bias | −1 |
| Data-to-output gains | (50, 100) |
| Regularized noise bound | 1/20 |
| Regularized signed range | (−21/20, −19/20) |
| Sharp total bound | 21/20 |
| Unregularized signed range | (−1/10, 1/10) |
| Noise value attaining largest magnitude | −1/1000 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| alpha | 1/100 |
| lambda | 1/10000 |
| truth | 2 |
| bound | 1/1000 |
Choosing lambda balances declared information about noise and acceptable bias; a smaller noise gain does not alone prove a smaller total error. The objective also has units: lambda has squared input-to-output operator units unless the data and variables were nondimensionalized. Other penalties encode other prior assumptions. Finally, computing the regularized minimizer has its own arithmetic and conditioning questions, so a regularization formula is not by itself a proof of a stable implementation. For Tikhonov regularization with the parameter mapping stated here, see [Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed Problems](https://www.imm.dtu.dk/~pcha/Regutools/RTv4manual.pdf).
Worst-case uncertainty and probabilistic propagation
A deterministic uncertainty set and a random-error model answer different questions. If a scalar output is linearized as delta y=j transpose delta x, a componentwise box |delta x_i|<=a_i gives the finite linear bound |delta y|<=sum_i |j_i|a_i. No probability, independence or confidence level follows from that box. Correlations or parameter constraints may reduce its admissible directions, but they must be stated rather than inferred from small arithmetic errors.
If a centered random vector delta x has finite second moments and covariance Sigma, then the linear transformation J delta x has covariance J Sigma J transpose exactly. For one scalar output this is j transpose Sigma j, including every cross-covariance. Dropping the cross terms requires zero covariance; independence is sufficient but not necessary. The covariance matrix must itself be valid and its entries carry the corresponding products of input units.
For a nonlinear F, the same formula is a linearization, not generally the exact covariance of F(x+delta x). For example, in a small-noise family delta x=epsilon Z with fixed covariance Sigma_Z, if the Taylor remainder is little-o of epsilon in mean square, the output covariance is epsilon² J Sigma_Z J transpose+o(epsilon²). Bounded Z in a valid smooth neighborhood is one sufficient setting. Centered input errors can still generate a nonlinear mean bias.
A covariance propagation does not alone supply Gaussian coverage, a confidence interval or a deterministic enclosure. Those require further distributional or worst-case assumptions. Instrument uncertainty, correlated calibration and arithmetic round-off should not automatically be treated as independent random variables. The useful result is a sensitivity calculation matched to the actual evidence, with the approximation order and the chosen units made explicit. For real covariance propagation and the derivative setting, see [NIST Technical Note 1297, Appendix A: law of propagation of uncertainty](https://www.nist.gov/pml/nist-technical-note-1297/nist-tn-1297-appendix-law-propagation-uncertainty); [Basic Analysis II, Section 8.3: derivative in several variables](https://www.jirka.org/ra/html/sec_svtheder.html).
Conditioning of a contractive fixed point
Let C be a nonempty complete subset of a normed space and T:C to C satisfy ||T(z)-T(w)||<=q||z-w|| for a fixed 0<=q<1. Picard iterates have successive differences at most q^k||z_1-z_0||, whose geometric tails tend to zero. Completeness gives a limit in C, and the Lipschitz continuity of T makes it a fixed point. If two fixed points existed, their distance would be at most q times itself, so they would coincide. This is the contraction principle with its invariant-domain hypotheses.
For any candidate zhat in C and the fixed point z_star, insert and subtract T(zhat). The triangle inequality gives ||zhat-z_star||<=||zhat-T(zhat)||+q||zhat-z_star||. Rearranging yields ||zhat-z_star||<=||zhat-T(zhat)||/(1-q). This is a finite a posteriori residual certificate. An enclosure of the residual and a rigorous upper bound q<1 are needed before the expression becomes a numerical guarantee.
Suppose data d changes the map, with both fixed points lying in a common valid domain and sup_(z in C)||T_(d+h)(z)-T_d(z)||<=L||h||. Applying the contraction bound for T_d and comparing the two fixed-point equations gives ||z_star(d+h)-z_star(d)||<=L||h||/(1-q). The scalar family T_d(z)=qz+d on the real line attains the absolute factor 1/(1-q), so deterioration as q approaches one can be a real data sensitivity rather than merely a proof artifact.
Solve (1−q)z*=d. The signed error multiplies by q at each step. The Banach residual estimate instead uses its nonnegative contraction constant |q|. The exact signed defect is (1−q) times the selected estimate error, so the two bounds need not be equal.
| Quantity | Exact result |
|---|---|
| Fixed point | 2 |
| Contraction factor |q| | 3/4 |
| Exact absolute sensitivity to d | 4 |
| Generic sensitivity upper bound | 4 |
| Map at selected estimate | 797/400 |
| Signed defect zhat−T(zhat) | −1/400 |
| Selected exact signed error | −1/100 |
| Absolute residual bound | 1/100 |
| Absolute error after k grouped steps | 81/128 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| q | 3/4 |
| d | 1/2 |
| estimate | 199/100 |
| steps | 4 |
| k | z_k | Signed error |
|---|---|---|
| 0 | 0 | −2 |
| 1 | 1/2 | −3/2 |
| 2 | 7/8 | −9/8 |
| 3 | 37/32 | −27/32 |
| 4 | 175/128 | −81/128 |
Iteration convergence and data conditioning still differ. The contraction estimate bounds the exact iteration by q^k times its initial error, while per-step arithmetic disturbances contribute a separate damped sum. Failure to prove q<1 in one norm does not prove every iteration diverges; other norms or local hypotheses may apply. Conversely, an observed decreasing sequence does not prove global invariance, completeness or a uniform contraction factor for the intended uncertainty set. For the complete contraction-mapping theorem and proof, see [Basic Analysis II, Subsection 7.6.1: contraction mapping principle](https://www.jirka.org/ra/html/sec_metpicard.html).
Stopping with verified information
A stopping rule should use a quantity whose relation to the intended error is justified. For a linear solve that can be an enclosed residual combined with a valid bound on ||A inverse||, or an appropriate backward error together with a finite perturbation condition. For a root it can be an enclosed function value and an inverse-slope interval. For a contraction it can be an enclosed fixed-point residual divided by 1-q. A tolerance has meaning only after its units and scales are specified.
A conservative linear residual-evaluation bound can be derived without dropping the right-hand side. Let n>=1, u be unit round-off, gamma_k=ku/(1-ku), and assume represented inputs, a conventional rounded dot product and final rounded subtraction, with the normal-range model valid throughout and (n+1)u<1. Put S_i=sum_j |A_ij xhat_j|. The dot-product error bound is gamma_n S_i. If rhat_i is the rounded subtraction, its further error is at most u(|b_i|+(1+gamma_n)S_i).
Adding these terms gives |r_i-rhat_i|<=u|b_i|+[gamma_n+u(1+gamma_n)]S_i. Since gamma_n+u(1+gamma_n)=(n+1)u/(1-nu)<=gamma_(n+1), and u<=gamma_(n+1), the safe bound is gamma_(n+1)(|b_i|+S_i). The dependence on |b_i| is essential for a general residual. Directed enclosures or an appropriate absolute-relative underflow model are required when the stated normal-range assumptions fail.
The certificate must also include uncertainty in the original data and any discretization target, rather than merely certifying the stored algebra. A residual norm below an arbitrary threshold, an unchanged iterate or a larger working precision can be useful observations, but none alone proves the desired scientific error bound. Stop when the declared enclosure meets the actual output tolerance, or report which missing sensitivity, domain or arithmetic bound prevents that conclusion. For the stability and matrix framework used in this residual certificate, see [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
Discretization and matrix conditioning
For the boundary-value equation -u″=g on an interval of length L with zero Dirichlet endpoints, take n interior equally spaced points and h=L/(n+1). The discrete operator is A_h=T_n/h², where T_n has diagonal two and adjacent entries minus one. If the exact solution has a bounded continuous fourth derivative, Taylor expansion at a node bounds the local residual of its sampled values by h² max|u^(4)|/12. This is a consistency statement about the exact samples, not yet a computed-solution error.
For theta_k=k pi/(n+1), k=1,…,n, set v_j=sin(j theta_k), j=1,…,n, with zero endpoint values. The sine addition identity gives (T_n v)_j=2(1-cos(theta_k))v_j. Hence its distinct positive eigenvalues are 4sin²(k pi/(2(n+1))). Symmetry makes these eigenvectors an orthogonal basis. The spectral condition is therefore cot²(pi/(2(n+1))), using the largest eigenvalue 4cos²(pi/(2(n+1))).
Multiplication by h^(-2) changes the operator norm but cancels in the condition-number ratio. As the mesh is refined, this matrix condition grows like a constant times h^(-2), while the smallest eigenvalue of A_h approaches pi²/L² and its inverse norm remains of order L². A growing relative matrix condition is therefore not by itself proof that the underlying continuous Dirichlet inverse is physically ill posed. The input perturbation scale, mode and discrete norm matter.
If u_h is the exact discrete solution and u_grid the exact sampled continuous solution, then u_h-u_grid=-A_h inverse tau_h, where tau_h=A_h u_grid-g_grid. A computed algebraic residual and data disturbance add further inverse-propagated terms. A nodewise certificate can bound these separately in a declared discrete norm; a between-node reconstruction adds its own approximation error. Checking the exact matrix residual alone leaves the truncation, reconstruction and physical-model questions open. For linear algebra and derivative-bound context for this independently derived discretization example, see [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html); [Basic Analysis II, Section 8.4: continuity and the derivative](https://www.jirka.org/ra/html/sec_svthedercont.html).
Structured sensitivity can differ from unstructured sensitivity
Restricting perturbations changes the sensitivity problem. For any fixed nonsingular A and nonzero b, suppose the only matrix uncertainty is a common scalar factor: A becomes (1+delta)A while b stays fixed. For delta not equal to -1, the exact solution becomes x_delta=x/(1+delta). Its relative change is |delta|/|1+delta|, bounded by epsilon/(1-epsilon) when |delta|<=epsilon<1. The local relative condition with respect to this scalar factor is one, regardless of kappa(A).
The normwise relative size of E=delta A is |delta|, so this is genuinely a subset of the unstructured normwise perturbation ball. In that larger ball, the relative distance to singularity is 1/kappa_2(A); within this scalar family, singularity first occurs at delta=-1, at relative size one. A highly ill-conditioned diagonal matrix can therefore be much less sensitive to this particular calibrated direction than to an arbitrary spectral-norm disturbance.
More generally, if a parameter vector p determines A(p) and b(p), differentiation gives delta x=A inverse(delta b-delta A x), with delta A and delta b produced by the same parameter change. Their directions and correlations are linked by that model. A parameter-based condition must include the parameter scales and cannot generally be recovered by treating all matrix entries and right-hand-side components as independently variable.
An unstructured backward-error witness may violate symmetry, positivity, conservation or a shared physical parameter. It then establishes only the unstructured statement, even if its numerical size is small. A structured certificate needs a feasible perturbation in the permitted family and an appropriate size comparison. Restriction under the same budget cannot enlarge a supremum, but different parameter scales can make two quoted condition numbers incomparable until their uncertainty models are reconciled. For conditioning models and unstructured matrix perturbation context, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [MA221, Lecture 3: matrix norms and perturbations](https://people.eecs.berkeley.edu/~demmel/ma221_Fall11/Lectures/Lecture_03.html).
An interpretable total-error certificate
Begin a scientific error certificate by naming the exact output and the space in which its discrepancy is measured. State which data are exact, measured, converted, discretized or estimated, and whether uncertainty is deterministic or probabilistic. The data-to-answer map, admissible domain and output scale then determine the relevant sensitivity question. A condition number without these choices is an incomplete description rather than an explanation of an error budget.
Use a justified chain of comparisons. After mapping every intermediate output into the same comparison space, the triangle inequality can separate physical-model error, input-data error, discretization or reconstruction error, and arithmetic error. Each bound needs its own evidence. A solver residual can control one link, while derivative bounds, verified intervals or approximation theorems control others. A statistical standard deviation cannot simply be inserted as if it were a deterministic worst-case radius.
For arithmetic error, retain the operation contract, perturbation model, residual enclosure, condition or inverse bound and any finite-radius denominator. For approximation error, retain the smoothness, mesh and domain assumptions. Explain whether a proposed remedy changes only the algorithm, changes coordinates, increases information about the data, or deliberately changes the target through regularization. These are different scientific decisions with different implications for bias and uncertainty.
The result should say what is certified, in which units and under which assumptions, and identify any unresolved bound. Exact finite examples illuminate mechanisms; computational checks support particular calculations; neither establishes an unstated theorem or an unmeasured physical uncertainty. With that discipline, conditioning, stability, approximation and verification become complementary tools for reliable computation rather than interchangeable labels for a successful-looking number. For the conditioning, stability and uncertainty framework used in this certificate, see [What Is a Condition Number?](https://nhigham.com/2020/03/19/what-is-a-condition-number/); [What Is Numerical Stability?](https://nhigham.com/2020/08/04/what-is-numerical-stability/); [NIST Technical Note 1297, Appendix A: law of propagation of uncertainty](https://www.nist.gov/pml/nist-technical-note-1297/nist-tn-1297-appendix-law-propagation-uncertainty).
Compare exact local conditioning with finite perturbations, residuals, algorithmic error, regularization and fixed-point certificates.
Absolute and relative sensitivity of a fourth power
A positive step at two
Differentiate x⁴ to obtain 4x³ and take its absolute value for the local absolute condition. When x and f(x) are nonzero, scaling by |x/f(x)| gives four. The binomial expansion gives the exact higher terms, bounded by (6x²+4|x|/10+1/100)h² on the chosen input region.
| Quantity | Exact result |
|---|---|
| Base and perturbed value | 16, 194481/10000 |
| Absolute local condition | 32 |
| Relative local condition | 4 |
| Exact Δf | 34481/10000 |
| Linear term | 16/5 |
| Exact remainder | 2481/10000 |
| Uniform remainder bound on |h|≤1/10 | 2481/100 h² |
| Bound at the selected step | 2481/10000 |
| Relative input/output magnitudes | 1/20, 34481/160000 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| x | 2 |
| h | 1/10 |
Independent componentwise versus common perturbations
Nearly cancelling operands
The linear difference gives independent absolute change at most ε(|a|+|b|), with opposite operand perturbations achieving either endpoint. A common multiplier gives exact output change δ(a−b). Dividing by the base output is meaningful only when that output is nonzero.
| Quantity | Exact result |
|---|---|
| Base output | 1 |
| Independent signed output range | (−201/100, 201/100) |
| Positive attaining corner (Δa,Δb) | (101/100, −1) |
| Negative attaining corner | (−101/100, 1) |
| Independent relative upper bound | 201/100 |
| Common signed rule | ΔF=δ(a−b) |
| Common absolute bound | 1/100 |
| Common relative bound | 1/100 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 101 |
| b | 100 |
| epsilon | 1/100 |
A forward error can coexist with a small residual
A highly sensitive second direction
The second forward error is divided by the exact solution norm √2. Multiplication by the small singular value damps the same direction in the residual. The normwise backward error uses the sum ||A||||xhat||+||b||. The componentwise denominator uses |A||xhat|+|b| row by row, so the second ratio need not be small.
| Quantity | Exact result |
|---|---|
| Exact solution | (1,1) |
| Trial solution | (1, 2) |
| Spectral condition number | 10000 |
| Forward error vector | (0, 1) |
| Signed residual b−Axhat | (0, −1/10000) |
| Signed second componentwise ratio | −1/3 |
| κ times relative residual | 1/√(100000001/100000000) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| sigma | 1/10000 |
| second | 2 |
| Quantity | Value |
|---|---|
| Relative forward error | 1/√2 |
| Relative residual | 1/10000/√(100000001/100000000) |
| Normwise backward error | 1/10000/(√(5)+√(100000001/100000000)) |
| Componentwise backward error | 1/3 |
Direction changes how an error propagates
Eight forward steps, five backward
Use x^n/(x+a)=x^(n−1)−a x^(n−1)/(x+a). The denominator stays between a and a+1, giving rigorous bounds for the terminal integral. Forward errors multiply by −a, while backward errors multiply by −1/a. The parity of the step count fixes the signs of the propagated bounds.
| Quantity | Exact result |
|---|---|
| I₀ | ln((6)/5) |
| Forward recurrence | I_n=1/n−5 I_(n−1) |
| Terminal integral bounds | (1/54, 1/45) |
| Backward signed multiplier | −1/3125 |
| Target signed error interval (computed minus true) | (1/168750, 1/140625) |
| Backward approximation at target | 22651/525000 |
| Forward initial and final signed errors | (1/1000000000000, 1/2560000) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | 5 |
| terminal | 8 |
| target | 3 |
| initial | 1/1000000000000 |
| n | Signed error |
|---|---|
| 0 | 1/1000000000000 |
| 1 | −1/200000000000 |
| 2 | 1/40000000000 |
| 3 | −1/8000000000 |
| 4 | 1/1600000000 |
| 5 | −1/320000000 |
| 6 | 1/64000000 |
| 7 | −1/12800000 |
| 8 | 1/2560000 |
Noise gain and regularization bias are different costs
Smaller noise gain with large negative bias
Stationarity of the strictly convex scalar objective gives xhat=αb/(α²+λ). Substitute b=αx_true+e and separate the signed deterministic bias from the contribution of the bounded noise. The extremal signs on that interval attain the absolute bound.
| Quantity | Exact result |
|---|---|
| Data b | 1/50+e |
| Regularized estimate | 1+(50)e |
| Unregularized estimate | 2+(100)e |
| Regularized bias | −1 |
| Data-to-output gains | (50, 100) |
| Regularized noise bound | 1/20 |
| Regularized signed range | (−21/20, −19/20) |
| Sharp total bound | 21/20 |
| Unregularized signed range | (−1/10, 1/10) |
| Noise value attaining largest magnitude | −1/1000 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| alpha | 1/100 |
| lambda | 1/10000 |
| truth | 2 |
| bound | 1/1000 |
A residual bound identifies an actual fixed-point error
A near-final estimate for q=3/4
Solve (1−q)z*=d. The signed error multiplies by q at each step. The Banach residual estimate instead uses its nonnegative contraction constant |q|. The exact signed defect is (1−q) times the selected estimate error, so the two bounds need not be equal.
| Quantity | Exact result |
|---|---|
| Fixed point | 2 |
| Contraction factor |q| | 3/4 |
| Exact absolute sensitivity to d | 4 |
| Generic sensitivity upper bound | 4 |
| Map at selected estimate | 797/400 |
| Signed defect zhat−T(zhat) | −1/400 |
| Selected exact signed error | −1/100 |
| Absolute residual bound | 1/100 |
| Absolute error after k grouped steps | 81/128 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| q | 3/4 |
| d | 1/2 |
| estimate | 199/100 |
| steps | 4 |
| k | z_k | Signed error |
|---|---|---|
| 0 | 0 | −2 |
| 1 | 1/2 | −3/2 |
| 2 | 7/8 | −9/8 |
| 3 | 37/32 | −27/32 |
| 4 | 175/128 | −81/128 |
Worked examples
Two condition numbers for one scalar map
For f(x)=x^4 at x=2, derive the absolute and relative local condition numbers. Compare the exact change at x=2+h with its first-order term and give a finite remainder bound for |h|<=1/10.
- The exact target is f(x)=x^4, with absolute input perturbation h and the usual scalar magnitude norms. At x=2, f(2)=16 and f′(2)=4·2³=32. The absolute local condition is therefore 32. Since both the base input and output are nonzero, the relative condition is |2·32/16|=4. These are local statements about perturbing x, not an arithmetic contract for evaluating a fourth power.
- Expand the perturbed value exactly: (2+h)^4=16+32h+24h²+8h³+h⁴. Thus the first-order absolute change is 32h, and the exact remainder is h²(24+8h+h²). No numerical approximation or derivative estimate is needed for this polynomial identity.
- When |h|<=1/10, the triangle inequality bounds the remainder by h²(24+8/10+1/100)=(2481/100)h². The restriction keeps the displayed constant valid throughout the whole finite neighborhood. It is not a statement that the linear term alone equals the finite change.
- If the input is described instead by a relative change delta=h/2, division by the base output gives a first-order relative change |32h|/16=2|h|=4|delta|. The exact higher powers remain available to bound a finite tolerance. At x=0 this relative formula would have zero denominators, so its use here depends on the stated nonzero base point.
The local absolute condition is 32 and relative condition is 4. The exact change is 32h+24h²+8h³+h⁴; for |h|<=1/10 the remainder after 32h has magnitude at most (2481/100)h².
A weighted difference
Let f(a,b)=a-b at (a,b)=(101,100). With independent relative input perturbations bounded by epsilon, derive a sharp finite absolute and relative output bound, and compare it with a common equal relative perturbation of both inputs.
- Write the perturbed operands as a′=101+delta a and b′=100+delta b, with |delta a|<=101epsilon and |delta b|<=100epsilon. The exact unperturbed difference is one, so an absolute output bound and a bound relative to that output have the same numerical value in this example.
- The output change is exactly delta a-delta b. The triangle inequality gives |delta a-delta b|<=201epsilon. This is a finite linear identity without an omitted higher-order term. The bound is sharp: choose delta a=101epsilon and delta b=-100epsilon, or reverse both signs, to align the two contributions.
- If the uncertainty is instead a common multiplier, a′=101(1+delta) and b′=100(1+delta), then a′-b′=1+delta. Its relative output change is |delta|, equal to the common relative input change. The signs that attained the independent bound are not allowed in this one-parameter perturbation family.
- Thus the condition 201 belongs to independent operand uncertainty, while condition one belongs to a shared calibration multiplier. Neither result establishes an arithmetic rounding error or a probability distribution. A reliable interpretation first chooses which of those data models the actual measurements support.
The exact output is 1. Independent relative operand changes give the sharp absolute and relative bound 201epsilon; a common relative multiplier gives output relative change only |delta|.
Composition without equality
Use Euclidean norms, F(t)=(t,t) and G(v,w)=v-w. Derive the absolute local conditions of F and G and the condition of G composed with F. Explain why a product upper bound need not be attained.
- For a scalar increment h, DF(t)h=(h,h). Its Euclidean norm is sqrt(2)|h|, so the induced scalar-to-vector derivative norm is sqrt(2). Since F is linear, this is also its exact finite absolute amplification for every nonzero increment.
- For an intermediate increment (v,w), DG(v,w)=v-w. By Cauchy–Schwarz, |v-w|<=sqrt(2)sqrt(v²+w²), with equality when (v,w) is a multiple of (1,-1). Therefore G has absolute derivative norm sqrt(2).
- The composite is G(F(t))=t-t=0 for all t. Its derivative and absolute condition are zero. The chain-rule norm inequality gives only zero<=sqrt(2)·sqrt(2)=2, not equality. The range of DF contains vectors proportional to (1,1), which are annihilated by DG.
- No relative output condition of the zero composite is asserted. If an algorithm perturbs the two intermediate components independently, it can break their equality, but that is a different disturbance from a perturbation of the original scalar t. The example therefore demonstrates both nonalignment of worst directions and the need to distinguish the mathematical input model from inserted arithmetic errors.
The absolute conditions of F and G are each sqrt(2), but that of G composed with F is zero; the product bound 2 is not attained.
A finite nonlinear perturbation
For f(x)=1/(1-x) at x=1/2, derive its local absolute and relative conditions. Find the exact relative output change under x to x+h and a rigorous bound when |h|<=1/10.
- At x=1/2 the exact value is f(x)=2. The derivative f′(x)=1/(1-x)² equals four, so the absolute local condition is four and the relative condition is |(1/2)·4/2|=1. The domain excludes the pole x=1; the proposed neighborhood stays safely on one side of it.
- The perturbed value is f(1/2+h)=2/(1-2h). Subtracting two gives the exact absolute change 4h/(1-2h). Dividing its magnitude by the base value two gives the relative change 2|h|/|1-2h|. The small-h limit agrees with the derivative, but the finite denominator must remain.
- For |h|<=1/10, |1-2h|>=4/5. Thus the relative change is at most (1/5)/(4/5)=1/4, attained at h=1/10. More generally in this neighborhood it is at most (5/2)|h|. The corresponding relative input change is 2|h|, so the finite amplification is bounded by 5/4 rather than identically equal to the local condition one.
- The nonlinear remainder after 4h is 8h²/(1-2h), bounded in magnitude by 10h² on the same interval. This provides a second rigorous way to compare the finite change with its linear approximation. A local derivative alone would not justify the quarter bound near an arbitrarily chosen distant point or across the pole.
The local absolute condition is 4 and relative condition is 1. The exact relative output change is 2|h|/|1-2h|, at most 1/4 for |h|<=1/10.
A solve with a small residual
Let A=diag(1,1/10000), b=(1,1/10000) transpose and xhat=(1,2) transpose. Find the exact x, spectral condition number, residual, relative forward error, relative residual, normwise backward error and componentwise backward error.
- The diagonal equations give x=(1,1). The singular values are one and 1/10000, so ||A||_2=1 and ||A inverse||_2=10000. The candidate error xhat-x=(0,1) has norm one, while ||x||_2=sqrt(2), yielding relative forward error 1/sqrt(2).
- Multiplication gives A xhat=(1,2/10000), hence r=b-A xhat=(0,-1/10000). The exact right-hand-side norm is sqrt(100000001)/10000. Its relative residual is therefore 1/sqrt(100000001). Multiplying by the condition gives a valid forward upper bound 10000/sqrt(100000001), though the actual relative forward error remains of order one.
- The candidate norm is sqrt(5). The unstructured Euclidean/spectral backward-error denominator is ||A||||xhat||+||b||=sqrt(5)+sqrt(100000001)/10000. Dividing the residual norm 1/10000 by it gives eta_norm=1/(10000sqrt(5)+sqrt(100000001)). The exact rank-one construction from the proof establishes attainment for that normwise perturbation model.
- Componentwise, the first residual is zero and its denominator is two. The second denominator is (1/10000)·2+1/10000=3/10000, so the maximum row ratio is (1/10000)/(3/10000)=1/3. A small normwise backward error therefore coexists with a substantial relative disturbance in the small equation. These computed exact error measures assess this candidate; they do not prove a general stability property of an unspecified algorithm.
The exact solution is (1,1), kappa_2(A)=10000 and r=(0,-1/10000). Relative forward error is 1/sqrt(2), relative residual is 1/sqrt(100000001), normwise backward error is 1/(10000sqrt(5)+sqrt(100000001)), and componentwise backward error is 1/3.
A nonsingularity radius that is attained
For A=diag(3,1/5), derive its spectral condition and distance to singularity. Construct an attaining perturbation and use the finite perturbation theorem to bound the solve error when relative matrix error is at most 1/100 and relative right-hand-side error at most 1/200.
- The positive diagonal entries three and 1/5 are the singular values, so the spectral norm is three, inverse norm five and condition number 15. The smallest singular value 1/5 is the unstructured spectral distance to singularity. Its relative size is (1/5)/3=1/15.
- The perturbation E_star=diag(0,-1/5) has spectral norm 1/5 and makes the second diagonal entry zero. Conversely any singularizing perturbation E has a unit null vector z for A+E, giving 1/5<=||Az||=||Ez||<=||E||. Thus the construction attains the least possible norm, rather than merely supplying one singular example.
- For arbitrary nonzero b, set delta_A<=1/100 and delta_b<=1/200 in the finite solve theorem. The sufficient quantity kappa delta_A is at most 15/100=3/20<1, so every perturbation in that declared normwise ball keeps the matrix nonsingular. The actual absolute matrix budget is ||E||<=3/100, smaller than the singular distance 1/5.
- The relative solution-error upper bound is 15(1/100+1/200)/(1-15/100)=(9/40)/(17/20)=9/34. This is a guaranteed upper bound for the whole stated unstructured perturbation set; it is not claimed to be its exact maximum for every right-hand side. If b=0, the relative right-hand-side and solution scales would need to be replaced by an absolute formulation.
The spectral condition is 15 and distance to singularity is 1/5, attained by E=diag(0,-1/5). For the stated relative perturbations and nonzero b, the finite solve-error bound is 9/34.
A perturbed polynomial root
For p_c(x)=x^2-c at c=9 and its positive root, derive the local absolute and relative conditions in c. Give the exact root change and a finite absolute bound for |delta c|<=1; compare with the root of x^2-delta c at the double-root base c=0.
- The selected branch is r(c)=sqrt(c) for positive c. At c=9, r=3 and differentiating r²=c gives r′=1/(2r)=1/6. Thus the absolute local condition with respect to c is 1/6 and the relative condition is |9·(1/6)/3|=1/2. The base derivative of p in the root variable is 2r=6, nonzero as required for a simple-root formula.
- For |delta c|<=1 the perturbed parameter lies in [8,10], so the same positive branch is valid. Rationalization gives sqrt(9+delta c)-3=delta c/(sqrt(9+delta c)+3). Its magnitude is at most |delta c|/(3+2sqrt(2)), hence at most 1/(3+2sqrt(2))=3-2sqrt(2). The last bound is attained at delta c=-1.
- The linear approximation to the root change is delta c/6; the exact rationalized expression supplies the finite correction without treating the local derivative as a global constant. A relative root bound divides the finite magnitude by the base root three. A relative parameter disturbance divides |delta c| by nine, and the ratio approaches one half as the disturbance tends to zero.
- At the double-root base c=0, perturbation to x²-delta c gives positive root sqrt(delta c) for delta c>0. Its absolute response divided by the parameter magnitude is 1/sqrt(delta c), unbounded near zero; negative delta c gives no real root. Relative root and parameter scales at the zero base are unavailable. This does not contradict the simple-root result at c=9, whose nonzero derivative and branch hypotheses remain intact.
At c=9 the positive-root absolute condition is 1/6 and relative condition is 1/2. Its finite change is delta c/(sqrt(9+delta c)+3), with magnitude at most 3-2sqrt(2) for |delta c|<=1. The double-root base instead has a square-root response.
Recurrence direction and terminal error
For I_n=integral from zero to one of x^n/(x+5), derive the recurrence and integral bounds. If I_8 is replaced by zero and the backward recurrence is evaluated exactly down to I_3, bound the resulting error. Compare with propagation of an initial error 10^(-12) through eight forward steps.
- On zero<=x<=one, the factor 1/(x+5) lies between 1/6 and 1/5. Multiplying by nonnegative x^n and integrating gives the stated integral bounds. For n>=1, write x^n/(x+5)=x^(n-1)-5x^(n-1)/(x+5), giving I_n=1/n-5I_(n-1). The exact starting value I_0 is log(6/5).
- The backward recurrence is I_(k-1)=(1/k-I_k)/5. Replacing the true I_8 by zero creates terminal error -I_8. Five exact backward steps to index three multiply that error by (-1/5)^5, so its magnitude is I_8/5^5. The upper integral bound gives I_8<=1/45.
- Therefore the terminal contribution to the I_3 error is at most 1/(45·3125)=1/140625. This is a rigorous upper bound and does not require a numerical logarithm. It assumes the subsequent recurrence arithmetic and the rational inputs 1/k are exact; actual rounded evaluation adds its own damped local-error terms.
- In contrast, an initial forward error delta_0=10^(-12), with no further arithmetic disturbances, becomes delta_8=(-5)^8delta_0. Its magnitude is 390625/10^12=1/2560000. The different target indices and starting errors must not be confused as equal-work accuracy measurements; they illustrate exact growth versus damping of the recurrence directions. A complete implementation certificate would also bound each local rounding error.
The exact bounds are 1/(6(n+1))<=I_n<=1/(5(n+1)) and I_n=1/n-5I_(n-1). Exact backward propagation from I_8=0 to I_3 has error at most 1/140625; eight forward steps amplify an initial 10^(-12) error to 1/2560000.
Choosing a differencing step
For a forward difference suppose |f double-prime|<=6 and each function evaluation has absolute error at most 10^(-8). Derive the total error bound, its minimizing step and its minimum value, assuming x and x+h lie in the valid interval and h is represented exactly. Repeat for a central difference with |f triple-prime|<=6 and the same evaluation error.
- For h>0 in the valid interval, a second-derivative bound six gives forward truncation error at most 3h. Two independent absolute evaluation-error bounds of 10^(-8) contribute at most 2·10^(-8)/h after subtraction and division. This produces B_forward(h)=3h+2·10^(-8)/h under the declared exact sample-location and quotient arithmetic model.
- Differentiate the positive bound: B_forward′(h)=3-2·10^(-8)/h². The unique positive stationary point is h=sqrt((2/3)·10^(-8))=1/(5000sqrt(6)). The two terms there are equal, and their sum is sqrt(6)/5000. The bound diverges at both positive endpoints zero and infinity, so this is its continuous minimum before domain restrictions.
- For the central difference, a third-derivative bound six gives truncation at most h², and the two evaluation errors divided by 2h contribute 10^(-8)/h. The derivative of B_central(h)=h²+10^(-8)/h vanishes when 2h³=10^(-8), or h=(5·10^(-9))^(1/3). At that point the noise term is 2h², yielding minimum 3h².
- These continuous minimizers are conditional choices. Both sampled points for the central formula, and the forward sampled point, must stay in the region with the stated derivative bounds. The error model also assumes exact sample locations and exact subsequent quotient arithmetic; if a machine step cannot equal the ideal minimizer, choose an admissible represented step and evaluate the bound there, adding location and arithmetic errors as needed. A theoretical optimum is not evidence that an unspecified implementation represents it exactly.
The forward bound is 3h+2·10^(-8)/h, minimized continuously at h=1/(5000sqrt(6)) with bound sqrt(6)/5000. The central bound is h²+10^(-8)/h, minimized at h=(5·10^(-9))^(1/3) with bound 3h².
Defectiveness and transient growth
For J=[[0,1],[0,0]] and E=[[0,0],[1/10000,0]], find the eigenvalues of J+E and the spectral norm of E. Separately compute exp(tA) for A=[[-1,40],[0,-2]] and exhibit a unit input whose norm is amplified at t=log(2).
- The perturbed defective matrix is [[0,1],[1/10000,0]]. Its characteristic polynomial is lambda²-1/10000, so the two eigenvalues are 1/100 and -1/100. The perturbation maps (z_1,z_2) to (0,z_1/10000), giving spectral norm 1/10000. The eigenvalue displacement is one hundred times that perturbation size; the base J has only the eigenvalue zero and is not diagonalizable.
- For the separate triangular flow, solve z_2′=-2z_2 to obtain z_2(t)=exp(-2t)z_2(0). Variation of the first equation gives z_1(t)=exp(-t)z_1(0)+40(exp(-t)-exp(-2t))z_2(0). This derives the full displayed exponential without assuming eigenvalue signs determine its norm at every time.
- At t=log(2), the matrix is [[1/2,10],[0,1/4]]. Applying it to the unit vector (0,1) gives (10,1/4), whose norm is sqrt(100+1/16)=sqrt(1601)/4>10. This supplies a lower bound for the flow operator norm at that time, not a claim that the chosen vector attains its exact maximum singular value.
- Both eigenvalues of the flow matrix A are negative and every exponential entry eventually tends to zero, so finite-time amplification and eventual decay coexist. The defective splitting example and the transient-growth example concern different matrices and different mathematical outputs. Neither is an observation of arithmetic failure or of a numerical time-stepping method; both are exact sensitivity mechanisms that an implementation must respect.
J+E has eigenvalues plus and minus 1/100 while ||E||_2=1/10000. For the separate flow, exp(tA)=[[exp(-t),40(exp(-t)-exp(-2t))],[0,exp(-2t)]], and unit input (0,1) reaches norm sqrt(1601)/4 at t=log(2).
Regularization changes the target
For scalar data b=alpha*x_true+e with alpha=1/100, lambda=1/10000, x_true=2 and |e|<=1/1000, derive the Tikhonov estimate, its exact bias at e=0, the noise gain and a worst-case absolute total error. Compare with unregularized inversion.
- For the scalar objective (alpha x-b)²+lambda x², differentiation gives x_lambda=alpha b/(alpha²+lambda). Here alpha²=1/10000=lambda, so the denominator is 1/5000 and the multiplier is 50. Since b=alpha x_true+e=1/50+e, the exact estimate is 1+50e.
- At e=0 this estimate is one, while x_true=2. The deterministic regularization bias is therefore -1. The derivative in the additive data noise e is 50, so |e|<=1/1000 contributes at most 1/20 to the estimate. This is the actual noise gain, not a bound on the already present bias.
- The total error is x_lambda-x_true=-1+50e, lying in [-21/20,-19/20]. Its largest absolute magnitude is 21/20, attained at e=-1/1000. The triangle bound bias magnitude plus worst noise magnitude is exact in this scalar example because the noise can align with the bias.
- Without regularization, inversion gives b/alpha=2+100e. Its bias is zero and its worst-case error is 100/1000=1/10. Thus the chosen regularization halves the noise gain but gives a much worse total worst-case error for the stated signal and noise. This calculation illustrates a bias tradeoff rather than a rule that regularization always improves an estimate or a recommendation for this particular lambda.
The regularized estimate is x_lambda=50b=1+50e, with exact bias -1, noise gain 50 and worst-case absolute total error 21/20. Unregularized inversion has zero bias and worst-case error 1/10 for this data model.
A contraction residual certificate
Let T_d(z)=(3/4)z+d on the real line. Derive its unique fixed point, sensitivity to d, a residual-based error certificate and the exact error after k iterations from z_0=0. For d=1/2 and zhat=199/100, evaluate both the residual and the exact error.
- The real line is complete and T_d maps it to itself with contraction factor 3/4. Solving z=(3/4)z+d gives z_star=4d. As a function of d its absolute condition is four; its relative condition is one when d is nonzero. These sensitivity statements are distinct from the geometric iteration factor.
- For any candidate zhat, its fixed-point residual is s=zhat-T_d(zhat)=zhat/4-d=(zhat-z_star)/4. Consequently |zhat-z_star|=4|s|. The general contraction bound 1/(1-q) is attained exactly for this scalar affine family, provided the residual is exact or enclosed with its own error bound.
- Starting at z_0=0, the finite geometric series gives z_k=d sum_(j=0)^(k-1)(3/4)^j=4d(1-(3/4)^k). The signed iteration error is -4d(3/4)^k. This formula describes exact iterations; rounded updates would require additional local disturbance terms rather than an unqualified use of the same exact expression.
- For d=1/2 the exact fixed point is two. At zhat=199/100, T_d(zhat)=797/400 and zhat=796/400, giving residual -1/400. The exact candidate error is 199/100-2=-1/100, whose magnitude is four times 1/400. This verifies the residual certificate without treating the candidate as an actual iterate or invoking a numerical convergence experiment.
The fixed point is z_star=4d, with absolute d condition 4. Error is exactly four times the residual magnitude; z_k=4d(1-(3/4)^k). At d=1/2, zhat=199/100 has residual -1/400 and error -1/100.
Try it yourself
For f(x)=exp(x) at x=-3, derive absolute and relative local condition numbers and a finite relative output-error bound for |h|<=1/20. Distinguish an absolute input perturbation from a relative one.
Show the answer and reasoning
Absolute condition is exp(-3) and relative condition is 3. An absolute perturbation |h|<=1/20 gives relative output change at most exp(1/20)-1; a relative input tolerance epsilon instead gives exp(3epsilon)-1.
For f(x)=exp(x), the derivative is exp(x). At x=-3, the scalar absolute derivative norm is exp(-3), while |x f′(x)/f(x)|=3. The exponential value is nonzero and the base input is nonzero, so both stated local condition definitions apply. The exact perturbed-to-base output ratio is exp(-3+h)/exp(-3)=exp(h). Therefore the relative output change is |exp(h)-1|. For |h|<=1/20 its maximum is exp(1/20)-1: the positive endpoint dominates the negative endpoint because exp(a)-1>=1-exp(-a) for a>=0. The hypothesis |h|<=1/20 is an absolute input tolerance. Its relative size at x=-3 is at most 1/60. If the intended data model were |h|<=epsilon|x|, the corresponding finite output bound would instead be exp(3epsilon)-1, whose first-order term is 3epsilon. These bounds concern exact data propagation, not an implementation of exp or a measurement distribution. The absolute derivative carries the output-per-input scale, while the relative condition is dimensionless in a consistent scalar unit convention. Replacing an absolute tolerance by a relative one without the factor |x| would answer a different question.
For f(x)=sin(x), derive the relative condition where it is defined. Evaluate it at pi/2 and discuss what local relative condition means at a zero of sin, including the limit as x tends to zero.
Show the answer and reasoning
The relative condition is |x cot(x)| where x and sin(x) are nonzero. It is zero at pi/2, undefined at an exact sine zero, and tends to 1 as x approaches zero through nonzero values.
The scalar derivative is cos(x), so the local relative formula gives |x cos(x)/sin(x)|=|x cot(x)| when its input and output scales are nonzero. The absolute condition |cos(x)| remains available even when a relative output scale fails. At x=pi/2, the derivative vanishes and sin(x)=1, so the relative first-order condition is zero. Nevertheless sin(pi/2+h)=cos(h), whose output change has magnitude 1-cos(h)<=h²/2. A zero derivative does not make the finite response identically zero. At every exact zero of sine the relative output quotient divides by zero. Near a nonzero multiple of pi, the numerator scale |x| does not vanish, so the relative condition becomes unbounded. An absolute output tolerance is often more meaningful for such near-zero outputs. As x tends to zero through nonzero values, sin(x)/x tends to one and cos(x) tends to one, so |x cot(x)| tends to one. This nearby limit does not define the relative input/output quotient at the base x=0, where both scales vanish. State the absolute or mixed-scale question there instead.
For f(a,b,c)=ab+c at (a,b,c)=(2,3,-5), derive its componentwise relative first-order condition and a rigorous finite output bound under independent relative input perturbations of size at most epsilon.
Show the answer and reasoning
The componentwise relative first-order condition is 17. The sharp finite output-change bound is 17epsilon+6epsilon² under the stated independent relative input errors.
At the base point, f=2·3-5=1 and the gradient with respect to (a,b,c) is (3,2,1). The weighted absolute derivative contributions are 3·2, 2·3 and 1·5. Their sum divided by |f| is 6+6+5=17. Write a′=2(1+alpha), b′=3(1+beta) and c′=-5(1+gamma), with each parameter magnitude at most epsilon. Expansion gives f(a′,b′,c′)-1=6alpha+6beta-5gamma+6alpha beta. The cross term is present because two uncertain factors are multiplied. The triangle inequality yields |delta f|<=17epsilon+6epsilon². Choosing alpha=beta=epsilon and gamma=-epsilon attains this positive bound, so it is a sharp finite bound for the independent box. The first-order coefficient is 17, while the second-order contribution cannot be dropped from a finite guarantee. Since the base output equals one, absolute and relative output changes have the same numerical value here. The sign choice producing sharpness need not represent a physically correlated measurement process. A shared parameter or covariance model would define a different admissible set and must be analyzed with its actual dependencies.
At x=1, compare coefficientwise and argument relative condition numbers for p(x)=x^2-2x+1001/1000. State explicitly which data each condition perturbs.
Show the answer and reasoning
At x=1, the coefficientwise relative condition is 4001 and the relative argument condition is zero. The finite argument change is exactly h², or relative output change 1000h².
The exact polynomial value is p(1)=1-2+1001/1000=1/1000. For independent relative coefficient perturbations at this fixed argument, the weighted absolute sum is 1+2+1001/1000=4001/1000. Dividing by |p(1)| gives coefficientwise relative condition 4001. With coefficients fixed, p′(x)=2x-2 and p′(1)=0. Hence |x p′(x)/p(x)| at x=1 is zero. This condition perturbs only the argument, not the three coefficients independently; the two numbers therefore concern different data models. Substituting x=1+h into the exact polynomial gives p(1+h)=h²+1/1000. The finite absolute change is h² and its relative magnitude is 1000h². The nonzero second-order response is consistent with a zero first-order argument condition. By contrast, the coefficient value change at fixed x=1 is linear in the coefficient disturbances, so its finite relative worst-case bound is exactly 4001epsilon. Appropriate signs align all three terms. Neither result by itself bounds a particular polynomial evaluator’s arithmetic error; a coefficientwise backward theorem would connect the evaluator to the first data model, not automatically to the second.
For f(x)=x^3 on the real line, analyze local absolute conditioning at zero and the differentiability of its inverse there. Explain why a zero derivative need not imply noninvertibility as a set map.
Show the answer and reasoning
The forward absolute local condition at zero is zero, but the inverse cube root is not differentiable there and has unbounded absolute local amplification. The cubic remains a bijection of the real line.
For f(x)=x^3, f′(0)=0. Directly, the absolute change quotient at zero is |h³|/|h|=h², which tends to zero. Thus the local absolute condition is zero in agreement with the derivative-norm definition. The map is strictly increasing and onto the real line, with inverse g(y)=the real cube root of y. For a nonzero increment k at zero, |g(k)-g(0)|/|k|=|k|^(-2/3), which grows without bound as k tends to zero. Therefore the inverse is continuous but not differentiable with a finite derivative at zero. The inverse-function theorem requiring a nonzero forward derivative does not apply there. Its failed hypothesis is not a proof of failed set-theoretic invertibility, as the explicit inverse shows. Relative input and output condition formulas at the zero base are undefined and should not be substituted for these absolute statements. Away from zero, the cubic has relative condition three and its local inverse has relative condition one third, but those valid neighboring formulas do not repair the missing relative scales at zero.
For A=diag(4,1/2), b=(4,1/2) transpose and xhat=(1,3/2) transpose, compute x, r=b-A*xhat, kappa_2(A), relative forward error, and exact normwise and componentwise backward errors.
Show the answer and reasoning
The exact solution is (1,1), residual is (0,-1/4), kappa_2(A)=8 and relative forward error is 1/(2sqrt(2)). Normwise backward error is 1/(8sqrt(13)+2sqrt(65)); componentwise backward error is 1/5.
The diagonal solve gives x=(1,1), while A xhat=(4,3/4). Thus r=b-A xhat=(0,-1/4), and xhat-x=(0,1/2). The relative forward Euclidean error is (1/2)/sqrt(2)=1/(2sqrt(2)). The singular values are four and one half, so ||A||_2=4, inverse norm two and kappa_2(A)=8. The candidate norm is sqrt(13)/2 and the right-hand-side norm is sqrt(65)/2. The relative residual, if wanted in the same norm, is 1/(2sqrt(65)). The normwise backward denominator is 4·sqrt(13)/2+sqrt(65)/2=(4sqrt(13)+sqrt(65))/2. Dividing 1/4 by that denominator gives 1/(8sqrt(13)+2sqrt(65)). The Euclidean rank-one construction proves this is the exact unstructured minimum, not merely an upper estimate. For the componentwise measure, the first row has zero residual and denominator eight. The second denominator is (1/2)(3/2)+1/2=5/4, giving ratio (1/4)/(5/4)=1/5. This larger entry-relative error reveals the second equation’s scale. A structural restriction on perturbations or an inexactly evaluated residual would require additional analysis.
Let A be nonsingular with kappa_2(A)=20. Derive the finite relative solve-error bound when ||E||/||A||<=1/100 and ||f||/||b||<=1/200. Show why the same sufficient theorem gives no guarantee when the relative matrix error reaches 1/20.
Show the answer and reasoning
The finite relative solve-error guarantee is 3/8. At relative matrix error 1/20 the sufficient denominator reaches zero, and a worst-case singular perturbation is allowed, so that theorem gives no general guarantee.
Let delta_A=||E||_2/||A||_2 and delta_b=||f||_2/||b||_2, with nonzero b and nonsingular A. The finite perturbation bound requires kappa_2(A)delta_A<1 and then gives relative solution error at most kappa_2(A)(delta_A+delta_b)/(1-kappa_2(A)delta_A). These data norms and the nonzero reference solution are part of the formulation. For delta_A<=1/100 and delta_b<=1/200, the product 20delta_A is at most 1/5. The numerator is at most 20·(3/200)=3/10 and the denominator is at least 4/5, so the quotient is at most (3/10)/(4/5)=3/8. This is a finite bound, not merely its first-order numerator. If delta_A reaches 1/20, the product 20delta_A reaches one. The Neumann sufficient bound no longer has a positive denominator. In spectral norm the relative distance to an unstructured singular matrix is 1/kappa_2(A)=1/20, so a singular perturbation can indeed occur within the allowed boundary set. That failure is a worst-case lack of guarantee, not a claim that every matrix perturbation of that size is singular or every solve error diverges. A particular E can have ||A inverse E||<1 even outside the generic product bound. Extra structure or direct information about E would define a more specific analysis.
For A=diag(5,1/4), construct a least-spectral-norm singularizing perturbation. Compare the unstructured relative distance to singularity with perturbations restricted to A to (1+delta)A.
Show the answer and reasoning
The least spectral singularizing perturbation is E=diag(0,-1/4), with absolute size 1/4 and relative size 1/20. Under the scalar family (1+delta)A, singularity instead requires delta=-1 and relative size 1.
The diagonal singular values are five and one quarter, so the smallest singular value is 1/4 and kappa_2(A)=20. The spectral distance-to-singularity theorem gives absolute distance 1/4 and relative distance (1/4)/5=1/20. Its lower-bound proof applies to every unstructured perturbation, not just a diagonal candidate. The diagonal perturbation E=diag(0,-1/4) has norm 1/4 and makes A+E=diag(5,0), attaining that lower bound. It changes only the sensitive small direction, which the unstructured perturbation model permits. In the restricted family A_delta=(1+delta)A, both diagonal entries have the same multiplier. Since the original A is nonsingular, A_delta is singular exactly when 1+delta=0. Its relative matrix perturbation size is |delta|, so the restricted distance is one, not 1/20. For |delta|<=1/20 in this scalar family, a solution for a fixed nonzero b changes relatively by |delta|/|1+delta|<=1/19. The much smaller unstructured distance therefore does not describe this common-calibration direction. Conversely, a certificate proved only for that scalar family cannot be extended to independent entry perturbations without restoring their different sensitivity.
For a scalar root estimate xhat of x^3-8=0 lying in [3/2,5/2], derive a residual-to-root error bound from a derivative lower bound. Evaluate the bound at xhat=21/10 using exact fractions.
Show the answer and reasoning
The derivative lower bound is 27/4. At xhat=21/10 the exact residual is 1261/1000, giving the root-error bound 1261/6750; the actual error from the root 2 is 1/10.
For f(x)=x³-8, f′(x)=3x². On [3/2,5/2], this derivative is positive and at least 3·(3/2)²=27/4. Continuity and the exact root two establish existence in the interval; strict positivity of the derivative gives uniqueness there. The candidate 21/10 lies inside that same interval. Its exact function value is (21/10)³-8=9261/1000-8000/1000=1261/1000. This is an exact rational residual, so no residual-evaluation uncertainty is being suppressed in the present hand calculation. The mean-value theorem therefore yields |xhat-2|<=|f(xhat)|/(27/4)=(1261/1000)(4/27)=1261/6750. The derivative lower bound is valid on every segment between the candidate and the root, which is essential for a finite certificate. Direct subtraction gives the actual error |21/10-2|=1/10, which is below the bound. The certificate is conservative because it uses the minimum derivative on the whole interval rather than the particular unknown mean-value point. A computed residual or uncertain cubic coefficients would require additional enclosures before the same numerical guarantee could be used.
Show that residual epsilon for f(x)=x^4 at the root zero can correspond to error epsilon^(1/4), and explain why no uniform linear residual-to-error factor exists near zero.
Show the answer and reasoning
For epsilon>0, the candidate epsilon^(1/4) has residual epsilon and error epsilon^(1/4). Their ratio epsilon^(-3/4) is unbounded near zero, so no uniform finite linear residual-to-error constant exists there.
The function f(x)=x^4 has its real root at zero, of multiplicity four. Choose the positive candidate xhat=epsilon^(1/4) for any positive epsilon. The exact residual is f(xhat)=epsilon, while the exact root error is |xhat|=epsilon^(1/4). If a finite uniform constant C made error<=C times residual for every sufficiently small positive candidate, substitution would require epsilon^(-3/4)<=C for all sufficiently small epsilon. That is impossible because the left side grows without bound as epsilon decreases to zero. The derivative f′(x)=4x³ has no positive lower magnitude on any interval containing the root. Thus the inverse-slope certificate fails exactly where its hypothesis should fail. This is compatible with a useful nonlinear certificate error=residual^(1/4) for this known function and real candidates. At the zero base, a relative root scale is not available. Also, the small residual alone would not establish the exact nonlinear relation for an unknown or perturbed function; the relation here follows from the specified polynomial identity. Multiplicity and data uncertainty must be stated rather than inferred from a numerically tiny function value.
For a central difference with |f triple-prime|<=24 and individual evaluation errors at most 10^(-12), derive the minimizing positive step for the bound and the minimum bound. State all domain and evaluation assumptions.
Show the answer and reasoning
The central-difference bound is 4h²+10^(-12)/h. Its continuous minimum occurs at h=1/20000 and equals 3·10^(-8), provided all domain and evaluation assumptions hold.
For a valid positive step with [x-h,x+h] inside the domain and |f‴|<=24 there, the central-difference truncation bound is (24/6)h²=4h². Each function-value error has magnitude at most 10^(-12), so the pair contributes at most 10^(-12)/h after division by 2h. For B(h)=4h²+10^(-12)/h, setting B′(h)=8h-10^(-12)/h² to zero gives h³=10^(-12)/8. The positive cube root is 1/20000 because (1/20000)³=1/8000000000000. The bound decreases before this point and increases after it. At that step, 4h²=1/100000000=10^(-8), and the evaluation term is 20000·10^(-12)=2·10^(-8). Their sum is 3·10^(-8). This is the continuous ideal minimum within an admissible interval containing that step, not an assertion that every possible step family contains it. The model assumes the true sample locations x-h and x+h are used and that the subsequent subtraction and division introduce no unaccounted error. On a finite machine, rounded locations, step representation and quotient arithmetic need their own terms, and the chosen represented step must stay in the derivative-valid region. Independent probabilistic noise is not assumed; the absolute evaluation bounds suffice.
Derive the backward terminal-error bound for I_n=integral from zero to one of x^n/(x+5) when I_M is initialized to zero, M>n. Specialize to n=2,M=6 without evaluating any logarithm numerically.
Show the answer and reasoning
The terminal-error bound is 1/(5^(M-n+1)(M+1)). For n=2,M=6 it is 1/21875; the exact backward recurrence initialized with zero gives I_hat_2=29/500.
The rearranged recurrence is I_(k-1)=(1/k-I_k)/5. If the terminal approximation is I_hat_M=0, its signed error is -I_M. With exact subsequent arithmetic, M-n backward steps multiply it by (-1/5)^(M-n), so |I_hat_n-I_n|=5^(-(M-n))I_M. Since 0<I_M<=1/(5(M+1)), the finite bound is |I_hat_n-I_n|<=1/(5^(M-n+1)(M+1)). This estimates only the terminal truncation contribution. Local arithmetic errors would enter an additional damped geometric sum. For n=2 and M=6 there are four backward steps, giving the bound 1/(5^5·7)=1/21875. The successive exact initialized values are I_hat_5=1/30, I_hat_4=1/30, I_hat_3=13/300 and I_hat_2=29/500. These rational computations require no approximation to a logarithm. Because the number of backward steps is even, the signed terminal contribution to I_hat_2-I_2 is negative. The result is a rational underestimate with the stated absolute upper error bound. An actual floating-point evaluation would need to enclose the rational divisions and recurrence rounding before claiming the same total certificate.
Let H=diag(1,4) and E=[[0,1/10],[1/10,0]]. Compute the two eigenvalues of H+E exactly and verify their deviations satisfy the Hermitian spectral-norm perturbation bound.
Show the answer and reasoning
The eigenvalues are (25-sqrt(226))/10 and (25+sqrt(226))/10. Each ordered eigenvalue moves by (sqrt(226)-15)/10, at most ||E||_2=1/10.
The perturbed symmetric matrix is [[1,1/10],[1/10,4]]. Its trace is five and determinant is 4-1/100=399/100. Solving the quadratic gives eigenvalues 5/2 plus or minus sqrt(226)/10, equivalently (25 plus or minus sqrt(226))/10. The unperturbed ordered eigenvalues are one and four. The smaller perturbed one decreases by (sqrt(226)-15)/10, and the larger increases by the same amount. The quantity is positive because 226>225; rationalization also gives it as 1/(10(sqrt(226)+15)). The perturbation E has eigenvalues plus and minus 1/10 and hence spectral norm 1/10. Since sqrt(226)<=16, the eigenvalue displacement is at most (16-15)/10=1/10. This explicitly verifies the ordered Hermitian perturbation bound for both eigenvalues. The perturbation is symmetric, so the real-order min-max theorem applies. The calculation does not establish an eigenvector error bound or relative eigenvalue accuracy near a zero eigenvalue. Those are separate output questions even though this finite example has comfortably separated nonzero eigenvalues.
For A=V*diag(1,2)*V inverse with V=[[1,1],[0,1]], compute kappa_2(V) exactly. State the Bauer–Fike eigenvalue-neighborhood guarantee for a perturbation of spectral norm at most 1/100 without asserting every point in the disks is an eigenvalue.
Show the answer and reasoning
The exact kappa_2(V) is (3+sqrt(5))/2. Every eigenvalue of the perturbed A lies in the union of disks centered at 1 and 2 with radius (3+sqrt(5))/200.
Compute V transpose V=[[1,1],[1,2]]. Its trace is three and determinant one, so its eigenvalues are (3+sqrt(5))/2 and (3-sqrt(5))/2. The singular values of V are their positive square roots. Their product is one, so the ratio of the larger to the smaller equals (3+sqrt(5))/2. The specified diagonalization has eigenvalues one and two. For any perturbation E with ||E||_2<=1/100, Bauer–Fike gives min(|lambda_tilde-1|,|lambda_tilde-2|)<=kappa_2(V)/100=(3+sqrt(5))/200 for every perturbed eigenvalue lambda_tilde. Thus the guarantee is an inclusion in the union of two closed disks in the complex plane. It does not assert that every point in a disk occurs as an eigenvalue, nor that each specific perturbation moves both eigenvalues to the disk boundaries. The allowed perturbation need not preserve symmetry or real eigenvalues for the inclusion to remain valid. The factor belongs to the given eigenvector matrix V and Euclidean norm. Column rescaling can change the factor used in such a bound, and an intrinsic exact eigenvalue condition is a more specific question. The present matrix is diagonalizable, so there is no invocation of the theorem at a defective boundary.
For A=[[1,0],[0,1/10],[0,0]] and b=(1,1/10,1) transpose, compute its full-column-rank least-squares solution, residual, kappa_2(A), kappa_2(A transpose A), and the exact relative local condition with respect to b in Euclidean norm.
Show the answer and reasoning
The least-squares solution is (1,1), residual is (0,0,1), kappa_2(A)=10 and kappa_2(A transpose A)=100. The exact relative local b condition is sqrt(201/2).
The columns of A are orthogonal with lengths one and one tenth. The first two coordinates can be fitted exactly by x=(1,1), while every vector Ax has third coordinate zero. Thus the least-squares residual is (0,0,1), orthogonal to both columns, and full column rank gives uniqueness. The singular values are one and one tenth, giving kappa_2(A)=10. The Gram matrix is diag(1,1/100), so its spectral condition is 100, exactly the square of the original matrix condition. This identity concerns exact matrices; it is not an observed digit-loss measurement. The pseudoinverse is [[1,0,0],[0,10,0]], with spectral norm ten. The right-hand-side norm is sqrt(201)/10 and the solution norm is sqrt(2). Consequently the exact normwise relative condition for perturbing only b is 10·(sqrt(201)/10)/sqrt(2)=sqrt(201/2). A perturbation in the second coordinate attains the derivative norm. This relative b condition can exceed kappa_2(A) because b includes a residual component that enlarges its reference norm without enlarging x. The appropriate rectangular fixed-matrix formula is ||A plus||||b||/||x||, not an unconditional substitution of the square-solve condition. If A also changes, its column-space rotation and residual coupling add further terms.
For scalar Tikhonov filtering g(sigma)=sigma/(sigma^2+lambda), lambda>0, prove its maximum for sigma>=0 is 1/(2*sqrt(lambda)). Explain why this gain bound does not include the regularization bias.
Show the answer and reasoning
For sigma>=0, g(sigma)<=1/(2sqrt(lambda)), with equality at sigma=sqrt(lambda). This bounds propagated data noise only; a separate regularization bias remains.
With lambda>0, the elementary inequality (sigma-sqrt(lambda))²>=0 gives sigma²+lambda>=2sigma sqrt(lambda). For sigma>0, division by the positive denominator proves sigma/(sigma²+lambda)<=1/(2sqrt(lambda)). At sigma=0, the function is zero and the same inequality holds directly. At sigma=sqrt(lambda), the numerator is sqrt(lambda) and the denominator is 2lambda, giving equality. The bound is therefore the exact maximum over the nonnegative half-line. One may also verify the unique positive maximum from g′(sigma)=(lambda-sigma²)/(sigma²+lambda)². In a singular-value decomposition this filter multiplies the data-noise component in the corresponding singular direction. The actual operator noise gain is the maximum over the singular values present in A and may be smaller than the half-line maximum. It is a fixed-A linear noise-amplification bound. For noiseless data A x_true, the reconstructed signal factor is sigma²/(sigma²+lambda), not one. The missing factor lambda/(sigma²+lambda) produces a bias, and nullspace components can be lost completely. A bound on the noise gain therefore cannot be presented as a bound on total reconstruction error without the bias term and the assumptions on x_true.
Let y=2a-3b and centered data errors have variances sigma_a^2=1/100, sigma_b^2=1/25 and covariance 1/100. Compute the exact variance of the output error and compare it with an unjustified independent-error assumption. Separately derive a deterministic bound when |delta a|<=1/10 and |delta b|<=1/5.
Show the answer and reasoning
The exact output-error variance is 7/25. Dropping the nonzero covariance would incorrectly give 2/5. The separate deterministic worst-case magnitude bound is 4/5.
Because y=2a-3b is linear, its error is exactly delta y=2delta a-3delta b. For centered finite-variance errors, Var(delta y)=4Var(delta a)+9Var(delta b)-12Cov(delta a,delta b). No nonlinear linearization remainder is present for this target. Substitute the stated values to get 4/100+9/25-12/100=(4+36-12)/100=28/100=7/25. The covariance matrix is compatible with a random model: its diagonal entries are positive and its determinant is (1/100)(1/25)-(1/100)²=3/10000>0. An unjustified zero-covariance assumption would remove the negative cross contribution and give 4/100+9/25=2/5. Positive covariance reduces the variance of this particular difference because its coefficients have opposite signs. The variance alone does not establish a distribution, independence, a confidence interval or a deterministic error bound. Under the separate box model |delta a|<=1/10 and |delta b|<=1/5, the triangle inequality gives |delta y|<=2/10+3/5=4/5. It is attained at delta a=1/10, delta b=-1/5 or the reversed signs. That deterministic box is a different assumption from the covariance model; its extreme point is not being asserted to have any stated probability.
For the three-interior-point Dirichlet matrix T=tridiag(-1,2,-1), derive its eigenvalues and spectral condition. Explain why multiplying the matrix by h^(-2) changes its norm but not its condition number, and identify which discretization errors are absent from an exact matrix residual.
Show the answer and reasoning
The eigenvalues are 2-sqrt(2),2,2+sqrt(2), giving kappa_2(T)=3+2sqrt(2). Scaling by h^(-2) preserves this condition; an exact matrix residual omits continuous-model, truncation, data and reconstruction errors.
For three interior nodes, the sine vectors with angles kpi/4, k=1,2,3, satisfy the zero-endpoint tridiagonal eigenvalue relation. The eigenvalues are 2-2cos(kpi/4), namely 2-sqrt(2), two and 2+sqrt(2). All are positive and T is symmetric, so its spectral singular values are these eigenvalues. The condition is (2+sqrt(2))/(2-sqrt(2)). Multiplying numerator and denominator by 2+sqrt(2) gives (6+4sqrt(2))/2=3+2sqrt(2). This is a relative normwise matrix condition, not a local truncation estimate. For positive h, multiplying T by h^(-2) multiplies its spectral norm by h^(-2) and its inverse norm by h². Their product is unchanged. Thus the scaled operator has a different absolute input-to-output scale and the same spectral condition number, consistent with a change of physical length units. An exact residual for this stored finite matrix measures only satisfaction of the discrete algebraic system. It does not include how well that system represents the continuous differential equation, uncertainty in forcing or boundary data, or interpolation between nodes. A computed residual adds its own evaluation uncertainty unless it is enclosed. Those terms need separate bounds before a continuous or physical output-error claim is made.
What to carry forward
- A condition number belongs to a specified problem and perturbation model; its value depends on scales, units, domains and admissible directions.
- A derivative gives local first-order sensitivity. A finite perturbation needs a valid neighborhood and a controlled denominator or remainder.
- Backward stability converts small arithmetic perturbations into small forward errors only when the corresponding problem is sufficiently well conditioned.
- A small residual is useful evidence only with a valid inverse or sensitivity bound and an enclosure of its own evaluation error.
- Equivalent exact formulas and opposite recurrence directions can have very different arithmetic behavior without changing the target problem.
- Eigenvalues, eigenvectors, least-squares solutions and transient dynamics pose different sensitivity questions; their hypotheses and norms cannot be interchanged.
- Scaling changes coordinates, whereas regularization deliberately changes the target and trades noise amplification against bias.
- Worst-case boxes, covariance models and total-error budgets require distinct evidence; a finite numerical check supports an instance rather than an unstated general theorem.
References
Sources for the concepts and teaching approaches in this article.
James Demmel4 sources
- MA221, Lecture 13: least-squares sensitivityJames DemmelLecture notes
- MA221, Lecture 3: matrix norms and perturbationsJames DemmelLecture notes
- MA221, Lecture 22: nonsymmetric eigenvalue perturbationsJames DemmelLecture notes
- MA221, Lecture 28: symmetric eigenvalue perturbationsJames DemmelLecture notes
- Regularization Tools: A Matlab Package for Analysis and Solution of Discrete Ill-Posed ProblemsPer Christian HansenTechnical manual · PDF
- Hydrodynamic Stability Without EigenvaluesLloyd N. Trefethen, Anne E. Trefethen, Satish C. Reddy and Tobin A. DriscollResearch paper · PDF
- NIST Technical Note 1297, Appendix A: law of propagation of uncertaintyBarry N. Taylor and Chris E. Kuyatt; NISTTechnical note
Jiří Lebl4 sources
- Basic Analysis II, Section 8.3: derivative in several variablesJiří LeblAuthor textbook
- Basic Analysis II, Section 8.4: continuity and the derivativeJiří LeblAuthor textbook
- Basic Analysis II, Section 8.5: inverse and implicit function theoremsJiří LeblAuthor textbook
- Basic Analysis II, Subsection 7.6.1: contraction mapping principleJiří LeblAuthor textbook