4.03b, 4.03c - Adding and multiplying matrices
Add and subtract matching entries, multiply matrices by scalars, and build matrix products one row and column at a time. In you will also use powers, zero matrices and identity matrices; in you will see why brackets can move in a product but the matrices usually cannot. The same rules work with real or complex entries.
Addition and scalar multiples
Can two non-zero matrices multiply to give the zero matrix? Ordinary numbers cannot do this, but matrices can. We will build the arithmetic needed to produce and explain an example.
You already know
Dimensions mean rows by columns. Addition needs identical dimensions; needs the columns of to match the rows of . Complex entries obey the arithmetic you already know, with .
Start with the more familiar operations. If two tables record the same quantities in the same positions, their total comes from adding corresponding entries. Thus . Multiplying by a single number scales every entry.
Entry-by-entry operations
For matrices and of the same dimensions and a scalar ,
A scalar is a single number, real or complex, rather than a matrix. Not in the formula booklet: learn it.
Keep both matrices in the same layout while scaling; then each subtraction has a clearly matching position.
Worked example 1: a linear combination
Question. Given and , find .
Plan. Scale each matrix, then subtract corresponding entries.
Why this step? Writing both scaled matrices first keeps the subtraction of a negative entry visible.
Answer. .
Check. Adding to the result gives .
The second example changes only the entry type: some entries are complex. The positions and operation stay the same.
Worked example 2: a complex linear combination
Question. Find , where and .
Plan. Scale and subtract entry by entry, collecting real and imaginary parts within each entry.
Why this step? Each entry is one complex number; collect its parts without mixing it with a neighbouring entry.
Answer. .
Check. The bottom-right entry plus is , the corresponding entry of .
Subtracting a matrix means subtracting each complete entry, including its sign.
Watch out
Wrong: . Subtracting the negative bottom-left entry in the first example gives . Keep the brackets until the sign is settled.
The next calculation varies the scalar as well as the entries.
Row-by-column multiplication
Matrix multiplication combines a whole row with a whole column; it does not multiply corresponding entries.
For a concrete case, suppose the row records quantities and the column records prices. Their product is the one-entry matrix . There are three products because the inner dimensions are both .
Matrix product
If is by and is by , then is by , with
Use row of the first matrix and column of the second. Not in the formula booklet: learn it.
The output has one entry for each possible row-column pairing. For a by matrix times a by matrix, there are eight pairings, and each entry is a sum of three products. Numerical calculations may be done by calculator unless detailed reasoning is required, but the order and dimensions are still your responsibility.
Worked example 3: four row-column pairings
Question. Find for , .
Plan. The product is by ; calculate each entry from its row and column.
Why this step? The top-right entry needs the first row and second column, not the two top-right entries.
Answer. .
Check. The second column is .
The second example changes only the entries to complex numbers. The row-column pattern is unchanged.
Worked example 4: a complex matrix product
Question. Find , where , .
Plan. Form each row-column sum, then replace by .
Why this step? Complex arithmetic happens inside each row-column sum; it changes no matrix rule.
Answer. .
Check. The bottom-right entry is , agreeing with the result.
Changing the shape changes the number of output entries, but each still comes from a complete row-column sum.
Watch out
Wrong: multiplying just the four corresponding pairs of entries. For example, the first example's top-left entry is , not . Matrix multiplication needs the sum across the whole row-column pair.
Keep that pattern even when the product is rectangular.
Order and brackets
You may regroup a matrix product, but you may not usually reverse its factors.
Associative and commutative
An operation is associative if regrouping three objects leaves the result unchanged. It is commutative if exchanging two objects leaves the result unchanged. For conformable matrices,
so multiplication is associative. In general , so multiplication is not commutative. These results are not in the formula booklet: learn them.
Why can brackets move? Both groupings make the same products and add them; regrouping finite sums does not change their total. It also lets you calculate efficiently: if a by matrix multiplies a by matrix and then a by column, working out the last two factors first keeps the intermediate matrix small.
Reversing the order is different. It changes the row-column pairs and may even make the product undefined. When both products exist, calculate and compare them rather than declaring that they must differ: some pairs do commute.
Worked example 5: demonstrating non-commutativity
Question. Use and to demonstrate that matrix multiplication is not commutative.
Plan. Calculate both products and compare a pair of corresponding entries.
Why this step? A counterexample needs both orders and a conclusion; quoting the general statement alone shows nothing about these matrices.
Answer. The top-right entries are and , so the products are unequal and multiplication is not commutative.
Check. The other three entries agree, but one unequal pair is enough.
The second example changes only one diagonal entry into an unknown. Now the comparison finds the exceptional case where the matrices commute.
Worked example 6: when a pair does commute
Question. For and , find such that .
Plan. Calculate both products, then equate the entries that can differ.
Why this step? Only the top-right equality creates a condition; the other entries agree for every .
Answer. .
Check. Then , and both products are .
The distinction is between a general rule and a particular pair: one pair can commute without making multiplication commutative.
Exam tip
For “demonstrate that matrix multiplication is not commutative”, finish with after the calculation. OCR also accepts a correctly calculated unequal pair of corresponding entries, explicitly compared.
Use the comparison to diagnose this claim.
Powers, zero and identity
A positive integer power means repeated matrix multiplication, so square matrices are the ones whose powers you can form.
Powers and special matrices
For a square matrix and positive integers ,
For any matrix , with correctly sized zero and identity matrices,
Not in the formula booklet: learn it.
These effects follow from the row-column rule. A zero column gives only zero products. An identity column selects exactly one entry of each row. For an by matrix, the two identity sizes differ: . Associativity makes repeated multiplication unambiguous.
Worked example 7: a matrix whose square is zero
Question. For , find and .
Plan. Multiply by itself, then multiply the result by .
Why this step? Squaring a matrix means a product of matrices, so the non-zero entry need not survive.
Answer. Both powers are the by zero matrix.
Check. , yet every row-column sum in its square is zero. This answers the opening question.
The second example changes the matrix size to three dimensions, keeping the same idea of entries moving along a chain.
Worked example 8: a three-step chain
Question. For , find and .
Plan. Use the row-column rule twice, keeping the order unchanged.
Why this step? Multiplying the first row of by selects its third row, which is zero.
Answer. and .
Check. Acting on , gives , then , then zero.
The chain calculation explains why powers can vanish even though the starting matrix contains a non-zero entry.
Watch out
Wrong: . This squares individual entries. A matrix square uses row-column multiplication and is zero here. Also, does not force either factor to be zero.
A final variation lengthens the links but keeps the same shape.
Quick Recap
- Add or subtract corresponding entries; a scalar multiplies every entry.
- A matrix product uses row-column sums, and its dimensions are the outer dimensions.
- Matrix multiplication is associative, so brackets can move; it is not commutative in general, so factor order matters.
- A matrix power is repeated multiplication. The identity leaves a conformable matrix unchanged; multiplying by a zero matrix gives a zero matrix.
Yes: the non-zero matrix multiplied by itself gives the zero matrix.