Problem 1: Let y=481,u1=2/31/32/3,u2=−2/32/31/3, and W=Span{u1,u2}. Let U=[u1u2]. Compute UTU and UUT. Compute projWy and (UUT)y.
Solution: Compute UTU=[u1Tu2T][u1u2]=[u1Tu1u2Tu1u1Tu2u2Tu2]=[1001]. This implies that u1,u2 form an orthornomal basis of W. On the other hand, UUT=2/31/32/3−2/32/31/3[2/3−2/31/32/32/31/3]=918−22−254245. Because u1,u2 form an orthonormal basis, the projection of y onto W is given by (y⋅u1)u1+(y⋅u2)u2=245. Another way to compute the projection is to multiply UUT with y. In other words, (UUT)y gives the same vector 245.
Problem 2: Find an orthogonal basis for the column space of the matrix 1−1−111214−425−4−371.
Solution: Denote its column vectors by x1,x2,x3. Using Gram-Schimidt, we get v1=x1, v2=x2−v1⋅v1x2⋅v1v1=303−33∼101−11 and v3=x3−v1⋅v1x3⋅v1v1−v2⋅v2x3⋅v2v2=2022−2∼1011−1.