Let T be the linear operator on R3 which is represented by the matrix
$\begin{pmatrix} 3 &1 &-1 \\ 2 &2& -1 \\ 2 &2& 0 \\ \end{pmatrix}$
in the standard ordered basis. Show that there is a diagonalizable operator $D$ on $R^3$ and a nilpotent operator $N$ on $R^3$ such that $T = D + N$ and $DN = ND$. Find the matrices of $D$ and $N$ in the standard basis.
We have the relationships
$D=c_1E_1+...+c_kE_k$
and
$N=(T-c_1I)E_1+...+(T-c_kI)E_k$
but I do not know how to use it. Can anyone explain? In this case the characteristic polynomial is $(x-1)(x-2)^2$. I do not know if I should find the matrix of E_i, also I did not understand either if In this formula should I consider the repetition of eigenvalue?