題組內容

3. (20%) Let A be an $3 \times 3$ matrix $A = \begin{pmatrix} -1 & 1 & 0 \\ 1 & -2 & 1 \\ 0 & 1 & -1 \end{pmatrix}$ Answer the following questions in detail.

(b) Find an orthogonal matrix $P$ such that $P^TAP = D$, where $D$ is a diagonal matrix.