I've stumbled upon this question in my assignment:
Prove if $A_{nxn}(\mathbb C)$ with $A^2 = A$, then $A$ is diagonalizable
My first thought is to solve for $p(A)$ where $p(x) = x^2 - x$ and you get real roots. Would that be sufficient in showing that $A$ is diagonalizable given you get real roots?
Note that if $A=0$ or $A=I$ then $A$ is trivially diagonalizable. Otherwise, $x(x-1)$ must be the minimal polynomial of this matrix. And there is a known theorem which states that a matrix is diagonalizable if and only if its minimal polynomial splits into a product of distinct linear factors.