Let\[ A=\begin{bmatrix}1&0\\1&1\\1&2\end{bmatrix}\qquad\text{and}\qquad \mathbf b=\begin{bmatrix}1\\0\\4\end{bmatrix}. \]The orthogonal projection of \(\mathbf b\) onto the column space of \(A\) is
Show the worked solutionThe projection is \(\mathbf p=A\hat{\mathbf x}\), where \(\hat{\mathbf x}\) solves the normal equations:\[\boxed{A^{T}A\,\hat{\mathbf x}=A^{T}\mathbf b,\qquad \mathbf p=A\hat{\mathbf x}=A\left(A^{T}A\right)^{-1}A^{T}\mathbf b}\]\(A^{T}A=\begin{bmatrix}3&3\\3&5\end{bmatrix}\) (determinant \(6\)) and \(A^{T}\mathbf b=\begin{bmatrix}5\\8\end{bmatrix}\), so\[\hat{\mathbf x}=\frac16\begin{bmatrix}5&-3\\-3&3\end{bmatrix}\begin{bmatrix}5\\8\end{bmatrix}=\begin{bmatrix}1/6\\3/2\end{bmatrix},\qquad \mathbf p=\left(\tfrac16,\ \tfrac16+\tfrac32,\ \tfrac16+3\right)^{T}=\left(\tfrac16,\ \tfrac53,\ \tfrac{19}{6}\right)^{T}.\]Check: the error \(\mathbf e=\mathbf b-\mathbf p=\left(\tfrac56,-\tfrac53,\tfrac56\right)^{T}\) is orthogonal to both columns: \(\tfrac56-\tfrac53+\tfrac56=0\) and \(0-\tfrac53+\tfrac53=0\).Option (B) is the error vector \(\mathbf e\). Options (C) and (D) project \(\mathbf b\) onto one column only, which is not enough because the columns are not orthogonal.Answer: A
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com