It said $T$ (on vector space V) is diagonalizable if and only if the multiplicity of $\lambda_i$ is equal to dim($E_{\lambda_i}$) for all $i$.
It sets $m_i$ denote the multiplicity of $\lambda_i$, $d_i$=dim($E_{\lambda_i}$), n=dim(V).
When prove the only if part (assuming $m_i = d_i$). It said $\sum_{i=1}^{k} m_i = n$, I don't understand why the sum of multiplicities equal to the dimension of the vector space. Any help? Thanks
The characteristic polynomial $p$ of $T$ has degree $n$. On the other side we have
$p(\lambda)= (\lambda- \lambda_1)^{m_1}(\lambda- \lambda_2)^{m_2}...(\lambda- \lambda_k)^{m_k}$, where
$\lambda_1,...,\lambda_k$ are the distinct eigenvalues of $T$. Can you take it from here ?