Orthogonal Projections
The projection of onto a subspace is the point of closest to , because the leftover piece sticks straight out of at a right angle. With an orthogonal basis of , you get it by adding up the shadows of on each basis vector.
What the symbols mean
- Orthogonal basis of W
The formula needs an orthogonal basis; Gram–Schmidt provides one.
Explanation
An orthogonal projection is simply the shadow a vector casts on a subspace (a line, a plane, or something bigger) when the light shines straight down onto it. "Orthogonal" because the light comes in perpendicular to the subspace, and "projection" in the same sense as a projector throwing an image onto a screen. What it's good for: the shadow is the point of closest to , so projecting is how you find the best approximation inside a subspace. All we're really saying here is that the long formula for is a sum of pieces you already know: each term is the shadow of on one basis vector (from the last lesson), and you add them up. It looks long, but it's the same small piece repeated once per basis vector.
Last lesson you projected onto a single line and found that the leftover was perpendicular to it. Now the target is a whole subspace, and the same thing happens.
Orthogonal decomposition. Every splits uniquely as with in and in : one part inside , one part sticking straight out of it.
Best approximation. is closer to than any other point of . Think about why. Take any other point in and write . The first piece is in and the second is in , so they're perpendicular, and Pythagoras from the first lesson gives
The second term is positive whenever , so every other point is farther away. The distance from to is therefore .
A common mistake. It's tempting to think you can add up the projections onto any basis of , because adding shadows worked so nicely in the last lesson. It doesn't: the formula only works when the basis is orthogonal. With a slanted basis, the shadows overlap and count some of twice. The next lesson shows how to turn any basis into an orthogonal one.
This "closest point" idea is exactly what least squares uses to fit data, later in this unit. There's an animation further down that shows the leftover staying perpendicular to the plane as moves around.
See it
Worked examples
Project onto .
- 1
The basis vectors are orthogonal (), so we can add the projections onto each one.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Project onto the -plane.
How far is from the -plane?
Project onto the line spanned by .
Project onto .
Which point of is closest to ?
A drone hovering at needs the nearest point on a sloped landing ramp through the origin: the plane spanned by the orthogonal vectors and . Find that point.
The hardest one here. Get it, and you've got this lesson.
Find the distance from to the subspace of .
Where it's used
Noise reduction projects a signal onto the subspace of "plausible" signals; GPS and sensor fusion find the closest consistent estimate by projection.