Euclidean space/Affine subspace/Perpendicular/Fact

< Euclidean space < Affine subspace < Perpendicular

Let be a Euclidean vector space, and let and denote nonempty affine subspaces with the linear subspaces . Let

with , , and .

Then the

distance equals ; it is obtained in the points and

.

In particular, the connecting vector of the points, where the minimal distance is obtained, is perpendicular to and to .