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 .
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.
For the Gauss-Seidel iteration for a two-variable positive-definite system, define the forward error by and . Subtract the two exact solution equations from the two update equations:
The fresh first coordinate passes the old second-coordinate error through two successive factors. The iteration matrix is therefore
Its eigenvalues are and , as seen from the determinant. The zero eigenvalue explains why the old first-coordinate error disappears completely: the first row overwrites it. After one sweep, every remaining forward error lies on the eigenvector line spanned by .
For this zero start, , so the exact vectors for are
The Euclidean norm of the forward error decreases by exactly per sweep from onward. The first decrease is different because the initial error has not yet reached that eigenvector line. Each row update moves horizontally or vertically in the coordinate plane; sweep endpoints then approach the solution along one straight line.
Figure 1.
Computed row-by-row Gauss-Seidel method trajectory and exact forward error contraction for the original two-variable linear system
. Details.
The linear-system residual is an independent way to check the calculation. Completing a sweep satisfies the second row exactly, but changing disturbs the first row:
Thus a zero residual in the last updated row alone does not certify a solution; inspect the complete linear-system residual.
For the same matrix, the stale schedule of the Jacobi method gives the iteration matrix
Here its eigenvalues are , whereas the fresh schedule gives . This comparison belongs to this particular linear system; it is not a universal relation between the two methods' spectral radii.
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.
An invertible matrix and nonzero diagonal entries make the update well defined, but do not guarantee convergence. For the original linear system
the Gauss-Seidel method updates and . Starting at zero gives , then . The second-coordinate forward error is , and the iteration matrix has spectral radius . The linear system has a unique solution while this particular stationary iterative method for a linear system diverges.
Iteration matrix Created 2026-10-03 Updated 2026-10-31
For a stationary iteration , the matrix propagates the error by . Convergence from every initial error is equivalent to .
For a matrix splitting , the iteration matrix is , where is the identity matrix. If , subtracting its fixed point equation from the update gives
Thus determines the fixed point, while determines how the forward error moves. An eigenvector with eigenvalue is an error direction whose coefficient is multiplied by on every step. A negative real eigenvalue reverses its sign; a zero eigenvalue removes that component in one step.
Linear solver Created 2026-10-25 Updated 2026-11-05
A linear solver is an algorithm that computes a solution or controlled approximation to a linear system . For an invertible matrix, the mathematical solution is unique. A direct linear solver usually computes a matrix factorization, such as Pivoted LU decomposition, followed by triangular solves. An iterative method instead updates an approximate vector, often using matrix-vector products and a matrix preconditioner.
A stopping rule should reflect the required accuracy. The linear-system residual can be scaled as
when the denominator is positive, using compatible vector norms and an induced matrix norm. This compares equation error with the input scale; a condition number is still needed to interpret it as a forward error guarantee. In a differential equation computation, the linear solver tolerance must be small enough relative to the intended discretization accuracy. A stable time step alone does not control errors left by an inaccurate inner solve.
Numerical linear algebra Created 2026-09-24 Updated 2026-11-05
Numerical linear algebra develops algorithms for linear systems, least squares, eigenvalue problems and other matrix computations, with attention to roundoff error, cost and storage. A mathematically equivalent formula can behave very differently in floating-point arithmetic: solving through an LU decomposition avoids forming an explicit matrix inverse, while a QR decomposition gives an orthogonal route to least squares.
The central distinction is between accuracy of the computed answer and accuracy of the problem it solves. For , an approximate vector has linear-system residual . A small linear-system residual need not imply a small forward error when the condition number is large. For the exact example
the solution is , whereas has Euclidean norm residual but Euclidean norm error . Here the condition number in the spectral norm is . The lost component barely changes the equations because its coefficient is tiny.
Direct linear solvers such as Gaussian elimination factor a matrix; iterative methods such as conjugate gradient successively improve a vector. For a large sparse matrix, fill-in and matrix preconditioning can matter as much as arithmetic count. The task is to preserve the structure that makes a computation accurate and affordable.
For , the coefficient is positive. Moreover
is a positive-definite matrix: for a nonzero vector , put ; then . Hence every eigenvalue of is strictly below one. Part (d) also gives , so these eigenvalues are nonnegative. Therefore
The energy-norm proof of convergence of SOR thus makes the iteration a strict contraction mapping in this norm. Its forward error satisfies , so it converges geometrically to zero.
Let . Interpret the diagonal of as nonnegative computed singular values and sort them consistently. If signed diagonal entries are used instead, take their absolute values and absorb signs into the orthonormal columns. Because the two outer factors have the stated orthonormality, these sorted numbers are exactly .
For completeness, the singular value perturbation bound follows from the Eckart-Young-Mirsky theorem. If is the truncated singular value decomposition of a matrix , the triangle inequality gives
Exchange and to get . Applying this to and the given backward error proves
Thus backward stability of the singular value decomposition gives an absolute forward error bound for every singular value, even a very small one.
No uniform absolute error bound of order follows. Take the Jordan block
Here and . The exact eigenvalues of are both zero, whereas
These are admissible outputs under a backward error guarantee of size , yet their forward errors are . This is the square-root splitting of a defective double eigenvalue. More generally, eigenvalue sensitivity depends on the matrix; backward stability alone does not control it. The singular value perturbation bound used in part (ii) has no equally uniform counterpart for the eigenvalues of arbitrary nonsymmetric matrices.
The linear-system residual is computable without knowing . The forward error is the actual difference from the desired solution. For an invertible matrix,
Keeping fixed, the approximate vector exactly solves with . Thus, for , is the relative backward error when only the right-hand side may change. For a vector norm and its induced operator norm,
A small relative linear-system residual ensures a small relative forward error when the condition number is moderate; an ill-conditioned matrix can amplify it. The bound follows directly from and .[ref]
For the Jacobi iteration for a three-variable tridiagonal system, the first linear-system residual is , while the first forward error is . In the Euclidean norm, the relative forward error is and the relative linear-system residual is . Its spectral condition number of a positive-definite matrix is , so the bound is about . The bound is a guarantee, not an equality. In floating-point arithmetic, recompute the linear-system residual from the current vector when checking termination; a small update alone need not certify a small forward error.
Stationary iterative method for a linear system Created 2026-09-24 Updated 2026-11-05
A stationary iterative method for a linear system uses the same iteration matrix at every step:
For a specified fixed point satisfying , the forward error obeys . Convergence to that same for every starting vector is equivalent to , as the convergence criterion for a stationary iteration proves. Merely having a convergent sequence for every start is weaker: , leaves each starting value unchanged.
For a matrix splitting with invertible, choose and . Then every solution of is a fixed point. The choices of produce the Jacobi method, Gauss-Seidel method and successive over-relaxation. Fixed coefficients make the error behavior analyzable once, while the vector determines the desired solution.