Matrix arithmetic
Studying this course? Keep your progress in one place.
Key facts
- A matrix with rows and columns has order ; equal matrices have the same order and every entry equal.
- Add or subtract matrices of the same order entry by entry; a scalar multiplies every entry.
- exists only if the columns of equal the rows of : gives .
- Multiplication is row times column, and is not commutative: usually .
- The identity satisfies ; does not mean or is .
Order and equality
The order is rows columns, and two matrices are equal only if their orders match and every entry matches.
A matrix is a rectangular array of numbers (entries). With rows and columns it has order . A square matrix has .
For example, has order .
A matrix equation gives one equation per entry. State the order before attempting a sum or product, to decide whether it is defined.
- 1
Count rows and columns
order is rows × columns
- 2
Compare orders
a sum or equality needs the same order
- 3
For a product AB
columns of A must equal rows of B
- 4
Equal matrices
every matching entry is equal
- rows, columnsorder
- same order, every entry equal
has order and has order . What is the order of ?
Adding and scaling
Matrices of the same order add or subtract entry by entry; a scalar multiplies every entry.
Matrices of the same order are added or subtracted entry by entry. A matrix cannot be added to one of a different order.
Multiplying by a scalar multiplies every entry by .
Addition is commutative and associative, and .
- add or subtract matching entries (same order only)
- multiply every entry by
Worked example
With and , find .
- 1
Scalar multiple first: .
- 2
Subtract entry by entry: .
Can a matrix be added to a matrix?
Matrix multiplication
Check the orders first, then each entry is a row of times a column of .
is defined only when the matrices are conformable: the columns of equal the rows of . If is and is , then is .
Entry of is row of times column of .
Multiplication is associative and distributive, but not commutative: usually , and one may be defined when the other is not.
- 1
Write the orders
- 2
Compare inner numbers
if they differ, the product is not defined
- 3
Read the outer numbers
they give the order of the product,
Worked example
Find .
- 1
Orders: . The inner numbers match, so the answer is .
- 2
Row 1: and .
- 3
Row 2: and .
is and is . What are the orders of and ?
Zero and identity matrices
The zero matrix plays the role of and the identity matrix plays the role of , with one catch for products.
The zero matrix has every entry . The identity matrix is square with s on the leading diagonal and s elsewhere, for example .
Unlike numbers, does not mean or .
| Zero matrix | Identity matrix | |
|---|---|---|
| Plays the role of | ||
| Addition rule | and | |
| Product rule | (when defined) | for a square of the same order |
Zero matrix
- Plays the role of:
- Addition rule:
- and
- Product rule:
- (when defined)
Identity matrix
- Plays the role of:
- Addition rule:
- Product rule:
- for a square of the same order
If , must or ?
Expressions and powers
is copies multiplied; use and scalar multiples to relate powers to lower ones.
The square of a square matrix is , and is copies multiplied.
To find constants in an equation like , work out each term, add, and equate every entry to .
If is written in terms of and , substitute again to reach higher powers.
- ( copies, square )
Worked example
For , write and in terms of and .
- 1
, and . So .
- 2
.
- 3
Substitute again: .
If , what is ?
Try an exam question
and . Find and , and state whether .
[5 marks]
- [1]Row 1 of : .
- [1]Row 2 of : .
- [1]Row 1 of : .
- [1]Row 2 of : .
- [1], so matrix multiplication is not commutative.
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