Chapter 1: Linear Algebra Foundations and Matrix Norms
Matrix computation studies how to perform linear algebra operations in an efficient and stable manner. This chapter first reviews basic concepts such as linear independence, subspaces, bases, ranges, null spaces, and rank, then introduces the Sherman–Morrison–Woodbury formula under low-rank corrections, orthogonality and orthogonal complements, and finally systematically discusses vector norms and matrix norms.
The focus of this chapter is not only to memorize the definitions of various norms, but also to understand their relationships and how to use norms to quantify errors and perturbations in matrix computations.
1. Linear Algebra Foundations
1.1 Linear Independence
Definition 1.1 (Linear Independence)
Let \(a_1,\ldots,a_k\in\mathbb{R}^n\). If
then the vectors \(a_1,\ldots,a_k\) are called linearly independent; otherwise they are called linearly dependent.
Equivalently, form a matrix with these vectors as columns:
Then \(a_1,\ldots,a_k\) are linearly independent if and only if the homogeneous equation \(A\beta=0\) has only the zero solution, that is,
1.2 Span and Subspaces
Definition 1.2 (Span)
The span of the vectors \(a_1,\ldots,a_k\) is defined as
It is a linear subspace of \(\mathbb{R}^n\).
If
then the two sets of vectors span the same subspace, but their numbers of vectors and linear dependence relations need not be the same.
1.3 Bases and Dimension
Definition 1.3 (Basis)
Let \(S\subseteq\mathbb{R}^n\) be a linear subspace. If the vectors \(b_1,\ldots,b_r\) are linearly independent and
then \(b_1,\ldots,b_r\) are called a basis of \(S\).
Any two bases of the same finite-dimensional subspace contain the same number of vectors. This number is called the dimension of the subspace and is denoted by \(\dim(S)\).
1.4 Range and Null Space
Definition 1.4 (Range)
For \(A\in\mathbb{R}^{m\times n}\), the range or column space of the matrix \(A\) is defined as
If \(A=(a_1,\ldots,a_n)\), then
Definition 1.5 (Null Space)
The null space of the matrix \(A\) is defined as
Both the range and the null space are linear subspaces.
1.5 Rank and the Rank–Nullity Theorem
Definition 1.6 (Rank)
The rank of a matrix \(A\) is defined as the dimension of its range:
It is also equal to the maximum number of linearly independent columns of \(A\).
Theorem 1.7 (Rank–Nullity Theorem)
If \(A\in\mathbb{R}^{m\times n}\), then
Proof of Theorem 1.7 (click to expand)
Let \(v_1,\ldots,v_s\) be a basis of \(\operatorname{Null}(A)\), and extend it to a basis of \(\mathbb{R}^n\)
We prove that \(Av_{s+1},\ldots,Av_n\) form a basis of \(\operatorname{Range}(A)\).
Take any \(x\in\mathbb{R}^n\) and write
Since \(Av_i=0\) for \(i=1,\ldots,s\), we have
Thus these vectors span \(\operatorname{Range}(A)\). If
then \(\sum_{i=s+1}^n\alpha_iv_i\in\operatorname{Null}(A)\). By the linear independence of the whole set \(v_1,\ldots,v_n\), all \(\alpha_i=0\), so \(Av_{s+1},\ldots,Av_n\) are linearly independent.
Therefore
and their sum equals \(n\). \(\square\)
2. The Sherman–Morrison–Woodbury Formula
In matrix computation, we often already know \(A^{-1}\) but need the inverse of a low-rank correction matrix \(A+UV^T\). The Sherman–Morrison–Woodbury formula transforms the problem of inverting an \(n\times n\) matrix into the problem of inverting a \(k\times k\) matrix; when \(k\ll n\), this transformation is very useful.
Lemma 2.1 (Difference of Two Inverse Matrices)
If \(A\) and \(B\) are both invertible, then
Proof of Lemma 2.1 (click to expand)
Direct expansion gives
The other equality follows similarly. \(\square\)
Theorem 2.2 (Sherman–Morrison–Woodbury Formula)
Let \(A\in\mathbb{R}^{n\times n}\) be invertible and let \(U,V\in\mathbb{R}^{n\times k}\). Then \(A+UV^T\) is invertible if and only if \(I_k+V^TA^{-1}U\) is invertible. In this case,
Proof of Theorem 2.2 (click to expand)
First note that
The Sylvester determinant identity gives
so the two matrices are either both invertible or both singular.
Let
Directly verify the candidate inverse on the right-hand side:
Similarly, the product in the reverse direction also equals \(I_n\), so the formula holds. \(\square\)
Corollary 2.3 (Sherman–Morrison Formula)
When \(k=1\), write \(U=u\) and \(V=v\). If
then
3. Orthogonality
3.1 Orthogonality and Orthonormality
Definition 3.1 (Orthogonal Vectors)
Vectors \(x_1,\ldots,x_k\in\mathbb{R}^n\) are called orthogonal if
If in addition
then they are called orthonormal.
Any orthogonal set of vectors containing no zero vector is linearly independent.
3.2 Orthogonal Complement
Definition 3.2 (Orthogonal Complement)
Let \(S\subseteq\mathbb{R}^n\) be a linear subspace. The orthogonal complement of \(S\) is defined as
The orthogonal complement \(S^\perp\) is also a linear subspace of \(\mathbb{R}^n\), and
Proposition 3.3 (Orthogonal Relation Between Range and Null Space)
For any \(A\in\mathbb{R}^{m\times n}\),
Proof of Proposition 3.3 (click to expand)
For \(y\in\mathbb{R}^m\),
The second equality follows by applying the first equality to \(A^T\). \(\square\)
3.3 Orthogonal Matrices and Orthonormal Basis Completion
Definition 3.4 (Orthogonal Matrix)
If a square matrix \(Q\in\mathbb{R}^{n\times n}\) satisfies
then \(Q\) is called an orthogonal matrix. Equivalently, the columns of \(Q\) form an orthonormal basis of \(\mathbb{R}^n\).
An orthogonal matrix satisfies
and preserves the Euclidean inner product and the \(2\)-norm:
Theorem 3.5 (Completion of an Orthonormal Basis)
Let \(U_1\in\mathbb{R}^{n\times r}\), where \(r<n\), and suppose the columns of \(U_1\) are orthonormal, that is,
Then there exists \(U_2\in\mathbb{R}^{n\times(n-r)}\) such that
is an orthogonal matrix, and
Proof of Theorem 3.5 (click to expand)
The columns of \(U_1\) form an orthonormal basis of the subspace \(\operatorname{Range}(U_1)\). Choose an orthonormal basis in its orthogonal complement, and take these vectors as the columns of \(U_2\). Since
all columns of \(Q=[U_1\ U_2]\) form an orthonormal basis of \(\mathbb{R}^n\), so \(Q\) is an orthogonal matrix. \(\square\)
By this theorem, every \(x\in\mathbb{R}^n\) has the orthogonal decomposition
where the two components belong respectively to \(\operatorname{Range}(U_1)\) and \(\operatorname{Range}(U_1)^\perp\).
4. Vector Norms
4.1 Definition of a Vector Norm
Definition 4.1 (Vector Norm)
A function \(\lVert\cdot\rVert:\mathbb{R}^n\to\mathbb{R}\) is called a vector norm if for any \(x,y\in\mathbb{R}^n\) and any \(\alpha\in\mathbb{R}\), it satisfies:
- Positive definiteness: \(\lVert x\rVert\geq0\), and \(\lVert x\rVert=0\) if and only if \(x=0\);
- Absolute homogeneity: \(\lVert\alpha x\rVert=|\alpha|\lVert x\rVert\);
- Triangle inequality: \(\lVert x+y\rVert\leq\lVert x\rVert+\lVert y\rVert\).
4.2 Common \(p\)-Norms
For \(1\leq p<\infty\), define
In particular,
When \(p=\infty\), define
4.3 Young's Inequality and Hölder's Inequality
Lemma 4.2 (Young's Inequality)
Let \(a,b\geq0\), \(p,q>1\), and
Then
Proof of Lemma 4.2 (click to expand)
Apply the weighted Jensen inequality to the convex function \(f(t)=e^t\), and take
to obtain
When \(a=0\) or \(b=0\), the conclusion is obvious. \(\square\)
Theorem 4.3 (Hölder's Inequality)
Let \(x,y\in\mathbb{R}^n\), \(1\leq p,q\leq\infty\), and
Then
Proof of Theorem 4.3 (click to expand)
First consider \(1<p,q<\infty\), with \(x,y\neq0\). Let
Applying Young's inequality to each \(i\), we obtain
Summing gives
Therefore
When \((p,q)=(1,\infty)\) or \((\infty,1)\), the conclusion follows directly from
\(\square\)
When \(p=q=2\), Hölder's inequality becomes the Cauchy–Schwarz inequality:
4.4 Minkowski's Inequality
Theorem 4.4 (Minkowski's Inequality)
For any \(1\leq p\leq\infty\) and \(x,y\in\mathbb{R}^n\),
Therefore, \(\lVert\cdot\rVert_p\) indeed satisfies the triangle inequality and is a vector norm.
Proof of Theorem 4.4 (click to expand)
When \(p=1\) or \(p=\infty\), the conclusion follows directly from the triangle inequality for real numbers.
Let \(1<p<\infty\) and set \(q=p/(p-1)\). If \(x+y=0\), the conclusion is obvious. Otherwise, by Hölder's inequality,
Dividing both sides by \(\lVert x+y\rVert_p^{p-1}\) gives the result. \(\square\)
4.5 Equivalence of Norms in Finite-Dimensional Spaces
Definition 4.5 (Equivalent Norms)
Let \(\lVert\cdot\rVert_\alpha\) and \(\lVert\cdot\rVert_\beta\) be two norms on \(\mathbb{R}^n\). If there exist constants \(c_1,c_2>0\) independent of \(x\) such that for all \(x\in\mathbb{R}^n\),
then the two norms are called equivalent.
Theorem 4.6 (All Norms Are Equivalent in Finite-Dimensional Spaces)
Any two vector norms on \(\mathbb{R}^n\) are equivalent.
Proof of Theorem 4.6 (click to expand)
It suffices to prove that any norm \(\lVert\cdot\rVert_\alpha\) is equivalent to the \(2\)-norm.
Let \(e_1,\ldots,e_n\) be the standard basis. For any \(x=\sum_i x_ie_i\), by the triangle inequality and the Cauchy–Schwarz inequality,
Therefore, \(\lVert\cdot\rVert_\alpha\) is continuous with respect to the \(2\)-norm. Consider the compact set
The continuous function \(x\mapsto\lVert x\rVert_\alpha\) attains a maximum \(M\) and a minimum \(m\) on \(S^{n-1}\). By positive definiteness of the norm and \(0\notin S^{n-1}\), we have \(m>0\). Hence, for any nonzero \(x\),
Using homogeneity, we obtain
Thus every norm is equivalent to the \(2\)-norm, and hence any two norms are equivalent to each other. \(\square\)
For \(1\leq p\leq q\leq\infty\), a common explicit estimate is
In particular,
and
Norm Equivalence and Convergence
In finite-dimensional spaces, if a sequence of vectors converges in one norm, then it converges in every norm. Therefore, convergence of finite-dimensional vector sequences is independent of the chosen norm.
This conclusion generally cannot be extended to infinite-dimensional spaces. For example, let \(y^{(n)}\) have its first \(n\) components all equal to \(1/n\) and its remaining components zero. Then
5. Matrix Norms
5.1 Matrix Norms and Consistency
Definition 5.1 (Matrix Norm)
A function \(\lVert\cdot\rVert:\mathbb{R}^{m\times n}\to\mathbb{R}\) is a vector norm on the matrix space if it satisfies positive definiteness, absolute homogeneity, and the triangle inequality.
For matrices whose dimensions are compatible for multiplication, if it also satisfies
then the matrix norm is called submultiplicative, or said to have consistency.
Submultiplicativity is not an automatic consequence of the first three norm axioms. For example, define
It satisfies the three axioms of a vector norm, but it is not submultiplicative. Take
then
5.2 Induced Matrix Norms
Definition 5.2 (Induced Norm)
Given vector norms on \(\mathbb{R}^n\) and \(\mathbb{R}^m\), the induced norm of a matrix \(A\in\mathbb{R}^{m\times n}\) is defined as
When \(p\)-norms are used on both sides, it is denoted by
By definition, the induced norm satisfies the subordinate property
and submultiplicativity
Proof of Submultiplicativity of the Induced Norm (click to expand)
For any \(x\neq0\),
Dividing both sides by \(\lVert x\rVert_p\) and taking the supremum over all \(x\neq0\) gives the result. \(\square\)
5.3 Common Matrix Norms
Definition 5.3 (Frobenius Norm)
For \(A=(a_{ij})\in\mathbb{R}^{m\times n}\), the Frobenius norm is defined as
The Frobenius norm is not an operator norm induced by vector norms of the same dimension, but it satisfies submultiplicativity.
Proposition 5.4 (Explicit Formulas for Common Induced Norms)
For \(A=(a_{ij})\in\mathbb{R}^{m\times n}\),
that is, the maximum absolute column sum;
that is, the maximum absolute row sum; and
Proof of Proposition 5.4 (click to expand)
For the \(1\)-norm,
Taking \(x=e_{j_*}\), where \(j_*\) is the column attaining the maximum column sum, achieves equality.
For the \(\infty\)-norm,
For the \(i_*\)-th row attaining the maximum row sum, taking \(x_j=\operatorname{sgn}(a_{i_*j})\) achieves equality.
Finally, \(A^TA\) is a symmetric positive semidefinite matrix, so
This completes the proof. \(\square\)
5.4 Relationships Among Common Matrix Norms
For \(A\in\mathbb{R}^{m\times n}\),
and
Meaning of the Dimension Factors
Factors such as \(\sqrt{m}\) and \(\sqrt{n}\) in the above inequalities come from the equivalence relations among finite-dimensional vector norms. They show that although different norms describe the same finite-dimensional topology, dimension factors may not be negligible when performing quantitative error estimates.
5.5 Quantifying Perturbations with Norms
Lemma 5.5 (Neumann Series)
Let \(A\in\mathbb{R}^{n\times n}\) and suppose that for some submultiplicative matrix norm,
Then \(I-A\) is invertible, and
Proof of Lemma 5.5 (click to expand)
Let
By submultiplicativity,
Therefore \(S_N\) converges to some matrix \(S\). On the other hand,
Since \(\lVert A^{N+1}\rVert\leq\lVert A\rVert^{N+1}\to0\), letting \(N\to\infty\) gives
Hence \(S=(I-A)^{-1}\). The norm estimate follows directly from the geometric series. \(\square\)
This immediately gives
Corollary 5.6 (Sensitivity of the Inverse Matrix to Perturbations)
Let \(A\) be nonsingular, and let
Then \(A+E\) is nonsingular, and
Proof of Corollary 5.6 (click to expand)
Since
and \(\lVert A^{-1}E\rVert<1\), the Neumann series shows that \(I+A^{-1}E\) is invertible, so \(A+E\) is invertible.
Using Lemma 2.1,
Also,
Combining this with submultiplicativity gives the desired estimate. \(\square\)
5.6 Orthogonal Invariance
Theorem 5.7 (Orthogonal Invariance of the Frobenius Norm and Spectral Norm)
Let \(A\in\mathbb{R}^{m\times n}\), and let \(Q\in\mathbb{R}^{m\times m}\) and \(Z\in\mathbb{R}^{n\times n}\) be orthogonal matrices. Then
Proof of Theorem 5.7 (click to expand)
For the Frobenius norm, using the cyclic invariance of the trace,
For the spectral norm, orthogonal matrices preserve the \(2\)-norm, so
This completes the proof. \(\square\)
6. Summary of This Chapter
- Range, null space, and rank describe the basic structure of a linear map, and the rank–nullity theorem gives the relationship between their dimensions.
- The Sherman–Morrison–Woodbury formula can efficiently handle low-rank corrections of matrices.
- An orthonormal set of vectors can be completed to an orthogonal matrix, and a subspace together with its orthogonal complement gives the orthogonal direct sum decomposition of \(\mathbb{R}^n\).
- Hölder's inequality and Minkowski's inequality are the foundations of \(p\)-norm theory.
- All norms on a finite-dimensional space are equivalent, so convergence is independent of the specific norm, but quantitative estimates may still be affected by dimension factors.
- Induced matrix norms have the subordinate property and submultiplicativity; the \(1\)-norm, \(\infty\)-norm, and \(2\)-norm correspond respectively to the maximum column sum, maximum row sum, and spectral norm.
- The Neumann series can be used to determine invertibility after perturbation and to give error bounds for the inverse matrix.