So I have a symmetric matrix A = $\begin{bmatrix} 2 & 2 & -4 \\ 2 & -1 & -2 \\ -4 & -2 & 2 \end{bmatrix}$ and I want to orthogonally diagonalise it. I know that there are eigenvalues $-2$ and $7$ (-2 with an algebraic multiplicity of two, and a basis $$\left\{{\pmatrix{1\\0\\2}},{\pmatrix{0\\1\\1}}\right\}$$ I, so far, haven't been able to find:
- the eigenvector corresponding to 7 (I know from online calculators that it is in fact $\begin{array}{c} 2 \\1\\-2 \end{array}$), but the matrix (A - -7$\lambda$) = $\begin{bmatrix} 2 & 2 & -4 \\ 2 & -1 & -2 \\ -4 & -2 & 2 \end{bmatrix}$ which row reduces down (as calculated online) to $$A = \begin{bmatrix}{} 1 & 0 & 1 \\ 0 & 2 & 1 \\ 0 & 0 & 0 \end{bmatrix}$$ which gives $x = 2y = -z$, which leads to a vector $\begin{array}{c} 1 \\2\\-1 \end{array}$ or similar.
- how to correctly orthonormalize the vectors (by using Pythagoras geometrically, or by Gram-Schmidt?) and therefore I can't orthogonally diagonalise A.
