Step 1: Orthogonalize columns \( \mathbf{x}_1 = (1, 1, 0)^T \) and \( \mathbf{x}_2 = (1, 0, 1)^T \):
First vector: \( \mathbf{v}_1 = \mathbf{x}_1 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} \).
Second vector: subtract projection of \( \mathbf{x}_2 \) onto \( \mathbf{v}_1 \): \[ \mathbf{x}_2 \cdot \mathbf{v}_1 = 1(1) + 0(1) + 1(0) = 1, \quad \|\mathbf{v}_1\|^2 = 1^2 + 1^2 + 0^2 = 2. \] \[ \mathbf{v}_2 = \mathbf{x}_2 - \frac{1}{2}\mathbf{v}_1 = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} - \begin{pmatrix} 1/2 \\ 1/2 \\ 0 \end{pmatrix} = \begin{pmatrix} 1/2 \\ -1/2 \\ 1 \end{pmatrix}. \] Check orthogonality: \( \mathbf{v}_1 \cdot \mathbf{v}_2 = 1(1/2) + 1(-1/2) + 0(1) = 0 \). ✓
Step 2: Normalize to construct \( Q \):
\( \|\mathbf{v}_1\| = \sqrt{2} \implies \mathbf{q}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} \).
\( \|\mathbf{v}_2\| = \sqrt{(1/2)^2 + (-1/2)^2 + 1^2} = \sqrt{1/4 + 1/4 + 1} = \sqrt{3/2} = \frac{\sqrt{6}}{2} \).
\( \mathbf{q}_2 = \frac{2}{\sqrt{6}}\begin{pmatrix} 1/2 \\ -1/2 \\ 1 \end{pmatrix} = \frac{1}{\sqrt{6}}\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix} \).
Therefore: \[ Q = \begin{pmatrix} 1/\sqrt{2} & 1/\sqrt{6} \\ 1/\sqrt{2} & -1/\sqrt{6} \\ 0 & 2/\sqrt{6} \end{pmatrix}. \]
Step 3: Compute \( R = Q^T A \): \[ R = \begin{pmatrix} \|\mathbf{v}_1\| & \mathbf{q}_1 \cdot \mathbf{x}_2 \\ 0 & \|\mathbf{v}_2\| \end{pmatrix} = \begin{pmatrix} \sqrt{2} & 1/\sqrt{2} \\ 0 & \sqrt{3/2} \end{pmatrix}. \] Checking product \( QR \): \[ QR = \begin{pmatrix} 1/\sqrt{2} & 1/\sqrt{6} \\ 1/\sqrt{2} & -1/\sqrt{6} \\ 0 & 2/\sqrt{6} \end{pmatrix} \begin{pmatrix} \sqrt{2} & 1/\sqrt{2} \\ 0 & \sqrt{3/2} \end{pmatrix} = \begin{pmatrix} 1 & 1/2 + 1/2 \\ 1 & 1/2 - 1/2 \\ 0 & 2(1/2) \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \\ 0 & 1 \end{pmatrix} = A. \quad \text{\checkmark } \]