Presentation is loading. Please wait.

Presentation is loading. Please wait.

FP1 Matrices Introduction

Similar presentations


Presentation on theme: "FP1 Matrices Introduction"β€” Presentation transcript:

1 FP1 Matrices Introduction
BAT multiply matrices

2 Matrix multiplication
These numbers will give the dimensions of the answer 𝑨 Γ— 𝑩 = π‘ͺ π‘›Γ—π‘š π‘šΓ—π‘˜ π‘›Γ—π‘˜ These numbers must be the same for the multiplication to be possible You multiply each row in the first matrix, by each column in the second matrix The product will have the same number of rows as the first matrix, and the same number of columns as the second

3 WB 7 𝑨= 1 βˆ’2 3 4 𝑩= βˆ’3 2 Find AB and BA 1 βˆ’2 3 4 βˆ’3 2 =
1 βˆ’ βˆ’3 2 = Dimensions for AB (2 x 2) x (2 x 1) = (2 x 1) To multiply matrices you first multiply corresponding elements of the rows and columns, then add them up (you’ll get it with practice!) Then once you have done all the columns, do the same thing, but using the second row… After this, work out each part, and you then have the final matrix answer! 1Γ—βˆ’3 +(βˆ’2Γ—2) 3Γ—βˆ’3 +(4Γ—2) βˆ’3 +(βˆ’4) βˆ’9 +(8) 𝐴𝐡= βˆ’7 βˆ’1 Dimensions for BA (2 x 1) x (2 x 2) = not possible

4 WB 8a 𝑨= βˆ’1 0 2 3 𝑩= 4 1 0 βˆ’2 Find AB and BA Dimensions for AB
Calculating AB Dimensions for AB (2 x 2) x (2 x 2) = (2 x 2) βˆ’ βˆ’2 = Multiply the first row by each column as in the previous example You always fill in the top row of the answer first A quick check – you have probably done this correctly if the highlighted (green) numbers are the same! βˆ’1Γ—4 +(0Γ—0) βˆ’1Γ—1 +(0Γ—βˆ’2) 2Γ—4 +(3Γ—0) 2Γ—1 +(3Γ—βˆ’2) βˆ’4 +(0) βˆ’1 +(0) 8 +(0) 2 +(βˆ’6) 𝑨𝑩= βˆ’4 βˆ’1 8 βˆ’4

5 WB 8b 𝑨= βˆ’1 0 2 3 𝑩= 4 1 0 βˆ’2 Find AB and BA Dimensions for BA
Calculating BA Dimensions for BA (2 x 2) x (2 x 2) = (2 x 2) 4 1 0 βˆ’2 βˆ’ = Multiply the first row by each column as in the previous example You always fill in the top row of the answer first A quick check – you have probably done this correctly if the highlighted (green) numbers are the same! 4Γ—βˆ’1 +(1Γ—2) 4Γ—0 +(1Γ—3) 0Γ—βˆ’1 +(βˆ’2Γ—2) 0Γ—0 +(βˆ’2Γ—3) βˆ’4 +(2) 0 +(3) 0 +(βˆ’4) 0 +(βˆ’6) 𝑩𝑨= βˆ’2 3 βˆ’4 βˆ’6 AB≠𝐡𝐴 Multiplication using matrices is NOT commutative This means the order of multiplication does matter as a different order gives different answers!

6 AB = dimensions (1x3) x (1x2) not possible
WB 9abc 𝑨= 1 βˆ’1 2 𝑩= 3 βˆ’ π‘ͺ= 4 5 Find a) AB b) BC c) CA d) BCA AB = dimensions (1x3) x (1x2) not possible As the central numbers are not equal, these matrices cannot be combined BC = 3 βˆ’ = 12+(βˆ’10) = 2 CA = βˆ’1 2 = 4Γ—1 4Γ—βˆ’1 4Γ—2 5Γ—1 5Γ—βˆ’1 5Γ—2 = 4 βˆ’ βˆ’5 10

