FP1 Matrices Introduction BAT multiply matrices
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
WB 7 𝑨= 1 −2 3 4 𝑩= −3 2 Find AB and BA 1 −2 3 4 −3 2 = 1 −2 3 4 −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
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) −1 0 2 3 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! −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
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 −1 0 2 3 = 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!
AB = dimensions (1x3) x (1x2) not possible WB 9abc 𝑨= 1 −1 2 𝑩= 3 −2 𝑪= 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 −2 4 5 = 12+(−10) = 2 CA = 4 5 1 −1 2 = 4×1 4×−1 4×2 5×1 5×−1 5×2 = 4 −4 8 5 −5 10
WB 9d 𝑨= 1 −1 2 𝑩= 3 −2 𝑪= 4 5 Find a) AB b) BC c) CA d) BCA 𝑨= 1 −1 2 𝑩= 3 −2 𝑪= 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) 𝑩𝑪𝑨= 2 1 −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 −4 8 5 −5 10 𝑩𝑪𝑨 = 3 −2 4 −4 8 5 −5 10 𝑩𝑪𝑨 = 2 −2 4
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 5 𝑩= 3 8 1 −2 𝑪= −3 2 0 1 4 −2 𝑫= 1 −1 0 3 2 4 Find (where possible): AB ii) BA iii) BC iv) CB v) DA vi) AD vii) CD viii) DC AB = 2 3 −1 5 3 8 1 −2 = 9 10 2 −18 BA = 3 8 1 −2 2 3 −1 5 = −2 49 4 −7 BC = 3 8 1 −2 −3 2 0 1 4 −2 = −1 38 −16 −5 −6 4 CB = −3 2 0 1 4 −2 3 8 1 −2 = not possible To multiply matrices what must be true?
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 5 𝑩= 3 8 1 −2 𝑪= −3 2 0 1 4 −2 𝑫= 1 −1 0 3 2 4 Find (where possible): v) DA vi) AD vii) CD viii) DC DA = 1 −1 0 3 2 4 3 8 1 −2 = 2 10 3 −6 10 8 AD = 3 8 1 −2 1 −1 0 3 2 4 = not possible BC = 3 8 1 −2 −3 2 0 1 4 −2 = −1 38 −16 −5 −6 4 To multiply matrices what must be true?
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 5 𝑩= 3 8 1 −2 𝑪= −3 2 0 1 4 −2 𝑫= 1 −1 0 3 2 4 Find (where possible): v) DA vi) AD vii) CD viii) DC CD = −3 2 0 1 4 −2 1 −1 0 3 2 4 = −3 9 −3 3 DC = 1 −1 0 3 2 4 −3 2 0 1 4 −2 = −4 −2 2 3 12 −6 −2 20 −8 To multiply matrices what must be true?
Given that BA = (0), show that AB = −2𝑎 −2 2 𝑎 2 2𝑎 WB 11 𝑨= −1 𝑎 𝑩= 𝑏 2 Given that BA = (0), show that AB = −2𝑎 −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𝑎
Crucial points: Summary Make sure that you can do matrix multiplication confidently Remember that matrix multiplication is NOT commutative AB BA
END