Lesson 3 of 8 · 16 min
Multiplying matrices
Multiply matrices row by column, decide when a product is defined and what order it has, and calculate powers of a square matrix.
What you will be able to do
- Decide whether a product is defined, and state its order.
- Multiply matrices up to using the row-by-column rule.
- Calculate powers of a square matrix, such as and .
The juice bar charges $6 for a small smoothie and $9 for a large. How much did each shop take on Saturday?
CBD: dollars. Toowong: dollars.
Each answer pairs a row of the sales matrix with the column of prices: multiply the matching entries, then add. That is exactly how matrices multiply.
Key idea
The row-by-column rule
The element in row , column of comes from row of and column of : multiply the matching pairs and add.
For matrices:
Pick an entry of the product to see the row and column that build it. Predict each entry before you look: the top-left one is .
Definition
When is a product defined?
is defined only when the number of columns of equals the number of rows of . Then
Write the orders side by side. If the inner numbers match, the product exists, and the outer numbers give its order.
| Order of | Order of | Order of |
|---|---|---|
| , a single number in brackets | ||
| not defined: 1 column but 2 rows | ||
| not defined: 2 columns but 1 row |
is a matrix and is a matrix. What is the order of ?
Worked example
Multiply matrices and decide which products exist
Let , and .
(a) Find .
(b) Find .
(c) Explain why is not defined.
Step 1: Check the order of
and are both . The inner numbers match, so exists and is .
Step 2: Row 1 of times each column of
Top left: . Top right: .
Step 3: Row 2 of times each column of
Bottom left: . Bottom right: .
Step 4: Find
gives a matrix: .
Step 5: Check whether exists
is and is . has 1 column but has 2 rows, so the inner numbers do not match and is not defined.
Each row of has one entry but each column of has two, so there is nothing to pair them up with.
Try it yourself first, then check the working one step at a time.
Answer
and . is not defined because has 1 column but has 2 rows.
Method
Write the orders side by side; the inner numbers must match.
Each entry is a row of the first matrix times a column of the second.
The outer numbers give the order of the product.
Watch out for
Multiplying element by element instead of row by column.
Assuming exists because does.
Find .
A square matrix can be multiplied by itself. Just as , you write and , and so on. Powers only make sense for square matrices: if is , then is not defined.
Step through , , for . Which famous sequence appears in the entries?
Common mistake
Squaring each element is not A²
For ,
Matrix multiplication is always row by column, never element by element.
Find for .
Without technology
Write the orders first, to check the product exists and to know its size. Then work entry by entry: a row of the first matrix times a column of the second. Show the sum for at least one entry so a marker can follow your method.
With technology
On a graphics calculator, define each matrix in the matrix editor, then type the product, such as or . If the orders don't match, you get a dimension error instead of an answer.
Summary
Each entry of is a row of times a column of : multiply the matching pairs, then add.
is defined only when the columns of match the rows of . An matrix times an matrix is .
is defined only for square matrices, and it is not the matrix of squared elements.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.