Consider a matrix $A:$ $$A=\begin{bmatrix} 3 &1 &1\\-1 &7 &-1\\0 &0 &5 \end{bmatrix}$$. Find a unitary matrix $U$ such that $U^{T}AU$ has the form $$\begin{bmatrix} * &* &*\\0 &* &*\\0 &* &* \end{bmatrix}$$.
I wanted to use Schur decomposition but realized the matrix may not be upper triangular. I think I need to apply Gram-Schmidt but the eigenvalues of $A$ are messy. Thanks.