Let $T$ be the linear operator on $\mathbb{R}^3$ which is represented by the matrix:
$A=\begin{bmatrix}3 & 1 & -1\\ 2 & 2 & -1\\ 2 & 2 &0\end{bmatrix}$
in the standard ordered basis. Show that there is a diagonalizable operator $D$ on $R^3$ and a nilpotent operator $N$ on $\mathbb{R}^3$ such that $T=D+N$ and $DN=ND$. Find the matrices of $D$ and $N$ in the standard basis.
Here is what I've got so far.
$\det(xI-A)=\det\left(\begin{bmatrix}x-3 & -1 & 1\\ -2 & x-2 & 1\\ -2 & -2 &x\end{bmatrix}\right)=(x-1)(x-2)^2$
But now I've got to find polynomials $h_1(T)+h_2(T)=I$ where $E_i=h_i$. This was easy enough: $E_1=(x-2)^2$ and $E_2=-(x-1)(x-3)$. I've also computed the matricies $(T-2)^2$ and $(T-1)(T-3)$ beloe respectively:
$\begin{bmatrix}1 & -1 & 0\\ 0 & 0 & 0\\2 & -2 & 0\end{bmatrix}$
$\begin{bmatrix}0 & 1 & 0\\ 0 & 1 & 0\\-2 & 2 & 1\end{bmatrix}$
This is where I'm stuck. I'm not sure how to proceed from here in order to find $D$ and $N$.