We apply Gram-Schmidt orthogonalization as follows. The first step is to define $\mathbf{u}_{1}=\mathbf{w}_{1}$. Before defining $\mathbf{u}_{2}$, we must compute
\begin{align*}
\mathbf{u}_{1}^{T}\mathbf{w}_{2}
&=
\mathbf{w}_{1}^{T}\mathbf{w}_{2}
=
\begin{bmatrix}
1 & 0 & 3
\end{bmatrix}
\begin{bmatrix}
2 \\ -1 \\ 0
\end{bmatrix}
=2+0+0=2,
\\
\mathbf{u}_{1}^{T}\mathbf{u}_{1}
&=
\mathbf{w}_{1}^{T}\mathbf{w}_{1}
=
\begin{bmatrix}
1 & 0 & 3
\end{bmatrix}
\begin{bmatrix}
1 \\ 0 \\ 3
\end{bmatrix}
=1+0+9=10.
\end{align*}
Next, we define
\[
\mathbf{u}_{2}
=
\mathbf{w}_{2}
-\dfrac{\mathbf{u}_{1}^{T}\mathbf{w}_{2}}
{\mathbf{u}_{1}^{T}\mathbf{u}_{1}}
\mathbf{u}_{1}
=
\begin{bmatrix}
2 \\ -1 \\ 0
\end{bmatrix}
-\dfrac{2}{10}
\begin{bmatrix}
1 \\ 0 \\ 3
\end{bmatrix}
=
\begin{bmatrix}
10/5 \\ -1 \\ 0
\end{bmatrix}
–
\begin{bmatrix}
1/5 \\ 0 \\ 3/5
\end{bmatrix}
=
\begin{bmatrix}
9/5 \\ -1 \\ -3/5
\end{bmatrix}
.
\]
By Gram-Schmidt orthogonalization, $\{\mathbf{u}_{1},\mathbf{u}_{2}\}$ is an orthogonal basis for the span of the vectors $\mathbf{w}_{1}$ and $\mathbf{w}_{2}$.
Remark
Note that since scalar multiplication by a nonzero number does not change the orthogonality of vectors and the new vectors still form a basis, we could have used $5\mathbf{u}_2$, instead of $\mathbf{u}_2$ to avoid a fraction in our computation.
We have
\[5\mathbf{u}_2=\begin{bmatrix}
10 \\
-5 \\
0
\end{bmatrix}-\begin{bmatrix}
1 \\
0 \\
3
\end{bmatrix}=\begin{bmatrix}
9 \\
-5 \\
-3
\end{bmatrix},\]
and $\{\mathbf{u}_1, 5\mathbf{u}_2\}$ is an orthogonal basis for the span.
Find an Orthonormal Basis of $\R^3$ Containing a Given Vector
Let $\mathbf{v}_1=\begin{bmatrix}
2/3 \\ 2/3 \\ 1/3
\end{bmatrix}$ be a vector in $\R^3$.
Find an orthonormal basis for $\R^3$ containing the vector $\mathbf{v}_1$.
The first solution uses the Gram-Schumidt orthogonalization process.
On the other hand, the second […]
Find an Orthonormal Basis of the Given Two Dimensional Vector Space
Let $W$ be a subspace of $\R^4$ with a basis
\[\left\{\, \begin{bmatrix}
1 \\
0 \\
1 \\
1
\end{bmatrix}, \begin{bmatrix}
0 \\
1 \\
1 \\
1
\end{bmatrix} \,\right\}.\]
Find an orthonormal basis of $W$.
(The Ohio State […]
Normalize Lengths to Obtain an Orthonormal Basis
Let
\[
\mathbf{v}_{1}
=
\begin{bmatrix}
1 \\ 1
\end{bmatrix}
,\;
\mathbf{v}_{2}
=
\begin{bmatrix}
1 \\ -1
\end{bmatrix}
.
\]
Let $V=\Span(\mathbf{v}_{1},\mathbf{v}_{2})$. Do $\mathbf{v}_{1}$ and $\mathbf{v}_{2}$ form an orthonormal basis for $V$?
If […]
Determine Whether Each Set is a Basis for $\R^3$
Determine whether each of the following sets is a basis for $\R^3$.
(a) $S=\left\{\, \begin{bmatrix}
1 \\
0 \\
-1
\end{bmatrix}, \begin{bmatrix}
2 \\
1 \\
-1
\end{bmatrix}, \begin{bmatrix}
-2 \\
1 \\
4
\end{bmatrix} […]
Quiz 10. Find Orthogonal Basis / Find Value of Linear Transformation
(a) Let $S=\{\mathbf{v}_1, \mathbf{v}_2\}$ be the set of the following vectors in $\R^4$.
\[\mathbf{v}_1=\begin{bmatrix}
1 \\
0 \\
1 \\
0
\end{bmatrix} \text{ and } \mathbf{v}_2=\begin{bmatrix}
0 \\
1 \\
1 \\
0
\end{bmatrix}.\]
[…]
Find a basis for $\Span(S)$, where $S$ is a Set of Four Vectors
Find a basis for $\Span(S)$ where $S=
\left\{
\begin{bmatrix}
1 \\ 2 \\ 1
\end{bmatrix}
,
\begin{bmatrix}
-1 \\ -2 \\ -1
\end{bmatrix}
,
\begin{bmatrix}
2 \\ 6 \\ -2
\end{bmatrix}
,
\begin{bmatrix}
1 \\ 1 \\ 3
\end{bmatrix}
\right\}$.
Solution.
We […]
Vector Space of Polynomials and Coordinate Vectors
Let $P_2$ be the vector space of all polynomials of degree two or less.
Consider the subset in $P_2$
\[Q=\{ p_1(x), p_2(x), p_3(x), p_4(x)\},\]
where
\begin{align*}
&p_1(x)=x^2+2x+1, &p_2(x)=2x^2+3x+1, \\
&p_3(x)=2x^2, &p_4(x)=2x^2+x+1.
\end{align*}
(a) Use the basis […]