Login
📚 Linear Algebra, Interactive Edition
Chapters ▾
⇩ Download ▾

6.1 Projection onto a Plane

Here is a new kind of question. The plane z=0.4x+0.2y is a subspace of 3 — flat, through the origin, closed under the usual operations. The vector 𝐛=(1,1,3) is not on it: the plane above the point (1,1) sits at height 0.4+0.2=0.6, far below 3. 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 dark point 𝐛 floating above the plane, the dashed red segment falling from it along the plane's normal direction, and the blue point (1.8,1.4,1) where it lands — the orthogonal projection of 𝐛. Two solid segments from the origin trace 𝐛 itself (gray) and its projection (blue).

A semi-transparent tilted plane through the origin with a dark point floating above it. A dashed red segment drops from the point straight down onto the plane along the plane's normal direction, ending at a blue point on the plane. Two solid segments from the origin show the original vector and its shadow in the plane. There are no sliders.Explore in 3D (opens in a new tab)
The point 𝐛=(1,1,3) above the plane z=0.4x+0.2y, with the dashed red perpendicular dropping to its projection (1.8,1.4,1), marked in blue. The gray and blue segments from the origin are 𝐛 and its projection as vectors.

Explore the figure

  1. Orbit until you view the plane edge-on. The dashed 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.
  2. A natural first guess for the closest point is "straight down": drop vertically from 𝐛 to (1,1,0.6). That vertical trip has length 30.6=2.4. The dashed route is visibly shorter and lands at a different point — closest is measured perpendicular to the plane, not perpendicular to the floor.
  3. Confirm by eye that the blue point actually lies in the plane, and that its coordinates are plausible: 0.4(1.8)+0.2(1.4)=0.72+0.28=1, exactly its height.
  4. Follow the triangle made by the gray segment, the blue segment, and the dashed 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 0.4x+0.2yz=0; its normal vector is 𝐧=(0.4,0.2,1), and the perpendicular from 𝐛 must travel along 𝐧. So the projection is 𝐩=𝐛t𝐧 for the value of t that lands on the plane, which works out to t=(𝐛·𝐧)/(𝐧·𝐧). Here 𝐛·𝐧=0.4+0.23=2.4 and 𝐧·𝐧=0.16+0.04+1=1.2, so t=2 and

𝐩 = 𝐛 + 2 𝐧 = ( 1 + 0.8 , 1 + 0.4 , 3 2 ) = ( 1.8 , 1.4 , 1 )

The error vector is 𝐛𝐩=(0.8,0.4,2)=2𝐧: a pure multiple of the normal, with length 0.64+0.16+4=4.82.19 — beating the vertical guess of 2.4, 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 |𝐛𝐪|2=|𝐛𝐩|2+|𝐩𝐪|2, strictly larger. A perpendicular error is not one good option — it is a certificate that no better option exists.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.