First, note that
\begin{align*}
\vec v_1 \amp = \vec x_1 = \begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix},
\end{align*}
Then, we have that
\begin{align*}
\vec v_2 \amp = \vec x_2 - \proj_{\vec v_1}\vec x_2\\
\amp = \begin{bmatrix} 0 \\ 1 \\ 1 \\ 1 \end{bmatrix} - \dfrac{0(1) + 1(1) + 1(1) + 1(1)}{1^2 + 1^2 + 1^2 + 1^2}\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}\\
\amp = \begin{bmatrix} \frac{-3}{4} \\ \frac{1}{4} \\ \frac{1}{4} \\ \frac{1}{4} \end{bmatrix}\\
\amp = \dfrac{1}{4}\begin{bmatrix}-3 \\ 1 \\ 1 \\ 1 \end{bmatrix}.
\end{align*}
Note that scaling \(\vec v_2\) will not change its orthogonality with \(\vec v_1\text{.}\) So, in order to make future projections easier, let’s scale the current \(\vec v_2\) by 4 to obtain
\begin{equation*}
\vec v_2' = 4\vec v_2 = \begin{bmatrix} -3 \\ 1 \\ 1 \\ 1 \end{bmatrix}\text{,}
\end{equation*}
which is still orthogonal to \(\vec v_1\text{.}\) Next, we have that
\begin{align*}
\vec v_3 \amp = \vec x_3 - \proj_{\vec v_1}\vec x_3 - \proj_{\vec v_2'}\vec x_3\\
\amp = \begin{bmatrix} 0 \\ 0 \\ 1 \\ 1 \end{bmatrix} - \dfrac{2}{4}\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} - \dfrac{0(-3) + 0(1) + 1(1) + 1(1)}{(-3)^2 + 1^2 + 1^2 + 1^2}\begin{bmatrix}-3 \\ 1 \\ 1 \\ 1 \end{bmatrix} \\
\amp = \begin{bmatrix} 0 \\ -\frac{2}{3} \\ \frac{1}{3} \\ \frac{1}{3} \end{bmatrix}\\
\amp = \dfrac{1}{3}\begin{bmatrix} 0 \\ -2 \\ 1 \\ 1 \end{bmatrix}
\end{align*}
Again, we can scale \(\vec v_3\) to obtain the a nicer vector \(\vec v_3'\) which is still orthogonal to \(\vec v_1\) and \(\vec v_2\text{:}\)
\begin{equation*}
\vec v_3' = 3\vec v_3 = \begin{bmatrix} 0 \\ -2 \\ 1 \\ 1 \end{bmatrix}\text{.}
\end{equation*}
Thus,
\begin{equation*}
\mathcal{B} = \left\{\vec v_1, \vec v_2', \vec v_3'\right\} = \left\{\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} -3 \\ 1 \\ 1\\ 1 \end{bmatrix}, \begin{bmatrix} 0 \\ -2 \\ 1\\ 1 \end{bmatrix}\right\}
\end{equation*}
is an orthogonal basis for \(W\text{.}\) Note that there was nothing forcing us to start the process with \(\vec v_1 = \vec x_1\text{.}\) If instead we started with \(\vec v_1 = \vec x_3\) and then used \(\vec x_2\) followed by \(\vec x_1\text{,}\) we would have obtained the following orthogonal basis for \(W\)
\begin{equation*}
\mathcal{C} = \left\{\begin{bmatrix} 0 \\ 0 \\ 1 \\ 1 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 0 \\ 0 \end{bmatrix}, \begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \end{bmatrix}\right\}\text{,}
\end{equation*}
which is a "nicer" orthogonal basis for
\(W\text{,}\) especially if planning to use
Theorem 6.23.