I'm facing a problem finding a Jordan basis for this ($4 \times 4$) matrix: $$\left(\begin{matrix}3&-1&1&7\\9&-3&-7&-1\\0&0&4&-8\\0&0&2&-4\end{matrix}\right)$$
I know that the characteristic polynomial is $\lambda^4=0$ and it's minimal polynomial is: $x^2$. This means that $(A-0I)^2=0$. Also the Jordan form for this matrix is $$\left(\begin{matrix}0&1&0&0\\0&0&1&0\\0&0&0&1\\0&0&0&0\end{matrix}\right)$$ But I'm facing problems in the general procedure to compute the basis for such a matrix?
Thank you everyone for the tips, i manage to solve it. The basis is
$$\left(\begin{matrix}-7 & 0 & 3 & 1\\-1 & 0 & 9 & 0\\-8 & 0 & 0 & 0\\-4 & 1 & 0 & 0 \end{matrix}\right)$$ And $P^{-1}AP=J$