Orthogonal Projections & the Orthogonal Complement
Every vector splits uniquely as : a part lying in a subspace and a part orthogonal to it. This lesson builds that decomposition from an orthonormal basis, turns it into the symmetric projection matrix , measures the distance from to as , and relates the orthogonal complement to through and .
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Let be the plane spanned by the orthogonal vectors and . Compute for .
With the same plane and , find the distance from to , i.e. . Give the answer to 3 decimals.
What you’ll be able to do
- State Definition 8.8 of the orthogonal complement , and use Lemma 8.3 to test membership by checking orthogonality against a basis of .
- Use Theorem 8.6 to split any uniquely as with and , and explain why the projection is unique.
- Compute from an orthonormal or orthogonal basis (Remark 8.5), and assemble the symmetric projection matrix (Theorem 8.8).
- Apply Theorem 8.7, , and compute the distance from a vector to a subspace as .
- Use the structure of -- and (Theorem 8.9) -- together with (Theorem 8.10) and invertible (Corollary 8.1).
In your course
· MATH2015 · Linear Algebra & Probability- Definition 8.8Orthogonal to a subspace; orthogonal complementis orthogonal to if for all ; then is the orthogonal complement.
- Lemma 8.2The orthogonal complement is a subspaceis itself a vector subspace of .
- Lemma 8.3Orthogonality tested on a basisGiven a basis of , iff for .
- Theorem 8.6Orthogonal projection (existence and uniqueness)Every is uniquely with and ; the map is linear.
- Remark 8.5Projection via an orthonormal/orthogonal basisfor an orthonormal basis, or for an orthogonal basis.
- Theorem 8.7Norm inequality for the projection, with equality iff .
- Theorem 8.8Matrix of an orthogonal projectionFor an orthonormal basis , is the symmetric projection matrix; for general independent columns it is .
- Theorem 8.9Properties of the orthogonal complement, , and .
- Theorem 8.10Orthogonal complement of an imageFor any matrix , .
- Theorem 8.11Projection onto a column space (general basis)If the columns of are linearly independent, the projection onto is , obtained from the normal equations .
- Corollary 8.1 is invertible for independent columnsIf (the columns of are linearly independent), then is invertible.
- Example 8.6Projection onto a plane inFor and , and .
The orthogonal complement $V^{\perp}$
A vector is orthogonal to a subspace when it is perpendicular to every vector of , i.e. for all (Definition 8.8). Collecting all such vectors gives the orthogonal complement which is itself a subspace (Lemma 8.2). Checking orthogonality against infinitely many sounds hopeless, but Lemma 8.3 rescues us: iff for each vector of a basis of , because any then gives by linearity. So a membership test in is just finitely many dot products.
The orthogonal projection: a unique splitting
Theorem 8.6 is the heart of the section: for any subspace , every decomposes uniquely as The in-subspace part is the orthogonal projection , and the leftover is the residual. To compute it, take a basis of and demand that be orthogonal to each basis vector; this pins the coefficients down exactly. With an orthonormal basis the answer is clean (Remark 8.5): and for a merely orthogonal basis each term is divided by : . The map is linear.
The projection matrix $P$
Because is linear, it is multiplication by a matrix. Writing each term of the orthonormal formula as and summing gives Theorem 8.8: with (orthonormal columns), The matrix is symmetric () and idempotent () -- projecting twice does nothing new, since the first projection already lands in . If your basis is linearly independent but not orthonormal, assemble it as the columns of and use the general formula which is well defined because makes invertible (Corollary 8.1). When the columns happen to be orthonormal, and this collapses back to . In practice one solves the normal equations for the coordinates and sets .
Closest point, distance, and $\operatorname{im}/\ker$
The projection is the closest point of to : since is orthogonal to , Pythagoras gives , so with equality iff (Theorem 8.7), and the distance from to is . Structurally, and are complementary partners (Theorem 8.9): , , and -- all immediate once you note , and apply rank--nullity. Finally, orthogonal complements connect to linear maps through Theorem 8.10: since being perpendicular to every column of is exactly the condition . This is the backbone of least squares: the residual of the best approximation lies in .
Let be a subspace of . Every can be written uniquely as with and . The component is the orthogonal projection of onto , written , and the map is linear.
Let be an orthonormal basis of and . Then for the symmetric matrix . For any basis assembled as the columns of a matrix (linearly independent, not necessarily orthonormal), the same projection matrix is ; when the columns are orthonormal and this reduces to .
For a subspace : (1) is a subspace; (2) ; (3) ; (4) .
For any matrix , . Equivalently, a vector is orthogonal to the column space of exactly when it is annihilated by .
Worked examples
Let be a line in . For , find , the residual , and the distance from to .
- 1
For a line , Remark 8.5 gives .
- 2
Compute the pieces: and .
- 3
So .
- 4
Residual: . Check it is orthogonal to : .
- 5
Distance to : .
(Example 8.6) Let be the plane spanned by the orthogonal vectors and . Project onto , and write down the projection matrix .
Build the projection matrix onto the line in using , verify and , and use it to project .