Consider an orthogonal matrix $A\in \mathbb{R}^{3\times 3}$. Find an orthogonal matrix $T\in O(3)$ s.t. \begin{equation} T^\top A T=\begin{pmatrix}1&0&0\\0&\cos\theta&-\sin\theta\\0&\sin\theta&\cos\theta\end{pmatrix} \end{equation} My attempt is not very enlightening, I have basically simply considered a brute-force method: We calculate the angle $\theta$ through the formula $\cos\theta=\frac{1}{2}\cdot(tr(A)-1)$ and then create a system of equations. Unfortunately, this system has 9 equations excluding the condition that $T$ is orthogonal. I am sure there is an easy way to do it (I have a hunch that it has something to do with the eigenvector of the eigenvalue 1, but I don't know what).
I would really appreciate your help!
Fact: orthgonal real $3\times 3$ matrices always have (at least) one eigenvalue equal to $1$ or equal to $-1$. (thanks to @Christoph for the correction)
You should choose the columns of $T=\begin{pmatrix}v_1 &v_2&v_3\end{pmatrix}$ such that:
Then: