Skip to main content

Section 6.3 Orthogonal Projections

Handout 6.3 Orthogonal Projections

Motivating Question
For the matrix \(A\) and vector \(\vec b\text{,}\) which vector \(\widehat b \in \Col(A)\) is closest to \(\vec b\text{?}\)
\begin{equation*} A=\begin{bmatrix} 1 \amp 2\\ 3 \amp 0\\ -4 \amp -2 \end{bmatrix}, \qquad \vec b=\begin{bmatrix}1\\1\\1\end{bmatrix}. \end{equation*}

Example 6.37.

Let \(\{\vec u_1,\dots,\vec u_5\}\) be an orthonormal basis of \(\mathbb{R}^5\) and let \(W=\operatorname{Span}\{\vec u_1,\vec u_2\}\text{.}\)
For any \(\vec y\in\mathbb{R}^5\text{,}\) write the orthogonal decomposition: \(\vec y=\widehat y + w^\perp\text{,}\) with \(\widehat y\in W\) and \(w^\perp\in W^\perp\text{.}\)

Example 6.38.

Given
\begin{equation*} \vec y=\begin{bmatrix}-1\\2\\6\end{bmatrix},\quad \vec u_1=\begin{bmatrix}3\\-1\\2\end{bmatrix},\quad \vec u_2=\begin{bmatrix}1\\-1\\-2\end{bmatrix}, \end{equation*}
construct the decomposition \(\vec y = \widehat y + w^\perp\text{,}\) where \(\widehat y\) is the orthogonal projection of \(\vec y\) onto \(W=\operatorname{Span}\{\vec u_1,\vec u_2\}\text{.}\)

Definition 6.40.

Let \(W \subset \mathbb{R}^n\) and \(\vec y \in \mathbb{R}^n\text{.}\) The distance of a vector \(\vec y\) from a subspace \(W\), denoted \(\dist(\vec y, W)\text{,}\) is the minimum distance between \(\vec y\) and a vector \(\vec w \in W\text{;}\) that is,
\begin{equation*} \dist(\vec y, W) = \operatorname{min}\left\{\dist(\vec y, \vec w) : w \in W\right\}\text{.} \end{equation*}
By TheoremΒ 6.39, we see that the vector in \(W\) which is closest to \(\vec y\) is \(\widehat y = \proj_W\vec y\text{.}\) Therefore,
\begin{equation*} \dist(\vec y, W) = \dist(\vec y, \widehat y)\text{.} \end{equation*}

Example 6.41.

Using the same vectors as ExampleΒ 6.38:
\begin{equation*} \vec y=\begin{bmatrix}-1\\2\\6\end{bmatrix},\quad \vec u_1=\begin{bmatrix}3\\-1\\2\end{bmatrix},\quad \vec u_2=\begin{bmatrix}1\\-1\\-2\end{bmatrix}, \end{equation*}
compute the distance from \(\vec y\) to \(W=\operatorname{Span}\{\vec u_1,\vec u_2\}\text{.}\)

Example 6.42.

Find the distance from \(\vec y\) to the subspace \(W = \Span\{\vec v_1, \vec v_2, \vec v_3\}\text{,}\) where
\begin{equation*} \vec y = \begin{bmatrix} 11 \\ 1 \\ -2 \\ 6 \end{bmatrix}, \qquad \vec v_1 = \begin{bmatrix} 1 \\ 1 \\ 0 \\ -1 \end{bmatrix}, \qquad \vec v_2 = \begin{bmatrix} 1 \\ 0 \\ 1 \\ 1 \end{bmatrix}, \qquad \vec v_3 = \begin{bmatrix} 0 \\ -1 \\ 1 \\ -1\end{bmatrix}\text{.} \end{equation*}

Example 6.43.

Indicate whether each statement is true or false. If true, explain why. If false, give a counterexample.
(a)
If \(\vec x\) is orthogonal to \(\vec v\) and \(\vec w\text{,}\) then \(\vec x\) is orthogonal to \(\vec v - \vec w\text{.}\)
(b)
If \(\proj_{W}{\vec y} = \vec y\text{,}\) then \(\vec y \in W\text{.}\)
(c)
If \(\vec y = \vec u_1 + \vec v_1\text{,}\) where \(\vec u_1 \in W\) and \(\vec v_1 \in W^\perp\text{,}\) then \(\vec u_1\) is the orthogonal projection of \(\vec y\) onto \(W\text{.}\)