4.2-final-2002-b¶
Final Exam, 2002 · Section 4.2: Projections onto Lines and Subspaces Source: finalexam_1.pdf, pp. 87, 93
Problem¶
6 Let \(S\) be the subspace of \(R^3\) spanned by \(\begin{bmatrix} 1 \\ 2 \\ 2 \end{bmatrix}\) and \(\begin{bmatrix} 5 \\ 4 \\ -2 \end{bmatrix}\).
(a) Find an orthonormal basis \(q_1, q_2\) for \(S\) by Gram-Schmidt.
(b) Write down the 3 by 3 matrix \(P\) which projects vectors perpendicularly onto \(S\).
(c) Show how the properties of \(P\) (what are they?) lead to the conclusion that \(Pb\) is orthogonal to \(b - Pb\).
Solution
(a) Let \(a = (1, 2, 2)\) and \(b = (5, 4, -2)\). Then \[ q_1 = \frac{a}{\|a\|} = \frac{1}{3}\begin{bmatrix} 1 \\ 2 \\ 2 \end{bmatrix}, \qquad q_2 = \frac{b - q_1^Tb\,q_1}{\|b - q_1^Tb\,q_1\|} = \frac{1}{\sqrt{4^2 + 2^2 + (-4)^2}}\begin{bmatrix} 4 \\ 2 \\ -4 \end{bmatrix} = \frac{1}{3}\begin{bmatrix} 2 \\ 1 \\ -2 \end{bmatrix} \] (using \(q_1^Tb = 3\), so \(b - 3q_1 = (4, 2, -4)\)). (b) With \(Q = [q_1 \quad q_2]\), the projection matrix is \[ P = QQ^T = \frac{1}{9}\begin{bmatrix} 5 & 4 & -2 \\ 4 & 5 & 2 \\ -2 & 2 & 8 \end{bmatrix}. \] (c) The properties of a projection matrix are \(P^2 = P\) and \(P^T = P\). Then \[ (Pb)^T(b - Pb) = b^TP^T(b - Pb) = b^T(Pb - P^2b) = b^T(Pb - Pb) = 0, \] so \(Pb\) is orthogonal to \(b - Pb\).Keywords: Gram-Schmidt, projection matrix, orthogonality, orthonormal basis