I have the following matrix:
\begin{bmatrix}1&1&0\\-1&3&0\\-1&1&2\end{bmatrix}
My matrix has characteristic polynomial $(X-2)^3$ and minimal polynomial $(X-2)^2$. How do I decide between the two following Jordan normal forms of this matrix?
\begin{bmatrix}2&1&0\\0&2&0\\0&0&2\end{bmatrix}
or
\begin{bmatrix}2&0&0\\0&2&1\\0&0&2\end{bmatrix}
Both of them will do. That is, both of them are a Jordan normal form of your matrix.