Let $(H, \langle \cdot, \cdot \rangle)$ be a Hilbert space and $P:H \to H$. Suppose that
- $P \circ P =P$
- $\langle Px, y \rangle = \langle x, Py \rangle$ for all $(x,y) \in H^2.$
I would like to ask if $P$ is linear.
I tried some functions such as absolute value, identity, and constant. But none of them satisfy the second condition.
Please don't give me the proof, in case this statement is correct. I would like to give it a shot by myself.
The second condition alone is sufficient to get linearity.
Hint: