mathematics
play

MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with - PowerPoint PPT Presentation

Matrices BUSINESS MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question Further study 2 MATRICES A


  1. Matrices BUSINESS MATHEMATICS 1

  2. CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question Further study 2

  3. MATRICES A matrix is a rectangular array of numbers or variables Notation β–ͺ we often use bold non-italic capital letters to refer to them 𝑏 1,1 𝑏 1,2 β‹― 𝑏 1,π‘œ 3 2 𝑏 2,1 𝑏 2,2 β‹― 𝑏 2,π‘œ , 𝐁 = β–ͺ 𝐑 = βˆ’2 0 β‹― β‹― β‹― β‹― 12.5 βˆ’12.7 𝑏 𝑛,1 𝑏 𝑛,2 β‹― 𝑏 𝑛,π‘œ Terminology β–ͺ these matrices consist of 6 respectively π‘›π‘œ elements β–ͺ the order (or size is) 3 Γ— 2 respectively 𝑛 Γ— π‘œ β–ͺ when 𝑛 = π‘œ , the matrix is a square matrix β–ͺ when 𝑛 β‰  π‘œ , the matrix is rectangular 3

  4. MATRICES Some notes on notation β–ͺ brackets: or β–ͺ indexing elements: 𝑏 π‘—π‘˜ or 𝑏 𝑗,π‘˜ β–ͺ We define 𝐁 = 𝑏 π‘—π‘˜ π‘›Γ—π‘œ as the matrix of order 𝑛 Γ— π‘œ matrix with elements 𝑏 π‘—π‘˜ , 𝑗 = 1, … 𝑛 , π‘˜ = 1, … , π‘œ : 𝑏 11 𝑏 12 β‹― 𝑏 1π‘œ 𝑏 21 𝑏 22 β‹― 𝑏 2π‘œ 𝐁 = β‹― β‹― β‹― β‹― 𝑏 𝑛1 𝑏 𝑛2 β‹― 𝑏 π‘›π‘œ 4

  5. MATRICES Notice the order 3 2 of the indices In 𝐑 = the element π‘Ÿ 2,1 refers to βˆ’2 0 12.5 βˆ’12.7 β–ͺ the cell at row 2 and column 1 A column is vertical ... β–ͺ so to βˆ’2 β–ͺ while π‘Ÿ 1,2 is in row 1 and column 2 and has value 2 The order of 𝐑 is 3 Γ— 2 , not 2 Γ— 3 Conventions: β–ͺ element 𝑏 row index,column index β–ͺ order 𝑛 row Γ— π‘œ column β–ͺ when no ambiguity you write 𝑏 π‘—π‘˜ instead of 𝑏 𝑗,π‘˜ 5

  6. EXERCISE 1 Given is 𝐚 = 𝑨 π‘—π‘˜ = 1 0 βˆ’3 . Find 𝑨 1,2 + 𝑨 2,2 . 5 4 2 6

  7. SPECIAL MATRICES 0 0 β‹― 0 0 0 β‹― 0 Zero matrix: 𝟏 = β‹― β‹― β‹― β‹― 0 0 β‹― 0 β–ͺ for a matrix of any order 1 0 β‹― 0 0 1 β‹― 0 Identity matrix: 𝐉 = β‹― β‹― β‹― β‹― 0 0 β‹― 1 β–ͺ for a square matrix (so, 𝑛 = π‘œ ) 8

  8. OPERATIONS WITH MATRICES We can define some basic operations with matrices, similar to the basic operations with vectors β–ͺ addition ( 𝐁 + 𝐂 , through 𝑏 + 𝑐 π‘—π‘˜ = 𝑏 π‘—π‘˜ + 𝑐 π‘—π‘˜ ) β–ͺ multiplication ( 𝑑𝐁 , through 𝑑𝑏 π‘—π‘˜ = 𝑑 Γ— 𝑏 π‘—π‘˜ ) β–ͺ negative matrix ( βˆ’π , through βˆ’π‘ π‘—π‘˜ = βˆ’π‘ π‘—π‘˜ ) β–ͺ subtraction ( 𝐁 βˆ’ 𝐂 , through 𝑏 βˆ’ 𝑐 π‘—π‘˜ = 𝑏 π‘—π‘˜ βˆ’ 𝑐 π‘—π‘˜ ) β–ͺ equality ( 𝐁 = 𝐂 , through 𝑏 π‘—π‘˜ = 𝑐 π‘—π‘˜ ) But what about the inner product? The matrices 𝐁 β–ͺ not available for matrices and 𝐂 must be of equal order β–ͺ instead: matrix multiplication 9

  9. EXERCISE 2 Given is 𝐁 = 2 βˆ’1 and 𝐂 = 0 2 βˆ’3 . Find 2𝐁 βˆ’ 𝐂 . 3 0 1 10

  10. MATRIX MULTIPLICATION Let 𝐁 and 𝐂 be two matrices, of order 𝑛 Γ— π‘ž respectively π‘ž Γ— π‘œ We define the matrix product 𝐁𝐂 as π‘ž 𝐁𝐂 π‘—π‘˜ = ෍ 𝑏 𝑗𝑙 𝑐 π‘™π‘˜ , 𝑗 = 1, … , 𝑛, π‘˜ = 1, … , π‘œ 𝑙=1 β–ͺ alternatively written as 𝐁 β‹… 𝐂 β–ͺ but do not write 𝐁 Γ— 𝐂 Notice: the result of multiplication of two matrices is a matrix β–ͺ different for the inner product of two vectors 12

  11. MATRIX MULTIPLICATION Illustration: 2 β–ͺ 𝐁𝐂 1,2 = Οƒ 𝑙=1 𝑏 1,𝑙 𝑐 𝑙,2 = 𝑏 1,1 𝑐 1,2 + 𝑏 1,2 𝑐 2,2 2 β–ͺ 𝐁𝐂 3,3 = Οƒ 𝑙=1 𝑏 3,𝑙 𝑐 𝑙,3 = 𝑏 3,1 𝑐 1,3 + 𝑏 3,2 𝑐 2,3 13

  12. MATRIX MULTIPLICATION Notice the orders of the matrices: 𝐁 π‘›Γ—π‘ž 𝐂 π‘žΓ—π‘œ = 𝐁𝐂 π‘›Γ—π‘œ β–ͺ so #columns in 𝐁 should match #rows in 𝐂 β–ͺ and #rows in 𝐁𝐂 is #rows in 𝐁 β–ͺ and #columns in 𝐁𝐂 is #columns in 𝐂 Consequences: given a matrix 𝐁 or order 3 Γ— 3 and a matrix 𝐂 of order 3 Γ— 2 β–ͺ 𝐁𝐂 exists and is of order 3 Γ— 2 β–ͺ 𝐂𝐁 does not exist β–ͺ what about 𝐁𝐁 ? and 𝐂𝐂 ? and 𝐁𝐂 𝐁𝐂 ? 14

  13. EXERCISE 3 Given is 𝐁 = 2 βˆ’1 and 𝐂 = 0 2 βˆ’3 . Find 𝐁 β‹… 𝐂 . 3 0 1 15

  14. MATRIX MULTIPLICATION It follows that (with suitable 𝐁 , 𝐂 , and 𝐃 ) β–ͺ 𝐁 𝐂 + 𝐃 = 𝐁𝐂 + 𝐁𝐃 (distributive property) 𝐁𝐂 𝐃 = 𝐁 𝐂𝐃 = 𝐁𝐂𝐃 (associative property) β–ͺ But not that β–ͺ 𝐁𝐂 = 𝐂𝐁 (commutative property) β–ͺ example: take 𝐁 = 1 2 2 βˆ’8 6 and 𝐂 = 3 βˆ’1 4 β–ͺ 𝐁𝐂 = 0 0 0 , but 𝐂𝐁 = βˆ’22 βˆ’44 0 11 22 By the way, notice that in this example: β–ͺ 𝐁𝐂 = 𝟏 , while 𝐁 β‰  𝟏 and 𝐂 β‰  𝟏 β–ͺ while for numbers 𝑏𝑐 = 0 ⇔ 𝑏 = 0 or 𝑐 = 0 17

  15. MATRIX MULTIPLICATION Some properties (for suitable 𝐁 , 𝐂 , and 𝐃 ): 𝐁𝟏 = 𝟏 and 𝟏𝐁 = 𝟏 𝐁𝐉 = 𝐁 and 𝐉𝐁 = 𝐁 𝐁𝐂 = 𝐁𝐃 ⇏ 𝐂 = 𝐃 β–ͺ example: 𝐁 = 1 2 3 βˆ’4 6 , 𝐂 = , and 𝐃 = 3 βˆ’2 3 1 4 βˆ’1 βˆ’1 β–ͺ 𝐁𝐂 = 𝐁𝐃 = βˆ’1 2 βˆ’3 6 18

  16. MATRIX MULTIPLICATION What about powers of a matrix? Let us define 𝐁 2 = 𝐁𝐁 for any square matrix 𝐁 β–ͺ why square? mind the difference Likewise 𝐁 3 = 𝐁𝐁𝐁 , etc. between β€œa square matrix” and β€œa squared matrix” β–ͺ what is 𝐁𝐁𝐁 : is it 𝐁 𝐁𝐁 or is it 𝐁𝐁 𝐁 ? 𝐁 π‘œ = 1 More in general 𝐁 π‘œ = α‰Š 𝐁𝐁 π‘œβˆ’1 π‘œ = 2,3, … And what do you think of 𝐁 0 ? 19

  17. EXERCISE 4 Given is 𝐁 = 2 βˆ’1 and 𝐂 = 0 2 βˆ’3 . Find 𝐁 πŸ‘ β‹… 𝐂 . 3 0 1 20

  18. MORE OPERATIONS WITH MATRICES Moral 1: every operation must be explicitly defined Moral 2: mathematicians try to find a definition that β–ͺ is useful (why 𝐁𝐂 is useful will become clear later on) β–ͺ reduces to the similar operation for scalars Not all scalar operations have an extension to matrices Example: β–ͺ ln 𝐁 1 β–ͺ We will soon introduce a sort 𝐁 of division by a matrix: β–ͺ 𝐁 matrix inversion 22

  19. MATRIX TRANSPOSITION 𝑏 1,1 𝑏 1,2 β‹― 𝑏 1,π‘œ 𝑏 2,1 𝑏 2,2 β‹― 𝑏 2,π‘œ Consider 𝐁 = 𝐁 π‘›Γ—π‘œ = β‹― β‹― β‹― β‹― 𝑏 𝑛,1 𝑏 𝑛,2 β‹― 𝑏 𝑛,π‘œ The transpose of 𝐁 , denoted by 𝐁 β€² is given by 𝑏 1,1 𝑏 2,1 β‹― 𝑏 𝑛,1 𝑏 1,2 𝑏 2,2 β‹― 𝑏 𝑛,2 𝐁 β€² = β‹― β‹― β‹― β‹― β€œreflection in the 𝑏 1,π‘œ 𝑏 2,π‘œ β‹― 𝑏 𝑛,π‘œ diagonal” In words, 𝐁 β€² has π‘œ rows and 𝑛 columns so 𝐁 β€² is a ( π‘œ Γ— 𝑛 )- matrix and row 𝑗 of 𝐁 is column 𝑗 of 𝐁 β€² 23

  20. MATRIX TRANSPOSITION Some properties (for suitable 𝐁 , 𝐂 , and 𝐃 ): 𝐁 β€² β€² = 𝐁 β–ͺ 𝐁 + 𝐂 β€² = 𝐁 β€² + 𝐂 β€² β–ͺ 𝐁𝐂 β€² = 𝐂 β€² 𝐁 β€² and (therefore!) 𝐁𝐂𝐃 β€² = 𝐃 β€² 𝐂 β€² 𝐁 β€² β–ͺ 𝑑𝐁 β€² = 𝑑𝐁 β€² β–ͺ 24

  21. SYMMETRIC MATRICES Definition The matrix 𝐁 is symmetric if and only if 𝐁 = 𝐁 β€² β–ͺ so if and only if 𝑏 π‘—π‘˜ = 𝑏 π‘˜π‘— for all 𝑗 , π‘˜ You can see this for the β–ͺ note: only a square matrix can be symmetric example without even Example: 𝐁 = 1 3 doing a calculation! 6 is symmetric 3 If 𝐁 = 1 2 βˆ’1 then 𝐁𝐁 β€² is symmetric 3 6 5 β–ͺ note: 𝐁 β€² 𝐁 is symmetric too but in general 𝐁 β€² 𝐁 β‰  𝐁𝐁 β€² In general 𝐁 β€² 𝐁 is symmetric for an arbitrary matrix 𝐁 β–ͺ and so is 𝐁𝐁 β€² (why?) 25

  22. EXERCISE 5 Given is 𝐘 = 4 βˆ’2 5 βˆ’1 . Find 𝐘 β€² . 0 3 26

  23. OLD EXAM QUESTION 22 October 2014, Q1d 28

  24. OLD EXAM QUESTION 10 December 2014, Q1f 29

  25. FURTHER STUDY Sydsæter et al. 5/E 9.2-9.3 Tutorial exercises week 3 matrices matrix addition, matrix multiplication, matrix transpose matrix multiplication is not commutative 30

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend