(I) Symmetric Matrices
Definition
A matrix \( A \) is symmetric if \( A^T = A \).
Facts:
- It is necessarily a square matrix.
- Main diagonal entries are arbitrary.
- Other entries occur in pairs on opposite sides of the main diagonal.
Theorem 1
If \( A \) is symmetric, then any two eigenvectors from different eigenspaces are orthogonal.
Proof:
Let \( \vec{v}_1 \) and \( \vec{v}_2 \) be eigenvectors that correspond to distinct eigenvalues \( \lambda_1 \) and \( \lambda_2 \). We want to show \( \vec{v}_1 \cdot \vec{v}_2 = 0 \).
Subtracting the right side gives:
Since \( \lambda_1 \neq \lambda_2 \), it must be that \( \vec{v}_1 \cdot \vec{v}_2 = 0 \).
Compare:
- \( A \): any square matrix \(\implies \vec{v}_1\) and \(\vec{v}_2\) are linearly independent.
- \( A \): symmetric matrix \(\implies \vec{v}_1\) and \(\vec{v}_2\) are orthogonal. (Stronger)
(II) Orthogonal Diagonalization
Recall: \( A \) is diagonalizable if there exists an invertible matrix \( P \) and a diagonal matrix \( D \) such that \( A = PDP^{-1} \).
Definition
An \( n \times n \) matrix \( A \) is said to be orthogonally diagonalizable if there are an orthogonal matrix \( P \) (with \( P^{-1} = P^T \)) and a diagonal matrix \( D \) such that:
(Recall that \( P \) is an orthogonal matrix if it is a square matrix whose column vectors are orthonormal).
Compare:
- \( A \) (\( n \times n \)) \(\xrightarrow{\text{has}}\) \( n \) linearly independent eigenvectors \(\implies\) diagonalizable.
- \( A \) (\( n \times n \)) \(\xrightarrow{\text{has}}\) \( n \) linearly independent orthonormal eigenvectors \(\implies\) orthogonally diagonalizable.
Theorem 2
An \( n \times n \) matrix \( A \) is orthogonally diagonalizable if and only if \( A \) is a symmetric matrix.
Proof of "\(\implies\)":
If \( A \) is orthogonally diagonalizable, then \( A = PDP^T \). Taking the transpose:
Thus, \( A \) is symmetric.
(The "\(\impliedby\)" proof is skipped).
Orthogonally diagonalize matrix \( A \) where \( A = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{bmatrix} \).
Step 1: Find all the eigenvalues.
The eigenvalues are \( \lambda = -1 \) (multiplicity 2) and \( \lambda = 2 \).
Step 2: Find a basis for each eigenspace and then find an orthonormal basis using the Gram-Schmidt process.
For \( \lambda = -1 \):
The dimension of the eigenspace is 2. A basis for the eigenspace of \( -1 \) is:
Notice that \( \vec{v}_1 \cdot \vec{v}_2 \neq 0 \), so they are not orthogonal. We apply Gram-Schmidt:
Normalize these vectors to form an orthonormal basis for \( \lambda = -1 \):
For \( \lambda = 2 \):
\( \vec{v}_3 \) is orthogonal to both \( \vec{v}_1 \) and \( \vec{v}_2 \) by Theorem 1. Normalizing it gives:
Step 3: Write \( A = PDP^T \).
Definition
The set of eigenvalues of a matrix \( A \) is sometimes called the spectrum of \( A \).
Theorem 3 (The Spectral Theorem for Symmetric Matrices)
An \( n \times n \) symmetric matrix \( A \) has the following properties:
- \( A \) has \( n \) real eigenvalues, counting multiplicities (not necessarily distinct).
- The dimension of the eigenspace for each eigenvalue equals the multiplicity of \( \lambda \) as a root of the characteristic equation.
- The eigenspaces are mutually orthogonal, in the sense that eigenvectors corresponding to different eigenvalues are orthogonal.
- \( A \) is orthogonally diagonalizable.
(1) If \( A \) is symmetric, then \( A \) always has \( n \) distinct eigenvalues.
False. They are not necessarily distinct (as seen in Example 1 where \( \lambda = -1 \) had a multiplicity of 2).
(2) If \( A \) is symmetric, then \( A^2 \) is orthogonally diagonalizable.
True. If \( A \) is symmetric, \( A^T = A \). Then \( (A^2)^T = (AA)^T = A^T A^T = A A = A^2 \), so \( A^2 \) is also symmetric. By Theorem 2, \( A^2 \) is orthogonally diagonalizable.
(3) If both \( A \) and \( B \) are orthogonally diagonalizable, then so is \( AB \).
False. If \( A \) and \( B \) are orthogonally diagonalizable, they are symmetric (\( A^T = A \) and \( B^T = B \)). For \( AB \) to be orthogonally diagonalizable, it must be symmetric. But \( (AB)^T = B^T A^T = BA \neq AB \) in general.
Counterexample:
Let \( A = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} \). Both are symmetric.
\( AB = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} = \begin{bmatrix} 1 & -2 \\ 2 & -1 \end{bmatrix} \).
\( AB \) is not symmetric, so it is not orthogonally diagonalizable.
(III) Spectral Decomposition
Suppose \( A = PDP^T \), where the columns of \( P \) are orthonormal eigenvectors \( \vec{u}_1, \dots, \vec{u}_n \) of \( A \) and the corresponding eigenvalues \( \lambda_1, \dots, \lambda_n \) are in the diagonal matrix \( D \).
By the column-row expansion of a product (Theorem 10 in Section 2.4), we get:
This representation of \( A \) is called a spectral decomposition of \( A \) because it breaks up \( A \) into pieces determined by the spectrum of \( A \).
- Each term \( \lambda_j\vec{u}_j\vec{u}_j^T \) is an \( n \times n \) matrix of Rank 1.
- Each column of \( \lambda_j\vec{u}_j\vec{u}_j^T \) is a multiple of \( \vec{u}_j \).
Construct a spectral decomposition of \( A = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{bmatrix} = PDP^T \), where \( P \) and \( D \) are from Example 1.
Solution:
The spectral decomposition is:
Calculating each rank 1 matrix piece:
Adding them together confirms the decomposition of \( A \).