Problem 1: Describe all least-squares solutions of the equation Ax=b, where A=111111000011,b=1382.
Solution: All least-squares solutions of Ax=b is given by ATAx=ATb. Note ATA=422220202,ATb=14410. The solution of ATAx=ATb is x1=5−x3,x2=2−x3,x3=x3, which also describes all least-squares solutions of Ax=b.
Problem 2: Find (a) the orthogonal projection of b onto ColA and (b) a least-squares solution of Ax=b, where A=13−2514,b=4−2−3.
Solution: (a) Suppose the columns of A are a1,a2. The projection b^=a1⋅a1b⋅a1a1+a2⋅a2b⋅a2a2=72a1+71a2=. (b) The least-square solution is given by the coefficients in the projection identity x^=[2/71/7].
Problem 3: Find (a) QR factorization of A=1−1−111214−425−4−371 and (b) a least-squares solution of Ax=b, where b=72365.
Solution: (a) Denote its column vectors by x1,x2,x3. Using Gram-Schimidt, we get v1=x1=1−1−111, v2=x2−v1⋅v1x2⋅v1v1=303−33∼101−11 and v3=x3−v1⋅v1x3⋅v1v1−v2⋅v2x3⋅v2v2=2022−2∼1011−1. Normalize v1,v2,v3 and get v^1=v1/5, v^2=v2/2 and v^3=v3/2. Therefore Q=1/5−1/5−1/51/51/51/201/2−1/21/21/201/21/2−1/2 and R=QTA=(5)00(5)605(5)−24. (b) The least-squares solution of Ax=b is given by Rx^=QTb=13/59/211/2. By back substitution, we obtain x^=−203/12029/2411/8.