The geometry of an inner product and the completeness of L-squared combine into two theorems that nothing in Hilbert space theory does without. The first says one can always project onto a closed convex set, landing on a unique nearest point; for a subspace this is the orthogonal projection. The second says every continuous linear functional on the space is an inner product against a fixed vector, which is the engine behind the Radon-Nikodym theorem and the existence of adjoints. Both turn on completeness [1]. Throughout, is a real Hilbert space.
#The projection theorem
A set is convex when it contains the segment between any two of its points, that is for all whenever . The proof below uses only the midpoint . Closedness and convexity together force a unique nearest point.
Let be nonempty, closed, and convex. For every there is a unique minimising over .
Let and take a sequence with . Apply the parallelogram law to and ,
The midpoint lies in by convexity, so its distance from is at least , and the last term is at most , giving . As the upper bound tends to , so , which with forces . Hence is Cauchy and, by completeness, converges to some , which lies in because is closed, with . If is another minimiser, the same identity applied to and gives , so .
For a subspace the nearest point has a clean characterisation. The residual is orthogonal to the subspace.
Let be a closed subspace. The nearest point is the unique element of with , and the map is linear, idempotent, and satisfies .
A subspace is convex, so Theorem 1 gives a unique nearest . For any and the point , so , which expands to for all , forcing . Thus . Conversely if with , then for any , Pythagoras gives , so is the nearest point and equals . Linearity follows because and give with , so by uniqueness it is . Idempotence is for , and Pythagoras on gives .
#Orthogonal complement and decomposition
The orthogonal complement of a set is , always a closed subspace because it is an intersection of kernels of the continuous functionals . Projection splits the space along it.
For a closed subspace , every has a unique decomposition with and , namely and . Thus , and .
The decomposition has and by Theorem 2. If are two such, then lies in , where a vector is orthogonal to itself and hence zero, so the decomposition is unique. The inclusion is immediate, and if then by Theorem 2, while also lies in because both and do, so it is orthogonal to itself and vanishes. Hence , giving the reverse inclusion.
#Riesz representation
A linear functional is bounded when for a finite constant , equivalently continuous. Every such functional is an inner product in disguise.
For every bounded linear functional on there is a unique with for all , and .
If take . Otherwise the kernel is a closed proper subspace, so by Corollary 3 the complement contains a nonzero vector, which we scale to a unit vector . For any , the vector lies in , because sends it to zero, so it is orthogonal to , giving . Hence , so represents . Uniqueness follows because for all forces on taking . For the norm, Cauchy-Schwarz gives so , while gives the reverse, so .
These two theorems generate conditional expectation, the Radon-Nikodym density, and operator adjoints. The orthogonal projection is exactly conditional expectation, the projection of a random variable onto the closed subspace of variables measurable with respect to the conditioning information, and it is the least-squares solution of an overdetermined system. The Riesz representation theorem is the existence half of the Radon-Nikodym theorem, where a density is produced as the vector representing an absolutely continuous functional. It also gives every bounded operator an adjoint, the construction the spectral theorem needs. Completeness was the one nonformal ingredient in both, the property that let the nearest point exist, which is why the Hilbert space, and not merely the inner product space, is the right setting.