(Change of Basis) Set U = round(20 rand(4)) 10, V = round(10 rand(4)) and set b = ones(4, 1). (a) We can use the MATLAB function rank to determine whether the column vectors of a matrix are linearly independent. What should the rank be if the column vectors of U are linearly independent? Compute the rank of U, and verify that its column vectors are linearly independent and hence form a basis for R4. Compute the rank of V, and verify that its column vectors also form a basis for R4. (b) Use MATLAB to compute the transition matrix from the standard basis for R4 to the ordered basis E = {u1, u2, u3, u4}. [Note that in MATLAB the notation for the jth column vector uj is U(:, j).] Use this transition matrix to compute the coordinate vector c of b with respect to E. Verify that b = c1u1 + c2u2 + c3u3 + c4u4 = Uc (c) Use MATLAB to compute the transition matrix from the standard basis to the ordered basis F = {v1, v2, v3, v4}, and use this transition matrix to find the coordinate vector d of b with respect to F. Verify that b = d1v1 + d2v2 + d3v3 + d4v4 = Vd (d) Use MATLAB to compute the transition matrix S from E to F and the transition matrix T from F to E. How are S and T related? Verify that Sc = d and Td = c.
Read more
Table of Contents
Textbook Solutions for Linear Algebra with Applications
Question
(Rank-1 Updates of Linear Systems) (a) Set A = round(10 rand(8)) b = round(10 rand(8, 1)) M = inv(A) Use the matrix M to solve the system Ay = b for y. (b) Consider now a new system Cx = b, where C is constructed as follows: u = round(10 rand(8, 1)) v = round(10 rand(8, 1)) E = u v C = A + E The matrices C and A differ by the rank-1 matrix E. Use MATLAB to verify that the rank of E is 1. Use MATLABs \ operation to solve the system Cx = b and then compute the residual vector r = b Ax. (c) Let us now solve Cx = b by a new method that takes advantage of the fact that A and C differ by a rank-1 matrix. This new procedure is called a rank-1 update method. Set z = M u, c = v y, d = v z, e = c/(1 + d) and then compute the solution x by x = y e z Compute the residual vector b Cx and compare it with the residual vector in part (b). This new method may seem more complicated, but it actually is much more computationally efficient. (d) To see why the rank-1 update method works, use MATLAB to compute and compare Cy and b + cu Prove that if all computations had been carried out in exact arithmetic, these two vectors would be equal. Also, compute Cz and (1 + d)u Prove that if all computations had been carried out in exact arithmetic, these two vectors would be equal. Use these identities to prove that Cx = b. Assuming that A is nonsingular, will the rank-1 update method always work? Under what conditions could it fail? Explain.
Solution
The first step in solving 3 problem number 4 trying to solve the problem we have to refer to the textbook question: (Rank-1 Updates of Linear Systems) (a) Set A = round(10 rand(8)) b = round(10 rand(8, 1)) M = inv(A) Use the matrix M to solve the system Ay = b for y. (b) Consider now a new system Cx = b, where C is constructed as follows: u = round(10 rand(8, 1)) v = round(10 rand(8, 1)) E = u v C = A + E The matrices C and A differ by the rank-1 matrix E. Use MATLAB to verify that the rank of E is 1. Use MATLABs \ operation to solve the system Cx = b and then compute the residual vector r = b Ax. (c) Let us now solve Cx = b by a new method that takes advantage of the fact that A and C differ by a rank-1 matrix. This new procedure is called a rank-1 update method. Set z = M u, c = v y, d = v z, e = c/(1 + d) and then compute the solution x by x = y e z Compute the residual vector b Cx and compare it with the residual vector in part (b). This new method may seem more complicated, but it actually is much more computationally efficient. (d) To see why the rank-1 update method works, use MATLAB to compute and compare Cy and b + cu Prove that if all computations had been carried out in exact arithmetic, these two vectors would be equal. Also, compute Cz and (1 + d)u Prove that if all computations had been carried out in exact arithmetic, these two vectors would be equal. Use these identities to prove that Cx = b. Assuming that A is nonsingular, will the rank-1 update method always work? Under what conditions could it fail? Explain.
From the textbook chapter Vector Spaces you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution