Last modified: 2026-10-27 20:53:54 (PDT)
Source
This section is adapted from Zhou [1], used under the MIT License (see the license text in Section 2 in Subspaces and Rank). These notes take eigenvalues to be real numbers (Definition 16 in Special Matrices and Decompositions), so the source’s complex eigenvalues are left out, and eigenvalues are characterized through null spaces rather than through the characteristic polynomial. Only the source’s material on similarity, diagonalization and the basic eigenvalue properties is adapted; its characteristic polynomial and algebraic multiplicity, its trace and determinant identities, and the part of its section on symmetric matrices that builds bases of the column space and null space from eigenvectors are left out. The rest of that section is covered by Theorem 12 in Special Matrices and Decompositions and Theorem 13 in Special Matrices and Decompositions. Its result that eigenvalues of orthogonal matrices have modulus \(1\) appears here in the real form \(\pm 1\). Three other parts of the source are not part of this section:
Theorem 1 (A square matrix is invertible exactly when it has full column rank) An \(n \times n\) matrix \(\mathbf{A}\) is invertible (Definition 6 in Special Matrices and Decompositions) exactly when \(\operatorname{rank}(\mathbf{A}) = n\) (full column rank, Definition 3 in Subspaces and Rank), that is, exactly when \(\mathcal{N}(\mathbf{A}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n\right\}\mathclose{}\).
Proof. Invertible implies rank \(n\). If \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n\), then
\[ \begin{aligned} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= \mathbf{I}_n \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= (\mathbf{A}^{-1} \mathbf{A})\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= \mathbf{A}^{-1}\,(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{A}^{-1}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n && \text{(} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n \text{)} \\ &= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n, && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{)} \end{aligned} \]
so \(\mathcal{N}(\mathbf{A}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n\right\}\mathclose{}\), the nullity is \(0\), and \(\operatorname{rank}(\mathbf{A}) = n\) (Theorem 7 in Column Space, Null Space and Rank-Nullity).
Rank \(n\) implies invertible. Every system \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\) has exactly one solution (Corollary 1 in Projections and Linear Systems, both parts, with \(m = n\)). Let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}_j\) solve \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}_j = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_j\) (Definition 18 in Vectors), and let \(\mathbf{B}\) have columns \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}_n\). Column \(j\) of \(\mathbf{A} \mathbf{B}\) is \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}_j = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_j\) (1), so \(\mathbf{A} \mathbf{B} = \mathbf{I}_n\). For the other order,
\[ \begin{aligned} \mathbf{A}\,(\mathbf{B} \mathbf{A} - \mathbf{I}_n) &= \mathbf{A} \mathbf{B} \mathbf{A} - \mathbf{A} \mathbf{I}_n && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{, }\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{I}_n \mathbf{A} - \mathbf{A} \mathbf{I}_n && \text{(} \mathbf{A} \mathbf{B} = \mathbf{I}_n \text{)} \\ &= \mathbf{A} - \mathbf{A} && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= \mathbf{0}_{n \times n}, && \text{(arithmetic)} \end{aligned} \]
so every column of \(\mathbf{B} \mathbf{A} - \mathbf{I}_n\) is in \(\mathcal{N}(\mathbf{A}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n\right\}\mathclose{}\) (1), and \(\mathbf{B} \mathbf{A} = \mathbf{I}_n\). So \(\mathbf{B}\) satisfies Definition 6 in Special Matrices and Decompositions. The two conditions in the statement are equivalent by Theorem 7 in Column Space, Null Space and Rank-Nullity: the nullity is \(0\) exactly when \(\mathcal{N}(\mathbf{A}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_n\right\}\mathclose{}\), because a subspace of dimension \(0\) has the empty list as a basis, whose span is \(\mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\right\}\mathclose{}\) (Definition 9 in Subspaces and Rank, Definition 5 in Subspaces and Rank), and \(\mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\right\}\mathclose{}\) has dimension \(0\) (Example 16 in Subspaces and Rank).
Example 1 (Rank decides invertibility)
Definition 1 (Eigenspace) Let \(\lambda\) be an eigenvalue of a \(p \times p\) matrix \(\mathbf{A}\) (Definition 16 in Special Matrices and Decompositions). The eigenspace [2] of \(\lambda\) is \(\mathcal{E}_\lambda\stackrel{\text{def}}{=}\mathcal{N}(\mathbf{A} - \lambda\,\mathbf{I}_p)\). It is a subspace of \(\mathbb{R}^p\) (Theorem 2 in Column Space, Null Space and Rank-Nullity).
Definition 2 (Geometric multiplicity) The dimension (Definition 9 in Subspaces and Rank) of the eigenspace \(\mathcal{E}_\lambda\) (Definition 1) of an eigenvalue \(\lambda\) is the geometric multiplicity of \(\lambda\).
Example 2 (Eigenspaces of two matrices)
For \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) of Example 24 in Special Matrices and Decompositions, \(\mathbf{A} - 3\,\mathbf{I}_2 = \begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix}\) sends \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) to \((v_2 - v_1)\,(1, -1)\), so \(\mathcal{E}_3 = \operatorname{span}\mathopen{}\left\{(1, 1)\right\}\mathclose{}\), with geometric multiplicity \(1\).
For \(\mathbf{J} = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\), \(\mathbf{J} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = (v_2, 0)\).
\[ \begin{aligned} \mathbf{J}\,(1, 0) &= (0, 0) \\ &= 0\,(1, 0), \end{aligned} \]
so \(0\) is an eigenvalue. If \(\mathbf{J} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) with \(\lambda\ne 0\), the second entry gives \(\lambda v_2 = 0\), so \(v_2 = 0\), and then the first gives \(\lambda v_1 = 0\), so \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\). So \(0\) is the only eigenvalue, and
\[ \begin{aligned} \mathcal{E}_0 &= \mathcal{N}(\mathbf{J}) \\ &= \mathopen{}\left\{(t, 0) : t \in \mathbb{R}\right\}\mathclose{}, \end{aligned} \]
with geometric multiplicity \(1\).
Example 3 (A number that is not an eigenvalue has no eigenspace) For \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) and \(\lambda= 2\), \(\mathbf{A} - 2\,\mathbf{I}_2 = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\) sends \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) to \((v_2, v_1)\), which is \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) only for \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), so \(\mathcal{N}(\mathbf{A} - 2\,\mathbf{I}_2) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\right\}\mathclose{}\). And \(2\) is not an eigenvalue (Definition 16 in Special Matrices and Decompositions): \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = 2\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) reads \((2v_1 + v_2, v_1 + 2v_2) = (2v_1, 2v_2)\), so \(v_2 = 0\) and \(v_1 = 0\). So Definition 1 does not apply to \(2\).
Theorem 2 (Eigenvalues are where \(\mathbf{A} - \lambda\mathbf{I}\) is singular) Let \(\mathbf{A}\) be a \(p \times p\) matrix and \(\lambda\) a real number. Then \(\lambda\) is an eigenvalue of \(\mathbf{A}\) (Definition 16 in Special Matrices and Decompositions) exactly when \(\mathbf{A} - \lambda\,\mathbf{I}_p\) is singular (Definition 6 in Special Matrices and Decompositions). In particular, \(\mathbf{A}\) is singular exactly when \(0\) is one of its eigenvalues; and each eigenspace \(\mathcal{E}_\lambda\) (Definition 1) is a subspace of \(\mathbb{R}^p\) consisting of \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) and the eigenvectors for \(\lambda\).
Proof. For any \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \in \mathbb{R}^p\),
\[ \begin{aligned} (\mathbf{A} - \lambda\,\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} - (\lambda\,\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{, the difference law)} \\ &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} - \lambda\,(\mathbf{I}_p \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{, the scalar factor)} \\ &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} - \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}, && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \end{aligned} \]
so \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) exactly when \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \in \mathcal{N}(\mathbf{A} - \lambda\,\mathbf{I}_p)\); the nonzero such \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) are the eigenvectors for \(\lambda\). So \(\lambda\) is an eigenvalue exactly when that null space contains a nonzero vector, which by Theorem 1 is exactly when \(\mathbf{A} - \lambda\,\mathbf{I}_p\) is singular. With \(\lambda= 0\), \(\mathbf{A} - 0\,\mathbf{I}_p = \mathbf{A}\). An eigenspace is a null space, so it is a subspace (Theorem 2 in Column Space, Null Space and Rank-Nullity).
Example 4 (Eigenvalues and singular matrices) For \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\), \(\mathbf{A} - 3\,\mathbf{I}_2 = \begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix}\) is singular (its columns are negatives of each other, so its rank is \(1\)), matching the eigenvalue \(3\) of Example 24 in Special Matrices and Decompositions. \(\mathbf{A}\) itself has rank \(2\), since \(c_1 (2, 1) + c_2 (1, 2) = (2c_1 + c_2, c_1 + 2c_2)\) is \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) only if
\[ \begin{aligned} c_1 &= c_2 \\ &= 0 \end{aligned} \]
(subtract twice the second entry from the first: \(-3c_2 = 0\), and then the second entry gives \(c_1 = 0\)); so it is invertible (Theorem 1), and \(0\) is not an eigenvalue. The singular matrix \(\begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}\) has eigenvalue \(0\), with eigenvector \((1, -1)\).
Theorem 3 (Eigenvalues of shifts and powers) Let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) be an eigenvector of a \(p \times p\) matrix \(\mathbf{A}\) for the eigenvalue \(\lambda\) (Definition 16 in Special Matrices and Decompositions). Then
Proof. Part 1.
\[ \begin{aligned} (\mathbf{A} + s\,\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} + (s\,\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-distrib}{\text{Theorem~6 in Matrices}}\text{)} \\ &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} + s\,(\mathbf{I}_p \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} + s\,(\mathbf{I}_p \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(eigenvector)} \\ &= \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} + s \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= (\lambda+ s)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}. && \text{(add entrywise)} \end{aligned} \]
Part 2, by induction on \(k\). For \(k = 1\) it is the assumption. If \(\mathbf{A}^{k-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \lambda^{k-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\), then
\[ \begin{aligned} \mathbf{A}^k \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \mathbf{A}\,(\mathbf{A}^{k-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-power}{\text{Definition~2 in Special Matrices and Decompositions}}\text{, }\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{A}\,(\lambda^{k-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(induction hypothesis)} \\ &= \lambda^{k-1}\,(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= \lambda^{k-1}\,(\lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(eigenvector)} \\ &= \lambda^k \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}. && \text{(multiply the numbers)} \end{aligned} \]
In both parts \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), so \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is an eigenvector.
Example 5 (Shifting and squaring) For \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) with eigenvector \((1, 1)\) for \(3\) (Example 24 in Special Matrices and Decompositions):
\(\mathbf{A} - 2\,\mathbf{I}_2 = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\) sends \((1, 1)\) to \((1, 1) = (3 - 2)\,(1, 1)\);
\[ \begin{aligned} \mathbf{A}^2 &= \begin{bmatrix} 2 \cdot 2 + 1 \cdot 1 & 2 \cdot 1 + 1 \cdot 2 \\ 1 \cdot 2 + 2 \cdot 1 & 1 \cdot 1 + 2 \cdot 2 \end{bmatrix} \\ &= \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix} \end{aligned} \]
Theorem 4 (The eigenvalues of an upper triangular matrix are its diagonal entries) The eigenvalues (Definition 16 in Special Matrices and Decompositions) of an upper triangular \(p \times p\) matrix \(\mathbf{U}\) (Definition 7 in Projections and Linear Systems) are exactly its diagonal entries \(u_{11}, \ldots, u_{pp}\).
Proof. \(\mathbf{U} - \lambda\,\mathbf{I}_p\) is upper triangular, with diagonal entries \(u_{ii} - \lambda\) (Definition 12 in Matrices, Definition 5 in Matrices).
If \(\lambda\) is not a diagonal entry, every \(u_{ii} - \lambda\ne 0\), so \((\mathbf{U} - \lambda\,\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) has exactly one solution, \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) (Theorem 17 in Projections and Linear Systems), and \(\lambda\) is not an eigenvalue (Theorem 2).
If \(\lambda\) is a diagonal entry, let \(k\) be the smallest index with \(u_{kk} = \lambda\), and write \(\mathbf{M} = \mathbf{U} - \lambda\,\mathbf{I}_p\), so \(m_{kk} = 0\) and \(m_{ii} \ne 0\) for \(i < k\). Look for \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) with \(v_k = 1\) and \(v_j = 0\) for \(j > k\). Entry \(i\) of \(\mathbf{M} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is
\[ \begin{aligned} \sum_{j=1}^pm_{ij}\,v_j &= \sum_{j=i}^{p} m_{ij}\,v_j && \text{(} m_{ij} = 0 \text{ for } j < i \text{)} \\ &= \sum_{j=i}^{k} m_{ij}\,v_j, && \text{(} v_j = 0 \text{ for } j > k \text{)} \end{aligned} \]
where the last sum is empty, and so \(0\), when \(i > k\). So:
So \(\mathbf{M} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) with \(v_k = 1\), hence \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), and \(\lambda\) is an eigenvalue.
Example 6 (Eigenvalues read off the diagonal) \(\mathbf{U} = \begin{bmatrix} 2 & 1 & -1 \\ 0 & \frac{1}{2} & \frac{1}{2} \\ 0 & 0 & -1 \end{bmatrix}\) of Example 24 in Projections and Linear Systems has eigenvalues \(2\), \(\tfrac{1}{2}\) and \(-1\). For \(\lambda= \tfrac{1}{2}\) (so \(k = 2\)), take \(v_2 = 1\), \(v_3 = 0\); row 1 of \((\mathbf{U} - \tfrac{1}{2}\,\mathbf{I}_3)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is \(\tfrac{3}{2}\,v_1 + 1 = 0\), so \(v_1 = -\tfrac{2}{3}\). Check:
\[ \begin{aligned} \mathbf{U}\,(-\tfrac{2}{3}, 1, 0) &= (-\tfrac{4}{3} + 1, \tfrac{1}{2}, 0) \\ &= \tfrac{1}{2}\,(-\tfrac{2}{3}, 1, 0). \end{aligned} \]
The matrix \(\mathbf{J}\) of Example 2 is upper triangular with both diagonal entries \(0\), and \(0\) is its only eigenvalue.
Theorem 5 (Eigenvalues of idempotent and orthogonal matrices)
Proof. Let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) with \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\).
Part 1. If \(\mathbf{A}^2 = \mathbf{A}\), then
\[ \begin{aligned} \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(eigenvector)} \\ &= \mathbf{A}^2 \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(idempotent)} \\ &= \lambda^2 \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}, && \text{(}\href{#thm-eigen-shift-power}{\text{Theorem~3}}\text{, part 2)} \end{aligned} \]
and subtracting \(\lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) from both sides gives \((\lambda^2 - \lambda)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\). Some entry of \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is nonzero, so
\[ \begin{aligned} \lambda^2 - \lambda&= \lambda\,(\lambda- 1) \\ &= 0, \end{aligned} \]
and a product of two numbers is \(0\) only when one of them is: \(\lambda= 0\) or \(\lambda= 1\).
Part 2. If \(\mathbf{A}\) is orthogonal, then
\[ \begin{aligned} \mathopen{}\left\lVert\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{} &= \mathopen{}\left\lVert\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{} && \text{(}\href{linear-algebra-special-matrices.qmd#thm-orthogonal-norm}{\text{Theorem~6 in Special Matrices and Decompositions}}\text{)} \\ &= \mathopen{}\left\lVert\lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{} && \text{(eigenvector)} \\ &= \mathopen{}\left|\lambda\right|\mathclose{}\,\mathopen{}\left\lVert\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{}, && \text{(}\href{linear-algebra-inner-products.qmd#thm-norm-properties}{\text{Theorem~1 in Inner Products and Orthogonality}}\text{, part 2)} \end{aligned} \]
and \(\mathopen{}\left\lVert\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{} > 0\) (Theorem 1 in Inner Products and Orthogonality, part 1), so dividing by \(\mathopen{}\left\lVert\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\right\rVert\mathclose{}\) gives \(\mathopen{}\left|\lambda\right|\mathclose{} = 1\); since \(\lambda\) is real (Definition 16 in Special Matrices and Decompositions), \(\lambda= 1\) or \(\lambda= -1\).
Example 7 (Projections and reflections)
The idempotent matrix \(\begin{bmatrix} 0.5 & 0.5 \\ 0.5 & 0.5 \end{bmatrix}\) of Example 3 in Projections and Linear Systems sends \((1, 1)\) to \((1, 1)\) and \((1, -1)\) to \((0, 0)\): eigenvalues \(1\) and \(0\).
The matrix \(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\), which swaps the two entries, is orthogonal: its columns \((0, 1)\) and \((1, 0)\) are orthonormal (Remark 6 in Special Matrices and Decompositions). It sends \((1, 1)\) to \((1, 1)\) and \((1, -1)\) to \((-1, 1)\): eigenvalues \(1\) and \(-1\).
The rotation \(\mathbf{Q}\) of Example 13 in Special Matrices and Decompositions has no real eigenvalue. By part 2 the only candidates are \(\pm 1\). \(\mathbf{Q} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) reads \(-0.4\,v_1 - 0.8\,v_2 = 0\) and \(0.8\,v_1 - 0.4\,v_2 = 0\), so \(v_1 = -2 v_2\) and
\[ \begin{aligned} v_2 &= 2 v_1 \\ &= -4 v_2, \end{aligned} \]
forcing \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\); \(\mathbf{Q} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = -\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) reads \(1.6\,v_1 - 0.8\,v_2 = 0\) and \(0.8\,v_1 + 1.6\,v_2 = 0\), so \(v_2 = 2 v_1\) and \(0.8\,v_1 + 3.2\,v_1 = 0\), forcing \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) again.
Definition 3 (Similar matrices) Two \(p \times p\) matrices \(\mathbf{A}\) and \(\mathbf{B}\) are similar [3] if \(\mathbf{B} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}\) for some invertible \(p \times p\) matrix \(\mathbf{P}\) (Definition 6 in Special Matrices and Decompositions).
Remark 1 (Similarity read both ways). If \(\mathbf{P}\) is invertible, then \(\mathbf{P}^{-1}\) is invertible with inverse \(\mathbf{P}\):
\[ \begin{aligned} \mathbf{P}^{-1} \mathbf{P} &= \mathbf{P} \mathbf{P}^{-1} \\ &= \mathbf{I}_p \end{aligned} \]
\[ \begin{aligned} \mathbf{P} \mathbf{B} \mathbf{P}^{-1} &= \mathbf{P}\,(\mathbf{P}^{-1} \mathbf{A} \mathbf{P})\,\mathbf{P}^{-1} && \text{(substitute } \mathbf{B} \text{)} \\ &= (\mathbf{P} \mathbf{P}^{-1})\,\mathbf{A}\,(\mathbf{P} \mathbf{P}^{-1}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{I}_p\,\mathbf{A}\,\mathbf{I}_p && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= \mathbf{A}, && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \end{aligned} \]
and the same steps with \(\mathbf{P}\) and \(\mathbf{P}^{-1}\) exchanged turn \(\mathbf{A} = \mathbf{P} \mathbf{B} \mathbf{P}^{-1}\) back into \(\mathbf{B} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}\). So \(\mathbf{B} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}\) exactly when \(\mathbf{A} = \mathbf{P} \mathbf{B} \mathbf{P}^{-1}\), and similarity goes both ways: \(\mathbf{A}\) is similar to \(\mathbf{B}\) through \(\mathbf{P}^{-1}\), whose inverse is \(\mathbf{P}\).
Example 8 (A matrix similar to a diagonal one) Let \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) and \(\mathbf{P} = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}\). Then
\[ \begin{aligned} \mathbf{P}^2 &= \begin{bmatrix} 1 \cdot 1 + 1 \cdot 1 & 1 \cdot 1 + 1 \cdot(-1) \\ 1 \cdot 1 + (-1) \cdot 1 & 1 \cdot 1 + (-1)(-1) \end{bmatrix} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{)} \\ &= \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} && \text{(arithmetic)} \\ &= 2\,\mathbf{I}_2, && \text{(}\href{linear-algebra-matrices.qmd#def-scalar-mult}{\text{Definition~6 in Matrices}}\text{, }\href{linear-algebra-matrices.qmd#def-identity-matrix}{\text{Definition~12 in Matrices}}\text{)} \end{aligned} \]
so
\[ \begin{aligned} \mathbf{P}\,(\tfrac{1}{2}\,\mathbf{P}) &= \tfrac{1}{2}\,\mathbf{P}^2 \\ &= \mathbf{I}_2 \end{aligned} \]
and likewise \((\tfrac{1}{2}\,\mathbf{P})\,\mathbf{P} = \mathbf{I}_2\) (Theorem 7 in Projections and Linear Systems): \(\mathbf{P}^{-1} = \tfrac{1}{2}\,\mathbf{P}\) (2). Then
\[ \begin{aligned} \mathbf{P}^{-1} \mathbf{A} \mathbf{P} &= (\tfrac{1}{2}\,\mathbf{P})\,\mathbf{A} \mathbf{P} && \text{(substitute } \mathbf{P}^{-1} \text{)} \\ &= \tfrac{1}{2}\,(\mathbf{P} \mathbf{A} \mathbf{P}) && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= \tfrac{1}{2}\,\mathbf{P}\,(\mathbf{A} \mathbf{P}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \tfrac{1}{2} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} 3 & 1 \\ 3 & -1 \end{bmatrix} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{, for } \mathbf{A} \mathbf{P} \text{)} \\ &= \tfrac{1}{2} \begin{bmatrix} 6 & 0 \\ 0 & 2 \end{bmatrix} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{)} \\ &= \begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix}, && \text{(}\href{linear-algebra-matrices.qmd#def-scalar-mult}{\text{Definition~6 in Matrices}}\text{)} \end{aligned} \]
so \(\mathbf{A}\) is similar to \(\operatorname{diag}(3, 1)\). At the other extreme, the identity matrix is similar only to itself:
\[ \begin{aligned} \mathbf{P}^{-1} \mathbf{I}_p \mathbf{P} &= \mathbf{P}^{-1} \mathbf{P} \\ &= \mathbf{I}_p \end{aligned} \]
for every invertible \(\mathbf{P}\) (Theorem 8 in Matrices, 2).
Theorem 6 (Similar matrices have the same eigenvalues) If \(\mathbf{B} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}\) (Definition 3), then \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is an eigenvector of \(\mathbf{A}\) for \(\lambda\) exactly when \(\mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is an eigenvector of \(\mathbf{B}\) for \(\lambda\). So \(\mathbf{A}\) and \(\mathbf{B}\) have the same eigenvalues.
Proof. From \(\mathbf{A}\) to \(\mathbf{B}\). Let \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = \lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} = \mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\). Then
\[ \begin{aligned} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} &= (\mathbf{P}^{-1} \mathbf{A} \mathbf{P})\,(\mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(substitute } \mathbf{B} \text{ and } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \text{)} \\ &= \mathbf{P}^{-1} \mathbf{A}\,(\mathbf{P} \mathbf{P}^{-1})\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{P}^{-1} \mathbf{A}\,\mathbf{I}_p\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= \mathbf{P}^{-1} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= \mathbf{P}^{-1}\,(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{P}^{-1}\,(\lambda\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) && \text{(eigenvector)} \\ &= \lambda\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}. && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \end{aligned} \]
And \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\): if \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), then
\[ \begin{aligned} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \mathbf{I}_p \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \\ &= \mathbf{P}\,(\mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}) \\ &= \mathbf{P}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\\ &= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}} \end{aligned} \]
(Theorem 8 in Matrices, 2, Theorem 5 in Matrices, Definition 13 in Matrices), which is false.
From \(\mathbf{B}\) to \(\mathbf{A}\). By Remark 1,
\[ \begin{aligned} \mathbf{A} &= \mathbf{P} \mathbf{B} \mathbf{P}^{-1} \\ &= (\mathbf{P}^{-1})^{-1} \mathbf{B}\,\mathbf{P}^{-1}, \end{aligned} \]
so the first part, with \(\mathbf{P}^{-1}\) in place of \(\mathbf{P}\) and the roles of \(\mathbf{A}\) and \(\mathbf{B}\) exchanged, shows that if \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} = \mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) is an eigenvector of \(\mathbf{B}\) for \(\lambda\), then \(\mathbf{P} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\) is an eigenvector of \(\mathbf{A}\) for \(\lambda\); and
\[ \begin{aligned} \mathbf{P} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} &= \mathbf{P} \mathbf{P}^{-1} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \\ &= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \end{aligned} \]
Example 9 (Eigenvectors carried across a similarity) In Example 8, \(\mathbf{B} = \operatorname{diag}(3, 1)\) has eigenvectors \((1, 0)\) for \(3\) and \((0, 1)\) for \(1\): \(\operatorname{diag}(3, 1)\,(1, 0) = (3, 0)\) and \(\operatorname{diag}(3, 1)\,(0, 1) = (0, 1)\). \(\mathbf{P}\,(1, 0) = (1, 1)\) and \(\mathbf{P}\,(0, 1) = (1, -1)\) are the eigenvectors of \(\mathbf{A}\) for \(3\) and \(1\) found in Example 24 in Special Matrices and Decompositions.
Theorem 7 (Eigenvectors for distinct eigenvalues are linearly independent) If \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_k\) are eigenvectors of a \(p \times p\) matrix \(\mathbf{A}\) for eigenvalues \(\lambda_1, \ldots, \lambda_k\) that are all different, then \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_k\) are linearly independent (Definition 1 in Subspaces and Rank).
Proof. By induction on \(k\). For \(k = 1\), \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_1 \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) is linearly independent on its own. Suppose the result holds for \(k - 1\) eigenvectors, and \(\sum_{i=1}^{k} c_i \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_i = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\). Then
\[ \begin{aligned} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}} &= (\mathbf{A} - \lambda_k \mathbf{I}_p) \sum_{i=1}^{k} c_i \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_i && \text{(multiply the supposed equation by } \mathbf{A} - \lambda_k \mathbf{I}_p \text{)} \\ &= \sum_{i=1}^{k} c_i\,(\mathbf{A} - \lambda_k \mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_i && \text{(}\href{linear-algebra-subspaces.qmd#thm-matvec-linear}{\text{Theorem~4 in Subspaces and Rank}}\text{)} \\ &= \sum_{i=1}^{k} c_i\,(\lambda_i - \lambda_k)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_i && \text{(}\href{#thm-eigen-shift-power}{\text{Theorem~3}}\text{, part 1, with } s = -\lambda_k \text{)} \\ &= \sum_{i=1}^{k-1} c_i\,(\lambda_i - \lambda_k)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_i. && \text{(the } i = k \text{ term is } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\text{)} \end{aligned} \]
By the induction hypothesis \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_{k-1}\) are linearly independent, so every \(c_i\,(\lambda_i - \lambda_k) = 0\) for \(i < k\), and since \(\lambda_i \ne \lambda_k\), every \(c_i = 0\) for \(i < k\). The supposed equation then reads \(c_k \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_k = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}_k \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), so \(c_k = 0\) too.
Example 10 (Independent eigenvectors) The eigenvectors \((1, 1)\) for \(3\) and \((1, -1)\) for \(1\) of Example 24 in Special Matrices and Decompositions are linearly independent, as Theorem 7 says they must be: \(c_1 (1, 1) + c_2 (1, -1) = (c_1 + c_2, c_1 - c_2)\) is \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) only if
\[ \begin{aligned} c_1 &= c_2 \\ &= 0. \end{aligned} \]
Two eigenvectors for the same eigenvalue need not be independent: \((1, 1)\) and \((2, 2)\) are both eigenvectors for \(3\).
Definition 4 (Diagonalizable matrix) A \(p \times p\) matrix \(\mathbf{A}\) is diagonalizable [4] if \(\mathbf{A} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\) for some invertible \(p \times p\) matrix \(\mathbf{X}\) and diagonal \(p \times p\) matrix \(\mathbf{\Lambda}\) (Definition 4 in Special Matrices and Decompositions); by Remark 1, that is the same as \(\mathbf{\Lambda} = \mathbf{X}^{-1} \mathbf{A} \mathbf{X}\), so a diagonalizable matrix is one similar to a diagonal matrix (Definition 3).
Example 11 (Diagonalizable and not)
\(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) is diagonalizable: with \(\mathbf{P}\) as in Example 8, \(\operatorname{diag}(3, 1) = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}\).
\(\mathbf{J} = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\) is not. Suppose \(\mathbf{J} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\), so \(\mathbf{\Lambda} = \mathbf{X}^{-1} \mathbf{J} \mathbf{X}\) (Remark 1). The eigenvalues of \(\mathbf{\Lambda}\) are its diagonal entries (Theorem 4, since a diagonal matrix is upper triangular) and are the eigenvalues of \(\mathbf{J}\) (Theorem 6), of which \(0\) is the only one (Example 2). So \(\mathbf{\Lambda} = \mathbf{0}_{2 \times 2}\), and then
\[ \begin{aligned} \mathbf{J} &= \mathbf{X}\,\mathbf{0}_{2 \times 2}\,\mathbf{X}^{-1} \\ &= \mathbf{0}_{2 \times 2} \end{aligned} \]
(1), which it is not.
Theorem 8 (Diagonalizable means a basis of eigenvectors) A \(p \times p\) matrix \(\mathbf{A}\) is diagonalizable (Definition 4) exactly when it has \(p\) linearly independent eigenvectors. Then \(\mathbf{A} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\) with the eigenvectors as the columns of \(\mathbf{X}\) and their eigenvalues, in the same order, on the diagonal of \(\mathbf{\Lambda}\).
Proof. Let \(\mathbf{X}\) have columns \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_p\) and \(\mathbf{\Lambda} = \operatorname{diag}(\lambda_1, \ldots, \lambda_p)\). Column \(j\) of \(\mathbf{A} \mathbf{X}\) is \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j\), and column \(j\) of \(\mathbf{X} \mathbf{\Lambda}\) is \(\mathbf{X}\) times column \(j\) of \(\mathbf{\Lambda}\) (1), which is
\[ \begin{aligned} \mathbf{X}\,(\lambda_j \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_j) &= \lambda_j\,(\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_j) \\ &= \lambda_j \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j \end{aligned} \]
(Theorem 7 in Projections and Linear Systems, Theorem 3 in Subspaces and Rank), so
\[ \mathbf{A} \mathbf{X} = \mathbf{X} \mathbf{\Lambda} \iff \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j = \lambda_j \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j \text{ for every } j. \tag{1}\]
Also, \(\mathbf{X}\) has rank \(p\) exactly when its \(p\) columns are linearly independent (Definition 2 in Subspaces and Rank), which by Theorem 1 is exactly when \(\mathbf{X}\) is invertible.
Eigenvectors give a diagonalization. If \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_1, \ldots, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_p\) are linearly independent eigenvectors, then \(\mathbf{X}\) is invertible and Equation 1 gives \(\mathbf{A} \mathbf{X} = \mathbf{X} \mathbf{\Lambda}\), so
\[ \begin{aligned} \mathbf{A} &= \mathbf{A}\,\mathbf{I}_p && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= \mathbf{A}\,(\mathbf{X} \mathbf{X}^{-1}) && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= (\mathbf{A} \mathbf{X})\,\mathbf{X}^{-1} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}. && \text{(} \mathbf{A} \mathbf{X} = \mathbf{X} \mathbf{\Lambda} \text{)} \end{aligned} \]
A diagonalization gives eigenvectors. If \(\mathbf{A} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\), then
\[ \begin{aligned} \mathbf{A} \mathbf{X} &= (\mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1})\,\mathbf{X} && \text{(substitute } \mathbf{A} \text{)} \\ &= \mathbf{X} \mathbf{\Lambda}\,(\mathbf{X}^{-1} \mathbf{X}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}\,\mathbf{I}_p && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}, && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \end{aligned} \]
so each column satisfies \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j = \lambda_j \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}_j\) (Equation 1). \(\mathbf{X}\) is invertible, so its columns are linearly independent, and in particular nonzero; they are \(p\) linearly independent eigenvectors.
Example 12 (Building the diagonalization from eigenvectors) The eigenvectors \((1, 1)\) and \((1, -1)\) of \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) are linearly independent (Example 10), so with \(\mathbf{X} = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}\) and \(\mathbf{\Lambda} = \operatorname{diag}(3, 1)\), \(\mathbf{A} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\); by Remark 1 this is the similarity of Example 8, with \(\mathbf{X} = \mathbf{P}\). Because \(\mathbf{A}\) is symmetric, Theorem 12 in Special Matrices and Decompositions even gives such a factorization with orthonormal eigenvectors (Definition 18 in Special Matrices and Decompositions): dividing each column of \(\mathbf{X}\) by its length \(\sqrt{2}\) gives one. By contrast, every eigenvector of \(\mathbf{J}\) in Example 2 has the form \((t, 0)\), so any two of them are multiples of each other, and \(\mathbf{J}\) has no two linearly independent eigenvectors: another way to see that it is not diagonalizable.
Corollary 1 (Distinct eigenvalues make a matrix diagonalizable) A \(p \times p\) matrix with \(p\) different eigenvalues is diagonalizable.
Example 13 (A triangular matrix with distinct diagonal entries) \(\mathbf{U}\) of Example 6 has the three different eigenvalues \(2\), \(\tfrac{1}{2}\) and \(-1\) (Theorem 4), so it is diagonalizable, even though it is not symmetric, so Theorem 12 in Special Matrices and Decompositions does not apply to it. The converse fails: \(\mathbf{I}_2\) is diagonal, hence diagonalizable (\(\mathbf{I}_2 = \mathbf{I}_2\,\mathbf{I}_2\,\mathbf{I}_2^{-1}\)), but has only the eigenvalue \(1\).
Theorem 9 (Powers of a diagonalizable matrix) If \(\mathbf{A} = \mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1}\) (Definition 4) with \(\mathbf{\Lambda} = \operatorname{diag}(\lambda_1, \ldots, \lambda_p)\), then for every positive integer \(k\), \(\mathbf{A}^k = \mathbf{X} \mathbf{\Lambda}^k \mathbf{X}^{-1}\) and \(\mathbf{\Lambda}^k = \operatorname{diag}(\lambda_1^k, \ldots, \lambda_p^k)\).
Proof. Powers of \(\mathbf{\Lambda}\). If \(\mathbf{D} = \operatorname{diag}(d_1, \ldots, d_p)\) and \(\mathbf{E} = \operatorname{diag}(e_1, \ldots, e_p)\), with entries \(d_{il}\) and \(e_{lj}\) (so \(d_{ii} = d_i\) and \(e_{jj} = e_j\)), entry \((i, j)\) of \(\mathbf{D} \mathbf{E}\) is \(\sum_l d_{il}\,e_{lj}\) (1), where \(d_{il} = 0\) unless \(l = i\) and \(e_{lj} = 0\) unless \(l = j\). For \(i \ne j\) no term survives, so the entry is \(0\); for \(i = j\) only \(l = i\) survives, giving \(d_i\,e_i\). So \(\mathbf{D} \mathbf{E} = \operatorname{diag}(d_1 e_1, \ldots, d_p e_p)\), and induction on \(k\) gives \(\mathbf{\Lambda}^k = \operatorname{diag}(\lambda_1^k, \ldots, \lambda_p^k)\).
Powers of \(\mathbf{A}\), by induction on \(k\). \(k = 1\) is the assumption. If it holds for \(k - 1\),
\[ \begin{aligned} \mathbf{A}^k &= \mathbf{A}^{k-1} \mathbf{A} && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-power}{\text{Definition~2 in Special Matrices and Decompositions}}\text{, }\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k-1} \mathbf{X}^{-1}\,\mathbf{A} && \text{(induction hypothesis)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k-1} \mathbf{X}^{-1}\,\mathbf{X} \mathbf{\Lambda} \mathbf{X}^{-1} && \text{(the assumption)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k-1}\,(\mathbf{X}^{-1} \mathbf{X})\,\mathbf{\Lambda} \mathbf{X}^{-1} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k-1}\,\mathbf{I}_p\,\mathbf{\Lambda} \mathbf{X}^{-1} && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-inverse}{\text{Definition~5 in Special Matrices and Decompositions}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k-1} \mathbf{\Lambda} \mathbf{X}^{-1} && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{)} \\ &= \mathbf{X} \mathbf{\Lambda}^{k} \mathbf{X}^{-1}. && \text{(}\href{linear-algebra-special-matrices.qmd#def-matrix-power}{\text{Definition~2 in Special Matrices and Decompositions}}\text{)} \end{aligned} \]
Example 14 (A closed form for the powers) For \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\), with \(\mathbf{X}\) as in Example 12 and \(\mathbf{X}^{-1} = \tfrac{1}{2}\,\mathbf{X}\) (Example 8),
\[ \begin{aligned} \mathbf{A}^k &= \mathbf{X}\,\operatorname{diag}(3^k, 1)\,\mathbf{X}^{-1} && \text{(}\href{#thm-diagonalizable-powers}{\text{Theorem~9}}\text{)} \\ &= \mathbf{X}\,\operatorname{diag}(3^k, 1)\,(\tfrac{1}{2}\,\mathbf{X}) && \text{(substitute } \mathbf{X}^{-1} \text{)} \\ &= \tfrac{1}{2}\,\mathbf{X}\,\operatorname{diag}(3^k, 1)\,\mathbf{X} && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= \tfrac{1}{2} \begin{bmatrix} 3^k & 1 \\ 3^k & -1 \end{bmatrix} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{, for } \mathbf{X}\,\operatorname{diag}(3^k, 1) \text{)} \\ &= \tfrac{1}{2} \begin{bmatrix} 3^k + 1 & 3^k - 1 \\ 3^k - 1 & 3^k + 1 \end{bmatrix}. && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{)} \end{aligned} \]
For \(k = 2\) this gives \(\tfrac{1}{2} \begin{bmatrix} 10 & 8 \\ 8 & 10 \end{bmatrix} = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}\), which matches \(\mathbf{A}^2\) in Example 5.
Source
This section is adapted from Zhou [5], used under the MIT License (see the license text in Section 2 in Subspaces and Rank). The source’s eigenvalue and quadratic-form characterizations of definiteness are covered in these notes already (Theorem 17 in Special Matrices and Decompositions). These parts of the source are left out:
The source leaves the Schur complement test unproved; it is proved here from a block expansion of the quadratic form, and the Cholesky factorization is derived from it.
Theorem 10 (Definite matrices are Gram matrices) Let \(\mathbf{A}\) be a \(p \times p\) matrix.
Proof. If \(\mathbf{A} = {\mathbf{B}}^{\top} \mathbf{B}\). \(\mathbf{A}\) is symmetric, since
\[ \begin{aligned} {({\mathbf{B}}^{\top} \mathbf{B})}^{\top} &= {\mathbf{B}}^{\top}\,{({\mathbf{B}}^{\top})}^{\top} \\ &= {\mathbf{B}}^{\top} \mathbf{B} \end{aligned} \]
(Theorem 17 in Matrices, Definition 3 in Matrices). For any \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\),
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,{\mathbf{B}}^{\top}\,\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(substitute } \mathbf{A} \text{)} \\ &= {(\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}})}^{\top}\,(\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}) && \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{, }\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &= \mathopen{}\left\lVert\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\right\rVert\mathclose{}^2 && \text{(}\href{linear-algebra-vectors.qmd#eq-l2-norm}{\text{Equation~2 in Vectors}}\text{, squared)} \\ &\ge 0. && \text{(}\href{linear-algebra-inner-products.qmd#thm-norm-properties}{\text{Theorem~1 in Inner Products and Orthogonality}}\text{)} \end{aligned} \]
If the columns of \(\mathbf{B}\) are linearly independent, then \(\mathcal{N}(\mathbf{B}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\right\}\mathclose{}\) (\(\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\) is the combination of the columns with coefficients \(x_j\), Theorem 3 in Subspaces and Rank, and only the zero combination is \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), Definition 1 in Subspaces and Rank), so for \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), \(\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) and \(\mathopen{}\left\lVert\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\right\rVert\mathclose{}^2 > 0\) (Theorem 1 in Inner Products and Orthogonality, part 1).
Only if. Let \(\mathbf{A}\) be positive semidefinite. It is symmetric, so \(\mathbf{A} = \mathbf{Q} \mathbf{\Lambda} {\mathbf{Q}}^{\top}\) (Theorem 12 in Special Matrices and Decompositions), and every \(\lambda_i \ge 0\) (Theorem 17 in Special Matrices and Decompositions). Let \(\mathbf{\Lambda}^{1/2} \stackrel{\text{def}}{=}\operatorname{diag}(\sqrt{\lambda_1}, \ldots, \sqrt{\lambda_p})\), which is symmetric, with \(\mathbf{\Lambda}^{1/2} \mathbf{\Lambda}^{1/2} = \mathbf{\Lambda}\) (the product of diagonal matrices multiplies their diagonals, as in the proof of Theorem 9), and let \(\mathbf{B} \stackrel{\text{def}}{=}\mathbf{\Lambda}^{1/2} {\mathbf{Q}}^{\top}\). Then
\[ \begin{aligned} {\mathbf{B}}^{\top} \mathbf{B} &= {({\mathbf{Q}}^{\top})}^{\top}\,{(\mathbf{\Lambda}^{1/2})}^{\top}\,\mathbf{\Lambda}^{1/2} {\mathbf{Q}}^{\top} && \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)} \\ &= \mathbf{Q}\,\mathbf{\Lambda}^{1/2} \mathbf{\Lambda}^{1/2}\,{\mathbf{Q}}^{\top} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-transpose}{\text{Definition~3 in Matrices}}\text{; } \mathbf{\Lambda}^{1/2} \text{ is symmetric)} \\ &= \mathbf{Q} \mathbf{\Lambda} {\mathbf{Q}}^{\top} && \text{(} \mathbf{\Lambda}^{1/2} \mathbf{\Lambda}^{1/2} = \mathbf{\Lambda} \text{)} \\ &= \mathbf{A}. && \text{(}\href{linear-algebra-special-matrices.qmd#thm-spectral}{\text{Theorem~12 in Special Matrices and Decompositions}}\text{)} \end{aligned} \]
If \(\mathbf{A}\) is positive definite, it is positive semidefinite (Remark 19 in Special Matrices and Decompositions), so the same \(\mathbf{B}\) gives \(\mathbf{A} = {\mathbf{B}}^{\top} \mathbf{B}\); and every \(\lambda_i > 0\) (Theorem 17 in Special Matrices and Decompositions), so \(\mathbf{\Lambda}^{1/2}\) is diagonal with nonzero diagonal, and invertible (its inverse is \(\operatorname{diag}(1/\sqrt{\lambda_1}, \ldots, 1/\sqrt{\lambda_p})\)); \({\mathbf{Q}}^{\top}\) is invertible with inverse \(\mathbf{Q}\) (Remark 6 in Special Matrices and Decompositions). So \(\mathbf{B}\) is invertible (Theorem 1 in Special Matrices and Decompositions), and its \(p\) columns are linearly independent (Theorem 1, Definition 2 in Subspaces and Rank).
Example 15 (Gram factorizations)
Theorem 11 (Operations that preserve definiteness)
Proof. Part 1. \({\mathbf{A}}^{\top} \mathbf{C} \mathbf{A}\) is symmetric:
\[ \begin{aligned} {({\mathbf{A}}^{\top} \mathbf{C} \mathbf{A})}^{\top} &= {\mathbf{A}}^{\top}\,{\mathbf{C}}^{\top}\,{({\mathbf{A}}^{\top})}^{\top} \\ &= {\mathbf{A}}^{\top} \mathbf{C} \mathbf{A} \end{aligned} \]
(Theorem 17 in Matrices, twice; \(\mathbf{C}\) symmetric; Definition 3 in Matrices). For \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_k\), \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\), since the columns of \(\mathbf{A}\) are independent (Theorem 3 in Subspaces and Rank, Definition 1 in Subspaces and Rank), and
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,({\mathbf{A}}^{\top} \mathbf{C} \mathbf{A})\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= {(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}})}^{\top}\,\mathbf{C}\,(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}) && \text{(}\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{, }\href{linear-algebra-matrices.qmd#thm-matmul-assoc}{\text{Theorem~5 in Matrices}}\text{)} \\ &> 0. && \text{(} \mathbf{C} \text{ positive definite, } \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\text{)} \end{aligned} \]
Part 2. \(\alpha_1 \mathbf{A}_1 + \alpha_2 \mathbf{A}_2\) is symmetric: its transpose is \(\alpha_1 {\mathbf{A}_1}^{\top} + \alpha_2 {\mathbf{A}_2}^{\top} = \alpha_1 \mathbf{A}_1 + \alpha_2 \mathbf{A}_2\) (Theorem 16 in Matrices, Definition 6 in Matrices, Definition 3 in Matrices). For \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\),
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,(\alpha_1 \mathbf{A}_1 + \alpha_2 \mathbf{A}_2)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,(\alpha_1 \mathbf{A}_1)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}+ {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,(\alpha_2 \mathbf{A}_2)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-distrib}{\text{Theorem~6 in Matrices}}\text{, twice)} \\ &= \alpha_1\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A}_1 \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} + \alpha_2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A}_2 \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &> 0. && \text{(each term is positive)} \end{aligned} \]
Example 16 (Building positive definite matrices)
With \(\mathbf{C} = \mathbf{I}_3\) and \(\mathbf{X}\) of Example 15, part 1 gives again that \({\mathbf{X}}^{\top} \mathbf{X}\) is positive definite.
With \(\alpha_1 = 2\), \(\mathbf{A}_1 = \mathbf{I}_2\) (Example 32 in Special Matrices and Decompositions), \(\alpha_2 = 1\) and
\[ \begin{aligned} \mathbf{A}_2 &= {\mathbf{X}}^{\top} \mathbf{X}\\ &= \begin{bmatrix} 3 & 6 \\ 6 & 14 \end{bmatrix} \end{aligned} \]
(Example 15), part 2 gives that \(2 \mathbf{I}_2 + {\mathbf{X}}^{\top} \mathbf{X}= \begin{bmatrix} 5 & 6 \\ 6 & 16 \end{bmatrix}\) is positive definite.
An aside beyond part 2: \(\mathbf{I}_2 + \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) is positive definite plus positive semidefinite; its quadratic form is \(x_1^2 + x_2^2 + (x_1 + x_2)^2 > 0\) for \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), so it is positive definite, in line with its eigenvalues \(3\) and \(1\) (Example 24 in Special Matrices and Decompositions).
Independence is needed in part 1: with \(\mathbf{A} = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}\), whose columns are equal, \({\mathbf{A}}^{\top}\,\mathbf{I}_2\,\mathbf{A} = \begin{bmatrix} 2 & 2 \\ 2 & 2 \end{bmatrix}\), and \((1, -1)\) gives quadratic form \(0\).
Theorem 12 (A positive definite matrix is invertible) Every positive definite matrix (Definition 22 in Special Matrices and Decompositions) is invertible (Definition 6 in Special Matrices and Decompositions).
Proof. Let \(\mathbf{A}\) be a \(p \times p\) positive definite matrix, and let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\) be a vector of length \(p\) with \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\). Then
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}) && \text{(}\href{linear-algebra-special-matrices.qmd#def-quadratic-form}{\text{Definition~11 in Special Matrices and Decompositions}}\text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p && \text{(} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p \text{)} \\ &= 0. && \text{(every term of the inner product is } 0 \text{)} \end{aligned} \]
If \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\), then \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} > 0\) because \(\mathbf{A}\) is positive definite, which contradicts \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} = 0\). So \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\), the null space \(\mathcal{N}(\mathbf{A})\) is \(\mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\right\}\mathclose{}\), and \(\mathbf{A}\) is invertible by Theorem 1.
Example 17 (Positive definite matrices are invertible; the converse fails) \(\mathbf{A} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) is positive definite, since
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= 2 x_1^2 + 2 x_1 x_2 + 2 x_2^2 && \text{(multiply out)} \\ &= x_1^2 + x_2^2 + (x_1 + x_2)^2, && \text{(expand the square)} \end{aligned} \]
which is \(0\) only when \(x_1 = x_2 = 0\). It is invertible, with \({\mathopen{}\left(\mathbf{A}\right)\mathclose{}}^{-1} = \frac{1}{3}\begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix}\).
The converse fails. \(\mathbf{D} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\) of Example 32 in Special Matrices and Decompositions is not positive definite, yet it is invertible: \({\mathopen{}\left(\mathbf{D}\right)\mathclose{}}^{-1} = \frac{1}{3}\begin{bmatrix} -1 & 2 \\ 2 & -1 \end{bmatrix}\).
Theorem 13 (Adding a positive multiple of the identity makes a matrix positive definite) Let \(\mathbf{A}\) be a \(p \times p\) positive semidefinite matrix (Definition 21 in Special Matrices and Decompositions) and let \(\alpha> 0\). Then \(\mathbf{A} + \alpha\mathbf{I}_p\) is positive definite (Definition 22 in Special Matrices and Decompositions), so it is invertible (Theorem 12).
Proof. \(\mathbf{A} + \alpha\mathbf{I}_p\) is symmetric: its transpose is \({\mathbf{A}}^{\top} + \alpha\mathbf{I}_p = \mathbf{A} + \alpha\mathbf{I}_p\) (Theorem 16 in Matrices, Definition 6 in Matrices, Definition 3 in Matrices). For \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\),
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,(\mathbf{A} + \alpha\mathbf{I}_p)\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} + \alpha\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top}\,\mathbf{I}_p\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-distrib}{\text{Theorem~6 in Matrices}}\text{, }\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} + \alpha\,\mathopen{}\left\lVert\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\right\rVert\mathclose{}^2 && \text{(}\href{linear-algebra-matrices.qmd#thm-identity}{\text{Theorem~8 in Matrices}}\text{, }\href{linear-algebra-vectors.qmd#eq-l2-norm}{\text{Equation~2 in Vectors}}\text{, squared)} \\ &> 0. && \text{(} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}} \ge 0, \; \alpha> 0, \; \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}\ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p \text{)} \end{aligned} \]
Example 18 (Repairing a singular matrix) \(\mathbf{B} = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}\) of Example 30 in Special Matrices and Decompositions is positive semidefinite and singular: \(\mathbf{B} (1, -1) = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_2\). With \(\alpha= 1\),
\[ \mathbf{B} + \mathbf{I}_2 = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}, \]
which is positive definite and invertible by Example 17.
Corollary 2 (\({\mathbf{X}}^{\top}\mathbf{X}\) is invertible exactly when \(\mathbf{X}\) has full column rank) For an \(n \times p\) matrix \(\mathbf{X}\), the \(p \times p\) matrix \({\mathbf{X}}^{\top}\mathbf{X}\) is invertible (Definition 6 in Special Matrices and Decompositions) exactly when \(\operatorname{rank}(\mathbf{X}) = p\) (Definition 3 in Subspaces and Rank).
Proof. The following statements are equivalent:
\[ \begin{aligned} {\mathbf{X}}^{\top}\mathbf{X}\text{ is invertible} &\iff \mathcal{N}({\mathbf{X}}^{\top}\mathbf{X}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\right\}\mathclose{} && \text{(}\href{#thm-invertible-rank}{\text{Theorem~1}}\text{)} \\ &\iff \mathcal{N}(\mathbf{X}) = \mathopen{}\left\{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_p\right\}\mathclose{} && \text{(}\href{linear-algebra-rank-nullity.qmd#thm-null-gram}{\text{Theorem~5 in Column Space, Null Space and Rank-Nullity}}\text{)} \\ &\iff \mathbf{X}\text{ has full column rank.} && \text{(}\href{linear-algebra-rank-nullity.qmd#thm-independent-null-space}{\text{Theorem~3 in Column Space, Null Space and Rank-Nullity}}\text{)} \end{aligned} \]
Example 19 (A design matrix with a repeated column) \(\mathbf{X}= \begin{bmatrix} 1 & 2 \\ 1 & 2 \\ 1 & 2 \end{bmatrix}\) of Example 2 in Subspaces and Rank has rank \(1 < 2\). Its cross-product matrix is
\[ {\mathbf{X}}^{\top}\mathbf{X}= \begin{bmatrix} 3 & 6 \\ 6 & 12 \end{bmatrix}, \]
which is singular: \((2, -1)\) is in its null space, because \(\mathbf{X}(2, -1) = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_3\) (Example 5 in Column Space, Null Space and Rank-Nullity). For the full-column-rank matrix of Example 1 in Projections and Linear Systems, \({\mathbf{X}}^{\top}\mathbf{X}\) is invertible.
Definition 5 (Block matrix) Split the rows of an \(m \times n\) matrix \(\mathbf{X}\) into the first \(k\) and the last \(m - k\), and its columns into the first \(l\) and the last \(n - l\), with \(1 \le k < m\) and \(1 \le l < n\). This cuts \(\mathbf{X}\) into four smaller matrices, its blocks:
\[ \mathbf{X} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \\ \mathbf{C} & \mathbf{D} \end{bmatrix}, \]
where \(\mathbf{A}\) (\(k \times l\)) holds the entries \(x_{ij}\) with \(i \le k\) and \(j \le l\), \(\mathbf{B}\) (\(k \times (n - l)\)) those with \(i \le k\) and \(j > l\), \(\mathbf{C}\) (\((m - k) \times l\)) those with \(i > k\) and \(j \le l\), and \(\mathbf{D}\) (\((m - k) \times (n - l)\)) those with \(i > k\) and \(j > l\), each in its original order. A matrix written this way is a block matrix [6].
Example 20 (Cutting a \(3 \times 3\) matrix into blocks) With
\[ \begin{aligned} k &= l \\ &= 1, \end{aligned} \]
\[ \mathbf{X} = \begin{bmatrix} 4 & 2 & 1 \\ 2 & 5 & 3 \\ 1 & 3 & 6 \end{bmatrix} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \\ \mathbf{C} & \mathbf{D} \end{bmatrix}, \qquad \mathbf{A} = \begin{bmatrix} 4 \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 2 & 1 \end{bmatrix}, \quad \mathbf{C} = \begin{bmatrix} 2 \\ 1 \end{bmatrix}, \quad \mathbf{D} = \begin{bmatrix} 5 & 3 \\ 3 & 6 \end{bmatrix}. \]
For instance, entry \((1, 2)\) of \(\mathbf{D}\) is
\[ \begin{aligned} x_{1 + 1, 2 + 1} &= x_{23} \\ &= 3. \end{aligned} \]
With
\[ \begin{aligned} k &= l \\ &= 2 \end{aligned} \]
instead, the leading \(2 \times 2\) block is \(\begin{bmatrix} 4 & 2 \\ 2 & 5 \end{bmatrix}\).
Definition 6 (Leading block of a square matrix, top-left block) When \(\mathbf{X}\) is \(n \times n\) and \(1 \le k \le n\), the \(k \times k\) matrix of the entries \(x_{ij}\) with \(i, j \le k\) is the leading (or top-left) \(k \times k\) block of \(\mathbf{X}\); for \(k < n\) it is the block \(\mathbf{A}\) of Definition 5 with \(l = k\), and for \(k = n\) it is \(\mathbf{X}\) itself.
Theorem 14 (Leading blocks of a positive definite matrix are positive definite) Let \(\mathbf{X}\) be a \(p \times p\) positive definite matrix (Definition 22 in Special Matrices and Decompositions), and for \(1 \le k \le p\) let \(\mathbf{X}_k\) be its leading \(k \times k\) block (Definition 5), with entries \(x_{ij}\) for \(i, j \le k\). Then \(\mathbf{X}_k\) is positive definite. Also, every diagonal entry of a positive definite matrix is positive.
Proof. \(\mathbf{X}_k\) is symmetric, because \(\mathbf{X}\) is. For \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} \in \mathbb{R}^k\) with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}} = (u_1, \ldots, u_k, 0, \ldots, 0) \in \mathbb{R}^p\), which is nonzero, with entries \(y_i = u_i\) for \(i \le k\) and \(y_i = 0\) for \(i > k\). Then
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{X}_k \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} &= \sum_{i=1}^{k} \sum_{j=1}^{k} u_i\,x_{ij}\,u_j && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{, }\href{linear-algebra-vectors.qmd#def-dot-product}{\text{Definition~8 in Vectors}}\text{)} \\ &= \sum_{i=1}^{k} \sum_{j=1}^{k} y_i\,x_{ij}\,y_j && \text{(} y_i = u_i \text{ for } i \le k \text{)} \\ &= \sum_{i=1}^p\sum_{j=1}^py_i\,x_{ij}\,y_j && \text{(each added term has a factor } y_i = 0 \text{ or } y_j = 0 \text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}} && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{, }\href{linear-algebra-vectors.qmd#def-dot-product}{\text{Definition~8 in Vectors}}\text{)} \\ &> 0. && \text{(} \mathbf{X} \text{ positive definite, } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{y}}\vphantom{y}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\text{)} \end{aligned} \]
For the diagonal entry \(x_{ii}\), take \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_i\) (Definition 18 in Vectors), which is nonzero:
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_i}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_i &= \sum_{r=1}^{p} \sum_{s=1}^{p} (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_i)_r\,x_{rs}\,(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{e}}\vphantom{e}}_i)_s && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{, }\href{linear-algebra-vectors.qmd#def-dot-product}{\text{Definition~8 in Vectors}}\text{)} \\ &= x_{ii} && \text{(only the term with } r \text{ and } s \text{ both equal to } i \text{ is nonzero)} \\ &> 0. && \text{(} \mathbf{X} \text{ positive definite)} \end{aligned} \]
Example 21 (A quick necessary test) \(\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) is positive definite (Example 16), and its diagonal entries \(2, 2\) and its \(1 \times 1\) leading block \([2]\) are positive. The test can only rule matrices out: \(-\mathbf{I}_2\) has negative diagonal entries, so it is not positive definite, even though
\[ \begin{aligned} \det(-\mathbf{I}_2) &= (-1)(-1) - 0 \\ &= 1 \\ &> 0 \end{aligned} \]
(Definition 26 in Special Matrices and Decompositions); a positive determinant alone does not make a matrix positive definite. And positive diagonal entries are not enough: \(\mathbf{D} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\) of Example 32 in Special Matrices and Decompositions has them but is not positive definite.
Theorem 15 (The quadratic form of a block matrix) Let \(k, m \ge 1\), let \(\mathbf{A}\) be a symmetric \(k \times k\) matrix, \(\mathbf{B}\) a \(k \times m\) matrix and \(\mathbf{C}\) a symmetric \(m \times m\) matrix, and let \(\mathbf{X}\) be the \((k + m) \times (k + m)\) block matrix (Definition 5)
\[ \mathbf{X} = \begin{bmatrix} \underbrace{\mathbf{A}}_{k \times k} & \underbrace{\mathbf{B}}_{k \times m} \\ \underbrace{{\mathbf{B}}^{\top}}_{m \times k} & \underbrace{\mathbf{C}}_{m \times m} \end{bmatrix}, \]
that is, \(x_{ij} = a_{ij}\), \(x_{i, k+j} = b_{ij}\), \(x_{k+i, j} = b_{ji}\) and \(x_{k+i, k+j} = c_{ij}\) for indices in range. \(\mathbf{X}\) is symmetric (Definition 3 in Special Matrices and Decompositions):
\[ \begin{aligned} x_{k+i, j} &= b_{ji} \\ &= x_{j, k+i}, \end{aligned} \]
and \(\mathbf{A}\) and \(\mathbf{C}\) are symmetric. Split \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \in \mathbb{R}^{k + m}\) as \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}})\), with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} \in \mathbb{R}^k\) its first \(k\) entries and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \in \mathbb{R}^m\) the rest. Then
\[ {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}, \tag{2}\]
and if \(\mathbf{A}\) is invertible, with \(\mathbf{S} \stackrel{\text{def}}{=}\mathbf{C} - {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B}\) and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} \stackrel{\text{def}}{=}\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\),
\[ {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{S} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}. \]
Proof. \(\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) in blocks. For \(i \le k\),
\[ \begin{aligned} (\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}})_i &= \sum_{j=1}^{k+m} x_{ij}\,v_j && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{)} \\ &= \sum_{j=1}^{k} x_{ij}\,v_j + \sum_{j=1}^{m} x_{i, k+j}\,v_{k+j} && \text{(split the sum at } j = k \text{)} \\ &= \sum_{j=1}^{k} a_{ij}\,u_j + \sum_{j=1}^{m} b_{ij}\,w_j && \text{(the blocks of } \mathbf{X} \text{ and of } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \text{)} \\ &= (\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}})_i + (\mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}})_i, && \text{(}\href{linear-algebra-matrices.qmd#def-matvec-mult}{\text{Definition~13 in Matrices}}\text{)} \end{aligned} \]
and in the same way \((\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}})_{k+i} = ({\mathbf{B}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}})_i + (\mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}})_i\) for \(i \le m\).
The expansion.
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} &= \sum_{i=1}^{k} u_i\,(\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}})_i + \sum_{i=1}^{m} w_i\,(\mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}})_{k+i} && \text{(}\href{linear-algebra-vectors.qmd#def-dot-product}{\text{Definition~8 in Vectors}}\text{, split the sum at } k \text{)} \\ &= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} \cdot (\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}) + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \cdot ({\mathbf{B}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}) && \text{(the blocks of } \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} \text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} {\mathbf{B}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} && \text{(}\href{linear-algebra-direct-sums.qmd#thm-dot-linear}{\text{Theorem~5 in Direct Sums and Orthogonal Complements}}\text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} && \text{(} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} {\mathbf{B}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} = {\mathopen{}\left({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} {\mathbf{B}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}\right)\mathclose{}}^{\top} \text{, which equals } {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \text{; } 1 \times 1 \text{, }\href{linear-algebra-matrices.qmd#def-matrix-transpose}{\text{Definition~3 in Matrices}}\text{, }\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}. && \text{(combine like terms)} \end{aligned} \]
Completing the square. Write \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} \stackrel{\text{def}}{=}\mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\), so \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}\) and \(\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} = \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\) (Theorem 5 in Matrices, 2, Theorem 8 in Matrices); \(\mathbf{A}^{-1}\) is symmetric (Corollary 1 in Special Matrices and Decompositions). Then
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} &= (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}) \cdot \mathbf{A}\,(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}) && \text{(substitute } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} \text{)} \\ &= (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}) \cdot (\mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}) && \text{(}\href{linear-algebra-matrices.qmd#thm-matmul-distrib}{\text{Theorem~6 in Matrices}}\text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} && \text{(}\href{linear-algebra-direct-sums.qmd#thm-dot-linear}{\text{Theorem~5 in Direct Sums and Orthogonal Complements}}\text{, both slots)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} && \text{(as in the expansion, with } {\mathbf{A}}^{\top} = \mathbf{A} \text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} && \text{(combine like terms)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} && \text{(} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}} = \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \text{, twice)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top}\,{\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}, && \text{(} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{d}}\vphantom{d}}}^{\top} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} {\mathbf{B}}^{\top} \mathbf{A}^{-1} \text{, }\href{linear-algebra-matrices.qmd#thm-transpose-product}{\text{Theorem~17 in Matrices}}\text{, }\href{linear-algebra-special-matrices.qmd#cor-inverse-symmetric}{\text{Corollary~1 in Special Matrices and Decompositions}}\text{)} \end{aligned} \]
and
\[ \begin{aligned} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{S} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top}\,(\mathbf{C} - {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B})\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} && \text{(substitute } \mathbf{S} \text{)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top}\,(\mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} - {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}) && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{, difference rule on the right)} \\ &= {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} - {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top}\,{\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}. && \text{(}\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{, difference rule on the left)} \end{aligned} \]
Adding the two displays, the \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top}\,{\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\) terms cancel, leaving \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + 2\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}}^{\top} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{C} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\), which is \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}\) by Equation 2.
Example 22 (The \(2 \times 2\) case) For \(\mathbf{X} = \begin{bmatrix} a & b \\ b & c \end{bmatrix}\) (\(k = 1\) and \(m = 1\)) and \(a \ne 0\), the theorem reads
\[ a u^2 + 2buw + cw^2 = a\,\mathopen{}\left(u + \tfrac{b}{a}\,w\right)\mathclose{}^2 + \mathopen{}\left(c - \tfrac{b^2}{a}\right)\mathclose{}\,w^2, \]
with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = (u, w)\): the familiar completing of the square. With
\[ \begin{aligned} a &= c \\ &= 5 \end{aligned} \]
and \(b = 4\):
\[ \begin{aligned} 5\,(u + 0.8\,w)^2 + 1.8\,w^2 &= 5\,(u^2 + 1.6\,uw + 0.64\,w^2) + 1.8\,w^2 \\ &= 5u^2 + 8uw + 3.2\,w^2 + 1.8\,w^2 \\ &= 5u^2 + 8uw + 5w^2. \end{aligned} \]
Definition 7 (Schur complement) For a block matrix \(\mathbf{X} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \\ {\mathbf{B}}^{\top} & \mathbf{C} \end{bmatrix}\) as in Theorem 15 with \(\mathbf{A}\) invertible, the Schur complement [7] of \(\mathbf{A}\) in \(\mathbf{X}\) is the \(m \times m\) matrix \(\mathbf{S} = \mathbf{C} - {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B}\) defined in Theorem 15.
Example 23 (Schur complements of \(2 \times 2\) matrices)
For \(\begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}\) with \(\mathbf{A} = [5]\):
\[ \begin{aligned} \mathbf{S} &= 5 - 4 \cdot\tfrac{1}{5} \cdot 4 \\ &= \tfrac{25}{5} - \tfrac{16}{5} \\ &= \tfrac{9}{5}, \end{aligned} \]
that is, \(\mathbf{S} = [\tfrac{9}{5}]\).
For \(\mathbf{D} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\) with \(\mathbf{A} = [1]\):
\[ \begin{aligned} \mathbf{S} &= [1 - 2 \cdot 1 \cdot 2] \\ &= [-3]. \end{aligned} \]
For \(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\) the top-left block \([0]\) is not invertible, so there is no Schur complement of it.
Theorem 16 (Schur complement test) Let \(\mathbf{X} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \\ {\mathbf{B}}^{\top} & \mathbf{C} \end{bmatrix}\) be as in Theorem 15. Then \(\mathbf{X}\) is positive definite (Definition 22 in Special Matrices and Decompositions) exactly when \(\mathbf{A}\) is positive definite and its Schur complement \(\mathbf{S}\) (Definition 7) is positive definite.
Proof. If. \(\mathbf{A}\) is positive definite, so invertible (Theorem 18 in Special Matrices and Decompositions), and \(\mathbf{S}\) is defined. \(\mathbf{X}\) is symmetric. Let \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}) \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} + \mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\). By Theorem 15, \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}}}^{\top} \mathbf{A} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} + {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{S} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\), and both terms are at least \(0\). If \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), the second term is positive. If \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), then \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}\), so the first term is positive. Either way \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} > 0\).
Only if. \(\mathbf{A}\) is the top-left \(k \times k\) block of \(\mathbf{X}\), so it is positive definite (Theorem 14), and invertible (Theorem 18 in Special Matrices and Decompositions). \(\mathbf{S}\) is symmetric:
\[ \begin{aligned} {({\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B})}^{\top} &= {\mathbf{B}}^{\top}\,{(\mathbf{A}^{-1})}^{\top}\,\mathbf{B} \\ &= {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B} \end{aligned} \]
(Theorem 17 in Matrices, Definition 3 in Matrices for \({({\mathbf{B}}^{\top})}^{\top} = \mathbf{B}\), Corollary 1 in Special Matrices and Decompositions), and \(\mathbf{C}\) is symmetric, so \(\mathbf{S} = \mathbf{C} - {\mathbf{B}}^{\top} \mathbf{A}^{-1} \mathbf{B}\) is symmetric (the transpose of a difference is the difference of the transposes, entry by entry, Definition 3 in Matrices). For \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\), take \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}} = -\mathbf{A}^{-1} \mathbf{B} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}\), so \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{z}}\vphantom{z}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) and \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} = (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{u}}\vphantom{u}}, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}) \ne \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\); then \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}}}^{\top} \mathbf{S} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{w}}\vphantom{w}} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}}}^{\top} \mathbf{X} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{v}}\vphantom{v}} > 0\) (Theorem 15).
Example 24 (Testing \(2 \times 2\) matrices) A symmetric \(\begin{bmatrix} a & b \\ b & c \end{bmatrix}\) is positive definite exactly when \(a > 0\) and \(c - \tfrac{b^2}{a} > 0\), that is, \(a > 0\) and \(ac > b^2\) (a \(1 \times 1\) matrix \([s]\) is positive definite exactly when \(s > 0\), since \({x}^{\top} s x = s x^2\)).
Theorem 17 (Cholesky factorization) A \(p \times p\) matrix \(\mathbf{A}\) is positive definite (Definition 22 in Special Matrices and Decompositions) exactly when \(\mathbf{A} = \mathbf{L} {\mathbf{L}}^{\top}\) for some lower triangular \(\mathbf{L}\) (Definition 8 in Projections and Linear Systems) with positive diagonal entries. For a positive definite \(\mathbf{A}\) that \(\mathbf{L}\) is unique; it is the Cholesky factor [8] of \(\mathbf{A}\).
Proof. If. \({\mathbf{L}}^{\top}\) is upper triangular with positive diagonal (Definition 3 in Matrices), so \({\mathbf{L}}^{\top} \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) only for \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{x}}\vphantom{x}}= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}\) (Theorem 17 in Projections and Linear Systems), and the columns of \({\mathbf{L}}^{\top}\) are linearly independent (Theorem 3 in Subspaces and Rank, Definition 1 in Subspaces and Rank). So \(\mathbf{A} = {({\mathbf{L}}^{\top})}^{\top}\,{\mathbf{L}}^{\top}\) (Definition 3 in Matrices) is positive definite (Theorem 10, part 2).
Only if, with uniqueness, by induction on \(p\). For \(p = 1\), \(\mathbf{A} = [a]\) with \(a > 0\) (Theorem 14), and \([c]\,[c] = [a]\) with \(c > 0\) holds exactly for \(c = \sqrt{a}\). For \(p > 1\), assume every \((p - 1) \times (p - 1)\) positive definite matrix has exactly one such factor, and split off the first row and column. \(\mathbf{A}\) is symmetric, so its first row is the transpose of its first column:
\[ \mathbf{A} = \begin{bmatrix} a_{11} & {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top} \\ \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}} & \mathbf{A}_{22} \end{bmatrix}, \qquad \mathbf{L} = \begin{bmatrix} \ell_{11} & \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_{1 \times (p-1)} \\ \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} & \mathbf{L}_{22} \end{bmatrix}, \qquad {\mathbf{L}}^{\top} = \begin{bmatrix} \ell_{11} & {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}}^{\top} \\ \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{0}}\vphantom{0}}_{(p-1) \times 1} & {\mathbf{L}_{22}}^{\top} \end{bmatrix}, \]
with \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}, \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} \in \mathbb{R}^{p-1}\), where \(b_i\) and \(g_i\) are entries \((i + 1, 1)\) of \(\mathbf{A}\) and \(\mathbf{L}\), and \((\mathbf{A}_{22})_{ij}\) and \((\mathbf{L}_{22})_{ij}\) are their entries \((i + 1, j + 1)\); \({\mathbf{L}}^{\top}\) has this form by Definition 3 in Matrices. A \(p \times p\) matrix \(\mathbf{L}\) is lower triangular with positive diagonal exactly when \(\ell_{11} > 0\), its first row is otherwise zero, and \(\mathbf{L}_{22}\) is lower triangular with positive diagonal; \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}\) can be anything. So choosing \(\mathbf{L}\) means choosing \(\ell_{11} > 0\), \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}\) and such an \(\mathbf{L}_{22}\).
Entry \((i, j)\) of \(\mathbf{L} {\mathbf{L}}^{\top}\) is \(\sum_{r=1}^{p} \ell_{ir}\,\ell_{jr}\), with \(\ell_{ir}\) entry \((i, r)\) of \(\mathbf{L}\) (1, Definition 3 in Matrices). Row \(1\) of \(\mathbf{L}\) is \((\ell_{11}, 0, \ldots, 0)\), and row \(i + 1\) is \((g_i, (\mathbf{L}_{22})_{i1}, \ldots, (\mathbf{L}_{22})_{i,p-1})\). So, for \(i, j = 1, \ldots, p - 1\):
\[ \begin{aligned} (\mathbf{L} {\mathbf{L}}^{\top})_{11} &= \ell_{11}\,\ell_{11} + \sum_{r=2}^{p} 0 \cdot 0 \\ &= \ell_{11}^2, && \text{(rows 1 and 1)} \\ (\mathbf{L} {\mathbf{L}}^{\top})_{i+1,1} &= g_i\,\ell_{11} + \sum_{r=2}^{p} (\mathbf{L}_{22})_{i,r-1} \cdot 0 \\ &= \ell_{11}\,g_i, && \text{(rows } i + 1 \text{ and } 1 \text{)} \\ (\mathbf{L} {\mathbf{L}}^{\top})_{i+1,j+1} &= g_i\,g_j + \sum_{r=2}^{p} (\mathbf{L}_{22})_{i,r-1}\,(\mathbf{L}_{22})_{j,r-1} && \text{(rows } i + 1 \text{ and } j + 1 \text{)} \\ &= (\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}}^{\top})_{ij} + (\mathbf{L}_{22} {\mathbf{L}_{22}}^{\top})_{ij}. && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-mult}{\text{Definition~7 in Matrices}}\text{, with } s = r - 1 \text{)} \end{aligned} \]
Entry \((1, j + 1)\) is \(\ell_{11}\,g_j\) by the same computation with the roles swapped, the transpose of the \((2, 1)\) block; it matches \({\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top}\) exactly when the \((2, 1)\) block matches \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\), which is where the symmetry of \(\mathbf{A}\) is used. So \(\mathbf{L} {\mathbf{L}}^{\top} = \mathbf{A}\) says exactly
\[ \ell_{11}^2 = a_{11}, \qquad \ell_{11}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} = \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}, \qquad \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}}^{\top} + \mathbf{L}_{22} {\mathbf{L}_{22}}^{\top} = \mathbf{A}_{22}. \]
\(a_{11} > 0\) (Theorem 14), so the first equation with \(\ell_{11} > 0\) forces \(\ell_{11} = \sqrt{a_{11}}\); the second then forces \(\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} = \tfrac{1}{\ell_{11}}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\); and the third becomes
\[ \begin{aligned} \mathbf{L}_{22} {\mathbf{L}_{22}}^{\top} &= \mathbf{A}_{22} - \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}}^{\top} && \text{(subtract } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}}}^{\top} \text{)} \\ &= \mathbf{A}_{22} - \mathopen{}\left(\tfrac{1}{\ell_{11}}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\right)\mathclose{} {\mathopen{}\left(\tfrac{1}{\ell_{11}}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\right)\mathclose{}}^{\top} && \text{(substitute } \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{g}}\vphantom{g}} \text{)} \\ &= \mathbf{A}_{22} - \tfrac{1}{\ell_{11}^2}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top} && \text{(}\href{linear-algebra-matrices.qmd#def-matrix-transpose}{\text{Definition~3 in Matrices}}\text{, }\href{linear-algebra-projections.qmd#thm-scalar-matmul}{\text{Theorem~7 in Projections and Linear Systems}}\text{)} \\ &= \mathbf{A}_{22} - \tfrac{1}{a_{11}}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top}. && \text{(} \ell_{11}^2 = a_{11} \text{)} \end{aligned} \]
Here \([a_{11}]\) is invertible with inverse \([1 / a_{11}]\), so with \(\mathbf{B} = {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top}\) in Definition 7,
\[ \begin{aligned} {\mathbf{B}}^{\top}\,[a_{11}]^{-1} \mathbf{B} &= \mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}\,\tfrac{1}{a_{11}}\,{\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top} \\ &= \tfrac{1}{a_{11}}\,\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}} {\mathord{\smash[b]{\underset{\raise.3ex\hbox{$\scriptstyle\sim$}}{b}}\vphantom{b}}}^{\top} \end{aligned} \]
(Theorem 7 in Projections and Linear Systems), and the right side is the Schur complement of \([a_{11}]\) in \(\mathbf{A}\). It is positive definite by Theorem 16 (with \(k = 1\); \(\mathbf{A}_{22}\) is symmetric because \(\mathbf{A}\) is). By the induction hypothesis it has exactly one factor \(\mathbf{L}_{22}\) of the required kind. So \(\mathbf{L}\) exists and is unique.
Example 25 (Two Cholesky factors)
\(\mathbf{A} = \begin{bmatrix} 4 & 2 \\ 2 & 5 \end{bmatrix}\):
\[ \begin{aligned} \ell_{11} &= \sqrt{4} \\ &= 2, \end{aligned} \]
\[ \begin{aligned} \ell_{21} &= 2/2 \\ &= 1, \end{aligned} \]
and
\[ \begin{aligned} \ell_{22}^2 &= 5 - 1^2 \\ &= 4, \end{aligned} \]
so \(\ell_{22} = 2\): \(\mathbf{L} = \begin{bmatrix} 2 & 0 \\ 1 & 2 \end{bmatrix}\), and
\[ \begin{aligned} \mathbf{L} {\mathbf{L}}^{\top} &= \begin{bmatrix} 2 \cdot 2 & 2 \cdot 1 \\ 1 \cdot 2 & 1 \cdot 1 + 2 \cdot 2 \end{bmatrix} \\ &= \mathbf{A}. \end{aligned} \]
\(\begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}\): \(\ell_{11} = \sqrt{5}\), \(\ell_{21} = 4/\sqrt{5}\), and
\[ \begin{aligned} \ell_{22}^2 &= 5 - \tfrac{16}{5} \\ &= \tfrac{9}{5}, \end{aligned} \]
the Schur complement of Example 23, so \(\ell_{22} = \tfrac{3}{\sqrt{5}}\).
For \(\mathbf{D} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\) the method breaks down:
\[ \begin{aligned} \ell_{22}^2 &= 1 - 4 \\ &= -3 \end{aligned} \]
has no real solution, matching the failure of the Schur complement test (Example 24).