From the wikipedia page on diagonalization
An $n\;x\;n$ matrix $A$ A over a field $F$ is diagonalizable if and only if the sum of the dimensions of its eigenspaces is equal to $n$
My question is, how do I sum the dimensions of the eigenspace or any space for that matter..
Say my column space of a $3x3$ matrix is...
$$ \begin{bmatrix} 1 \\ -1 \\ 0 \end{bmatrix} \begin{bmatrix} 0 \\ -1 \\ 1 \end{bmatrix} $$
How do I "sum the dimensions?"
The set of vectors corresponding to each eigenvalue forms a subspace. You are to take the dimension of each of these subspaces and add them up to see if it adds to the dimension of the whole space. For example, $$\begin {pmatrix} 2&0&0\\0&2&0\\0&0&1 \end {pmatrix}$$ has eigenvalues of $1,2$. The space corresponding to $1$ is vectors proportional to $(0,0,1)^T$. The space corresponding to $2$ is the one spanned by $(1,0,0)^T$ and $(0,1,0)^T$. The sum of the dimensions of these subspaces is $1+2=3$, which is the dimension of the whole space. The matrix is diagonalizable, as can be seen because it is diagonal.
By contrast, $$\begin {pmatrix} 2&1&0\\0&2&0\\0&0&1 \end {pmatrix}$$ has eigenvalues of $1,2$. The space corresponding to $1$ is vectors proportional to $(0,0,1)^T$. The space corresponding to $2$ is the one spanned by$(1,0,0)^T$. The sum of the dimensions of these subspaces is $1+1=2$, which is less than the dimension of the whole space. The matrix is not diagonalizable. I haven't proven that, but the theorem promises it.