The Minimum Distance Property
Suppose you have a vector in three-dimensional space and a plane through the origin. You want the single point on that plane closest to your vector. Every calculus student learns to guess "drop a perpendicular." But why is that guess correct, and in what sense is it the only correct answer? This article proves, in full generality for any Inner Product Space, that the orthogonal projection of a vector onto a subspace is the unique closest point of that subspace to the vector. This fact — the Minimum Distance Property — is one of the hinges on which a great deal of applied and pure mathematics turns. It converts a geometric question ("which point is nearest?") into an algebraic one ("which point makes the difference vector orthogonal to the subspace?"). Algebraic questions can be computed. The entire theory of least-squares regression, Fourier series truncation, and signal approximation rests on exactly this theorem. The big picture is this: inner product spaces come equipped with a notion of length and angle. Hence they have a notion of distance, via . Given a subspace and a point possibly outside , the "distance from to " is . The theorem asserts this infimum is achieved, achieved at exactly one point. That point is characterized by an orthogonality condition. It is not found by calculus, not by iteration, but by a clean algebraic criterion. This article builds the mental picture with a concrete plane-in- example. It proves the theorem rigorously using the Orthogonal Decomposition already established for Orthogonal Projections. It works two nontrivial numerical examples: one in , one with polynomials. It shows exactly what breaks if orthogonality or completeness is dropped. It closes by pointing toward its most famous application: Least Squares Approximation.
- For a finite-dimensional subspace of an inner product space , every has a unique closest point in .
- That closest point is precisely the orthogonal projection .
- The minimizing property is equivalent to the orthogonality condition .
- The proof uses the Pythagorean theorem — no calculus, no compactness arguments needed once is finite-dimensional.
- Uniqueness fails without the correct inner-product geometry; existence can fail if is not finite-dimensional (or not closed).
- Key idea: minimizing distance to a subspace is the same problem as decomposing a vector into a piece inside the subspace and a piece orthogonal to it.
Where this lives today
The minimum distance property is the theoretical core of Least Squares Approximation: fitting a line, plane, or polynomial to data by minimizing sum-of-squared residuals is exactly finding the orthogonal projection of a data vector onto the column space of a design matrix. In statistics, ordinary least-squares regression coefficients are computed by solving the normal equations, which are nothing but the orthogonality condition written in coordinates. In numerical analysis, truncated Fourier series and truncated orthogonal polynomial expansions (Legendre, Chebyshev) are best -approximations precisely because of this theorem, which is why cutting off a Fourier series at terms gives the provably closest trigonometric polynomial of that degree. In signal processing, projecting a noisy signal onto a subspace spanned by basis signals (denoising, compression, matched filtering) is a direct application. In computer graphics and robotics, projecting a point onto a constraint surface's tangent subspace for collision response uses the same geometry. In quantum mechanics, the "best approximation" of a state vector by a vector in a finite-dimensional subspace of a Hilbert space (e.g., truncating a basis expansion) again invokes this exact projection theorem, extended to the infinite-dimensional, complete setting via Schmidt's and Riesz's completeness arguments.
Ask the tutor: How does the minimum distance property extend to infinite-dimensional Hilbert spaces, and what role does completeness play in guaranteeing existence there?
Let be an inner product space over , and let be a subspace. For , define the distance from to by
A vector is called a best approximation to in (or a closest point) if
that is, if for all . Recall from Orthogonal Projections that when is finite-dimensional, every decomposes uniquely as
where denotes the orthogonal projection of onto , and .
Intuition
Picture with the -plane as . Take a vector sticking up out of the plane. Any point in the plane and determine a right triangle: the leg from to the foot of the perpendicular , the leg from straight up to , and the hypotenuse from to . Since the vertical leg is fixed once is fixed, and the hypotenuse is always at least as long as either leg (Pythagoras), the hypotenuse is minimized exactly when the horizontal leg has length zero — that is, when . This picture is the entire proof in miniature. The inner-product-space version replaces "plane" with any finite-dimensional subspace and "perpendicular" with the abstract orthogonal complement. Nothing about dimension 3, or about , or about the specific inner product matters: the Pythagorean identity for orthogonal vectors is the only tool required. The figure below shows the right-triangle picture together with the algebraic decomposition .
The key algebraic reformulation to keep in mind: showing minimizes over is the same statement as showing . Minimum-distance problems and orthogonality problems are two languages for one idea.
Let be an inner product space over , let be a finite-dimensional subspace of , and let . Let denote the orthogonal projection of onto , so that . Then: 1. (Existence and minimality) For every ,
2. (Uniqueness) If satisfies , then . In particular is the unique closest point of to , so
3. (Converse characterization) Conversely, if satisfies , then , and hence is the unique minimizer described in (1)–(2).
We use the technique of orthogonal decomposition plus the Pythagorean theorem; no compactness or calculus argument is needed because is finite-dimensional, which guarantees (by the theory of Orthogonal Projections) that the decomposition with exists and is unique.
Step 0: the orthogonal decomposition. Since is finite-dimensional, it has an orthonormal basis (Gram–Schmidt), and the orthogonal projection is defined by
Set . A direct computation shows for each (using orthonormality ), and since span , linearity of the inner product in the first slot gives for every . Thus . This is exactly the orthogonal decomposition established in the theory of Orthogonal Projections; we take it as given input to this proof, not something to re-derive.
Step 1: existence and minimality. Let be arbitrary. Write
Since and , the vector lies in (subspaces are closed under subtraction). Since , we have
Two vectors and that are orthogonal satisfy the Pythagorean theorem:
(This is immediate from expanding and using ; over this uses conjugate-symmetry of the inner product, which still forces both cross terms to vanish when .) Since , this identity gives
and taking square roots (both sides nonnegative) yields
Since was arbitrary, achieves the infimum defining , proving (1) and showing the infimum is in fact a minimum: .
Step 2: uniqueness. Suppose satisfies . Reusing the identity from Step 1,
and substituting gives
Since is a norm coming from an inner product, implies (positive-definiteness of the inner product). Hence , i.e. . This proves (2): the minimizer is unique and equals .
Step 3: converse characterization. Suppose satisfies . We must show . Consider
Both and lie in (the former by hypothesis, the latter by Step 0), and is itself a subspace of (it is the kernel of the linear map , hence a subspace), so . But also , since both and lie in . Therefore
We claim : if then because pairs to zero against every element of , including itself (as ); positive-definiteness then forces . Hence , i.e. . Combined with Steps 1–2, is the unique minimizer of over .
∎Worked examples
Example 1 (a line inside , asymmetric numbers). Let with the standard dot product, let
and let , a one-dimensional subspace (a line through the origin). Take the target vector
We want the closest point of to , and the distance from to . Step 1: normalize. Compute . So . Step 2: project. Compute . Interesting: already! Since the projection formula for a one-dimensional subspace is
we find (the zero vector, which is of course in ). Step 3: verify orthogonality directly (checks the theorem's converse clause). Since , we need , i.e. — which we just verified holds. By part (3) of the theorem, this alone (without computing via the formula) certifies that is the unique closest point. Step 4: distance. By the theorem, . Step 5: sanity check against a generic point of . Take . Then
Indeed , consistent with (not ) being the minimizer. We can also verify the Pythagorean bookkeeping from the proof: , so , and ; indeed , matching Step 1 of the proof exactly.
Example 2 (best linear approximation to a quadratic, in ). Let , polynomials of degree on , with inner product
Let , the linear polynomials, a 2-dimensional subspace. Let
We seek the closest linear polynomial to in the distance, i.e., we minimize
over real — and the theorem guarantees a unique minimizing pair , obtainable purely from orthogonality, without calculus. Step 1: orthonormalize . Start with : , so . Next, Gram–Schmidt on : subtract its -component, . So the orthogonal remainder is . Its norm: . So , and
Step 2: compute and .
Expand .
Common denominator 6: . So , hence . Step 3: assemble the projection.
So the unique best linear approximation to on , in the sense, is
Step 4: verify orthogonality directly (an independent check). We need to be orthogonal to both and (equivalently to and ), since spans .
Both vanish, confirming ; by part (3) of the theorem this independently proves is the unique minimizer, without needing to trust the Gram–Schmidt arithmetic a second time. Step 5: the minimum distance. . Expand: (check: from ; cross terms ; ; ; plus ). Integrate:
So , the true minimum -distance from to the linear polynomials, achieved uniquely at .
The theorem requires finite-dimensional (so that the orthogonal decomposition is guaranteed to exist). Drop that hypothesis, and existence of a closest point can fail entirely — not just uniqueness. Let , the space of square-summable real sequences with , and let
This is a genuine subspace of (closed under addition and scalar multiplication), but it is not finite-dimensional and, more importantly, it is not closed in the norm. Let (this lies in since ). Note , since every coordinate of is nonzero. For each , let be the truncation . Then
so . But no achieves , because that would force , and . So the infimum is never attained — there is no closest point in at all, let alone a unique one. What broke, precisely? In the proof, Step 0 invoked finite-dimensionality of to guarantee the orthogonal decomposition exists. Here is infinite-dimensional and not closed, so no such exists; the entire argument, which is built on that decomposition, has no foothold. This shows the finite-dimensionality hypothesis (or, more generally, closedness of together with completeness of , as used in Hilbert space theory) is not a technical nicety — without it the conclusion of the theorem can fail outright, with no minimizer at all.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| finite-dimensional, any inner product space | Theorem applies exactly as stated: unique closest point . |
| for all ; distance is , trivially consistent. | |
| Then , distance is , and is (trivially) its own unique closest point. | |
| infinite-dimensional but closed and complete (Hilbert space) | Theorem still holds, but the proof needs a compactness/completeness argument beyond finite-dimensional Gram–Schmidt (stated, proof beyond scope here). |
| a subspace that is not closed in an infinite-dimensional | Existence can fail entirely, as shown in the counterexample above. |
| Working over | Everything goes through verbatim; conjugate-symmetry of still forces the cross term in the Pythagorean expansion to vanish whenever the two vectors are orthogonal. |
The mathematician behind it
Origins · 1 minErhard Schmidt and how this was discovered
Erhard Schmidt, a student of David Hilbert, is best known for co-developing the Gram–Schmidt orthogonalization process and for foundational work extending finite-dimensional Euclidean geometry into infinite-dimensional Hilbert space. His 1907–1908 papers rigorously formulated orthogonal projection and best-approximation arguments in -type spaces, the same geometric idea — decompose, then minimize via orthogonality — that this article proves in the finite-dimensional setting. Schmidt's insistence on treating infinite sequences of functions with the same geometric vocabulary as vectors in space was central to the birth of functional analysis.
Is the closest point always found by "dropping a perpendicular," even in weird inner product spaces like polynomial spaces?
Yes — that is exactly the content of the theorem, and the perpendicularity is measured using whatever inner product the space carries, not visual right angles. In Example 2, the space was polynomials with the inner product , and "perpendicular" meant for every . The geometric intuition of "drop a perpendicular" survives completely; only the meaning of perpendicular changes with the inner product. This is precisely why the abstract framework of inner product spaces is powerful: one proof, phrased using and , covers , function spaces, and matrix spaces simultaneously.
Do I need to compute the full orthogonal projection to verify a candidate is the closest point?
No. Part (3) of the theorem gives a shortcut: if you can guess or construct a candidate and directly verify is orthogonal to every vector in a spanning set of , you have proven is the unique minimizer, without ever building an orthonormal basis or invoking the projection formula. This is exactly what Steps 4 in both worked examples did as an independent check. In practice, this is often faster than Gram–Schmidt, especially when a natural guess for is available.
Why does uniqueness require the norm to come from an inner product, rather than just any norm?
The proof of uniqueness (Step 2) crucially used the identity for orthogonal , which is special to inner-product norms and encodes strict convexity of the unit ball. General normed spaces (e.g. with the max-norm ) can have multiple closest points to a given vector from a given subspace, because their unit balls are not strictly convex (they have flat faces). Inner product spaces avoid this because their unit balls are always strictly convex ellipsoids/spheres, which is exactly what the Pythagorean argument exploits.
How does this theorem connect to the normal equations used in linear regression?
In Least Squares Approximation, one models data as for a design matrix and seeks minimizing . Here (the column space of ), and the minimum distance property says the minimizing must equal , characterized by . Writing this orthogonality condition in coordinates as gives exactly the normal equations . So the normal equations are simply the coordinate expression of from part (3) of this theorem.
What happens if is already inside ?
Then is trivially its own closest point: taking gives (the zero vector is orthogonal to everything), so by part (3) of the theorem , and the minimum distance is . This sanity check is useful for testing whether a computed projection formula is correct: plugging in should always return .
Does this theorem require itself to be finite-dimensional?
No — only , the subspace being projected onto, needs to be finite-dimensional. The ambient space can be infinite-dimensional (as in Example 2, where could be taken as all of rather than just polynomials, and is still the 2-dimensional space of linear polynomials). The proof only used finite-dimensionality of to build an orthonormal basis via Gram–Schmidt and hence a projection formula; played no special finiteness role anywhere in the argument.
What is the geometric meaning of the quantity that appears throughout the proof?
is the "leftover" or residual component of orthogonal to , and is exactly the squared minimum distance . In regression language, is the residual vector, and is the residual sum of squares — the smallest achievable total squared error when approximating by any element of .