numerical linear algebra
Condition Number
You should know: matrices, floating point error
Overview
The condition number of a matrix A measures how much the relative error in the solution of a linear system Ax = b can be amplified by small relative errors in A or b. It is defined as κ(A) = ‖A‖·‖A⁻¹‖ for an invertible matrix and any chosen matrix norm; a condition number close to 1 indicates a well-conditioned matrix, where errors do not grow much, while a very large condition number indicates an ill-conditioned matrix, where tiny perturbations (from measurement noise or floating-point rounding) can produce wildly inaccurate solutions. Condition number is a property of the matrix itself, not of any particular algorithm — even an exact, infinite-precision solver would need extreme precision on the inputs to control the output error for an ill-conditioned system.
Intuition
Think of solving Ax = b as trying to read a precise answer off a poorly calibrated instrument. If A is well-conditioned, the instrument is sturdy: a small nudge to the input (say, a slightly noisy measurement of b) produces only a correspondingly small nudge in the output x. If A is ill-conditioned, the instrument is wobbly and hypersensitive: a tiny, unavoidable measurement error or rounding error can send the computed solution far from the true one, no matter how carefully the arithmetic is carried out afterward. The condition number is the amplification factor of that wobble — it tells you, before you even solve the system, how much you should trust the answer given imperfect input data.
Formal Definition
For an invertible matrix A and induced matrix norm ‖·‖, the condition number is:
Worked Examples
For a diagonal matrix, the 2-norm equals the largest absolute diagonal entry.
The inverse is diag(1/100, 1/0.01) = diag(0.01, 100), whose 2-norm is the largest entry.
Multiply the two norms to get the condition number.
Answer: κ(A) = 10,000 — a large condition number, since the diagonal entries span very different magnitudes (100 vs. 0.01).
Practice Problems
Compute κ(A) in the 2-norm for A = diag(4, 2).
A condition number close to 1 indicates that the matrix is:
A structural stiffness matrix K has condition number κ(K) ≈ 10⁸, and the applied load vector F is known only to about 4 significant digits due to measurement uncertainty (relative error ≈ 10⁻⁴). What does the condition-number bound say about the reliability of the computed displacement d = K⁻¹F?
Quiz
Summary
- The condition number κ(A) = ‖A‖·‖A⁻¹‖ measures how much relative errors in A or b can be amplified in the solution of Ax=b.
- κ(A) ≥ 1 always; values near 1 mean well-conditioned (stable), while very large values mean ill-conditioned (highly sensitive to input error).
- Condition number is a property of the matrix itself, independent of the solution algorithm — it sets a fundamental limit on how accurate any solver's answer can be given imperfect data.
References
- WebsiteWikipedia — Condition number
Mathematics