Idea: Measuring sensitivity
The condition number measures how much a small relative perturbation in the input can amplify the relative change in the output. For a linear system , it describes the sensitivity of the solution to errors in the data. A norm defines the size of vectors and matrices, allowing us to quantify these errors.
Vector norm
A norm on a vector space is a map satisfying the following properties for all and scalars :
- Positive definiteness: , and .
- Absolute homogeneity: .
- Triangle inequality: .
For , common norms are
The norm is the usual Euclidean length.
Matrix norm
General definition
Viewing as a vector space, a norm on matrices is a map satisfying
When studying matrix multiplication, we usually also require submultiplicativity: for matrices of compatible dimensions,
Some textbooks include submultiplicativity in the definition of a matrix norm; it does not follow automatically from the three norm axioms.
Induced norm / Operator norm
Given vector norms on the domain and codomain, the induced norm of is defined by
The numerator uses the norm on , and the denominator uses the norm on . In finite dimensions, the unit sphere is compact, so the maximum exists; the definition can also be written using .
Intuition: viewing as a linear transformation, is its maximum amplification factor for vector length. Consequently,
The induced norm is the smallest nonnegative constant for which this inequality holds for every . With compatible vector norms,
When the domain and codomain use the same vector norm, .
Common matrix norms
The norms below are induced by the corresponding vector norms. Let :
| Norm | Formula | Meaning |
|---|---|---|
| Maximum absolute column sum | ||
| Maximum absolute row sum | ||
| Largest singular value; spectral norm | ||
| Frobenius norm: square root of the sum of squared entries |
The Frobenius norm is submultiplicative. However, for , it is not a square-matrix norm induced by a single vector norm on , because . Its relationship to the spectral norm is
Common distinctions
The matrix -norm is the largest singular value. The square root of the sum of squared entries is the Frobenius norm. For a general matrix, need not equal the largest absolute eigenvalue. For a real symmetric matrix, however, .
Definition: Condition number
Let be invertible, and fix a matrix norm induced by the same vector norm on its domain and codomain. Define
For the -norm, write . For a singular square matrix, we set .
- close to : well-conditioned, with little amplification of relative errors.
- Large : ill-conditioned, so small perturbations in certain directions can cause large relative changes in the solution.
- What counts as large depends on the input precision and the required output accuracy. The condition number describes the worst case; not every perturbation reaches this amplification factor.
Properties
Submultiplicativity gives
Furthermore, for any nonzero scalar and invertible matrices ,
Thus, uniformly scaling a matrix does not improve its condition number. For example, still has condition number . The absolute size of the determinant alone cannot determine whether a matrix is ill-conditioned.
2-norm condition number and SVD
Using Singular Value Decomposition, let the invertible square matrix have singular values . Orthogonal transformations preserve Euclidean length, so
Geometrically, maps the unit sphere to an ellipsoid. The condition number is the ratio of the longest to the shortest semiaxis. The more unequal these lengths are, the larger the condition number.
- If is an orthogonal matrix, all singular values equal , so .
- If is invertible, then .
- If is real symmetric and invertible, then . If it is also positive definite, the absolute values can be omitted.
Why does the condition number control errors?
Perturbing only the right-hand side b
Suppose with . Keep fixed and replace the right-hand side by . Then
Combining with gives
This is a rigorous error bound: relative solution error condition number relative input error. For a fixed , the bound may not be sharp; gives the worst case over all nonzero right-hand sides and perturbation directions.
Perturbing both A and b
Suppose , and write
If , then remains invertible, and
When , the first-order bound is .
Example: Amplifying a small perturbation
Take
Here . Let
Consequently,
A relative perturbation of only in the right-hand side causes a relative change in the solution, exactly attaining the condition-number bound.
Conditioning and numerical stability
Conditioning is a property of the problem; numerical stability is a property of the algorithm. Even a stable algorithm cannot remove an ill-conditioned problem’s inherent sensitivity to input errors.
For a computed approximation , define the residual . Since ,
For an ill-conditioned problem, a small relative residual therefore does not guarantee a small relative solution error.
Application to least squares
If has full column rank, we can define , where is the Pseudoinverse. Then , so forming the normal equations squares the condition number. This is one reason to use QR decomposition or SVD for least squares; perturbation analysis of general least-squares solutions also depends on the residual.