Given $$A =\begin{pmatrix} 0 & 3 & 0 \\ 3 & 0 & 4 \\ 0 & 4 & 0\end{pmatrix}$$ find a matrix $P$ such that $P^T A P$ orthogonally diagonalizes $A$. Verify that $P^TAP$ is diagonal.
I'm not sure how to approach this problem. Any help is appreciated. Thanks!
You want to find the eigenvalues and eigenvectors of $A$. Since $A$ is a real symmetric matrix, the eigenvectors should be orthogonal if the eigenvalues are distinct (which it is in this case): if they were not distinct you might have to use the Gram-Schmidt procedure to make the eigenvectors orthogonal. Divide each by its length, so they are orthonormal. Then form the matrix $P$ whose columns are those orthonormal eigenvectors.