Let $A$ be a projection such that $A^2=A$ then I want to prove that $A=A^* \Leftrightarrow \ker(A) \perp \operatorname{im}(A)$.
The implication $A=A^*\Rightarrow \ker(A) \perp \operatorname{im}(A)$ is easy, but I have troubles with the converse. Is there anybody who knows how to do this?
Hint: Take an orthonormal basis $B_1$ of $\ker A$ and an orthonormal basis $B_2$ of $\operatorname{im}A$ and prove that $\langle Av,u\rangle=\langle v,Au\rangle$ for all $v,u\in B=B_1\cup B_2$.