The matrix squeezes the unit circle into an ellipse with semiaxes and . Solving undoes that squeeze, so a change of size in the second entry of becomes a change of size in . How can we measure this effect for any matrix, and say in advance how much a solution can move? This lesson defines the size of a matrix through the norms of its inputs and outputs, computes it from singular values, and proves the bound that the condition number places on the change in a solution. Throughout, is or , all spaces are finite-dimensional, and a tuple such as stands for a column vector.
Key terms
Induced matrix norm
Definition Choose a norm on and a norm on , both written , and let . The induced matrix norm, or operator norm, of is
The two maxima agree because the ratio does not change when is multiplied by a nonzero scalar. They are attained, not just suprema, because the unit sphere of is compact in finite dimensions and is continuous. This is a norm on . It is zero only for the zero matrix, it satisfies , and the triangle inequality follows from the triangle inequality for each output . The value depends on the vector norms. With the Euclidean norm on both sides it is written and called the spectral norm. With on both sides it equals the largest absolute row sum, and with on both sides the largest absolute column sum.
The Frobenius norm is a different matrix norm,
It treats the entries as one long vector. For square matrices of size it is not the norm induced by any vector norm on , because such an induced norm gives , while .
In plain words An induced norm is the largest factor by which the matrix can stretch a vector, with lengths measured in the stated norms. The Frobenius norm instead adds up the squared sizes of all the entries.
Example For we have , with equality at . So , while . Different vector norms can give the same matrix different sizes. For
the largest absolute row sum and the largest absolute column sum are both , while the singular value formula below gives . Its Frobenius norm is .
Submultiplicativity
Definition Let and , with norms chosen on , and and the induced matrix norms they give. For every ,
and the norms are submultiplicative,
provided the norm on that measures the outputs of is the same norm that measures the inputs of . The first inequality is immediate for . For the vector has norm , so its image has norm at most , and multiplying by gives the claim. Applying it twice gives , and taking the maximum over unit vectors proves the second inequality. In particular for a square matrix when one norm on measures both its inputs and its outputs. The Frobenius norm satisfies
Column of is , where is column of , and adding the inequalities over all gives the first inequality. The second uses , which is proved with singular values below.
In plain words Doing one map after another cannot stretch a vector by more than the product of the two largest stretches. It stretches less when the directions that the first map stretches most are sent where the second map stretches little.
Example Let and , both with spectral norm . Their product has spectral norm , well below the bound , because stretches most along , where stretches least. For the bound is attained, since has spectral norm .
Spectral norm and the largest singular value
Definition Let have a full singular value decomposition , with and unitary (orthogonal when ) and singular values on the diagonal of , where . Then
For the first formula, write a unit vector as with . Unitary matrices preserve Euclidean length, so
with equality at the first right singular vector . For the second, the th diagonal entry of is the sum of down column , and has the same trace as . Consequently , where is the rank of . If is square and invertible, then has singular values , so .
The norm of the adjoint is the same, , also for rectangular , because has the same singular values. A direct proof uses the dual description of length. By Cauchy-Schwarz, , attained at when . Hence
and since , the same maximum computes with the roles of and exchanged. The conjugate transpose is needed here, because is the inner product of and in the course convention. The equality uses the Euclidean norm on both spaces. With the max norm on both sides, the real matrix with rows and has induced norm , while its transpose, which is also its adjoint, has induced norm . For other norms the equality survives when the adjoint is measured in the dual norms. For example, the largest absolute column sum of is the largest absolute row sum of , so for every .
In plain words The spectral norm is the longest semiaxis of the ellipsoid that makes from the unit ball. The Frobenius norm combines all the semiaxes. The inverse stretches most along the shortest semiaxis, by the reciprocal of its length. A matrix and its adjoint have the same largest stretch.
Example The matrix
has orthogonal columns of lengths and , so and the singular values are and . Thus , reached at , and , which matches . The transpose has the same norm . For instance , so the unit vector goes to .
Condition number
Definition Let be invertible, and fix one norm on , used for inputs and outputs alike, with its induced matrix norm. The condition number of in that norm is
It satisfies , because . It also satisfies for every scalar , and . In the Euclidean norm the singular value formulas give
the largest singular value divided by the smallest. This number measures the sensitivity of solving when is fixed and is perturbed, in the declared norm, as the perturbation bound below makes precise. It is not a measure of everything about . The sensitivity of eigenvalues, of least-squares solutions, or of solutions when the entries of are uncertain each needs its own formulation. A singular square matrix has no inverse, and its condition number for this problem is not finite. It is often set to .
In plain words The condition number compares the strongest and the weakest stretch of the matrix. A value near means every direction is stretched by nearly the same factor, however large or small that factor is. A large value means some direction is crushed far more than another, so undoing the map magnifies relative errors in that direction.
Example For the singular values are and , so . For any the matrix has , however small is, because it scales every direction by the same factor . A matrix with singular values , and has , and , while
These answer four different questions, the largest stretch, the largest stretch of the inverse, the worst relative sensitivity of a solve, and the total size of the entries.
Perturbation bound
Definition Let be invertible, let , and let , so that . Suppose only the right-hand side changes, and . Then, in any norm on with its induced matrix norm,
Subtracting the two equations gives , so and . Also , so . Multiplying the two inequalities gives the bound. It is a worst-case bound. In the Euclidean norm it is attained when is a multiple of the first left singular vector and a multiple of the last one , and it can be far from attained for other perturbations. Changes in itself need a separate argument.
In plain words A relative error in the data can return as a relative error in the solution up to times larger. Whether it does depends on the direction of the data and on the direction of its error .
Example Let
The rows are orthogonal with lengths and , so and . With the solution is . The perturbation gives . The relative data change is , and the relative solution change is
exactly times larger. The perturbation has the same size, but it gives and a relative change of , with no amplification at all.
Effect of scaling on the condition number
Definition A condition number depends on the norm, and the Euclidean norm of raw coordinates depends on the units. Measuring the equations or the unknowns in other units replaces by
where and are diagonal with positive diagonal entries. The solution describes the same physical quantities, but can differ from . Submultiplicativity, applied to and to , shows that the ratio of the two condition numbers lies between and , where and is the largest diagonal entry of divided by the smallest. Two kinds of change leave unchanged. Scaling by one nonzero number gives , and a unitary change of coordinates gives for unitary and , because it preserves singular values. Choosing a scaling is part of the error model. It decides which changes of the data count as equally large.
In plain words Rewriting one equation in millimeters instead of meters changes the numbers in the matrix, and it can change the condition number by a large factor. The real question is which units make equal numerical errors equally important.
Example The matrix of the previous example has . Suppose its second equation is rewritten in units times smaller, so that its row and its right-hand side are multiplied by . With the new matrix is
whose rows are orthogonal and of equal length, so . The old perturbation of the right-hand side is now , a relative change of , and it produces the same as before, with relative size . Nothing about the solution changed. What changed is how large the same data error is judged to be. If an error of a given size is equally likely in both equations once they are written in the new units, the scaled system is the honest model, and the problem is well conditioned.
Check yourself
- Let be the real matrix with rows and . Find , , , and .
Show the answer
The product , so the singular values are and . Hence and . The inverse is
with singular values and , so . The condition number is . The transpose has the same singular values, so .
- Let and . Find and the bound on the relative change of for a perturbation with . Then compute the actual relative change for and for .
Show the answer
The singular values are and , so . The solution is , and the relative data change is , so the bound is .
Since , the perturbation gives , a relative change of , so the bound is attained. The perturbation gives , a relative change of , equal to the relative data change. A large condition number says that some perturbation of some right-hand side is amplified, not that every perturbation is.
- The matrix with rows and has both eigenvalues equal to . A student concludes that and . Find the correct values.
Show the answer
The conclusion is already false for one vector. The image has length . The singular values come from
whose characteristic polynomial is , with roots . So and , whose product is . Hence and
Eigenvalues only describe the stretch along eigenvectors. The spectral norm and come from singular values. For a normal matrix the singular values are the absolute values of the eigenvalues, but this matrix is not normal, and in general the two lists differ.