### Inner Product Spaces; Best Approximation; Least Squares

Please find the least squares solution of linear system Ax=b, and find the orthogonal projection of b onto the column space of A. I) Matrix 3*2 A=[1 1;-1 1;-1 2] , b=[7;0;7] II) A=[2 0 -1;1 -2 2;2 -1 0;0 1 -1] , b=[0;6;0;6] Answers: I) x1=5, x2=1/2, [11/2;-9/2;-4] II) x1=14, x2=30, x3=26; [2;6;-2;4] Find the ortho