Question: Given that $T:V \to V$ and $T^2=T$ prove that $T$ is diagonalizable.
What I know:
$T^2-T=0=T(T-I)$.
$\operatorname{Im}(T-I) \subseteq\operatorname{Ker}(T)$ therefore $\dim V=\dim\operatorname{Ker}(T-I)+\dim\operatorname{Im}(T-I)\leqslant \dim\operatorname{Ker}(T-I)+\dim\operatorname{Ker}T$
Can I just say now that since the the sum of the dimensions of these two kernels is $\dim V\leqslant$ so it's equal to $\dim V$ and that the map is diagonalizable? I feel like something is missing with this explanation.
Thanks for any enlightening comments.