The manipulations on matrices and vectors so far in this chapter have been algebraic, much like those in an introductory linear algebra course. In order to progress to the analysis of the algorithms we have introduced, we need a way to measure the size of vectors and matrices—size in the sense of magnitude or distance, not the number of rows and columns.
The last of these properties is known as the triangle inequality. It is natural to interpret ∥x∥=∥x−0∥ as the distance from x to the origin and ∥x−y∥ as the distance from x to y. We will be using only the three most important vector norms, defined as follows.
The 2-norm corresponds to ordinary Euclidean distance.
In any norm, we refer to a vector x satisfying ∥x∥=1 as a unit vector. For any nonzero vector v we can find a unit vector through the normalization x=v/∥v∥. Thus, we can interpret
By definition, a sequence is convergent in the infinity norm if and only if it converges componentwise. The same is true for a convergent sequence in any norm.
Although we view matrices as two-dimensional, we can also interpret them as vectors: simply stack the columns on top of one another.[2] Hence we can define matrix norms via vector norms. This is sometimes done with the vector 2-norm and leads to the matrix Frobenius norm:
However, it often proves to be more useful to define matrix norms differently.
The last equality above follows from linearity (as shown in Exercise 5). It is derived from the interpretation of a matrix as a linear operator between Rn and Rm. Thus in the 2-norm, for instance,
For the rest of this section we will continue to omit subscripts when we want to refer to an unspecified induced norm; after this section, an unsubscripted norm is understood to be the 2-norm.
The definition of an induced matrix norm may seem oddly complicated. However, there are some key properties that follow directly from the definition.
One can interpret the definition of an induced norm geometrically. Each vector x on the unit “sphere” (as defined by the chosen vector norm) is mapped to its image Ax, and the norm of A is the radius of the smallest “sphere” that encloses all such images.
In addition, two of the vector norms we have encountered lead to equivalent formulas that are easy to compute from the matrix elements.
A mnemonic for these is that the ∞ symbol extends horizontally while the 1 character extends vertically, each indicating the direction of the summation in its formula. Also, both formulas give the same result for m×1 matrices as the vector norm. In both cases you must take absolute values of the matrix elements first.
The geometric interpretation of the matrix 2-norm shown in Demo 2.7.2, as the radius of the smallest circle (or sphere or hypersphere in higher dimensions) containing the images of all unit vectors, is not a practical means of computing the norm. Nor is there a simple formula like (2.7.14) or (2.7.15) for it. The computation of the matrix 2-norm is discussed further in Chapter 7.
✍ Why is the vector 1-norm also called the taxicab norm?
✍ (a) Draw the unit “circle” in the ∞-norm, i.e., the set of all vectors x∈R2 such that ∥x∥∞=1.
(b) Draw the unit “circle” in the 1-norm.
✍ Prove that for all vectors x∈Rn,
(a)∥x∥∞≤∥x∥2;(b)∥x∥2≤∥x∥1.
✍ Prove that for any vectors x, y in Rn, ∣xTy∣≤∥x∥1∥y∥∞.
✍ Prove using Definition 2.7.2 that for any induced matrix norm, matrix A, and scalar c, ∥cA∥=∣c∣⋅∥A∥.
✍ Let A=[−1212].
(a) Find all vectors satisfying ∥x∥∞=1 and ∥Ax∥∞=∥A∥∞.
(b) Find a vector satisfying ∥x∥1=1 and ∥Ax∥1=∥A∥1.
(c) Find a vector satisfying ∥x∥2=1 such that ∥Ax∥2=∥A∥2. (Hint: A unit two-dimensional vector is a function only of its angle with the x1-axis. Use the definition of ∥A∥2 as the maximum of ∥Ax∥2, which is a also a function of the angle.)
✍ Prove the equivalence of the two formulas for a matrix norm in (2.7.6).
✍ Prove that for any induced matrix norm and nonsingular matrix A, ∥A−1∥≥(∥A∥)−1. (Hint: Apply Theorem 2.7.2.)
where p=1, 2, or ∞. (Hint: For p=2, rearrange (2.7.8) for a well-chosen particular value of x.)
✍ Prove using Definition 2.7.2 that if D is a diagonal matrix, then ∥D∥2=maxi∣Dii∣. You may assume the matrix is real and square, but that does not affect the result or the proof in any significant way. (Hint: Let M=maxi∣Dii∣. Proceed in two stages, showing that ∥D∥2≥M and separately that ∥D∥2≤M.)
✍ Suppose that A is n×n and that ∥A∥<1 in some induced matrix norm.
(a) Show that (I−A) is nonsingular. (Hint: Use the definition of an induced matrix norm to show that if (I−A)x=0 for all nonzero x, then ∥A∥≥1.)
(b) Show that limm→∞Am=0. (For matrices as with vectors, we say Bm→L if ∥Bm−L∥→0.)
(c) Use (a) and (b) to show that we may obtain the geometric series
Column stacking is actually how matrices are stored in memory within Julia and is known as column-major order. MATLAB and FORTRAN also use column-major order, while C and Python use row-major order, in which the rows are stacked.