[Math] Find a unitary matrix $U$ such that $U^{T}AU$ has the form

linear algebramatricesnumerical methods

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.

Best Answer

Hint: take a normalized eigenvector $u_1$, i.e. $Au_1=\lambda u_1$, and complete it to an ON-base by $u_2$, $u_3$. Then $U=[u_1\ u_2\ u_3]$ is one choice of the matrix. It is easy to see that $$ A[u_1\ u_2\ u_3]=[u_1\ u_2\ u_3]\begin{bmatrix}\lambda &*&*\\0&*&*\\0&*&*\end{bmatrix}. $$

P.S. Without solving any characteristic equations, $\lambda=5$ seems to be the most obvious choice of an eigenvalue of $A$ with very easy $u_1$.