Let $A$ be an $n$- square matrix such that $A^2= A$. Then how to prove that there exist a non-singular matrix $P\in M_n(\Bbb R)$ such that $P^{-1}AP$ is in normal form?
My approach: I have studied about this result: Suppose $A$ is an $m\times n$ matrix of rank $r$, then there exist two non-singular matrices $P$ (of size $m\times m$) and $Q$ (of size $n\times n$) such that $A=PNQ$ where $N=\pmatrix{I_r&0\\ 0&0}$ that is $I_r$ is the identity matrix of order $r$ and the $0$s here are null matrices.
I am not sure how to exploit this $A^2=A$ to solve this problem to proceed further. Thanks