In the book of Linear Algebra by Greub, at page 229 question 4, it is asked that
Consider linear transformation $\phi$ of a real linear space $E$. Prove that an inner product can be introduced in $E$ such that $\phi$ becomes an orthogonal projection if and only if $\phi^2 = \phi$
We already know that if $\phi$ has n linearly independent eigenvector, we can define an inner product in $E$ s.t $\phi$ is self-adjoint.
To show $\phi^2 = \phi \Rightarrow \phi $ is orthogonal projection, first I need to know that $\phi$ has n linearly independent eigenvectors, but $\phi^2 = \phi$ only says that $\phi$ is stable under $Im \phi$, and does not say anything about the eigenvectors of $\phi$, so how can we prove this part ?