3a of this released exam asks (paraphrased):
Diagonalize the matrix $$A = \begin{bmatrix} 0 & 4 & 0 \\ 4 & 0 & 4 \\ 0 & 4 & 0 \end{bmatrix}$$ by an orthogonal matrix.
I tried using the standard calculate the eigenvalues $\lambda_{i} = 0, 2(1 \pm \sqrt{2})$ and getting the appropriate eigenvector matrix for:
$$\begin{bmatrix} 1 & -1 & 1 \\ -\sqrt{2} & 0 & \sqrt{2} \\ 1 & 1 & 1 \end{bmatrix}$$
However if you multiply any permutation by the transpose, you get:
$$\begin{bmatrix} 3 & 0 & 1 \\ 0 & 4 & 0 \\ 1 & 0 & 3 \end{bmatrix}$$
instead of $I_n$. I'm stuck. Is there an easier way to compute an orthogonal matrix that diagonalizes $A$?
Your matrix is not orthogonal. Remember an orthogonal matrix has columns which are perpendicular and unit length. So your first column should be $$\frac12\pmatrix{1\cr-\sqrt2\cr1\cr}$$ and the others should be adjusted similarly.
Comment. An orthogonal matrix is one with orthonormal columns. The terminology is, frankly, very confusing, but it's been around a long time and it probably is not going to change :(