Matrix arithmetic
Studying this course? Keep your progress in one place.
Key facts
- A matrix with rows and columns has order (rows first).
- Add or subtract matrices of the same order, entry by entry.
- A scalar multiplies every entry.
- exists if columns of = rows of ; each entry is row times column.
- Matrix multiplication is not commutative: usually .
Matrices and their order
A matrix with rows and columns has order . Two matrices are equal only if they have the same order and equal entries.
A matrix is a rectangular array of numbers in rows and columns. A matrix with rows and columns has order . Here we work mainly with matrices and column vectors. Each number is an entry.
Two matrices are equal only if they have the same order and every pair of corresponding entries is equal. This is used to find unknown entries.
- Order rows, columns
- Equal matricessame order, equal entries
Worked example
Find and if .
- 1
Equate corresponding entries: and .
- 2
Solve: and , so .
How many columns does a matrix have?
Addition and subtraction
Matrices of the same order are added or subtracted entry by entry. Matrices of different orders cannot be added.
Matrices of the same order are added or subtracted entry by entry:
Addition is commutative () and associative.
- same order, entry by entry
Worked example
Work out .
- 1
Both are , so the sum exists.
- 2
Add entry by entry: , , , .
Can you add a matrix and a matrix?
Multiplying by a scalar
Multiplying a matrix by a scalar multiplies every entry by .
A scalar is an ordinary number. Multiplying a matrix by a scalar multiplies every entry by :
Combine with addition and subtraction in the usual order of operations: means multiply by 3, then subtract .
- every entry multiplied by
Worked example
Work out .
- 1
Multiply the first matrix by 3: .
- 2
Subtract entry by entry: , , , .
What is ?
Multiplying two matrices
Each entry of is a row of times a column of : multiply corresponding entries and add.
The product exists only if the number of columns of equals the number of rows of . An matrix times an matrix gives an matrix.
A matrix times a column vector works the same way: .
- 1
Pick a row of A
and a column of B
- 2
Multiply
corresponding entries
- 3
Add
the products to get one entry
- 4
Repeat
for every row and column pair
- matrix
Worked example
Work out .
- 1
Row 1 column 1: .
- 2
Row 1 column 2: .
- 3
Row 2 column 1: .
- 4
Row 2 column 2: .
A matrix is multiplied by a matrix. What is the order of the product?
Properties of products
Matrix multiplication is associative and distributive, but not commutative, and powers do not square the entries.
Keep the order given: in general . The identity satisfies .
Powers: . Entries are not squared: for , , not .
| Numbers | Matrices | |
|---|---|---|
| Yes | No | |
| Yes | Yes | |
| Yes | Yes | |
| Identity | 1 |
Numbers
- :
- Yes
- :
- Yes
- :
- Yes
- Identity:
- 1
Matrices
- :
- No
- :
- Yes
- :
- Yes
- Identity:
Worked example
Show that for and .
- 1
.
- 2
.
- 3
The top-left entries differ (), so the products are not equal.
Which is true for any matrices where the products exist?
Try an exam question
and . Find and .
[4 marks]
- [1].
- [1].
- [1]Uses row times column for .
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find .
1 mark, marked against the mark scheme
Find .
1 mark, marked against the mark scheme