Review of Matrices and Block Structures

Review of Matrices and Block Structures

APPENDIX A Review of Matrices and Block Structures Numerical linear algebra lies at the heart of modern scientific computing and computational science. Today it is not uncommon to perform numerical computations with matrices having millions of components. The key to understanding how to implement such algorithms is to exploit underlying structure within the matrices. In these notes we touch on a few ideas and tools for dissecting matrix structure. Specifically we are concerned with the block structure matrices. 1. Rows and Columns m n Let A R ⇥ so that A has m rows and n columns. Denote the element of A in the ith row and jth column 2 as Aij. Denote the m rows of A by A1 ,A2 ,A3 ,...,Am and the n columns of A by A 1,A2,A3,...,An. For example, if · · · · · · · · 32 15 73 − A = 2 27 32 100 0 0 , 2 −89 0 47− 22 21 333 − − then A = 100, 4 5 2,4 − A1 = 32 1573,A2 = 2 27 32 100 0 0 ,A3 = 89 0 47 22 21 33 · − · − − · − − and ⇥ ⇤ ⇥ ⇤ ⇥ ⇤ 3 2 1 5 7 3 − A 1 = 2 ,A2 = 27 ,A3 = 32 ,A4 = 100 ,A5 = 0 ,A6 = 0 . · 2 −893 · 2 0 3 · 2 47 3 · 2−22 3 · 2 213 · 2333 − − 4 5 4 5 4 5 4 5 4 5 4 5 Exercise 1.1. If 3 41100 220010− 2 3 C = 100001, − 6 0002147 6 7 6 0001037 6 7 4 5 4 −2 2 3 what are C4,4, C 4 and C4 ? For example, C2 = 220010and C 2 = 0 . · · · · 6 0 7 ⇥ ⇤ 6 7 6 0 7 6 7 4 5 The block structuring of a matrix into its rows and columns is of fundamental importance and is extremely m n useful in understanding the properties of a matrix. In particular, for A R ⇥ it allows us to write 2 A1 · A2 2 · 3 A3 A = · and A = A 1 A 2 A 3 ... An . 6 . 7 · · · · 6 . 7 6 7 ⇥ ⇤ 6Am 7 6 ·7 4 5 These are called the row and column block representations of A,respectively 85 86 A.REVIEWOFMATRICESANDBLOCKSTRUCTURES m n n 1.1. Matrix vector Multiplication. Let A R ⇥ and x R . In terms of its coordinates (or components), 2 2 x1 x2 we can also write x = 2 . 3 with each xj R.Thetermxj is called the jth component of x. For example if . 2 6 7 6x 7 6 n7 4 5 5 x = 100 , 2−22 3 then n =3,x =5,x = 100,x = 22. We define the4 matrix-vector5 product Ax by 1 2 − 3 A1 x · • A2 x 2 · • 3 A3 x Ax = · • , 6 . 7 6 . 7 6 7 6Am x7 6 · • 7 4 5 where for each i =1, 2,...,m, Ai x is the dot product of the ith row of A with x and is given by · • n Ai x = Aijxj . · • j=1 X For example, if 1 1 32 15 73 2− 3 − 0 A = 2 27 32 100 0 0 and x = , 2 − − 3 6 0 7 89 0 47 22 21 33 6 7 − − 6 2 7 4 5 6 7 6 3 7 6 7 then 4 5 24 Ax = 29 . 2−323 − Exercise 1.2. If 4 5 1 3 41100 − 1 220010 2− 3 2 3 0 C = 100001and x = , − 6 0 7 6 0002147 6 7 6 7 6 2 7 6 0001037 6 7 6 7 6 3 7 4 5 6 7 what is Cx? 4 5 m n n m Note that if A R ⇥ and x R ,thenAx is always well defined with Ax R . In terms of components, 2 2 2 the ith component of Ax is given by the dot product of the ith row of A (i.e. Ai ) and x (i.e. Ai x). The view of the matrix-vector product described above is the row-space perspective,· where the· • term row-space will be given a more rigorous definition at a later time. But there is a very di↵erent way of viewing the matrix-vector product based on a column-space perspective. This view uses the notion of the linear combination of a collection of vectors. 1 2 k n Given k vectors v ,v ,...,v R and k scalars ↵1,↵2,...,↵k R, we can form the vector 2 2 1 2 k n ↵1v + ↵2v + + ↵kv R . ··· 2 1 2 k Any vector of this kind is said to be a linear combination of the vectors v ,v ,...,v where the ↵1,↵2,...,↵k are called the coefficients in the linear combination. The set of all such vectors formed as linear combinations of v1,v2,...,vk is said to be the linear span of v1,v2,...,vk and is denoted 1 2 k 1 2 k span v ,v ,...,v := ↵1v + ↵2v + + ↵kv ↵1,↵2,...,↵k R . ··· 2 2.MATRIXMULTIPLICATION 87 Returning to the matrix-vector product, one has that A x + A x + A x + + A x 11 1 12 2 13 3 ··· 1n n A21x1 + A22x2 + A23x3 + + A2nxn Ax = 2 . ···. 3 = x1A 1 + x2A 2 + x3A 3 + + xnA n, . · · · ··· · 6 7 6A x + A x + A x + + A x 7 6 m1 1 m2 2 m3 3 ··· mn n7 which is a linear combination4 of the columns of A. That is, we5 can view the matrix-vector product Ax as taking a linear combination of the columns of A where the coefficients in the linear combination are the coordinates of the vector x. We now have two fundamentally di↵erent ways of viewing the matrix-vector product Ax. Row-Space view of Ax: A1 x · • A2 x 2 · • 3 A3 x Ax = · • 6 . 7 6 . 7 6 7 6Am x7 6 · • 7 Column-Space view of Ax: 4 5 Ax = x1A 1 + x2A 2 + x3A 3 + + xnA n . · · · ··· · 2. Matrix Multiplication We now build on our notion of a matrix-vector product to define a notion of a matrix-matrix product which m n n k we call matrix multiplication. Given two matrices A R ⇥ and B R ⇥ note that each of the columns of B n n 2 2 resides in R ,i.e. B j R i =1, 2,...,k. Therefore, each of the matrix-vector products AB j is well defined for j =1, 2,...,k. This· allows2 us to define a matrix-matrix product that exploits the block column· structure of B by setting (108) AB := AB 1 AB 2 AB 3 AB k . · · · ··· · m m k Note that the jth column of AB is (AB) j =⇥ AB j R and that AB R ⇤⇥ ,i.e. · · 2 2 m n n k m k if H R ⇥ and L R ⇥ ,thenHL R ⇥ . 2 2 2 Also note that s t r ` if T R ⇥ and M R ⇥ , then the matrix product TM is only defined when t = r. 2 2 For example, if 20 22 32 15 73 2− 3 − 03 A = 2 27 32 100 0 0 and B = , 2 − − 3 6 007 89 0 47 22 21 33 6 7 − − 6 117 4 5 6 7 6 2 17 6 − 7 then 4 5 2 0 2 2 15 5 2 2−0 3 2−3 33 AB = A A = 58 150 . 6 6 0 7 6 0 77 2 − 3 6 6 7 6 77 133 87 6 6 1 7 6 1 77 − 6 6 7 6 77 4 5 6 6 2 7 6 177 6 6 7 6− 77 Exercise 2.1. if 4 4 5 4 55 3 411 − 10 243 2200 − 2 3 0 2 145 C = 1000and D = 2 − − 3 , − 52 411 6 00027 − 6 7 6 301007 6 01017 6 7 6 7 4 5 4 5 88 A.REVIEWOFMATRICESANDBLOCKSTRUCTURES is CD well defined and if so what is it? The formula (108) can be used to give further insight into the individual components of the matrix product AB. By the definition of the matrix-vector product we have for each j =1, 2,...,k A1 B j · • · AB j = A2 B j . · 2 · • · 3 Am B j · • · Consequently, 4 5 (AB)ij = Ai B j i =1, 2, . m, j =1, 2,...,k. · • · 8 That is, the element of AB in the ith row and jth column, (AB)ij, is the dot product of the ith row of A with the jth column of B. m n 2.1. Elementary Matrices. We define the elementary unit coordinate matrices in R ⇥ in much the same way as we define the elementary unit coordinate vectors. Given i 1, 2,...,m and j 1, 2,...,n ,the m n 2{ } 2{ } elementary unit coordinate matrix Eij R ⇥ is the matrix whose ij entry is 1 with all other entries taking the 2 value zero. This is a slight abuse of notation since the notation Eij is supposed to represent the ijth entry in the matrix E. To avoid confusion, we reserve the use of the letter E when speaking of matrices to the elementary matrices. Exercise 2.2. (Multiplication of square elementary matrices)Let i, k 1, 2,...,m and j, ` 1, 2,...,m . m m 2{ } 2{ } Show the following for elementary matrices in R ⇥ first for m =3and then in general. E ,ifj = k, (1) E E = i` ij k` 0 , otherwise. ⇢ (2) For any ↵ R,ifi = j, then (Im m ↵Eij)(Im m + ↵Eij)=Im m so that 2 6 ⇥ − ⇥ ⇥ 1 (Im m + ↵Eij)− =(Im m ↵Eij).

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    16 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us