so I'm supposed to find values for PDP^T that equal to an A given of \begin{bmatrix}7&1&1\\1&7&1\\ 1&1&7\end{bmatrix}
I get eigenvalues of 6,6,9 and my matrices are P=\begin{bmatrix}-1&-1&1\\1&0&1\\ 0&1&1\end{bmatrix} D= \begin{bmatrix}6&0&0\\0&6&0\\ 0&0&9\end{bmatrix} P^T=\begin{bmatrix}-1&1&0\\-1&0&1\\ 1&1&1\end{bmatrix}
My final matrix is \begin{bmatrix}21&3&3\\3&9&15\\ 1&1&7\end{bmatrix}but when I multiply it to 1/3 my final values don't match the original.