advanced28 min studyLesson 301 in Mathematics

Matrix norms and condition numbers

Measure amplification and sensitivity with a declared norm, perturbation model, and scale.

On this page

What you’ll understand

  • Compute induced matrix norms and distinguish them from the Frobenius norm.
  • Interpret the condition number of a nonsingular linear system.
  • Construct an input perturbation that realizes strong solution amplification.

A solver can produce an accurate answer to the wrong number of digits simply because the original problem is sensitive. Before judging an algorithm, quantify that sensitivity. Matrix norms measure how a linear map amplifies vectors; condition numbers combine amplification with the sensitivity of reversing the map. The answer depends on the norm and on what data may change. A bare claim that a matrix is poorly conditioned leaves those choices unstated.

Induced norms measure the largest directional amplification

Given a vector norm, its induced matrix norm is the supremum of the output norm divided by the input norm over nonzero vectors. This definition immediately gives the compatible inequality for multiplying a vector and the submultiplicative inequality for multiplying matrices. In finite-dimensional spaces the maximum is attained on the unit sphere. The induced one-norm is the largest absolute column sum, the induced infinity-norm is the largest absolute row sum, and the induced two-norm is the largest singular value. They answer different questions because their unit balls differ.

The Frobenius norm instead sums the squares of all entries and takes a square root. It is invariant under orthogonal changes of basis and is useful for total approximation error, but it is not the matrix norm induced by the Euclidean vector norm. For an identity matrix of order n, the induced two-norm is one and the Frobenius norm is the square root of n. Confusing these values can insert a dimension-dependent factor into a condition estimate. Always label the norm rather than relying on an unqualified double-bar symbol.

∥A∥=max⁡∥x∥=1∥Ax∥,∥A∥1=max⁡j∑i∣aij∣,∥A∥∞=max⁡i∑j∣aij∣,∥A∥2=σmax⁡(A)\lVert A\rVert=\max_{\lVert x\rVert=1}\lVert Ax\rVert,\quad \lVert A\rVert_1=\max_j\sum_i|a_{ij}|,\quad \lVert A\rVert_\infty=\max_i\sum_j|a_{ij}|,\quad \lVert A\rVert_2=\sigma_{\max}(A)
The first definition uses a fixed vector norm on input and output. The last three identities describe its usual induced one-, infinity-, and two-norm instances.↔ Scroll wide equations horizontally.

An inverse can amplify what the forward map suppresses

For a nonsingular square matrix, define its normwise condition number as the matrix norm times the norm of its inverse. In the two-norm this is the largest singular value divided by the smallest. A direction almost annihilated by A corresponds to a large inverse response. The condition number is at least one for induced norms and is unchanged when A is multiplied by a nonzero scalar. A small determinant alone is not a condition estimate: scaling an identity changes its determinant dramatically while leaving its condition number equal to one.

If A is fixed and only a nonzero right-hand side b changes, the solution change is exactly A inverse times the right-hand-side change. A norm bound gives relative solution change at most the matrix condition number times relative input change. This bound is a worst-case statement over directions and right-hand sides, not a prediction that every perturbation is amplified maximally. Some inputs align with insensitive directions. For a singular matrix, ordinary inversion is undefined; assigning infinite condition describes that failure but does not specify a least-squares or pseudoinverse problem.

Ax=b,A(x+δx)=b+δb⟹∥δx∥∥x∥≤κ(A)∥δb∥∥b∥,κ2(A)=σmax⁡σmin⁡Ax=b,\quad A(x+\delta x)=b+\delta b\quad\Longrightarrow\quad \frac{\lVert\delta x\rVert}{\lVert x\rVert}\le\kappa(A)\frac{\lVert\delta b\rVert}{\lVert b\rVert},\qquad \kappa_2(A)=\frac{\sigma_{\max}}{\sigma_{\min}}
Assume A nonsingular and b nonzero, with the same induced norm used throughout. The two-norm ratio requires the smallest singular value to be positive.↔ Scroll wide equations horizontally.

