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

β–Ά
mathematics
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

1

BUSINESS MATHEMATICS

Matrices

slide-2
SLIDE 2

2

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

slide-3
SLIDE 3

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

β–ͺ 𝐑 = 3 2 βˆ’2 12.5 βˆ’12.7 , 𝐁 = 𝑏1,1 𝑏1,2 β‹― 𝑏1,π‘œ 𝑏2,1 𝑏2,2 β‹― 𝑏2,π‘œ β‹― β‹― β‹― β‹― 𝑏𝑛,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

slide-4
SLIDE 4

4

MATRICES Some notes on notation β–ͺ brackets:

  • r

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

slide-5
SLIDE 5

5

MATRICES In 𝐑 = 3 2 βˆ’2 12.5 βˆ’12.7 the element π‘Ÿ2,1 refers to β–ͺ the cell at row 2 and column 1 β–ͺ 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 𝑏𝑗,π‘˜

Notice the order

  • f the indices

A column is vertical ...

slide-6
SLIDE 6

6

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

slide-7
SLIDE 7

8

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

slide-8
SLIDE 8

9

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? β–ͺ not available for matrices β–ͺ instead: matrix multiplication

The matrices 𝐁 and 𝐂 must be of equal order

slide-9
SLIDE 9

10

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

slide-10
SLIDE 10

12

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

slide-11
SLIDE 11

13

MATRIX MULTIPLICATION Illustration:

β–ͺ 𝐁𝐂 1,2 = σ𝑙=1

2

𝑏1,𝑙𝑐𝑙,2 = 𝑏1,1𝑐1,2 + 𝑏1,2𝑐2,2 β–ͺ 𝐁𝐂 3,3 = σ𝑙=1

2

𝑏3,𝑙𝑐𝑙,3 = 𝑏3,1𝑐1,3 + 𝑏3,2𝑐2,3

slide-12
SLIDE 12

14

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 𝐁𝐂 𝐁𝐂 ?

slide-13
SLIDE 13

15

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

slide-14
SLIDE 14

17

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

slide-15
SLIDE 15

18

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

slide-16
SLIDE 16

19

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

mind the difference between β€œa square matrix” and β€œa squared matrix”

slide-17
SLIDE 17

20

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

slide-18
SLIDE 18

22

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

  • f division by a matrix:

matrix inversion

slide-19
SLIDE 19

23

MATRIX TRANSPOSITION Consider 𝐁 = ππ‘›Γ—π‘œ = 𝑏1,1 𝑏1,2 β‹― 𝑏1,π‘œ 𝑏2,1 𝑏2,2 β‹― 𝑏2,π‘œ β‹― β‹― β‹― β‹― 𝑏𝑛,1 𝑏𝑛,2 β‹― 𝑏𝑛,π‘œ The transpose of 𝐁, denoted by 𝐁′ is given by 𝐁′ = 𝑏1,1 𝑏2,1 β‹― 𝑏𝑛,1 𝑏1,2 𝑏2,2 β‹― 𝑏𝑛,2 β‹― β‹― β‹― β‹― 𝑏1,π‘œ 𝑏2,π‘œ β‹― 𝑏𝑛,π‘œ In words, 𝐁′ has π‘œ rows and 𝑛 columns so 𝐁′ is a (π‘œ Γ— 𝑛)- matrix and row 𝑗 of 𝐁 is column 𝑗 of 𝐁′

β€œreflection in the diagonal”

slide-20
SLIDE 20

24

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

slide-21
SLIDE 21

25

SYMMETRIC MATRICES Definition The matrix 𝐁 is symmetric if and only if 𝐁 = 𝐁′ β–ͺ so if and only if π‘π‘—π‘˜ = π‘π‘˜π‘— for all 𝑗, π‘˜ β–ͺ note: only a square matrix can be symmetric Example: 𝐁 = 1 3 3 6 is symmetric If 𝐁 = 1 2 βˆ’1 3 6 5 then 𝐁𝐁′ is symmetric β–ͺ note: 𝐁′𝐁 is symmetric too but in general 𝐁′𝐁 β‰  𝐁𝐁′ In general 𝐁′𝐁 is symmetric for an arbitrary matrix 𝐁 β–ͺ and so is 𝐁𝐁′ (why?)

You can see this for the example without even doing a calculation!

slide-22
SLIDE 22

26

EXERCISE 5 Given is 𝐘 = 4 βˆ’2 5 3 βˆ’1 . Find π˜β€².

slide-23
SLIDE 23

28

OLD EXAM QUESTION 22 October 2014, Q1d

slide-24
SLIDE 24

29

OLD EXAM QUESTION 10 December 2014, Q1f

slide-25
SLIDE 25

30

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