Math 4242 Spring 2020 Selected Homework Solutions
a 0 1.2.12(a): Show that if D = ( 0 b ) is a 2 × 2 diagonal matrix with a 6= b, then the only matrices that commute (under matrix multiplication) with D are other 2 × 2 diagonal matrices. 1.2.12(b): What if a = b?
w x aw ax aw bx Consider a generic 2×2 matrix A = ( y z ). Then DA = ( by bz ) , whereas AD = ay bz . In particular, DA = AD precisely when ax = bx and ay = by. If a 6= b, then this can only happen when x = y = 0. This handles part (a) of the question. On the other hand, if a = b, then one always has ax = bx and ay = by. Hence, DA = AD for every A.
−1 1 −1 1.3.33(b): Find the A = LU factorization of the coefficient matrix A = 1 1 1 , and then use Forward −1 1 2 and Back Substitution to solve the corresponding linear systems Ax = bj for each of the right-hand 1 −3 sides b1 = −1 and b2 = 0 . 1 2
We start by declaring the −1 in the top left corner of A to be our first pivot. Then we can add the first row to the second and −1 times the first row to the third. This will have the effect of zeroing out −1 1 −1 the entries below the first pivot. The resulting matrix is U = 0 2 0 . 0 0 3 Notice that U is already upper-triangular, so there is no need to do any work with the second and 1 0 0 third pivots. Thus, we’ve found our factorization: A = LU, where L = −1 1 0 . Recall that L is the 1 0 1 product of the inverses of the type-1 elementary matrices we used to reduce A.
Now, we’ll perform forward substitution on both b1 and b2 to solve Lcj = bj. Let’s name the variables αj cj = βj for convenience. Then the first “row” in Lcj = bj implies that αj is equal to the first entry γj of bj. That is, α1 = 1 and α2 = −3. The second row implies that −αj + βj is equal to the second entry of bj. Since we’ve already solved for αj, we can use this to solve for βj: β1 = 0 and β2 = −3. Finally, the third row of Lcj = bj implies that αj + γj is equal to the third entry of bj. We’ve solved for αj, so we can substitute to determine γj: γ1 = 0 and γ2 = 5. 1 Next, we perform back substitution to solve Ux = cj for each j. We have c1 = 0 . We thus find that 0 y = z = 0 in this case (from the last two equations), which leaves us with x = −1. Similarly, we have −3 c2 = −3 . The last equation then implies that z = 5/3, while the second equation implies y = −3/2. 5 Substituting these into the first equation, we find that x = 3 − 3/2 − 5/3 = −1/6.
−1 −1/6 Summarizing, A 0 = b1 and A −3/2 = b2. 0 5/3
1.4.10: Write down the elementary 4×4 permutation matrix (a) P1 that permutes the second and fourth rows, and (b) P2 that permutes the first and fourth row. (c) Do P1 and P2 commute? (d) Explain what the matrix products P1P2 and P2P1 do to a 4 × 4 matrix.
1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 We have P1 = and P2 = . 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0
The effect of P1P2 on a 4 × 4 matrix (when we multiply by P1P2 on the left) is to first perform the permutation corresponding to P2 (since it is closer to the matrix on which we’re operating), then perform the permutation corresponding to P2. That is, P1P2 sends the first row temporarily to the fourth row and then to the second row, sends the second row to the fourth row, and sends the fourth row to the first row. On the other hand, P2P1 corresponds to performing the operations in the opposite order. That is, P2P1 sends the first row to the fourth row, the second row to the first row, and the fourth row to the second row.
More briefly, P1P2 and P2P1 both cycle the first, second, and fourth rows, but in the opposite direction (P1P2 cycles them in “ascending” order, and P2P1 in “descending” order). Since these are distinct permutations of the rows, the matrices P1P2 and P2P1 cannot be equal. In other words, P1 and P2 do not commute.
1 0 0 1 0 0 1 0 0 1.5.4: Show that the inverse of L = a 1 0 is L−1 = −a 1 0 . However, the inverse of M = a 1 0 is b 1 0 −b 0 1 b c 1 1 0 0 not −a 1 0 . What is M −1? −b −c 1
1 0 0 1 0 0 1 0 0 If we multiply L −a 1 0 , we find that it equals a−a 1 0 = I. Similarly, −a 1 0 L is equal to the −b 0 1 b−b 0 1 −b 0 1 1 0 0 3 × 3 identity. Thus, the inverse of L is indeed −a 1 0 . −b 0 1 1 0 0 We claim that M −1 = −a 1 0 . Indeed, one can check (by multiplying) that this is a two-sided −b+ac −c 1 inverse of M.
1.5.25: Find the inverse of each of the following matrices, if possible, by applying the Gauss–Jordan 1 0 −2 Method. (a) 1 −2 , (e) 3 −1 0 . 3 −3 −2 1 −3