Compute the dot product between ( u_1 ) and ( u_2 ):
[
u_1 = \begin{bmatrix} 1 \ -2 \ 1 \end{bmatrix}, \quad u_2 = \begin{bmatrix} 2 \ -2 \ -6 \end{bmatrix}
]
The dot product ( u_1 \cdot u_2 ) is calculated as follows:
[
u_1 \cdot u_2 = (1)(2) + (-2)(-2) + (1)(-6) = 2 + 4 - 6 = 0
]
Since the dot product is zero, ( u_1 ) and ( u_2 ) are orthogonal.
Calculate the orthogonal projection of ( y ) onto ( W = \text{Span}{u_1, u_2} ):
Given that ( u_1 ) and ( u_2 ) are orthogonal, the projection of a vector ( y ) onto the span of orthogonal vectors can be computed by projecting ( y ) onto each vector separately, and then summing the results.
[
\text{Proj}_{u1}(y) = \frac{y \cdot u1}{u1 \cdot u1} u1
]
[
\text{Proj}_{u2}(y) = \frac{y \cdot u2}{u2 \cdot u2} u2
]
First, compute ( y \cdot u_1 ):
[
y \cdot u1 = \begin{bmatrix} -10 \ -2 \ -7 \end{bmatrix} \cdot \begin{bmatrix} 1 \ -2 \ 1 \end{bmatrix} = (-10)(1) + (-2)(-2) + (-7)(1) = -10 + 4 - 7 = -13
]
Compute ( u_1 \cdot u_1 ):
[
u1 \cdot u1 = 1^2 + (-2)^2 + 1^2 = 1 + 4 + 1 = 6
]
Therefore, (\text{Proj}_{u1}(y)):
[
\text{Proj}_{u1}(y) = \frac{-13}{6} u1 = \frac{-13}{6} \begin{bmatrix} 1 \ -2 \ 1 \end{bmatrix} = \begin{bmatrix} -13/6 \ 26/6 \ -13/6 \end{bmatrix}
]
Then, compute ( y \cdot u_2 ):
[
y \cdot u2 = (-10)(2) + (-2)(-2) + (-7)(-6) = -20 + 4 + 42 = 26
]
Compute ( u_2 \cdot u_2 ):
[
u2 \cdot u2 = 2^2 + (-2)^2 + (-6)^2 = 4 + 4 + 36 = 44
]
Therefore, (\text{Proj}_{u2}(y)):
[
\text{Proj}_{u2}(y) = \frac{26}{44} u2 = \frac{13}{22} \begin{bmatrix} 2 \ -2 \ -6 \end{bmatrix} = \begin{bmatrix} 26/22 \ -26/22 \ -78/22 \end{bmatrix} = \begin{bmatrix} 13/11 \ -13/11 \ -39/11 \end{bmatrix}
]
Summing both projections gives the projection of ( y ) onto ( W ):
[
\text{Proj}W(y) = \text{Proj}{u1}(y) + \text{Proj}_{u2}(y) = \begin{bmatrix} -13/6 \ 26/6 \ -13/6 \end{bmatrix} + \begin{bmatrix} 13/11 \ -13/11 \ -39/11 \end{bmatrix}
]
We note that given a previously computed answer of:
[
\begin{bmatrix} -65/66 \ 208/66 \ -377/66 \end{bmatrix}
]
Compute the distance from ( y ) to ( W ):
The distance can be determined by finding the magnitude of the vector difference between ( y ) and its projection onto ( W ):
[
\text{Distance} = | y - \text{Proj}_W(y) |
]
Calculate ( y - \text{Proj}_W(y) ):
[
y - \text{Proj}_W(y) = \begin{bmatrix} -10\ -2 \ -7 \end{bmatrix} - \begin{bmatrix} -65/66 \ 208/66 \ -377/66 \end{bmatrix} = \begin{bmatrix} -595/66 \ -340/66 \ 29/66 \end{bmatrix}
]
Compute the magnitude of this vector:
[
| y - \text{Proj}_W(y) | = \sqrt{\left(-\frac{595}{66}\right)^2 + \left(-\frac{340}{66}\right)^2 + \left(\frac{29}{66}\right)^2}
]
Compute each term:
[
\left(-\frac{595}{66}\right)^2 = \frac{354025}{4356}, \quad \left(-\frac{340}{66}\right)^2 = \frac{115600}{4356}, \quad \left(\frac{29}{66}\right)^2 = \frac{841}{4356}
]
Sum the fractions and take the square root:
[
\sqrt{\frac{354025 + 115600 + 841}{4356}} = \sqrt{\frac{470466}{4356}} = \frac{\sqrt{470466}}{\sqrt{4356}}
]
Calculating the roots using a calculator will yield an approximate result:
[
\frac{\sqrt{470466}}{\sqrt{4356}} \approx \frac{686.09}{66} \approx 10.3947
]