Let $H$ be a Hilbert space.
Given a closed subspace $W\subseteq H$, the orthogonal projection onto $W$ is the unique bounded linear operator $P$ such that $\text{Im}(P)=W$ and $\ker(P)=W^{\perp}$. The orthogonal projection $P$ satisfies:
- $P^2=P$.
- $P^*=P$, where $P^*$ is the adjoint of $P$.
I was wondering where I may find a proof of the above result, since there is no proof in my notes nor in the chapter on Hilbert spaces of Rudin's $\textit{Real and Complex Analysis}$.
I am confused -- it seems the given definition is not complete. If $H$ is $\mathbb{R}^2$ with the standard inner product and $W$ is the $x$-axis, then $$ P = \begin{pmatrix} -1 & 0 \\ 0 & 0 \end{pmatrix} $$ is a bounded linear operator such that $\text{Im}(P) = W$ and $\text{Ker}(P) = W^\perp$ even though it is not the orthogonal projection onto $W$ (and isn't idempotent).