How do I find the Jordan canonical form and its transitions matrix of this matrix?
\begin{pmatrix}1&0&0&0\\0&0&1&0\\0&1&0&0\\0&0&0&1\end{pmatrix}
The characteristic polynomial is $(x+1)(x-1)^3$ and the eigenvectors are for $x=1$ we have $(0,0,0,1)$, $(0,1,1,0)$, $(1,0,0,0)$ and for the $x=-1$ we have $(0,-1,1,0)$.
Since you have the geometric multiplicity equalling the algebraic multiplicity for each eigenvalue, then the JCF form of this matrix will only be entries on the diagonal. This is because the number of blocks to each eigenvalue is equal to its geometric multiplicity. Hence,
$$ J = \left[ \begin{array}{rrrr} -1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{array} \right] $$