Given matrices A=(A11A12A21A22) , and B=(B11B12B21B22) , we define the matrix product AB=(A11B11+A12B21A11B12+A12B22A21B11+A22B21A21B12+A22B22).
04. Matrix multiplication, 1
04. Matrix multiplication, 1
Composing transformations
Recall that a 2-by-2 matrix defines for us a transformation of the plane. Suppose we are given two matrices A=(A11A12A21A22),B=(B11B12B21B22).
They each define a transformation of the plane. What happens if we first do the transformation associated to B
, and then do the transformation associated to A
?
We get a new transformation associated to a new matrix, which we call AB . A(B(v))=(A11A12A21A22)(B11B12B21B22)(xy)
=(A11A12A21A22)(B11x+B12yB21x+B22y)
=(A11B11x+A11B12y+A12B21x+A12B22yA21B11x+A21B12y+A22B21x+A22B22y)
=(A11B11+A12B21A11B12+A12B22A21B11+A22B21A21B12+A22B22)(xy)
=:(AB)v
Definition:
Mnemonic
How on earth can we remember this formula? Here is a mnemonic. Just like when we act on a vector using a matrix, we can think of the entries of AB as "multiplying a row of A into a column of B ". More specifically, to get the ij th entry of AB (i.e. i th row and j th column) we multiply the i th row of A into the j th column of B :
