9.4 Inner Product Spaces, Gram-Schmidt, and the Spectral Theorem
Key Takeaways
- Inner products define geometry via the Cauchy-Schwarz inequality |<u, v>| <= ||u|| ||v||, inducing norms, angles, and orthogonal projections.
- The Gram-Schmidt process algorithmically constructs an orthonormal basis from any linearly independent set, underlying the matrix QR factorization where Q is orthogonal and R is upper triangular.
- The Spectral Theorem establishes that every real symmetric matrix (and complex Hermitian matrix) possesses exclusively real eigenvalues and admits an orthonormal basis of eigenvectors, making it orthogonally diagonalizable as A = Q Lambda Q^T.
- A symmetric matrix is positive definite if and only if all its eigenvalues are strictly positive, or equivalently by Sylvester's Criterion, all leading principal minors are strictly positive.
9.4 Inner Product Spaces, Gram-Schmidt, and the Spectral Theorem
Inner product spaces enrich vector spaces with metric concepts including lengths, angles, and orthogonality. On the GRE Mathematics Subject Test, questions test the Cauchy-Schwarz inequality, Gram-Schmidt orthogonalization, QR factorization, the Spectral Theorem for symmetric and Hermitian matrices, and Sylvester's criterion for quadratic form definiteness.
Inner Products, Norms, and Geometric Inequalities
An inner product on a real vector space $V$ is a map $\langle \cdot, \cdot \rangle: V \times V \to \mathbb{R}$ satisfying:
- Symmetry: $\langle \mathbf{u}, \mathbf{v} \rangle = \langle \mathbf{v}, \mathbf{u} \rangle$.
- Bilinearity: $\langle c\mathbf{u}_1 + d\mathbf{u}_2, \mathbf{v} \rangle = c\langle \mathbf{u}_1, \mathbf{v} \rangle + d\langle \mathbf{u}_2, \mathbf{v} \rangle$.
- Positive Definiteness: $\langle \mathbf{v}, \mathbf{v} \rangle \ge 0$, with $\langle \mathbf{v}, \mathbf{v} \rangle = 0 \iff \mathbf{v} = \mathbf{0}$.
For a complex vector space, symmetry is replaced by conjugate symmetry $\langle \mathbf{u}, \mathbf{v} \rangle = \overline{\langle \mathbf{v}, \mathbf{u} \rangle}$, making the inner product sesquilinear.
The Induced Norm and Inequalities
The inner product induces the Euclidean norm $|\mathbf{v}| = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle}$. Foundational inequalities include:
- Cauchy-Schwarz Inequality: with equality if and only if $\mathbf{u}$ and $\mathbf{v}$ are linearly dependent.
- Triangle Inequality: $|\mathbf{u} + \mathbf{v}| \le |\mathbf{u}| + |\mathbf{v}|$.
- Parallelogram Identity: $|\mathbf{u} + \mathbf{v}|^2 + |\mathbf{u} - \mathbf{v}|^2 = 2|\mathbf{u}|^2 + 2|\mathbf{v}|^2$.
- Pythagorean Theorem: If $\langle \mathbf{u}, \mathbf{v} \rangle = 0$, then $|\mathbf{u} + \mathbf{v}|^2 = |\mathbf{u}|^2 + |\mathbf{v}|^2$.
The Gram-Schmidt Process and QR Factorization
Given a linearly independent set ${\mathbf{v}_1, \dots, \mathbf{v}_k}$, the Gram-Schmidt process generates an orthogonal set ${\mathbf{u}_1, \dots, \mathbf{u}_k}$ spanning the same subspace: Normalizing each vector $\mathbf{e}_i = \mathbf{u}_i / |\mathbf{u}_i|$ produces an orthonormal basis ($\langle \mathbf{e}_i, \mathbf{e}j \rangle = \delta{ij}$).
QR Factorization
Every $m \times n$ matrix $A$ with linearly independent columns admits a $QR$ factorization: where $Q \in M_{m \times n}(\mathbb{R})$ has orthonormal columns ($Q^T Q = I_n$), and $R \in M_{n \times n}(\mathbb{R})$ is an upper triangular matrix with strictly positive diagonal entries $r_{ii} = |\mathbf{u}_i| > 0$.
Orthogonal Projections and Subspaces
Let $W \subset V$ be a finite-dimensional subspace with orthonormal basis ${\mathbf{e}_1, \dots, \mathbf{e}_k}$.
- The orthogonal projection of $\mathbf{v} \in V$ onto $W$ is:
- The vector $\mathbf{v} - P_W(\mathbf{v})$ lies in the orthogonal complement $W^\perp = {\mathbf{x} \in V : \langle \mathbf{x}, \mathbf{w} \rangle = 0, ; \forall \mathbf{w} \in W}$.
- Best Approximation Theorem: $P_W(\mathbf{v})$ is the unique vector in $W$ minimizing the distance to $\mathbf{v}$:
Symmetric and Hermitian Matrices & The Spectral Theorem
A real matrix $A$ is symmetric if $A = A^T$. A complex matrix $A$ is Hermitian if $A = A^* = \overline{A}^T$.
Fundamental Properties of Symmetric/Hermitian Operators
- Real Spectra: Every eigenvalue of a real symmetric or complex Hermitian matrix is strictly real. Proof: If $A\mathbf{v} = \lambda \mathbf{v}$ with $\mathbf{v} \neq \mathbf{0}$, then $\lambda |\mathbf{v}|^2 = \mathbf{v}^* A \mathbf{v} = (A\mathbf{v})^* \mathbf{v} = \overline{\lambda} |\mathbf{v}|^2 \implies \lambda = \overline{\lambda} \in \mathbb{R}$.
- Orthogonal Eigenspaces: Eigenvectors corresponding to distinct eigenvalues are mutually orthogonal. Proof: If $A\mathbf{v}_1 = \lambda_1 \mathbf{v}_1$ and $A\mathbf{v}_2 = \lambda_2 \mathbf{v}_2$ with $\lambda_1 \neq \lambda_2$, then $\lambda_1 \langle \mathbf{v}_1, \mathbf{v}_2 \rangle = \langle A\mathbf{v}_1, \mathbf{v}_2 \rangle = \langle \mathbf{v}_1, A\mathbf{v}_2 \rangle = \lambda_2 \langle \mathbf{v}_1, \mathbf{v}_2 \rangle$. Because $\lambda_1 \neq \lambda_2$, we must have $\langle \mathbf{v}_1, \mathbf{v}_2 \rangle = 0$.
The Spectral Theorem
Let $A \in M_{n \times n}(\mathbb{R})$ be a real symmetric matrix. Then:
- $A$ has $n$ real eigenvalues (counted with algebraic multiplicity).
- There exists an orthonormal basis of $\mathbb{R}^n$ consisting of eigenvectors of $A$.
- $A$ is orthogonally diagonalizable: where $Q$ is an orthogonal matrix ($Q^{-1} = Q^T$) and $\Lambda = \operatorname{diag}(\lambda_1, \dots, \lambda_n)$.
In terms of rank-1 projection matrices, $A = \sum_{i=1}^n \lambda_i \mathbf{q}_i \mathbf{q}_i^T$.
Quadratic Forms and Definiteness
A quadratic form on $\mathbb{R}^n$ is a polynomial $q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}$, where $A$ is a real symmetric matrix.
Classification by Eigenvalues
Because $A = Q \Lambda Q^T$, setting $\mathbf{y} = Q^T \mathbf{x}$ transforms the form into a sum of squares:
| Definiteness Class | Geometric / Value Condition | Eigenvalue Criterion | Sylvester's Minor Criterion |
|---|---|---|---|
| Positive Definite | $q(\mathbf{x}) > 0$ for all $\mathbf{x} \neq \mathbf{0}$ | All $\lambda_i > 0$ | All leading principal minors $\Delta_k > 0$ |
| Negative Definite | $q(\mathbf{x}) < 0$ for all $\mathbf{x} \neq \mathbf{0}$ | All $\lambda_i < 0$ | Alternating: $(-1)^k \Delta_k > 0$ ($\Delta_1 < 0, \Delta_2 > 0, \dots$) |
| Positive Semidefinite | $q(\mathbf{x}) \ge 0$ for all $\mathbf{x}$ | All $\lambda_i \ge 0$ | All principal minors $\ge 0$ (leading alone is insufficient) |
| Negative Semidefinite | $q(\mathbf{x}) \le 0$ for all $\mathbf{x}$ | All $\lambda_i \le 0$ | Principal minors alternate $\le 0$ and $\ge 0$ |
| Indefinite | Takes both positive and negative values | Both $\lambda > 0$ and $\lambda < 0$ | Fails above tests; e.g. $\Delta_n < 0$ for even $n$ |
Step-by-Step Worked Problems
Problem 1: Gram-Schmidt and QR Factorization
Apply Gram-Schmidt to orthogonalize $\mathbf{v}_1 = (1, 1, 0)^T$ and $\mathbf{v}_2 = (1, 0, 2)^T$.
Solution:
- First vector:
- Second vector projection:
- Norm of $\mathbf{u}_2$:
- Orthonormal basis vectors:
Problem 2: Definiteness via Sylvester's Criterion
Classify the quadratic form $q(x_1, x_2, x_3) = 2x_1^2 + 2x_2^2 + 2x_3^2 - 2x_1 x_2 - 2x_2 x_3$.
Solution:
- Construct the associated symmetric matrix $A$:
- Compute leading principal minors:
- $\Delta_1 = \det(2) = 2 > 0$.
- $\Delta_2 = \det \begin{pmatrix} 2 & -1 \ -1 & 2 \end{pmatrix} = 4 - 1 = 3 > 0$.
- $\Delta_3 = \det(A) = 2(4 - 1) - (-1)(-2 - 0) + 0 = 2(3) - 2 = 6 - 2 = 4 > 0$.
- Because all leading principal minors are strictly positive ($\Delta_1 = 2 > 0, \Delta_2 = 3 > 0, \Delta_3 = 4 > 0$), Sylvester's Criterion confirms that $A$ is positive definite.
GRE Exam Traps & Pitfalls
Trap 1: Misapplying Sylvester's Criterion to Semidefinite Forms Leading principal minors $\Delta_k \ge 0$ do NOT guarantee positive semidefiniteness! Consider $A = \begin{pmatrix} 0 & 0 \ 0 & -1 \end{pmatrix}$. Here $\Delta_1 = 0$ and $\Delta_2 = 0 \ge 0$, yet $A$ has eigenvalue $-1$ and is indefinite. To test semidefiniteness, you must check all principal minors or compute the eigenvalues directly.
Trap 2: Normalization Omission in Gram-Schmidt Projections Forgetting to divide by $|\mathbf{u}_j|^2$ when calculating $\frac{\langle \mathbf{v}, \mathbf{u}_j \rangle}{|\mathbf{u}_j|^2} \mathbf{u}_j$ distorts the orthogonal basis and destroys orthogonality.
Trap 3: Overlooking Complex Conjugation in Hermitian Matrices For complex vectors, $\langle \mathbf{u}, \mathbf{v} \rangle = \sum u_i \overline{v_i}$. Forgetting conjugation in $\mathbf{v}^* A \mathbf{v}$ leads to incorrect, non-real expressions.
Consider the quadratic form Q(x_1, x_2, x_3) = 2x_1^2 + x_2^2 + 3x_3^2 - 2x_1 x_2. What is the definiteness classification of Q?
Let W be the subspace of R^3 spanned by w_1 = (1, 0, 1)^T and w_2 = (1, 1, 0)^T. What is the orthogonal projection of v = (1, 2, 3)^T onto W?
Let A be a 4 x 4 real symmetric matrix with characteristic polynomial p_A(lambda) = lambda^4 - 5lambda^2 + 4. Which of the following statements must be true?