Learning goals and definitions
Separate points from directions, describe affine sets in , solve line–hyperplane intersections, and prove distance formulas. For , use and . A vector subspace contains zero and is closed under sums and scalar multiples. An affine subspace is a translate of a vector subspace ; it need not contain zero.
A line is with . A hyperplane is with normal . In dimension three it is a plane; in dimension two it is a line. Two descriptions may name the same set with different base points or normal multiples. A hyperplane contains every direction perpendicular to .
An orthonormal family satisfies for and . Its vectors are linearly independent: dotting with gives .
Theorem: closest point on a hyperplane
For , the unique closest point of is
Proof. Direct substitution gives , so . For any , the vector is perpendicular to , while is a multiple of . Therefore the cross term vanishes in
The distance is minimized exactly at . Taking the length of the displayed formula for gives the distance. Nonzero ensures both valid division and uniqueness.
More generally, if has orthonormal basis , then the projection onto is . Subtracting it from gives a vector perpendicular to every , hence to all of . The same squared-distance argument proves it is the unique nearest vector in . For , first project the displacement , then add .
Proof X-ray
One perpendicularity makes the cross term vanish
Expanding gives , and the whole proof is the vanishing of the middle term. It vanishes because the two vectors live in complementary places: is a multiple of by the choice of , and is perpendicular to because both and satisfy . Once the cross term is gone, every competitor pays the extra amount , which is zero only for ; minimality and uniqueness come together. The subspace version uses the same split, with in the role of the directions perpendicular to .
Counterexample mode
The projection formula needs an orthonormal basis
It is tempting to use the sum of with any basis of . In , take with basis , , and . The nearest point of to is itself, but the formula gives . The residual is not perpendicular to , so the squared-distance argument never applies. The repair is an orthonormal basis; for an orthogonal one, divide each term by .
Worked examples
Higher-dimensional distance. In , let be and . Here , and . The foot is and the distance is .
Intersection classification. A line meets a hyperplane when . If , there is one intersection with . If , the whole line lies in the hyperplane when and otherwise no intersection exists. “Parallel” alone does not distinguish containment from disjointness.
Worked example 6.1.1
(Foot of the perpendicular to a plane in )
Let be the plane and . Here , and . Then
Check that : . The distance is , and indeed .
Worked example 6.1.2
(Distance from a point to a line by projecting the displacement)
Let with and spanned by , a unit vector since . Take .
Project the displacement onto : , so the projection is . Adding gives the nearest point
The residual is perpendicular to the direction: . Hence
Projecting itself, rather than , would give a point of , not of ; the base point must be subtracted first because does not pass through .
Worked example 6.1.3
(Writing a hyperplane as a translate of a subspace)
Let , with . The point lies in , and the direction space is
Indeed, gives . If , then , so . Conversely has coordinate sum . So . It is not a vector subspace, because . A different base point, such as , gives the same set, since the two base points differ by .
Quick check
(Is the parabola an affine subspace?)
An affine subspace contains the whole line through any two of its points.
Solution · Answer
No. It contains and , but not the point on the line through them, since . An affine subspace contains, with two points and , every point of the line through them.
Quick check
(Where does the line meet the plane ?)
Compute first, then .
Solution · Answer
With and , , so the line is parallel to the plane. Since , the base point lies in the plane, so the whole line does. Directly: for every .
Quick check
(With , project onto the line and find the distance from to that line.)
is a unit vector, so the projection is .
Solution · Answer
, so the projection is . The residual is , perpendicular to since , and its length is the distance.
Graded practice
- Foundation. Find a line through parallel to , and decide whether it passes through .
- Core. Find the distance from to .
- Core. For orthonormal vectors and , project onto their span.
- Proof. Prove that an affine subspace contains the line segment between any two of its points. Does the converse assertion characterize affine subspaces?
Full solutions
- The line is . At it reaches , so the point lies on it.
- The normal is with length . Its dot product with the point is , so the distance is .
- The dot products are and . The projection is . The residual is perpendicular to both basis vectors.
- Write the points as with . For , their convex combination is , still in . The converse fails: a closed ball contains the segment between any two points but is not an affine subspace. Segment closure is convexity, a weaker property.
Summary and term definitions
An affine set is a translated linear space. A hyperplane is one nontrivial linear equation in variables. An orthonormal basis combines perpendicularity with unit lengths. A convex set contains every segment joining its points. Orthogonal decomposition proves distance statements in every finite dimension; it does not require a three-dimensional cross product or a diagram.