How do you multiply ABC if #A=((3, 10), (1, 2))#, #B=((1, 0, 4), (2, -1, 5))#, #C=((3), (1), (1))#?

1 Answer
Apr 20, 2016

Multiply the matrices in order by grouping either #A(BC)# or #(AB)C# to find
#ABC= ((121),(27))#

Explanation:

Matrices are multiplied by summing the products of the corresponding elements of the rows of the first matrix with the columns of the second. To do this, the first matrix must have the same number of columns as the second matrix has rows. This is often stated as having the same "inner" dimensions. In other words, the matrices must have sizes #mxxk# and #kxxn#. The resulting matrix has dimensions #mxxn#.

To multiply more than two matrices, as in this example, one just needs to pick two and do the multiplication and then multiply that result by the third. It doesn't matter which 2 we choose so long as we keep the order the same - i.e. either of the following is valid:

#A(BC) = (AB)C#

To make this choice, it is good to think about what the dimensions of the results would be! For example, if we multiply #(AB)# first

#size(AB) = size((color(red)2xx2) * (2xxcolor(red)3)) = color(red)(2xx3)#

Whereas

#size(BC) = size((color(magenta)2xx3)*(3xxcolor(magenta)1)) = color(magenta)(2xx1)#

so to save some work, we should do the multiplication of #BC# first!

#BC = ((1, 0, 4), (2, -1, 5))*((3), (1), (1)) = ((1*3+0*1+4*1),(2*3-1*1+5*1))=((7),(10))#

Now we continue by multiplying by #A# by #BC#

#A*(BC) = ((3, 10), (1, 2))*((7),(10))=((3*7+10*10),(1*7+2*10)) = ((121),(27))#