Find a matrix $P$ that orthogonally diagonalizes $I-uu^T$ if $u=\pmatrix{1\\-1\\1}$.
Let matrix $A=I-uu^T=\pmatrix{0&1&-1\\1&0&1\\-1&1&0}$.
I have followed the usual procedure and obtained matrix $P=\pmatrix{\frac{1}{\sqrt3}&-\frac{1}{\sqrt6}&\frac{1}{\sqrt2}\\-\frac{1}{\sqrt3}&\frac{1}{\sqrt6}&\frac{1}{\sqrt2}\\\frac{1}{\sqrt3}&\frac{2}{\sqrt6}&0}$.
In the midst of solving for $P^TAP$, I realized it got really tedious and long-winded. Is there is a better method to go about obtaining the diagonal matrix $D$ instead of computing it directly like so? I can't help but feel like I have missed something.
Note that the diagonal entries of $D$ are simply the eigenvalues of $A$. Once you confirm that the eigenvalues of $A$ are $-2,1,1$, you can immediately conclude that we have $$ D = \pmatrix{-2&0&0\\0&1&0\\0&0&1} $$ no computation of eigenvectors (or of $P$) required.