Exercise 3.2 · Q3: Compute six products of matrices
Compute the indicated products.
In each part let be the product. Multiply row by column.
(i)
(ii)
(iii)
(iv)
With ,
(v)
(vi)
Want the reason behind every step, the basics and the checks?
One rule does all six parts. A product exists when the number of columns of equals the number of rows of ; an matrix times an matrix is . Its entry in row , column is row of times column of : multiply the entries in pairs (first with first, second with second, and so on) and add. The six parts only differ in shape, which changes how many entries there are and how long each sum is.
- Given
- Six pairs of matrices, written side by side, meaning "multiply the left one by the right one" in that order.
- To find
- Each product.
- Plan
- For each part: (1) write both orders, check the inner numbers agree, and read off the order of the product; (2) list the rows of the left matrix and the columns of the right matrix; (3) compute every entry as a row-times-column sum and assemble.
Basics you need
A matrix with rows and columns has order : rows first, columns second. A single column is ; a single row is . Basics: rows, columns and
gives . The two inside numbers must match; the two outside numbers give the order of the answer.
A row times a column is the single number . Each entry of a product is one such number. Basics: pair up, multiply, add
Part (i): a product with letters
Orders
Left: . Right: . Inner numbers 2 and 2 agree, so the product is defined and is .
Square matrices of the same order can always be multiplied, in either order.Every entry, row times column
Rows of the left matrix: and . Columns of the right matrix: and .
Read the columns of the right matrix downward: its first column is over , not (that is its first row). The off-diagonal entries cancel because for numbers. The result is times the identity matrix, a scalar matrix.
Part (ii): a column times a row
Orders
Left: a column with 3 entries, order . Right: a row with 3 entries, order . Inner numbers 1 and 1 agree, so the product is defined and its order is the outer numbers, .
This surprises many students: two small matrices with 3 entries each give a product with 9 entries. The outer numbers decide the size, and here they are 3 and 3.Each "row times column" is a single product
Each row of the left matrix has just one entry (1, then 2, then 3), and each column of the right matrix has just one entry (2, then 3, then 4). So each entry is one multiplication, with nothing to add:
A column times a row is a multiplication table: the entry in row , column is (entry of the column) times (entry of the row). The rule is unchanged; the sums are just one term long. Writing the answer row by row (row 1 uses the 1, row 2 uses the 2, row 3 uses the 3) keeps the nine entries in their right places.Order of the product = outer numbers of . Basics: pair up, multiply, add
Part (iii):
Orders
Left: . Right: . Inner numbers 2 and 2 agree, so the product is defined and is : six entries.
The reverse product would be : inner numbers 3 and 2 differ, so it does not exist. Order matters even for whether a product exists.Every entry, row times column
Rows of the left matrix: and . Columns of the right matrix: , , .
Each sum has two terms because the inner number is 2: a row of the left matrix has two entries, and so does a column of the right matrix. The in the first row makes every entry of the first row of the answer a subtraction.
Part (iv): two matrices
Orders
Both are , so the product is defined and is : nine entries, each a sum of three terms.
Every entry, row times column
Rows of the left matrix: , , . Columns of the right matrix: , , .
Nine entries is where errors creep in, so work systematically: fix a row of the left matrix and run along the three columns of the right matrix, then move to the next row. The column contains a negative entry and a zero; the zero kills the third term in the whole middle column of the answer.
Part (v):
Orders
Left: 3 rows, 2 columns, so . Right: . Inner numbers 2 and 2 agree, so the product is defined and is .
The answer is bigger than either factor because the outer numbers are 3 and 3. (Multiplying in the other order would give a matrix, a completely different object.)Every entry, row times column
Rows of the left matrix: , , . Columns of the right matrix: , , .
Each sum has only two terms (inner number 2), but there are nine of them (outer numbers 3 and 3). The third row has a negative first entry, which matters in every entry of that row: in both terms are negative.
Part (vi):
Orders
Left: . Right: . Inner numbers 3 and 3 agree, so the product is defined and is : four entries, each a sum of three terms.
Every entry, row times column
Rows of the left matrix: and . Columns of the right matrix: and .
Compare with part (v): there the outer numbers made the answer large; here they make it small (), while each entry is a longer, three-term sum. In , : a negative times a negative is positive.
(Textbook answer: the same six matrices.)
(i) With , : rows times columns give , , , , so the product is 25 times the identity, and . ✓
(ii) The nine entries total , and , as every product of a column entry with a row entry appears exactly once. ✓
(iii) Column totals of a product equal (column totals of the left matrix) times the right matrix. The left matrix has column totals ; then , , . The answer has column totals , , . ✓
(iv) Each row of the left matrix is the previous row plus , so each row of the answer should be the previous row plus the column totals of the right matrix, . Indeed , , , and , , . ✓
(v) In the right matrix, column 1 + column 2 = column 3, since . So the same must hold in the answer: , , . ✓
(vi) Column totals of the left matrix are . Times the right matrix: and . Column totals of the answer: , . ✓
- Reading a row of the right matrix instead of a column. In part (i) the first column of the right matrix is , not .
- Getting the order of the product wrong. In part (ii) the answer is , not a single number; the single number would be the product in the other order, .
- Sign slips with negative entries, such as in part (vi), which is .
- Swapping the factors. In parts (iii), (v) and (vi) the reverse product either does not exist or has a different order; never reorder a product.
- Before multiplying, write : the inner numbers must match and the outer numbers give the size of the answer.
- The inner number is how many terms are in each sum; the outer numbers are how many entries you must compute.
- Work row by row, running along the columns, and check with column totals.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| is defined when columns of = rows of ; is | In every Part, Step 1 | Section 3.4.5 (Lesson: multiplication) |
| Entry of is , row times column | In every Part, Step 2 | Section 3.4.5 |
| If is defined, need not be | Part (iii), Step 1 | Section 3.4.5, Remark after Example 12 |
| Column matrix , row matrix ; scalar and identity matrices | Part (i), Step 2; Part (ii), Step 1 | Section 3.3 (Lesson: types of matrices) |
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 →