Definition (orthogonal projection)
Let $V$ be a finite-dimensional inner product space and $W\leq V$ be a subspace.
The orthogonal projection of $V$ onto $W$ is defined as the map $$ \begin{align*} \pi_W: \qquad V&\to V \\ w + u &\mapsto w \end{align*} $$ where $w\in W$ and $u\in W^\perp$.
-
This is well-defined because $V = W\oplus W^\perp$.
-
$\pi_W$ is a linear map.
-
$\im(\pi_W) = W$ and $\ker(\pi_W) = W^\perp$.
-
$\pi_W|_W = \id_W$ so $\pi_W^2 = \pi_W$.
-
$\id_V - \pi_W = \pi_{W^\perp}$.