Ok the excercise is:
You have one characteristic polynomial, it's:
$\lambda^4 + \lambda^2$
Find two matrixes with this polynomial, one of them diagolalizable in C and the other one not.
so the first thing i have done is to find a matrix wich had this polynomial. I have found.
\begin{pmatrix} 0&0 &-1 &0 \\ 0&0 &0 &0 \\ 1&0 &0 &0 \\ 0&0 &0 &0 \end{pmatrix}
For ($A-\lambda I)=0$ we have:
\begin{pmatrix} -\lambda &0 &-1 &0 \\ 0&-\lambda &0 &0 \\ 1&0 &-\lambda &0 \\ 0&0 &0 &-\lambda \end{pmatrix}
wich if im not wrong gives us the $p(A)$=$\lambda^4 + \lambda^2$.
This matrix, again if im not wrong, is diagonalizable in C. Now if i need to find another one not diagonalizable i need to build another matrix from scratches or, as i suspect, there is a simple method to do it?
I assume that we're talking about matrices with real entries.
The easiest way to approach this problem is to build examples using either Jordan normal form or the real Jordan form. Another approach is to build block diagonal matrices where each block is a companion matrix.
That's the general method, let's look at your approach. It turns out that your example is essentially the same as $$ \pmatrix{0&-1&0&0\\1&0&0&0\\0&0&0&0\\0&0&0&0} $$ which is the "real Jordan form" associated with the diagonalizable matrix here. To get this from your answer, I switch the roles of the $2$nd and $3$rd rows/columns.
One answer to the non-diagonalizable matrix with this characteristic polynomial is $$ \pmatrix{0&-1&0&0\\1&0&0&0\\0&0&0&\color{red}1\\0&0&0&0} $$ again, this is an example of a "real Jordan form". We could have also used the companion matrix $$ \pmatrix{ 0&0&0&0\\ 1&0&0&0\\ 0&1&0&-1\\ 0&0&1&0} $$