Skip to main content

Section 6.4 Gram–Schmidt and QR Decomposition

Handout 6.4 Gram–Schmidt and QR Decomposition

Motivating Question
Identify an orthogonal basis for the subspace spanned by:
\begin{equation*} \vec x_1=\begin{bmatrix}1\\1\\1\\1\end{bmatrix},\quad \vec x_2=\begin{bmatrix}0\\1\\1\\1\end{bmatrix},\quad \vec x_3=\begin{bmatrix}0\\0\\1\\1\end{bmatrix}. \end{equation*}
 
Geometric view of Gram–Schmidt orthogonalization.
Vectors \(\vec x_1,\vec x_2,\vec x_3\) are used to produce orthogonal vectors \(\vec v_1,\vec v_2,\vec v_3\) via subtraction of projections.
Gram–Schmidt successively removes the components of each vector in the span of earlier ones.

Example 6.45.

Let \(W = \Span\left\{\begin{bmatrix} 3 \\ 0 \\ -1 \end{bmatrix}, \begin{bmatrix} 8 \\ 5 \\ -6 \end{bmatrix} \right\}\text{.}\) Find an orthogonal basis for \(W\text{.}\)

Example 6.46.

The vectors below span a subspace \(W\subseteq\mathbb{R}^4\text{.}\) Construct an orthogonal basis for \(W\text{.}\)
\begin{equation*} \vec x_1=\begin{bmatrix}1\\1\\1\\1\end{bmatrix},\quad \vec x_2=\begin{bmatrix}0\\1\\1\\1\end{bmatrix},\quad \vec x_3=\begin{bmatrix}0\\0\\1\\1\end{bmatrix}. \end{equation*}
 

Example 6.48.

Compute the QR decomposition of:
\begin{equation*} A=\begin{bmatrix} 3 \amp -2\\ 2 \amp 3\\ 0 \amp 1 \end{bmatrix}. \end{equation*}

Example 6.49.

Compute the QR decomposition of:
\begin{equation*} A=\begin{bmatrix} 1 \amp 0 \amp 0 \\ 1 \amp 1 \amp 0 \\ 1 \amp 1 \amp 1 \\ 1 \amp 1 \amp 1 \end{bmatrix}. \end{equation*}