Find the closest point to y in the subspace W spanned by v1
     Find the closest point to y in the subspace W spanned by v_1 and v_2 where  y = [3  -1  1  13], v_1 = [1  -2  -1  2], v_2 = [-4  1  0  3]. Justify all steps.![Find the closest point to y in the subspace W spanned by v_1 and v_2 where y = [3 -1 1 13], v_1 = [1 -2 -1 2], v_2 = [-4 1 0 3]. Justify all steps.SolutionWe h  Find the closest point to y in the subspace W spanned by v_1 and v_2 where y = [3 -1 1 13], v_1 = [1 -2 -1 2], v_2 = [-4 1 0 3]. Justify all steps.SolutionWe h](/WebImages/39/find-the-closest-point-to-y-in-the-subspace-w-spanned-by-v1-1118430-1761594613-0.webp) 
  
  Solution
We have vi.v2 = -4 -2 + 0 + 6 = 0. Therefore, { v1, v2} is an orthogonal set. Further since none of these 2 vectors is zero, these are linearly independent and hence form an orthogonal basis for W. Hence the point closest in W to y is projW y which can be computed as under:
[(y.v1 )/(v1. v1)]v1 +[(y.v2 )/(v2. v2 )]v2 =[ (3 +2 – 1+26)/(1+4 + 1 +4)]v1 + [(-12 – 1 +0 + 39)/ (16+1+0+9)]v2 = (30/10) v1 + (26/ 25) v2= 3 v1 + v2 = ( -1, -5, -3, 9)
![Find the closest point to y in the subspace W spanned by v_1 and v_2 where y = [3 -1 1 13], v_1 = [1 -2 -1 2], v_2 = [-4 1 0 3]. Justify all steps.SolutionWe h  Find the closest point to y in the subspace W spanned by v_1 and v_2 where y = [3 -1 1 13], v_1 = [1 -2 -1 2], v_2 = [-4 1 0 3]. Justify all steps.SolutionWe h](/WebImages/39/find-the-closest-point-to-y-in-the-subspace-w-spanned-by-v1-1118430-1761594613-0.webp)
