First, compute the eigenvalues. We calculate that
\begin{align*}
\det(A - \lambda I) \amp = \det\begin{bmatrix}
1-\lambda \amp 0 \amp -1 \\
0 \amp 1-\lambda \amp 2 \\
-1 \amp 2 \amp 5-\lambda
\end{bmatrix}\\
\amp = (1- \lambda) [(1 -\lambda)(5 - \lambda) - 4]
+ (-1)[0 - (1-\lambda)(-1)]\\
\amp = (1- \lambda) [(1 -\lambda)(5 - \lambda) - 4]
- (1-\lambda)\\
\amp = (1- \lambda)[(1 -\lambda)(5 - \lambda) - 4 - 1]\\
\amp = (1- \lambda)[-6 \lambda + \lambda^2]\\
\amp = -\lambda(\lambda-1)(\lambda-6)
\end{align*}
This calculation verifies that the eigenvalues of \(A\) are \(\lambda_1 = 0\text{,}\) \(\lambda_2 = 1\text{,}\) and \(\lambda_3 = 6\text{.}\) Now we proceed to find an eigenvector for each of these eigenvalues.
For the eigenvalue \(\lambda_1 = 0\text{,}\) we solve the equation \(A\mathbf{v}_1 = \mathbf{0}\text{,}\) which we expand as
\begin{equation*}
\begin{bmatrix}
1 \amp 0 \amp -1 \\
0 \amp 1 \amp 2 \\
-1 \amp 2 \amp 5
\end{bmatrix}
\begin{bmatrix} v_1 \\ v_2 \\ v_3 \end{bmatrix} =
\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
\end{equation*}
By observation, we see that the first and second columns will contain pivots in the reduced row echelon form of the matrix in the left hand side, so setting \(v_3 = 1\) gives the basic eigenvector
\begin{equation*}
\begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix}\text{.}
\end{equation*}
Normalizing gives the normalized eigenvector
\begin{equation*}
\mathbf{v}_1 = \frac{1}{\sqrt{6}} \begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix} = \begin{bmatrix} 1/\sqrt{6} \\ -2/\sqrt{6} \\ 1/\sqrt{6} \end{bmatrix}\text{,}
\end{equation*}
which will be the first vector in our basis.
For the eigenvalue \(\lambda_2 = 1\text{,}\) we solve the equation \((A - I)\mathbf{v}_2 = \mathbf{0}\text{,}\) which we expand as
\begin{equation*}
\begin{bmatrix}
0 \amp 0 \amp -1 \\
0 \amp 0 \amp 2 \\
-1 \amp 2 \amp 4
\end{bmatrix}
\begin{bmatrix} v_1 \\ v_2 \\ v_3 \end{bmatrix} =
\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
\end{equation*}
We now see that first and third columns will contain pivots when we row reduce this matrix, so setting \(v_2 = 1\) and solving gives the basic eigenvector
\begin{equation*}
\begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}\text{.}
\end{equation*}
Normalizing gives the eigenvector
\begin{equation*}
\mathbf{v}_2 = \frac{1}{\sqrt{5}} \begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 2/\sqrt{5} \\ 1/\sqrt{5} \\ 0 \end{bmatrix}\text{.}
\end{equation*}
This will be the second vector in our basis.
For \(\lambda_3 = 6\text{,}\) we solve \((A - 6I)\mathbf{v}_3 = \mathbf{0}\text{,}\) i.e.,
\begin{equation*}
\begin{bmatrix}
-5 \amp 0 \amp -1 \\
0 \amp -5 \amp 2 \\
-1 \amp 2 \amp -1
\end{bmatrix}
\begin{bmatrix} v_1 \\ v_2 \\ v_3 \end{bmatrix} =
\begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}
\end{equation*}
Solving this system gives the basic eigenvector
\begin{equation*}
\begin{bmatrix} -1/5 \\ 2/5 \\ 1 \end{bmatrix}\text{.}
\end{equation*}
Multiplying by \(5\) (to prevent working with fractions) gies the integer eigenvector
\begin{equation*}
\begin{bmatrix} -1 \\ 2 \\ 5 \end{bmatrix}
\end{equation*}
Normalizing gives the eigenvector
\begin{equation*}
\mathbf{v}_3 = \frac{1}{\sqrt{30}} \begin{bmatrix} -1 \\ 2 \\ 5 \end{bmatrix} = \begin{bmatrix} -1/\sqrt{30} \\ 2/\sqrt{30} \\ 5/\sqrt{30} \end{bmatrix}\text{.}
\end{equation*}
This will be the third and final vector in our basis.
We now set
\begin{equation*}
Q = \begin{bmatrix} 1/\sqrt{6} \amp 2/\sqrt{5} \amp -1/\sqrt{30} \\ -2/\sqrt{6} \amp 1/\sqrt{5} \amp 2/\sqrt{30} \\ 1/\sqrt{6} \amp 0 \amp 5/\sqrt{30} \end{bmatrix}\text{.}
\end{equation*}
Then
\begin{equation*}
Q^{-1}AQ = \begin{bmatrix} 0 \amp 0 \amp 0 \\ 0 \amp 1 \amp 0 \\ 0 \amp 0 \amp 6 \end{bmatrix}\text{.}
\end{equation*}
We have thus found an orthogonal diagonalization of the matrix \(A\text{.}\)