Orthogonal Projections
Given a point off to the side of a wall, what is the closest point on the wall to it? This concrete question of shadows and closest approximations is answered algebraically by the orthogonal projection operator. In any inner product space equipped with a subspace, every vector splits uniquely into a piece lying in that subspace and a piece perpendicular to it. The projection operator extracts the first piece. This single idea powers an enormous amount of applied and pure mathematics: it is the mechanism behind least squares regression, Fourier series, Gram-Schmidt orthogonalization, and the spectral theorem. The reason orthogonal projections deserve their own careful treatment, rather than being folded into general linear operators, is that they carry exactly two algebraic fingerprints. These are idempotence (, applying the shadow-casting twice does nothing new) and self-adjointness (, the operator is symmetric with respect to the inner product). These two properties characterize orthogonal projections completely. They turn a geometric description ("drop a perpendicular") into a clean algebraic test. This test can be checked on any matrix. This article builds the projection operator from the ground up using the Orthogonal Complements decomposition . It derives its explicit formula from an orthonormal basis of via Bessel and Parseval Identities. It then proves the idempotent-self-adjoint characterization as the central theorem. Along the way we verify every claim with explicit computation. This way, the formula is never a mystery. Instead, it is a fully justified consequence of orthogonal decomposition. By the end, the reader will be equipped for the next natural questions. These include why is the closest point in to (foreshadowing the Minimum Distance Property). They also include how this closest-point idea becomes the engine of least squares approximation in data fitting.
- Every finite-dimensional subspace of an inner product space gives an orthogonal decomposition .
- The orthogonal projection sends (with , ) to .
- If is an orthonormal basis of , then .
- is linear, idempotent (), and self-adjoint ().
- Conversely, any linear operator that is idempotent and self-adjoint is the orthogonal projection onto its range.
- Key idea: orthogonal projection is the unique linear operator that reproduces vectors already in and annihilates everything orthogonal to .
Where this lives today
Orthogonal projections are the computational core of least squares regression in statistics and machine learning: fitting a line or hyperplane to noisy data amounts to projecting the observation vector onto the column space of the design matrix, foreshadowing the least squares approximation techniques built directly on this article's theorem. In numerical linear algebra, the QR decomposition and the Gram–Schmidt process are literally iterated orthogonal projections, subtracting off components along previously found directions; this underlies stable algorithms for solving linear systems and computing eigenvalues. In signal processing and Fourier analysis, truncating a Fourier series to finitely many terms is precisely an orthogonal projection onto the span of finitely many sinusoids, and the error bound from Bessel's inequality quantifies how much signal energy is lost by truncation. In quantum mechanics, orthogonal projections onto eigenspaces of self-adjoint (Hermitian) operators represent the "collapse" of a quantum state upon measurement; the idempotent self-adjoint characterization proved here is exactly the mathematical definition of a quantum-mechanical measurement projector. In computer graphics and robotics, projecting a 3D vector onto a 2D plane (e.g. a screen or a constraint surface) uses the exact matrix formula derived above.
Ask the tutor: Why is always the closest point of to , and how does that fact drive least squares approximation?
Let be an inner product space over , and let be a finite-dimensional subspace. By the orthogonal decomposition theorem for Orthogonal Complements, every can be written uniquely as
The orthogonal projection onto is the map
i.e. is the unique vector in such that .
Intuition
Picture and a plane through the origin. Every vector in space can be split into a part lying flat in the plane and a part sticking straight up out of it, and these two parts are perpendicular to each other. The projection is exactly the "flat" part — the shadow that casts onto the plane when light shines perpendicular to it. This is why the map is called orthogonal: the leftover piece is orthogonal to the entire subspace , not merely to 's boundary or to one chosen vector in it. The formula says something very concrete: to find the shadow of on , pick any orthonormal "grid" for , measure how much of points along each grid direction (that's the inner product , a Fourier coefficient), and reassemble those amounts along the same directions. This is precisely the computation behind Bessel and Parseval Identities: Bessel's inequality says the reassembled piece can never be longer than itself, and here we see why — it is a genuine geometric projection, a shortening (or equal-length) operation, never a stretching one.
Let be an inner product space over and let be a finite-dimensional subspace with orthonormal basis .
(1) (Existence and formula.) The orthogonal projection of Definition exists, is well-defined, is linear, and satisfies
(2) (Basic algebraic properties.) satisfies: (a) and ; (b) (idempotence); (c) (self-adjointness), provided is finite-dimensional or is otherwise known to have an adjoint; (d) .
(3) (Converse characterization.) Suppose is finite-dimensional. If is a linear operator with and , then where . Thus the idempotent self-adjoint operators on are exactly the orthogonal projections onto subspaces of .
We prove each part in order, using only the orthogonal decomposition (from Orthogonal Complements) and standard inner product axioms. The technique throughout is direct algebraic verification from the defining decomposition, plus a basis computation using orthonormal expansion (as in Bessel and Parseval Identities).
Part (1): Existence, well-definedness, formula, linearity. Existence and uniqueness of the decomposition is exactly the content of the Orthogonal Complements theorem for the finite-dimensional subspace : since is finite-dimensional, , meaning every has a representation with , and this representation is unique because (if then so by positive-definiteness of the inner product). Hence is a well-defined function . Formula. Let be an orthonormal basis of (which exists by Gram-Schmidt, applicable since is finite-dimensional). Define
We check : for each ,
using orthonormality and linearity/conjugate-linearity of the inner product in the appropriate slot. Since is orthogonal to every basis vector of , and every element of is a linear combination of , conjugate-linearity (or linearity, depending on convention) in the second slot gives for all , i.e. . Thus is a decomposition with , . By the uniqueness established above, must equal the unique from the definition of . Hence
Linearity. For and scalars , linearity of the inner product in its first slot gives
So is a linear operator on .
Part (2): Basic properties. (a) Range. By the formula, for every , so . Conversely, if , decompose with , ; by uniqueness of decomposition, . Hence , and so . Kernel. If , then is the decomposition with and , so , i.e. . Conversely, suppose . Writing , and since by construction, we get . Hence , and so . (b) Idempotence. Let with decomposition , , so . Since , part (a) gives . Therefore
As was arbitrary, . (c) Self-adjointness. Assume is finite-dimensional (so the adjoint is guaranteed to exist as a linear operator satisfying for all ). Take any with decompositions and (; ). Then
since and forces . By the same reasoning applied symmetrically,
Hence for all . By uniqueness of the adjoint operator, . (d) Complement identity. For as above, , and this is by definition (note suffices to check is the -component; more directly, is already the decomposition of relative to restricted appropriately, and one checks directly from the definition that the unique vector in with remainder in orthogonal complement is itself, since ). Concretely: is a valid decomposition of as (element of ) + (element orthogonal to , since and ), so by uniqueness . Hence .
Part (3): Converse characterization. Assume is finite-dimensional and is linear with and . Let ; we show . Step 1: for all . If , then for some , so
Step 2: . First show : let and ; write . Then, using ,
So for every , i.e. . Conversely show : let . Since , we have computed as follows. Using and ,
But and means by definition of orthogonal complement (every vector of is orthogonal to every vector of ). Hence , so by positive-definiteness , i.e. . Combining both inclusions, . Step 3: Conclude . Since is finite-dimensional, is finite-dimensional and by Orthogonal Complements. Take any and write with , . Then by linearity of and Steps 1–2,
where the last equality is the definition of as the -component of in the orthogonal decomposition. Since was arbitrary, . This completes the proof of all three parts.
∎Worked examples
Example 1 (a genuinely 2-dimensional subspace of , asymmetric data). Let with the standard dot product, and let
We compute for . Step 1: Orthonormalize. First, , so . Next, subtract the component of along :
Since , remarkably is already orthogonal to (check directly: , confirmed). So no subtraction is needed:
Now is an orthonormal basis of . Step 2: Compute Fourier coefficients of .
Step 3: Assemble.
Verification of orthogonality of the residual. Let $w = v - P_U(v) = \left(2 - \frac13,\ -1
- 1,\ 3 - \frac23,\ 0 + \frac13\right) = \left(\frac53, -2, \frac73, \frac13\right)$. Check
✓, and ✓. Both dot products vanish, confirming as the theorem guarantees.
Example 2 (projection as a matrix, verifying idempotence and self-adjointness directly). Let and let , a line (1-dimensional subspace). Normalize: , so . The projection formula with a single basis vector gives for all , and in matrix form,
Check self-adjointness (symmetry). The matrix above is visibly symmetric: entry equals entry , entry equals entry , entry equals entry . So , confirming self-adjointness with respect to the standard dot product. Check idempotence directly by matrix multiplication. Compute : since and (as is a unit vector),
As an explicit numerical spot-check, take the entry of :
Sanity check on a specific vector. Let . Then , so ; indeed is orthogonal to the direction (dot product ), so its shadow on the line is the zero vector, exactly as geometric intuition predicts for a vector perpendicular to the line.
The theorem requires to be finite-dimensional (or at least complete, in the infinite- dimensional setting) so that the orthogonal decomposition from Orthogonal Complements is available. If is an infinite-dimensional, non-closed subspace, the projection can fail to exist at all. Let , the space of square-summable real sequences with the standard inner product , and let
the subspace of finitely supported sequences. This is a genuine subspace of , but it is not closed: its closure is all of . Claim: . If is orthogonal to every finitely supported sequence, then in particular is orthogonal to each standard basis vector (which has a in slot and elsewhere), so for every . Hence . Now try to project the sequence (which is genuinely in since ) onto . If a projection existed with , we would need . But has infinitely many nonzero entries, so — contradiction. Hence no decomposition with , exists, and the orthogonal projection is simply undefined on this . The failure traces precisely to the missing hypothesis: is not finite-dimensional (nor closed), so does not exhaust , and collapses to even though . This is exactly why the theorem restricts to finite-dimensional (or, more generally in advanced treatments, to closed subspaces of complete inner product spaces).
Scope, edge cases & common traps
| Situation | What happens | Why |
|---|---|---|
| , the zero operator | Empty orthonormal basis; every decomposes as | |
| , the identity | ; every is already in | |
| infinite-dimensional, non-closed | may not exist for some | Orthogonal decomposition theorem requires completeness/finite dimension; see counterexample |
| infinite-dimensional but finite-dimensional | still exists and formula holds | Only 's finite-dimensionality (for the Gram–Schmidt basis) and are used |
| Non-orthonormal spanning set used in formula | Formula gives wrong answer | The formula requires an orthonormal basis of , not an arbitrary basis |
| Complex inner product space | Everything holds verbatim | Proof only used sesquilinearity/conjugate symmetry axioms, not realness |
The mathematician behind it
Origins · 1 minDavid Hilbert and how this was discovered
Hilbert's investigations into integral equations and infinite systems of linear equations in the early 1900s led him to study spaces of square-summable sequences and functions equipped with an inner product — what we now call Hilbert spaces. The orthogonal projection theorem, in its full generality for closed subspaces of possibly infinite-dimensional complete inner product spaces, is one of the cornerstones of this theory, later formalized rigorously by John von Neumann and others in the 1920s–1930s.
Is the orthogonal projection the same as any old projection (idempotent operator)?
No. Any operator with is called a projection (or idempotent), and it always satisfies , but the complementary subspaces need not be orthogonal. An orthogonal projection additionally requires self-adjointness , which is exactly the extra condition forcing , as proved in the converse direction of the central theorem above. Without self-adjointness, a general idempotent operator is called an "oblique" or "skew" projection, and it can distort lengths and angles in ways that orthogonal projections never do.
Does the projection formula change if the inner product is complex (Hermitian) rather than real?
No, the formula and all proofs go through verbatim, because the proof only used linearity in one slot, conjugate-symmetry , and positive-definiteness — properties shared by real and complex inner products alike. The only notational change is that inner products are no longer symmetric but conjugate-symmetric, so one must be careful about which slot is linear versus conjugate-linear, but no step of the argument requires realness.
Why is always true?
Because decomposes into two orthogonal pieces, the Pythagorean theorem gives , with equality exactly when . This is precisely Bessel's inequality specialized to a finite orthonormal set, confirming that projecting never increases length — a hallmark of genuine "shadow-casting" as opposed to arbitrary idempotent operators.
How do I compute if I only have a non-orthogonal basis for ?
Either Gram–Schmidt the basis first to get an orthonormal one and apply the formula directly, or use the general normal equations formula: if is the matrix whose columns form a (not necessarily orthonormal) basis for , then (real case) or (complex case). This reduces to when the columns are already orthonormal, since then , recovering -type formulas from the worked examples.
What is the relationship between orthogonal projections and the Minimum Distance Property?
The orthogonal projection turns out to be the unique closest point in to , in the sense that for every , with equality only when . This "best approximation" fact is not proved in this article but follows quickly from the Pythagorean decomposition above; it is exactly what makes projections useful for approximation problems, and it is the subject of the Minimum Distance Property.
Can a projection matrix have eigenvalues other than 0 and 1?
No. If for some nonzero , then applying gives , so , forcing since , i.e. . Geometrically, vectors in are fixed () and vectors in are annihilated (); self-adjointness further guarantees these eigenspaces are genuinely orthogonal to each other, matching the spectral theorem for self-adjoint operators.
Why does the theorem state the converse direction only for finite-dimensional ?
The proof of the converse uses that is automatically finite-dimensional (since it's a subspace of the finite-dimensional ) so that is guaranteed by the orthogonal decomposition theorem. In infinite dimensions, one needs to be closed for this decomposition to hold, and an idempotent self-adjoint bounded operator does have closed range, so the converse still holds there with extra topological care — but that refinement belongs to functional analysis rather than this article's scope.