Level 1D: Inner Products, Orthogonality, and the Spectral Theorem
The Defect. Orthogonality arrives in linear algebra courses as a row operation (make the columns agree to zero) or as a picture of perpendicular arrows. Both miss the point. The inner product is a measurement structure added to a vector space: it defines length, angle, distance, and perpendicularity from a single bilinear function. Once it exists, it picks out the maps that respect the measurement (self-adjoint ones), and the spectral theorem says those maps are exactly the ones diagonalisable in the most rigid way possible: by an orthonormal basis. This page proves all of it, ending at the theorem that powers principal component analysis, quantum mechanics, and every least-squares fit ever computed.
The One-Line Reveal. An inner product is one bilinear function from which length, angle, and distance are derived; the spectral theorem says the maps that respect this measurement can be completely understood by eigenvalues, provided the field is honest about complex numbers.
Scope. From Level 1B: bases, basis extension, rank-nullity. From Level 1C: eigenvalues, the characteristic polynomial, triangularisation, and the declared fundamental theorem of algebra, which this page re-uses exactly once (to know that the complexified characteristic polynomial splits). The page works over as the primary field; the complex Hermitian variant is flagged wherever it differs. No other inputs are declared: Cauchy-Schwarz, Gram-Schmidt, and the spectral theorem are all proved here.
1. Inner Products and Norms
Section titled “1. Inner Products and Norms”Definition. An inner product on a real vector space is a function that is
- bilinear: linear in each argument separately;
- symmetric: ;
- positive definite: , with equality only for .
A vector space with an inner product is an inner product space.
Example (the model). On with the standard basis, . Bilinearity is bilinearity of the coordinate functions (3A’s Proposition 1.2 logic), symmetry is commutativity of addition, and positive definiteness holds because with equality iff every .
Definition. The norm of is . Vectors are orthogonal, written , when .
Lemma 1.1 (polarisation). In a real inner product space,
Proof. Bilinearity expands ; the symmetry of the inner product makes the cross terms agree.
So the inner product is recoverable from the norm: length determines angle. This is why “geometry from one bilinear function” is literal.
Theorem 1.2 (Cauchy-Schwarz). For all : , with equality iff and are dependent.
Proof. If , both sides are zero and the dependent case holds. Let and consider, for each real , the nonnegative number
(bilinearity plus Lemma 1.1’s expansion). The right side is a quadratic polynomial in with nonnegative value at every real , so its discriminant cannot be positive:
Equality in the quadratic argument means the polynomial attains zero, i.e. for its root : dependence. Conversely, dependent vectors attain equality: for both sides equal .
Theorem 1.3 (triangle inequality). , with equality iff one vector is a nonnegative multiple of the other.
Proof. Square the claim and expand by bilinearity:
where the middle step is Cauchy-Schwarz plus symmetry (). Taking square roots (all quantities nonnegative) gives the inequality. Equality forces , the equality case of Cauchy-Schwarz with a nonnegative sign: dependence with a nonnegative multiple.
So behaves as a distance, satisfying the triangle inequality: inner product spaces are metric spaces (the Level 2 axioms), and the geometry is honest.
Quick check.
- State the three defining properties of an inner product.
- Why is ?
- State Cauchy-Schwarz and its equality case.
- Which polynomial does the Cauchy-Schwarz proof analyse?
- What does polarisation recover from the norm?
Answers: 1. Bilinearity, symmetry, positive definiteness. 2. Bilinearity: , and the norm is the nonnegative square root. 3. , with equality iff are dependent. 4. as a quadratic in ; nonnegativity forces a nonpositive discriminant. 5. The inner product: .
2. Orthogonality and Gram-Schmidt
Section titled “2. Orthogonality and Gram-Schmidt”Lemma 2.1 (Pythagoras). If then .
Proof. Expand by bilinearity; the cross term is .
Lemma 2.2 (orthogonal families are independent). A list of nonzero pairwise orthogonal vectors is linearly independent.
Proof. Suppose with the nonzero and pairwise orthogonal. Apply : every term vanishes except , where $\langle v_j, v_j \rangle
0v_j \neq 0c_j \langle v_j, v_j \rangle = 0c_j = 0j\blacksquare$
Theorem 2.3 (Gram-Schmidt). Let be linearly independent vectors of an inner product space. Define inductively
Then are pairwise orthogonal, each , and for every . Normalising yields an orthonormal list (pairwise orthogonal unit vectors) with the same spans.
Proof. Induct on . Assume are pairwise orthogonal, nonzero, and span the same space as . Then
and for the only surviving summand is , whose coefficient cancels the first term exactly: . So is orthogonal to all earlier . Also : otherwise would lie in , contradicting the independence of the -list. The span identity holds because each () is, by its own defining induction, a combination of ‘s of index at most , and conversely is a combination of ‘s of index at most (solve the definition for ). Normalisation preserves orthogonality and nonzero spans.
Corollary 2.4. Every finite-dimensional inner product space has an orthonormal basis, and so does every subspace of one.
Proof. Take any basis (they exist: 1B, Theorem 1.2 for the spanned space), run Gram-Schmidt, and normalise: an orthonormal basis. For a subspace : it is finitely spanned (1B, Theorem 1.6), so it has a basis by 1B, Theorem 1.2; Gram-Schmidt inside (the inner product restricts).
Theorem 2.5 (coordinate formula). If is an orthonormal basis, every satisfies .
Proof. Both sides equal… write by the basis property; applying gives by orthonormality. Substituting into the expansion is the claim.
This is Parseval’s identity’s engine: in an orthonormal basis, coordinates are inner products. Measurement replaces bookkeeping.
Quick check.
- State Pythagoras and where its proof uses orthogonality.
- Why is a pairwise orthogonal family of nonzero vectors automatically independent?
- What does Gram-Schmidt take in and produce?
- Why is each in the construction nonzero?
- In an orthonormal basis, what are the coordinates of ?
Answers: 1. ; the cross term is the inner product, which is zero. 2. Testing against kills every other coefficient by orthogonality and the last by positive definiteness (Lemma 2.2). 3. An independent list in; an orthonormal list out, with the same successive spans. 4. Otherwise would lie in the previous span, contradicting independence. 5. The inner products (Theorem 2.5).
3. Orthogonal Complements and Projection
Section titled “3. Orthogonal Complements and Projection”Definition. For a subspace , the orthogonal complement is , a subspace (linearity in the first argument).
Theorem 3.1 (orthogonal decomposition). : every decomposes uniquely as with and .
Proof. Take an orthonormal basis of (Corollary 2.4), define and $w’ := v
- ww \in We_jW\langle w’, e_j \rangle = \langle v, e_j \rangle - \langle w, e_j \rangle = \langle v, e_j \rangle - \langle v, e_j \rangle = 0we_jje_jWw’ \in W^\perpv = w_1 + w_1’ = w_2 + w_2’w_1 - w_2 = w_2’ - w_1’WW^\perp|w_1 - w_2|^2 = 0w_1 = w_2w_1’ = w_2’\blacksquare$
Definition. The map , (the -component of Theorem 3.1’s decomposition) is the orthogonal projection onto .
Theorem 3.2 (best approximation). For every and every : , with equality iff . The projection is linear.
Proof. Write ; the first summand lies in , the second in . Pythagoras (Lemma 2.1) gives
with equality iff . Linearity: the decomposition of $\alpha v_1
- \beta v_2\blacksquare$
This theorem is why orthonormality matters beyond geometry: expanding a signal in an orthonormal basis is best approximation, and the error is exactly the part the basis cannot see.
Quick check.
- Define and say why it is a subspace.
- State the orthogonal decomposition theorem.
- What is the orthogonal projection ?
- Which lemma does the best-approximation inequality use, and where?
- When does for ?
Answers: 1. The vectors orthogonal to every element of ; it is a kernel-like subspace by linearity. 2. , unique decomposition (Theorem 3.1). 3. The unique -component of . 4. Pythagoras (Lemma 2.1) on the split . 5. Exactly when (the second Pythagoras summand vanishes).
4. Adjoints
Section titled “4. Adjoints”Definition. For a linear map , the adjoint is a map with for all . is self-adjoint (or symmetric) when .
Theorem 4.1 (the adjoint exists, is unique, is linear). In a finite-dimensional inner product space, every linear has exactly one adjoint, and it is linear. In an orthonormal basis, the matrix of is the transpose of the matrix of .
Proof. Let be an orthonormal basis and let be the matrix of . First note that orthonormality converts the inner product into a dot product of coordinates: for and , bilinearity gives (the Kronecker deltas of orthonormality). Define to be the linear map whose matrix is (the transpose, defined entrywise). Then , while : equal. So this is an adjoint. For uniqueness: if and are both adjoints, then for all : ; taking gives , so . Linearity of follows from the defining identity by applying it to combinations, or directly from the transpose’s linearity.
Proposition 4.2 (matrix characterisation). is self-adjoint iff its matrix in every orthonormal basis is symmetric (); in a non-orthonormal basis this characterisation can fail, which is why the definition is via the inner product.
Proof. In an orthonormal basis, translates to by Theorem 4.1’s computation. Conversely a symmetric matrix gives a self-adjoint map by the same computation in reverse.
Quick check.
- Define the adjoint of .
- What is the matrix of in an orthonormal basis?
- Define self-adjoint.
- Why must an adjoint be unique? (Which norm argument?)
- Does “symmetric matrix” depend on the basis?
Answers: 1. The unique linear with for all . 2. The transpose of ‘s matrix (Theorem 4.1). 3. . 4. If two adjoints differed, their difference applied to some would be a nonzero vector orthogonal to every vector, including itself: norm zero, contradiction. 5. Not in arbitrary bases; only in orthonormal ones (Proposition 4.2).
5. The Spectral Theorem
Section titled “5. The Spectral Theorem”Lemma 5.1 (self-adjoint eigenvalues are real; invariant complements). Let be self-adjoint. (i) Every complex eigenvalue of the complexified is real. (ii) Eigenspaces of distinct eigenvalues are orthogonal, and is -invariant for every eigenvalue .
Proof. (ii) first, over the real field: if and with , then , so and . For the invariance of : take and ; then . Since this holds for every , it holds for every vector of their span, which is : so .
(i) requires the complexification, defined without tensor products: set (formal pairs), with complex-scalar multiplication and the Hermitian form , which is linear in the first argument and conjugate-linear in the second. Extend by $T_\mathbb{C}(u
- i v) := T u + i, T vT_\mathbb{C} v = \lambda vv \neq 0$, then
the last step being conjugate-linearity in the second slot, and (it is ). So : real.
Theorem 5.2 (the real spectral theorem). Let be self-adjoint on a finite-dimensional real inner product space. Then has an orthonormal basis of eigenvectors of , and the matrix of in that basis is diagonal with real entries.
Proof. Induct on . Consider the complexification with the extended map (still self-adjoint for the Hermitian extension). Its characteristic polynomial splits by the fundamental theorem of algebra (the declared input, as in 1C), so has an eigenvector with eigenvalue ; Lemma 5.1(i) shows . Then with real means the real and imaginary parts of are eigenvectors of the real (real eigenvalue, real matrix action), and at least one of them is nonzero: the real has a real eigenvector with . Normalise it to a unit vector . The line is -invariant, so induces on (Lemma 5.1(ii)‘s computation shows is -invariant: for , , and by Theorem 3.1’s decomposition). The restriction is again self-adjoint (the adjoint of a restriction to an invariant complement is the restriction of the adjoint: the defining identity restricted to ). By the induction hypothesis, has an orthonormal eigenbasis of ; prefixing gives an orthonormal list of eigenvectors of , which are independent (Lemma 2.2) and span (count and rank-nullity): an orthonormal eigenbasis. In it, ‘s matrix is diagonal with the real eigenvalues.
Corollary 5.3. A real symmetric matrix can be written with orthogonal () and diagonal real: the principal axis decomposition. In particular is diagonalisable, all eigenvalues are real, and is the product of the eigenvalues.
Proof. is the matrix of a self-adjoint endomorphism on with the dot product (Proposition 4.2). The spectral theorem gives an orthonormal eigenbasis; the matrix with those eigenvectors as columns is orthogonal (: orthonormal columns) and , so .
Quick check.
- Why are a self-adjoint map’s eigenvalues real?
- State the Hermitian symmetry used in that proof.
- Why is invariant under a self-adjoint ?
- What does the complexification buy in the spectral proof?
- Write the principal axis decomposition of a symmetric matrix.
Answers: 1. in the complexification, so equals its conjugate (Lemma 5.1). 2. . 3. for , . 4. It makes the characteristic polynomial split (via the declared fundamental theorem of algebra) while Lemma 5.1 pulls the eigenvalues back to the reals. 5. with orthogonal, real diagonal (Corollary 5.3).
6. Problems
Section titled “6. Problems”Problems. The quick checks above tested recall. These chain several results and require full written arguments.
- Prove the parallelogram law: , and conclude that not every norm on comes from an inner product (exhibit a norm violating it, e.g. the maximum norm). (Expand both squares by bilinearity; the cross terms cancel in the sum. For the converse failure: the maximum norm’s unit ball has corners, and the parallelogram law fails on , .)
- Prove that a vector orthogonal to a spanning list is zero. (Linearity of the inner product in the first argument.)
- Prove that in two ways: from the orthogonal decomposition (Theorem 3.1) and from rank-nullity applied to .
- Prove that for subspaces of a finite-dimensional inner product space. (The decomposition theorem applied twice; by symmetry of the real inner product, and dimensions match.)
- Prove that the orthogonal projection is self-adjoint and satisfies . (Compute via the orthonormal basis formula, Theorem 2.5; and is the -component of a vector already in .)
- Prove that two self-adjoint maps commute iff their product is self-adjoint. (, proved from the defining identity twice; so iff .)
- Harder: prove that every subspace’s orthogonal projection minimises distance simultaneously for all : the map on is a convex quadratic with unique minimiser . (Write with ; expand by Pythagoras; the square of is the only variable term.)
The One-Line Reveal (for this page)
Section titled “The One-Line Reveal (for this page)”The entire page follows from one function: the inner product defines length (polarisation in reverse defines it back), orthogonality (its vanishing), and thereby the decomposition that turns every subspace into coordinates. Adjoints are what the measurement does to maps; self-adjoint maps are the ones the measurement cannot confuse; and the spectral theorem is the induction that says their eigenspaces tile the space orthogonally.
Where to go next
Section titled “Where to go next”- Level 1E: Canonical Forms – what remains when the map is not diagonalisable: Jordan form, rational canonical form, and the structure theorem. Under construction; the link lands here when it ships.
- Level 1C: Eigenvectors – the eigenvalue machinery this page upgrades to orthonormal bases.
- Linear Algebra Done Wrong – Treil’s chapters on inner product spaces and spectral theory.