6.1 Projection onto a Plane
Section 0.7 did this for a line: it split a vector into the part running along a direction and the part running across it, then read the distance to the line off the second piece. What it did not do is argue that the foot of that perpendicular is the closest point — it took "the distance to a line is measured along the perpendicular" as given. This section asks the optimality question outright, of a plane, and answers it: the perpendicular is not merely a natural choice, it is provably the winner, and the proof is the same one dimension up or down.
The plane is a subspace of — flat, through the origin, closed under the usual operations. The vector is not on it: the plane above the point sits at height , far below . Chapter 2 would stop there — not reachable — but the useful question is quantitative: which point of the plane is closest to ?
The answer is found by dropping a perpendicular from onto the plane. The figure shows the whole construction: the white point floating above the plane, the red segment falling from it along the plane's normal direction, and the blue point where it lands — the orthogonal projection of . Two segments from the origin trace itself (gray) and its projection (blue).
Explore in 3D (opens in a new tab)A semi-transparent tilted plane through the origin with a white point floating above it. A red segment drops from the point at a slant, along the plane's normal direction rather than vertically, ending at a blue point on the plane. Two segments from the origin, one gray and one blue, show the original vector and its projection in the plane. There are no sliders.
Explore the figure
- Orbit until you view the plane edge-on. The red segment meets it at a right angle — not a right angle on your screen from every viewpoint, but a true one in space, visible when the plane degenerates to a line in your view.
- A natural first guess for the closest point is "straight down": drop vertically from to . That vertical trip has length . The red route is visibly shorter and lands at a different point — closest is measured perpendicular to the plane, not perpendicular to the floor.
- Confirm by eye that the blue point actually lies in the plane, and that its coordinates are plausible: , exactly its height.
- Follow the triangle made by the gray segment, the blue segment, and the red drop: splits into a piece inside the plane plus a piece perpendicular to it. Nothing overlaps and nothing is missing.
Computing the drop
Rewrite the plane as ; its normal vector is , and the perpendicular from must travel along . So the projection is for the value of that lands on the plane, which works out to . Here and , so and
The error vector is : a pure multiple of the normal, with length — beating the vertical guess of , as the figure promised. And perpendicularity is what makes provably the winner: for any other point of the plane, the segment from to lies in the plane, at right angles to , so Pythagoras gives , strictly larger. A perpendicular error is not one good option — it is a certificate that no better option exists.
The landing condition written out with the numbers of this example — and — and solved by a computer algebra system: , the value that drops exactly onto .
An original work of XYZ Homework, built around interactive XYZ 3D figures. Chapters 1–6 follow the topic sequence of Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL). Chapter 0's scope (its topics, their order, and the idea each figure shows) follows the Vectors chapter of Ximera's Linear Algebra: An Interactive Introduction. The prose, worked examples and figures were written for this book, which is not affiliated with or endorsed by the authors of either work. License: CC-BY-NC-SA-4.0.