Euclidean space/Affine subspace/Perpendicular/Fact/Proof

Proof

We write with , , and ; such a decomposition does always exist, are not uniquely determined (in case ), but is uniquely determined. We have

and , and . The distance between and is . For arbitrary points and fulfilling and , we have

that is,