Example 12: Find
Find AB, if
and
is and is , so is defined and is of order .
Let .
Want the reason behind every step, the basics and the checks?
Each entry of a product is one row of the first matrix times one column of the second: pair the entries up in order, multiply each pair, and add. The entry in row , column of uses row of and column of , and nothing else. For this to work, a row of and a column of must have the same length, which is why the number of columns of must equal the number of rows of .
- Given
- of order and of order .
- To find
- The product .
- Plan
- Check the product is defined and find its order. Then compute the six entries one at a time, each as a row-times-column sum, and assemble them. Finally note why the reverse product does not exist.
Basics you need
"" means rows and columns, in that order. has 2 rows and 2 columns; has 2 rows and 3 columns. Basics: rows, columns and the address
is defined exactly when (columns of ) = (rows of ). If is and is , then is : the inner sizes must match and the outer sizes give the answer's order.
If is and is , the entry of is . Basics: pair up, multiply, add
Solution
Check that is defined and find its order
is and is . Columns of = 2 and rows of = 2. These are equal, so is defined, and its order is (rows of ) (columns of ) .
Each row of has 2 entries and each column of has 2 entries, so they pair up exactly with nothing left over. The answer has one entry for every choice of a row of (2 choices) and a column of (3 choices): entries.Row 1 of with each column of
Row 1 of is . The columns of are , and read from top to bottom. Pair, multiply, add:
The first entry of the row always pairs with the first (top) entry of the column, and the second with the second. That is why we read each column of from top to bottom.Row 2 of with each column of
Row 2 of is :
Same columns of , new row of . The second row of is built entirely from the second row of .Assemble the product
Placing each in row , column :
This is , as Step 1 predicted.
Checking the order of the finished answer against the prediction is a quick test that no entry has been lost or misplaced.The product laid out so that each entry sits where its row and column meet: row 1 of (gold) and column 2 of (blue) give the entry (green). Every other entry is found the same way. Why is not defined
For the first factor is () and the second is (). Columns of = 3 but rows of = 2. These differ, so is not defined: a row of has 3 entries but a column of has only 2, so they cannot be paired.
This is the textbook's Remark after the example: if is defined, need not be. In general, for of order and of order , both products exist exactly when and . Here , but .The order of the factors matters in matrix multiplication, unlike multiplication of numbers. Lesson: matrix multiplication
a matrix, matching the textbook's solution. The product is not defined.
Row 1 of , , is exactly 3 times row 2, . Since row of is made only from row of , row 1 of must be 3 times row 2 of . Indeed , and .
- Multiplying entry by entry. is not ; the two matrices here are not even the same shape. Each entry is a row-times-column sum.
- Using a row of instead of a column. Always run along the row of the first matrix and down the column of the second.
- Getting the order backwards. The order of is (rows of ) (columns of ), here , not .
- Assuming exists because does. It does not here (Step 5).
- Before multiplying, write the orders side by side: . Inner sizes equal means defined; outer sizes give the order of the answer.
- Entry of = row of times column of . There is one such sum for every entry.
- Row of depends only on row of , which gives a quick check whenever rows of are related.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Order : rows first, then columns | Step 1 | Section 3.2.1 (Lesson: what a matrix is) |
| defined when columns of = rows of ; order | Steps 1 and 5 | Section 3.4.5 (Lesson: matrix multiplication) |
| Steps 2 and 3 | Section 3.4.5, definition of the product | |
| Both and defined iff and | Step 5 | Remark after Example 12, Section 3.4.5 |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →