Orthogonally diagonalize the matrix, giving an orthogonal matrix P and a diagonal matrix D. To save time, the eigenvalues are 1,4 , and -4.
A = [ -1 -1 3 ]
[ -1 3 -1 ]
[ 3 -1 -1 ]