7 WB 9d 𝑨= 1 βˆ’1 2 𝑩= 3 βˆ’2 π‘ͺ= 4 5 Find a) AB b) BC c) CA d) BCA
𝑨= 1 βˆ’1 2 𝑩= 3 βˆ’ π‘ͺ= 4 5 Find a) AB b) BC c) CA d) BCA Calculating BCA This can be done in one of two ways (1) 𝑩π‘ͺ = 2 1) (BC)A Multiply B by C, and the answer to that by A (in that order) 𝑩π‘ͺ𝑨= βˆ’1 2 𝑩π‘ͺ𝑨= 2 βˆ’2 4 2) B(CA) Multiply C by A, and multiply B by the answer to that (in that order) Remember you cannot change the order, so for method 2, do not do CA and then x B after, the B must go at the front! (2) π‘ͺ𝑨 = 4 βˆ’ βˆ’5 10 𝑩π‘ͺ𝑨 = 3 βˆ’ βˆ’ βˆ’5 10 𝑩π‘ͺ𝑨 = 2 βˆ’2 4

8 Matrices - multiplying
WB 10abcd Use each row of the first matrix with each column of the second matrix. The result gives you the element in row a column b of the product matrix. 𝑨= 2 3 βˆ’ 𝑩= βˆ’ π‘ͺ= βˆ’ βˆ’ 𝑫= 1 βˆ’ Find (where possible): AB ii) BA iii) BC iv) CB v) DA vi) AD vii) CD viii) DC AB = βˆ’ βˆ’2 = βˆ’18 BA = βˆ’ βˆ’1 5 = βˆ’ βˆ’7 BC = βˆ’2 βˆ’ βˆ’2 = βˆ’1 38 βˆ’16 βˆ’5 βˆ’6 4 CB = βˆ’ βˆ’ βˆ’2 = not possible To multiply matrices what must be true?

9 Matrices - multiplying
WB 10ef Use each row of the first matrix with each column of the second matrix. The result gives you the element in row a column b of the product matrix. 𝑨= 2 3 βˆ’ 𝑩= βˆ’ π‘ͺ= βˆ’ βˆ’ 𝑫= 1 βˆ’ Find (where possible): v) DA vi) AD vii) CD viii) DC DA = 1 βˆ’ βˆ’2 = βˆ’6 10 8 AD = βˆ’ βˆ’ = not possible BC = βˆ’2 βˆ’ βˆ’2 = βˆ’1 38 βˆ’16 βˆ’5 βˆ’6 4 To multiply matrices what must be true?

10 Matrices - multiplying
WB 10gh Use each row of the first matrix with each column of the second matrix. The result gives you the element in row a column b of the product matrix. 𝑨= 2 3 βˆ’ 𝑩= βˆ’ π‘ͺ= βˆ’ βˆ’ 𝑫= 1 βˆ’ Find (where possible): v) DA vi) AD vii) CD viii) DC CD = βˆ’ βˆ’ βˆ’ = βˆ’3 9 βˆ’3 3 DC = 1 βˆ’ βˆ’ βˆ’2 = βˆ’4 βˆ’ βˆ’6 βˆ’2 20 βˆ’8 To multiply matrices what must be true?

11 Given that BA = (0), show that AB = βˆ’2π‘Ž βˆ’2 2 π‘Ž 2 2π‘Ž
WB 𝑨= βˆ’1 π‘Ž 𝑩= 𝑏 2 Given that BA = (0), show that AB = βˆ’2π‘Ž βˆ’2 2 π‘Ž 2 2π‘Ž 𝑩𝑨= 𝑏 βˆ’1 π‘Ž = βˆ’π‘+2π‘Ž As BA = 0, the implication is that –b + 2a = 0 βˆ’π‘+2π‘Ž=0 2π‘Ž=𝑏 𝑨𝑩= βˆ’1 π‘Ž 𝑏 2 = βˆ’π‘ βˆ’2 π‘Žπ‘ 2π‘Ž We know from before that 2a = b so we can replace the b terms… 𝑨𝑩= βˆ’2π‘Ž βˆ’2 2 π‘Ž 2 2π‘Ž

12

13 Crucial points: Summary
Make sure that you can do matrix multiplication confidently Remember that matrix multiplication is NOT commutative AB ο‚Ή BA

14 END


Download ppt "FP1 Matrices Introduction"

Similar presentations


Ads by Google