I missed the last couple classes due to a family emergency and am trying to catch up with review questions. However, I can't seem to find an online source that teaches how to compute a spectral decomposition. I would really appreciate it if someone here can explain to me how the following problem would be done (at the level of someone just learning linear algebra). Thank you!
- Compute the spectral decomposition of $ \begin{bmatrix} -2 & 6 \\ 6 & 7 \end{bmatrix} $ and $ \begin{bmatrix} 1 & 0 & 2 \\ 0 & -1 & -2 \\ 2 & -2 & 0 \end{bmatrix}. $
Given a symmetric matrix $A \in M_n(\mathbb{R})$, what is usually meant by finding the spectral decomposition of $A$ is to find an orthogonal matrix $O \in M_n(\mathbb{R})$ and a diagonal matrix $D \in M_n(\mathbb{R})$ such that $O^T A O = D$. In order to find $D$ and $O$, you can apply the following steps: