I'm trying to find the diagonalization of a matrix :
this is my matrix :
$$ A =\begin{pmatrix} 0 & -1 & 0 \\ -1 & 0 & 0 \\ 1 & 1 & 1 \\ \end{pmatrix} $$
for the eigenvalues I found :
$$l_1 = l_2 = 1\quad; \quad l_3=-1$$
and for the eigenvectors I found :
$$ v_1 =\begin{pmatrix} -1\\-1\\1 \end{pmatrix} $$ $$v_2=\begin{pmatrix} 0\\0\\1 \end{pmatrix}\quad\text{and}\quad v_3 =\begin{pmatrix} -1\\1\\0 \end{pmatrix} $$
but if I want to find the matrice P will it be :
$$ A =\begin{pmatrix} 0 & -1 & 1 \\ 0 & 1 & 1 \\ 1 & 0 & -1 \\ \end{pmatrix} $$
Or:
$$ A =\begin{pmatrix} -1 & 0 & 1 \\ 1 & 0 & 1 \\ 0 & 1 & -1 \\ \end{pmatrix} $$
Or:
$$ A =\begin{pmatrix} 1 & 0 & -1 \\ 1 & 0 & 1 \\ -1 & 1 & 0 \\ \end{pmatrix} $$
etc....
I mean there is many ways to write the P matrix, but which one is the correct one ?