題組內容
3. (20%) Let $A$ be an $3 \times 3$ matrix $A = \left( \begin{array}{rrr} -1 & 1 & 0 \\ 1 & -2 & 1 \\ 0 & 1 & -1 \end{array} \right)$. Answer the following questions in detail.
(b) Find an orthogonal matrix $P$ such that $P^TAP = D$, where $D$ is a diagonal matrix.