Math 2331 – Linear Algebra 2.1 Matrix Operations

Math 2331 – Linear Algebra 2.1 Matrix Operations

2.1 Matrix Operations Math 2331 { Linear Algebra 2.1 Matrix Operations Jiwen He Department of Mathematics, University of Houston [email protected] math.uh.edu/∼jiwenhe/math2331 Jiwen He, University of Houston Math 2331, Linear Algebra 1 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose 2.1 Matrix Operations Matrix Addition Theorem: Properties of Matrix Sums and Scalar Multiples Zero Matrix Matrix Multiplication Definition: Linear Combinations of the Columns Row-Column Rule for Computing AB (alternate method) Theorem: Properties of Matrix Multiplication Identify Matrix Matrix Power Matrix Transpose Theorem: Properties of Matrix Transpose Symmetric Matrix Jiwen He, University of Houston Math 2331, Linear Algebra 2 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Notation Matrix Notation Two ways to denote m × n matrix A: 1 In terms of the columns of A: A = a1 a2 ··· an 2 In terms of the entries of A: 2 3 a11 ··· a1j ··· a1n 6 . 7 6 . 7 6 7 A = 6 ai1 ··· aij ··· ain 7 6 7 6 . 7 4 . 5 am1 ··· amj ··· amn Main diagonal entries: Jiwen He, University of Houston Math 2331, Linear Algebra 3 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Addition: Theorem Theorem (Addition) Let A, B, and C be matrices of the same size, and let r and s be scalars. Then a. A + B = B + A d. r(A + B) = rA + rB b. (A + B) + C = A + (B + C) e. (r + s) A = rA + sA c. A + 0 = A f. r (sA) = (rs) A Zero Matrix 2 0 ··· 0 ··· 0 3 6 . 7 6 . 7 6 7 0 = 6 0 ··· 0 ··· 0 7 6 7 6 . 7 4 . 5 0 ··· 0 ··· 0 Jiwen He, University of Houston Math 2331, Linear Algebra 4 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication Matrix Multiplication Multiplying B and x transforms x into the vector Bx. In turn, if we multiply A and Bx, we transform Bx into A (Bx). So A (Bx) is the composition of two mappings. Define the product AB so that A (Bx) = (AB) x. Jiwen He, University of Houston Math 2331, Linear Algebra 5 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Definition Suppose A is m × n and B is n × p where 2 3 x1 6 x2 7 B = [b b ··· b ] and x = 6 7. 1 2 p 6 . 7 4 . 5 xp Then Bx =x1b1 + x2b2 + ··· + xpbp and A (Bx) =A(x1b1 + x2b2 + ··· + xpbp) = A (x1b1) + A (x2b2) + ··· + A (xpbp) 2 3 x1 6 x2 7 = x Ab + x Ab + ··· + x Ab = [Ab Ab ··· Ab ] 6 7. 1 1 2 2 p p 1 2 p 6 . 7 4 . 5 xp Jiwen He, University of Houston Math 2331, Linear Algebra 6 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Definition (cont.) Therefore, A (Bx) = [Ab1 Ab2 ··· Abp] x. and by defining AB = [Ab1 Ab2 ··· Abp] we have A (Bx) = (AB) x. Note that Ab1 is a linear combination of the columns of A, Ab2 is a linear combination of the columns of A; etc: Each column of AB is a linear combination of the columns of A using weights from the corresponding columns of B: Jiwen He, University of Houston Math 2331, Linear Algebra 7 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Example Example 2 4 −2 3 2 −3 Compute AB where A = 3 −5 and B = . 4 5 6 −7 0 1 Solution: 2 4 −2 3 2 4 −2 3 2 −3 Ab = 3 −5 ; Ab = 3 −5 1 4 5 6 2 4 5 −7 0 1 0 1 2 −4 3 2 2 3 = 4 −24 5 = 4 26 5 6 −7 2 −4 2 3 =) AB = 4 −24 26 5 6 −7 Jiwen He, University of Houston Math 2331, Linear Algebra 8 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Example Example If A is 4 × 3 and B is 3 × 2, then what are the sizes of AB and BA? Solution: 2 ∗ ∗ ∗ 3 2 3 2 ∗ ∗ 3 ∗ ∗ ∗ AB = 6 7 ∗ ∗ = 6 7 6 ∗ ∗ ∗ 7 4 5 6 7 4 5 ∗ ∗ 4 5 ∗ ∗ ∗ 2 ∗ ∗ ∗ 3 2 ∗ ∗ 3 ∗ ∗ ∗ BA would be ∗ ∗ 6 7 4 5 6 ∗ ∗ ∗ 7 ∗ ∗ 4 5 ∗ ∗ ∗ which is . If A is m × n and B is n × p, then AB is m × p. Jiwen He, University of Houston Math 2331, Linear Algebra 9 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Row-Column Rule for Computing AB (alternate method) The definition AB = [Ab1 Ab2 ··· Abp] is good for theoretical work. When A and B have small sizes, the following method is more efficient when working by hand. Row-Column Rule for Computing AB If AB is defined, let (AB)ij denote the entry in the ith row and jth column of AB. Then (AB)ij = ai1b1j + ai2b2j + ··· + ainbnj ; i.e., 2 3 2 3 2 3 b1j 6 7 6 7 6 7 6 b2j 7 6 7 6 ai1 ai2 ··· ain 7 6 . 7 = 6 (AB)ij 7 6 7 6 . 7 6 7 4 5 4 5 4 5 bnj Jiwen He, University of Houston Math 2331, Linear Algebra 10 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Row-Column Rule for Computing AB: Example Example 2 2 −3 3 2 3 6 A = , B = 0 1 : Compute AB; if it is −1 0 1 4 5 4 −7 defined. Solution: Since A is 2 × 3 and B is 3 × 2, then AB is defined and AB is × . 2 2 −3 3 2 3 6 28 AB = 0 1 = −1 0 1 4 5 4 −7 2 2 −3 3 2 3 6 28 −45 0 1 = −1 0 1 4 5 4 −7 Jiwen He, University of Houston Math 2331, Linear Algebra 11 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Row-Column Rule for Computing AB: Example (cont.) 2 2 −3 3 2 3 6 28 −45 0 1 = −1 0 1 4 5 2 4 −7 2 2 −3 3 2 3 6 28 −45 0 1 = −1 0 1 4 5 2 −4 4 −7 28 −45 So AB = . 2 −4 Jiwen He, University of Houston Math 2331, Linear Algebra 12 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Theorem Theorem (Multiplication) Let A be m × n and let B and C have sizes for which the indicated sums and products are defined. a. A (BC) = (AB)C (associative law of multiplication) b. A (B + C) = AB + AC (left - distributive law) c. (B + C) A = BA + CA (right-distributive law) d. r(AB) = (rA)B = A(rB) for any scalar r e. ImA = A = AIn (identity for matrix multiplication) Jiwen He, University of Houston Math 2331, Linear Algebra 13 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Multiplication: Warnings WARNINGS Properties above are analogous to properties of real numbers. But NOT ALL real number properties correspond to matrix properties. 1 It is not the case that AB always equal BA. (see Example 7, page 98) 2 Even if AB = AC, then B may not equal C. (see Exercise 10, page 100) 3 It is possible for AB = 0 even if A 6= 0 and B 6= 0. (see Exercise 12, page 100) Jiwen He, University of Houston Math 2331, Linear Algebra 14 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Power Powers of A Ak = A ··· A | {z } k Example 1 0 3 1 0 1 0 1 0 = 3 2 3 2 3 2 3 2 1 0 1 0 = = 3 2 21 8 Jiwen He, University of Houston Math 2331, Linear Algebra 15 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Transpose Transpose of A If A is m × n, the transpose of A is the n × m matrix, denoted by AT , whose columns are formed from the corresponding rows of A. Example 2 1 6 7 3 2 3 1 2 3 4 5 6 2 7 6 7 6 7 A = 4 6 7 8 9 8 5 =) AT = 6 3 8 5 7 6 7 7 6 5 4 3 4 4 9 4 5 5 8 3 Jiwen He, University of Houston Math 2331, Linear Algebra 16 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Transpose: Example Example 2 1 2 3 1 2 0 Let A = , B = 0 1 . 3 0 1 4 5 −2 4 Compute AB,(AB)T , AT BT and BT AT . Solution: 2 1 2 3 1 2 0 AB = 0 1 = 3 0 1 4 5 −2 4 (AB)T = Jiwen He, University of Houston Math 2331, Linear Algebra 17 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Transpose: Example (cont.) 2 1 3 3 2 7 3 10 3 1 0 −2 AT BT = 2 0 = 2 0 −4 4 5 2 1 4 4 5 0 1 2 1 4 2 1 3 3 1 0 −2 BT AT = 2 0 = 2 1 4 4 5 0 1 Jiwen He, University of Houston Math 2331, Linear Algebra 18 / 19 2.1 Matrix Operations Addition Multiplication Power Transpose Matrix Transpose: Theorem Theorem (Matrix Transpose) Let A and B denote matrices whose sizes are appropriate for the following sums and products. a. AT T = A (I.e., the transpose of AT is A) b.( A + B)T = AT + BT c. For any scalar r, (rA)T = rAT d.( AB)T = BT AT (I.e. the transpose of a product of matrices equals the product of their transposes in reverse order.) Example Prove that (ABC)T = .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    19 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