4.4-exam2-1999-fall¶
Quiz 2, 1999 (fall) · Section 4.4: Orthonormal Bases and Gram-Schmidt Source: exam2_1.pdf, pp. 33, 38
Problem¶
3 (25 pts.) Start with two vectors (the columns of \(A\)):
\[
a_1 = \begin{bmatrix} \cos \theta \\ 0 \\ \sin \theta \end{bmatrix} \quad \text{and} \quad a_2 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}.
\]
(a) With \(q_1 = a_1\) find an orthonormal basis \(q_1, q_2\) for the space spanned by \(a_1\) and \(a_2\) (column space of \(A\)).
(b) What shape is the matrix \(R\) in \(A = QR\) and why is \(R = Q^T A\)? Here \(Q\) has columns \(q_1\) and \(q_2\). Compute the matrix \(R\).
(c) Find the projection matrices \(P_A\) and \(P_Q\) onto the column spaces of \(A\) and \(Q\).
Solution
3a. \[ b_2 = a_2 - (a_2 \cdot q_1) q_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} - \cos \theta \begin{bmatrix} \cos \theta \\ 0 \\ \sin \theta \end{bmatrix} = \begin{bmatrix} 1 - \cos^2 \theta \\ 0 \\ -\cos \theta \sin \theta \end{bmatrix}, \] \[ q_2 = \frac{b_2}{|b_2|} = \begin{bmatrix} \sin \theta \\ 0 \\ -\cos \theta \end{bmatrix}. \] 3b. \(R\) is a \(2 \times 2\) upper triangular matrix: \[ A = QR \implies Q^T A = Q^T QR \implies Q^T A = IR = R, \] \[ R = \begin{bmatrix} 1 & \cos \theta \\ 0 & \sin \theta \end{bmatrix}. \] 3c. Since \(C(A) = C(Q)\), \[ P_A = P_Q = QQ^T = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}. \] If you notice that the second entry of both \(a_1\) and \(a_2\) is zero, then you know you are looking for the projection matrix onto the \(xz\)-plane. You can obtain the answer without doing any matrix multiplication.Keywords: Gram-Schmidt, orthonormal basis, QR factorization, projection matrix