Scaling and estimates are part of interpreting a number

Changing units rescales coordinates and can substantially alter a normwise condition number. This is sometimes appropriate because the original variables had incompatible scales. It is not permission to conceal a sensitive physical observable: transforming a computed solution back to its original units can restore the same practical uncertainty. Componentwise perturbation models can better describe data whose small entries deserve proportionally small uncertainty. They lead to different condition measures than allowing an arbitrary perturbation of a fixed matrix norm.

Computing an explicit inverse merely to estimate conditioning is usually unnecessary and expensive. Factorization-based estimators use triangular solves or related operations to estimate inverse norms without forming every inverse entry. A reciprocal condition estimate near zero warns that small backward errors may lead to large forward errors, but the estimate's accuracy and norm convention still matter. Combine it with the residual, scaling information, and the requested output quantity. A whole-vector worst-case condition can overstate uncertainty in one well-determined scalar component.

A shear has several legitimate condition numbers

For A=[[1,2],[0,1]], calculate the one-, infinity-, and two-norm condition numbers.

  1. The inverse is [[1,−2],[0,1]]. Both A and its inverse have maximum absolute column sum 3 and maximum absolute row sum 3, giving κ₁=κ∞=9.

  2. AᵀA=[[1,2],[2,5]] has trace 6 and determinant 1, so its eigenvalues are 3±2√2. The singular values are √2+1 and √2−1.

  3. Their ratio is (√2+1)/(√2−1)=3+2√2≈5.828. Its difference from 9 reflects a different norm convention, not an inconsistent calculation.

The result

The same invertible shear has κ₁=κ∞=9 and κ₂≈5.828. Its determinant is one, which does not force good conditioning.

Explore the model

Interactive lab

Interactive lab · matrix

Read singular-value amplification directly

Reset, set a=1 and b=2. Predict singular values √2+1 and √2−1, hence condition number 3+2√2≈5.828. Compare a fresh run using Reset, a=1, b=0, predicting condition 1. The selected triangular matrix has determinant 1 in both cases; playback interpolates geometry while readouts describe the final selected map.

Read singular-value amplification directlyThe selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Current readings: Area scale · det A: 1.4; Singular values · σmax, σmin: 1.597, 0.876; Condition number · κ₂(A): 1.823. All parameters are adjustable with the labeled controls below.Matrix A with first row 1.4, 0.6 and second row zero, one; display interpolates between identity and A while final determinant remains 1.4.−4−2024−2−1012x · equal geometric scaleyA = [ 1.4 0.6 ; 0 1 ]Display blend: 0% · final values below
Interpolated geometryOriginal unit squareSelected final transform
Area scale · det A
1.4
Singular values · σmax, σmin
1.597, 0.876
Condition number · κ₂(A)
1.823
t = 0 s

The selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forUnchanged area scale does not imply unchanged sensitivity of inversion.

Check your understanding

For A=cI with any nonzero real c, what is κ₂(A)?

Try it yourself

Let A=diag(1,0.01), b=(1,0), and δb=(0,0.001). Compute exact and perturbed solutions, their relative two-norm difference, and compare with the condition bound.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

The original solution lies along the strongly scaled direction, while the perturbation lies along the weakly scaled direction.

Compare with the solution

The exact solution is x=(1,0). The perturbed solution is (1,0.1), so relative solution error is 0.1. Relative right-hand-side change is 0.001, and κ₂(A)=100. The bound is therefore 100·0.001=0.1 and is attained. This deliberately aligned example realizes worst-case amplification; other perturbation directions need not do so.

Take it with you

  • An induced norm measures maximum vector amplification for a specified geometry.
  • Conditioning concerns the problem and data; it is distinct from an algorithm's numerical stability.
  • Scaling, perturbation directions, and the desired output all affect interpretation.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.