Orthogonal projection onto a line

The closest point to x on the line through b. Drag the two arrows and read the numbers.

Project x onto the line through b

Drag the tips of x and b.

Try thisMake x point along b: the residual disappears. Make x orthogonal to b: the projection is 0. Now double the length of b: does π(x) change? Why not?