Gram-Schmidt Process for Orthogonalization
\[ \vec{x} = x_2 \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} -1 \\ 0 \\ 1 \end{bmatrix} \]
\[ \vec{v}_2 = \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix} = \begin{bmatrix} -1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{bmatrix} \]
\[ \vec{v}_3 = \begin{bmatrix} -1 \\ 0 \\ 1 \end{bmatrix} = \begin{bmatrix} -1/\sqrt{2} \\ 0 \\ 1/\sqrt{2} \end{bmatrix} \]
\( \vec{v}_1 \) is orthogonal to \( \vec{v}_2 \) and \( \vec{v}_3 \), and this is ALWAYS true because \( \vec{v}_1 \) and \( \{ \vec{v}_2, \vec{v}_3 \} \) are from distinct eigenvalues.
\( P \) must have orthonormal columns. But \( \vec{v}_2 \) is not orthogonal to \( \vec{v}_3 \).
Perform Gram-Schmidt process to change \( \vec{v}_3 \)
\[ \vec{u}_3 = \vec{v}_3 - \frac{\langle \vec{v}_3, \vec{v}_2 \rangle}{\langle \vec{v}_2, \vec{v}_2 \rangle} \vec{v}_2 = \begin{bmatrix} -1/\sqrt{2} \\ 0 \\ 1/\sqrt{2} \end{bmatrix} - \frac{1}{2} \begin{bmatrix} -1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{bmatrix} \]
\[ = \begin{bmatrix} -\frac{1}{2\sqrt{2}} \\ -\frac{1}{2\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix} \]
\[ \|\vec{u}_3\| = \frac{\sqrt{6}}{2\sqrt{2}} \]