2.
(c) Orthogonally diagonalize the matrix A. (You need to find out an orthogonal matrix P and a diagonal matrix D such that PᵀAP = D.)