The Projection Matrix: Outer times Inverse Inner
An interactive live film: P = X (X^T X)^{-1} X^T casts u's shadow on the plane of two columns; the residual is orthogonal to both and P^2 = P. Drag a column until the shortcut X X^T gives the same projection.
Narration
Two columns, x zero and x one, span a plane W, here the floor. A vector u stands above it.
The projection matrix onto W is X, times the inverse of X transposed X, times X transposed: outer, times inverse inner. P u is the shadow of u on the plane, the green arrow.
The rest of the narration is in the book's Companion.
More from Chapter 2
Interactive1:40Change of Basis: One Vector, Two Sets of CoordinatesChapter 2
Preview1:29The Matrix Inverse: Squashed Means GoneChapter 2
Preview1:53A Matrix Moves the CubeChapter 2
Preview1:49Rank One as a LandscapeChapter 2
Preview2:29Four Views of Matrix MultiplicationChapter 2
Preview1:44Column Space: Every Output Ax Lies on One PlaneChapter 2
Preview1:36Matrix Norm and Condition Number: the Largest StretchChapter 2