If you need to check whether an nxn matrix, A, is diagonalisable or not, do you just find out what det(XI-A) is, and then if X has n distinct values it is diagonalisable, otherwise it's not.
A nxn square matrix is diagonizable if it has n linearly independent eigenvectors. Having n distinct eigenvalues is sufficient but not necessary for diagonalizability.