For smooth constraints , minimize
approximately in , then update the nonnegative Lagrange multipliers by the displayed projected rule. Equality constraints instead contribute and use the unprojected update . The construction combines Lagrangian duality with a quadratic penalty method.
For an inequality, the exact identity is . Its unshifted negative part satisfies . On a violated constraint, accurate new multipliers therefore give violation of the order of times the multiplier error. This can achieve high feasibility accuracy without a vanishingly small , reducing condition number difficulties. The negative-part qualification is essential if an iterate approaches a binding constraint from the feasible side.
Backward error 2026-10-18
A backward error measures a perturbation of the input data for which the computed result is an exact solution of the perturbed problem. Specify which data may change and which norm measures the perturbation. For a linear system , holding fixed gives , the negative linear-system residual. The corresponding forward error also depends on the condition number.
Backward stability 2026-10-24
A numerical algorithm is backward stable when its computed output is the exact output for input data perturbed by an amount comparable to the arithmetic's round-off error. The allowed input perturbations and their norm must be specified. A bound on backward error gives a forward error bound only after accounting for the problem's condition number. For example, a singular value decomposition with orthonormal computed outer factors is backward stable in the spectral norm if , with machine precision and a modest dimension-dependent constant .
Catastrophic cancellation 2026-10-14
Catastrophic cancellation occurs when subtraction of nearly equal approximations removes their matching leading digits and exposes earlier roundoff error. The subtraction can itself be exact on the stored operands: the information may already have been lost while obtaining them. Goldberg distinguishes this from cancellation of accurately known quantities, which can be harmless.[ref]
For , consider the single real-valued function
The rationalization of a square-root difference proves equality in exact arithmetic. The two evaluations use the same input , but the direct version first forms a value near one and then subtracts one. The rearranged version keeps the small input in its numerator and divides by a denominator near two.
Figure 1.
Direct and rationalized evaluation of a small square-root difference against a high-precision reference for the same binary64 inputs
. Details.
For binary64 x = 1e-16, the rounded sum 1.0 + x is one, so sqrt(1.0 + x) - 1.0 is zero. The rationalized evaluation returns approximately . A 100-digit Decimal calculation using the exact stored input gives relative errors of one and about respectively. At x = 1e-12, the direct result is about , with relative error ; the rearranged result is about , with relative error .
The plot uses Decimal.from_float(x) to preserve the binary input exactly, computes at 100 decimal digits, and verifies the reference at 160 digits. Exact conversion of a stored binary value is documented by Python.[ref] Each error is , with the computed result converted exactly to Decimal before comparison. Hence the curves measure evaluation error for one common input, rather than a mixture of input conversion error and evaluation error. The plotted interval is far above the subnormal number range.
The original problem is well conditioned with respect to relative changes in . Using the derivative and rationalization of a square-root difference, its relative condition number is
It tends to one as tends to zero. The direct evaluation instead introduces the intermediate difference with ; an error of order unit roundoff in is large relative to . This is a failure of the chosen algorithm's accuracy despite a small condition number for the same real-valued function. The rationalized evaluation avoids that intermediate catastrophic cancellation, retaining relative accuracy near the unit roundoff scale throughout the plotted interval. Recognizing this structure can improve a calculation far more than merely printing extra digits.
Chemometrics 2026-11-05
Chemometrics applies statistics and mathematical modeling to chemical measurements and the design of chemical experiments. It connects recorded signals with chemical composition or other properties, while accounting for experimental variation. IUPAC's definition includes both analysis of chemical data and design of experiments and simulations.[ref]
An original two-component example illustrates multivariate calibration. At two chosen wavelengths, suppose absorbance follows a calibrated linear model
with fixed optical path and concentration units chosen so the displayed coefficients apply. This is the additive-response model suggested by the Beer-Lambert law, with no interactions or other absorbers. Readings , give
Neither wavelength alone distinguishes both concentrations; their different response ratios make the pair informative.
If the second response row were instead twice the first, the matrix would be singular. More precise repeated readings would not restore the missing chemical selectivity. Nearly proportional response rows instead make the inverse sensitive to noise, connecting experimental wavelength selection with the condition number of the response matrix.
Principal component analysis can summarize patterns in many-channel measurements, while regression can predict an independently measured chemical quantity. These are different tasks: a direction of large signal variance need not identify a particular analyte. Cross-validation should keep correlated preparations or production batches together when the intended prediction is for new batches; splitting repeated readings of one preparation across training and validation can overstate performance.
A useful experiment measures known mixtures spanning the intended concentration range, reagent blanks and separately prepared validation samples. Inspecting calibration residuals tests departures from the model, while varying preparation conditions tests whether a fitted relation transfers. A mathematical fit gains chemical meaning from the materials, reference measurements and experimental design behind its data.
André-Louis Cholesky developed his calculation in the setting of geodetic adjustment: measured angles and lengths must satisfy geometric relations, while corrections should be small. The manuscript reproduced in Claude Brezinski's study is titled Sur la résolution numérique des systèmes d’équations linéaires and ends with the date 2 December 1910 at Vincennes. The manuscript reports a 56-equation calculation adjusting altitudes in an Algerian triangulation network. Its date establishes when this written account existed, rather than an exact invention date.[ref]
A related algebraic reason for the method's usefulness is that normal equations involve a Gram matrix. If a real matrix has linearly independent columns, then
so is a positive-definite matrix. That gives the structure needed by a Cholesky decomposition. The historical adjustment problem instead produces from independent constraint rows; the same argument applies to its transpose. In numerical least squares, explicitly forming normal equations squares the condition number of a full-column-rank design matrix; a QR decomposition can therefore be preferable for accuracy. Indeed, the extreme singular values give . The factorization remains useful when a positive-definite matrix is already the natural input.
For a nonnegative partition-normalized B-spline basis, the synthesis linear map has operator norm one. Its condition number is consequently , with the supremum norm on the spline space and the maximum norm on its coefficients. The uniform-norm stability of a B-spline basis bounds this number independently of the spline knot sequence when the order is fixed. This is different from the condition number of a particular sampled B-spline collocation matrix.
The conditioning of tie-line phase-fraction inference describes how strongly composition perturbations change an inferred phase fraction. For a binary mixture with distinct endpoints, the lever rule gives . Its absolute sensitivity to , with endpoints fixed, is . This is an absolute amplification coefficient; a relative condition number additionally depends on the chosen input and output scales.
For an interior , the differential in tie-line phase-fraction sensitivity yields
to first order. If each composition perturbation is bounded by , this becomes . For original stipulated , endpoint separations and give local worst-case bounds and . Tenfold closer endpoints make the same composition precision tenfold less informative about phase amount. Correlations can change the attainable combinations of errors, as common affine calibration cancellation in the lever rule illustrates.
For fixed multicomponent endpoints and overall-composition covariance matrix , the tie-line phase-fraction uncertainty is
The denominator is endpoint separation after a whitening transformation: separation must be compared with measurement precision, not only plotted distance. This follows from covariance-based uncertainty propagation and the linear fit.[ref]
Near coincident endpoints the inverse problem becomes poorly informative, and at coincidence it is undefined. Near the physical bounds, a large propagated uncertainty also warns that the interior linear approximation may fail. More numerical digits in the fitted answer do not resolve this measurement limitation.
Let , and for the transformed symmetric positive-definite matrix. Then preconditioned steepest descent satisfies
This is a worst-case bound, not necessarily the actual rate. For our scaled example the bound is , slightly above its computed factor . If the initial transformed error is an eigenvector, exact line search for a positive-definite quadratic removes it in one step, regardless of the full condition number.
A short proof compares exact line search for a positive-definite quadratic with the trial step size in the transformed coordinates. In an orthonormal eigenbasis of , each error coefficient is multiplied by , whose absolute value is at most . Summing times the squared coefficients bounds the trial energy by the square of this factor. The exact minimizing step size does at least as well. This also explains the terminating case : the trial step removes the entire error in one iteration.
If the eigenvalues of are with , exact quantum phase estimation on uses controlled powers . Their Hamiltonian simulation times reach . Counting each supplied controlled power as one oracle query is valid in that oracle model, but does not prove a polynomial time implementation from generic sparse-matrix access. In the ordinary HHL algorithm, one instead chooses finite precision appropriate to the output error and the condition number, or exploits additional structure giving efficient access to the needed powers.
Direct linear solver 2026-11-05
A direct linear solver computes the solution of a finite linear system by a fixed sequence of algebraic eliminations or matrix factorizations, rather than successive approximate iterates until a stopping tolerance is met. For a nonsingular square matrix, a typical method uses Pivoted LU decomposition followed by forward and back substitution.
For and , subtracting half the first row from the second gives . Hence and . Elimination produces a triangular system whose unknowns are recovered in reverse order.
The adjective direct describes the method's finite algebraic structure; floating-point computation still incurs roundoff. Pivoting avoids unusable or dangerously small pivots, while the condition number controls how perturbations can affect the answer. Factoring a matrix once and reusing the factors can efficiently handle many different right-hand sides.
For the Jacobi iteration for a three-variable tridiagonal system,
An orthonormal eigenbasis is
with eigenvalues , , and , respectively. These are error modes: their shapes persist under the iteration matrix, while their coefficients change. Direct multiplication verifies them, or expansion of the determinant gives . Thus and convergence holds for every starting vector.
With , the initial forward error has coefficients
For ,
The zero mode disappears after one sweep; the negative mode alternates in sign. The Euclidean norm drops by exactly per sweep from onward. The first norm drop is different because includes the zero mode. A starting error proportional to would disappear entirely in one sweep, faster than the spectral radius predicts for generic errors.
Figure 1.
Computed Jacobi method error curves and eigenvector modes for the original three-variable tridiagonal matrix
. Details.
The curves are computed iterates and exact formulas for this linear system. Since , the same eigenvectors have eigenvalues , , and for . They prove that is a positive-definite matrix, and give the condition number used in residual and forward error in a stationary iteration.
Fixed-step gradient descent on a positive-definite quadratic Created 2026-10-18 Updated 2026-10-25
Consider the original two-dimensional example
The Hessian matrix is , a symmetric matrix and positive-definite matrix. Its eigenvectors are the coordinate directions, its eigenvalues are and , and its Euclidean norm condition number is . The unique global minimum is , so the error equals . The linear map , with the identity matrix, gives
For , the two coordinate error multipliers are and . Consequently , , and the second coordinate changes sign at every step while both shrink. The Euclidean norm of the error contracts by each step. The objective gap, which we call the quadratic energy, contracts by its square:
The level sets of are ellipses. Oscillation across their narrow direction is compatible with strictly decreasing energy.
Figure 1.
Original gradient descent iterates on : step size contracts both directions, whereas expands the second
. Details.
For , the coordinate error multipliers become and , giving . The first coordinate still tends to zero, but the second alternates and grows. Direct substitution gives
Thus a larger positive step size can turn a strictly convex function into a divergent iteration. Energy and error are different quantities: coordinate errors carry signed multipliers, while each coordinate's contribution to energy carries the squared multiplier.
Figure 2.
Exact constructed quadratic-energy histories from : step sizes and converge, while diverges
. Details.
For the general quadratic form with linear term
the error obeys the same linear map . The spectral theorem for real symmetric matrices supplies an orthonormal basis of eigenvectors with positive eigenvalues . Writing gives the exact solution and energy identity
Therefore convergence from every initial vector is equivalent to
At , a nonzero error component along a largest-eigenvalue eigenvector flips sign without shrinking. Above that threshold it grows. A particular start can still converge if it has zero components in every unstable direction; the interval is the condition for all starts. If , then and . These bounds follow by summing the squared components in the orthonormal basis.
Forward error 2026-10-18
The forward error is the difference between a computed result and the exact result for the original data. Its size can be measured by a norm, or relative to when . A linear-system residual measures the equation imbalance instead; the condition number relates that imbalance to the forward error.
Gradient descent Created 2026-09-24 Updated 2026-10-18
Gradient descent is an iterative method for minimizing a differentiable function : choose an initial vector and repeatedly move opposite its gradient.[ref]
With a fixed positive step size , the update is
The direction and the step size play different roles: the gradient supplies local information about increase, while determines how far that information is trusted. A varying step size gives instead; exact line search for a positive-definite quadratic chooses it by minimizing along the current direction.
Why is this the steepest direction? For a unit vector in the Euclidean norm, the directional derivative is . The Cauchy-Schwarz inequality bounds it below by , attained by when the gradient is nonzero. This is steepest descent relative to the Euclidean norm; changing the norm can change the steepest direction. A finite step need not decrease , because a directional derivative describes infinitesimal motion.
For the quadratic form with linear term , assuming is a symmetric matrix, the negative gradient is the linear-system residual . Thus gradient descent turns the linear system into repeated residual corrections; a positive-definite matrix makes its solution the unique global minimum. This is useful when applying the linear map is affordable but directly solving the linear system is costly.
The attraction is that a gradient evaluation gives an entire update without solving a new linear system. The difficulty is choosing a step size that progresses along gently curved directions without overshooting steep ones. Fixed-step gradient descent on a positive-definite quadratic makes this tension exact: every eigenvector direction has its own multiplier, determined by its eigenvalue. The resulting condition number dependence explains why a narrow valley can slow even an inexpensive iterative method.
The simplicity of the gradient update and its sensitivity to the condition number of the Hessian matrix are central practical features.[ref]
Hessian matrix Created 2026-09-24 Updated 2026-10-14
The Hessian matrix describes how the slope of a function changes in different directions. For a real-valued function with continuous second partial derivatives on an open subset of , it is
The symmetry of second derivatives makes a symmetric matrix under these hypotheses. It is also the Jacobian matrix of the gradient: near , a small displacement changes by . Thus the gradient measures the current slope, while the Hessian measures its local variation. [ref]
For example, take the quadratic form
Its gradient and Hessian matrix are
The only critical point is the origin. Completing the square gives , so the origin is a strict global minimum. The eigenvalues and are both positive, recovering the same conclusion from the positive definiteness of the Hessian. Its eigenvectors identify the rotated directions in which the quadratic form has its smallest and largest bending.
Figure 1.
Positive, negative and mixed Hessian eigenvalues produce different critical-point geometry
. Contour plots of , , and . All three have a critical point at the origin; the first two have elliptical contours, while the last has positive and negative sectors meeting along its zero contours. Details.
For a fixed vector , restriction to a straight line gives the directional interpretation
This is the quadratic form associated with the Hessian matrix. For a unit eigenvector , it equals the corresponding eigenvalue. Opposite signs therefore mean that some directions bend upwards and others downwards. The second-derivative test turns this information into a classification when the gradient vanishes.
The same object is useful for computation. Newton's method in optimization chooses a displacement by solving when the Hessian matrix is an invertible matrix; this makes the gradient of the local quadratic model vanish. For the displayed , the equation gives , so one exact step reaches the minimum from any starting point. For a general function, a Hessian with opposite-sign eigenvalues or a large condition number need not give a useful minimizing step, and the local minimum need not be a global minimum.
The name honors Otto Hesse. [ref] An older geometric use is the Hessian criterion for flexes of a plane cubic, connecting a determinant of second partial derivatives with inflection points of an algebraic curve. Hesse's 1844 paper Über die Wendepuncte der Curven dritter Ordnung is an early source on that geometric problem. [ref]
HHL controlled reciprocal rotation Created 2026-10-05 Updated 2026-11-05
On a positive eigenvalue label and a clean quantum ancilla, the HHL algorithm applies a quantum variable rotation with angle , where :
Uncomputation of the eigenvalue register followed by conditioning on flag one multiplies each input eigenvector amplitude by . If is normalized, the success probability is . Choosing from a valid condition number bound gives success probability at least .
Householder QR decomposition Created 2026-09-24 Updated 2026-11-05
A Householder QR decomposition introduces zeros below successive diagonal entries using orthogonal reflections. For a nonzero real column segment , set when and otherwise, and define
Then and . The sign choice avoids subtracting nearly equal numbers when constructing . If the segment is zero, skip the reflection.
For with , apply the first reflection to all rows, the second to rows , and so on, extending each by an identity on the earlier rows. This gives
where is orthogonal and consists of an upper triangular matrix above zero rows. The reflections are stored through their defining vectors, so a full dense need not be formed.[ref]
For full column rank, the top block of is invertible and back substitution solves the transformed least squares problem. Orthogonal transformations preserve the Euclidean norm, making this route useful when the normal equations would square a large condition number.
Near an active constraint with limiting Lagrange multiplier , a convergent barrier sequence has . Its Hessian matrix therefore contains the term
For a nonzero constraint gradient, this gives large curvature in a direction normal to the boundary. If a nonzero common tangent direction retains positive curvature of order one, while the remaining terms stay bounded, the condition number typically grows like . This is a mechanism rather than a universal rate: there may be no tangent direction, all curvatures may grow together, or an active constraint may have zero limiting Lagrange multiplier.
Inverse problem Created 2026-09-24 Updated 2026-10-14
An inverse problem reconstructs an unknown object from observed data and a specified model . The associated forward problem predicts the observations from . In image deblurring, contains sharp pixel values and a matrix mixes neighbouring pixels; in tomography, the observations are integrals through the object. The appeal is that indirect measurements can reveal otherwise inaccessible structure. The difficulty is that the forward problem may erase precisely the distinctions we want to recover.
Consider this completely computable two-pixel image deblurring model:
Each measured pixel retains of its own value and receives of its neighbour's. Adding measurement noise gives , whose direct reconstruction is . The Euclidean norm of the reconstruction error is , ten times the data error . A negative second pixel appears even though both observed pixels are positive.
Despite this wrong reconstruction, its residual of an inverse problem is exactly zero: the predicted data equal the noisy observations. Thus matching the data perfectly does not certify reconstruction accuracy. The relevant question is how large a change in the unknown could hide within the measurement uncertainty. A condition number quantifies that sensitivity for an invertible matrix; the null space identifies changes that no improvement in precision can reveal.
The exact singular value decomposition explains this amplification. With the orthonormal basis
the mean mode survives unchanged while the difference mode shrinks tenfold. Direct inversion multiplies difference-mode measurement noise by ten. The condition number is . The beauty of the singular value decomposition is this separation into independent channels: it identifies which information survives and which needs protection by regularization of an inverse problem.