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$.