For my linear algebra homework, I need to prove that if $T$ is a diagonalizable linear map and $T^3=T^2$, then $T^2=T$. I tried proving that $T$ is invertible (so that I can multiply both sides of $T^3=T^2$ by $T^{-1}$, but apparently diagonalizability does not imply invertibility (see Can a matrix be invertible but not diagonalizable? in the comment section of the first answer).
Could you help me?