Example (finding Jordan normal form)
The matrix $$ A = \pmat{-3&-1&1 \\ -1&-3&1 \\ -2&-2&0} $$ has eigenvalues $\lambda = -2, -2, -2$ and eigenvectors $\pmat{-1\\1\\0}, \pmat{1\\0\\1}$.
To find the Jordan normal form, first find a vector $\v w\not\in E_{-2}$, such as $\v w = \pmat{1\\0\\0}$. Then let $$ \v u = (A - (-2)I)\v w = \pmat{-1&-1&1 \\ -1&-1&1 \\ -2&-2&2}\pmat{1\\0\\0} = \pmat{-1\\-1\\1}. $$ Now rearranging, we get $$ A\v w = \v u - 2\v w. $$ Note that $\v u$ is an eigenvector of $A$ with eigenvalue $-2$ as $$ (A-(-2)I)\v u = \pmat{-1&-1&1 \\ -1&-1&1 \\ -2&-2&2}\pmat{-1\\-1\\2} = \v 0. $$
We will use the basis $\v u, \v w, \v v$ where $\v v$ is an eigenvector that is linearly independent to $\v u$, such as $\v v = \pmat{1\\0\\1}$. Hence using the basis, the matrix becomes $$ A' = \pmat{-2 & 1 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & -2}. $$