You want to send a friend a message that nobody else can read. Here is one way. Turn each letter into a number (A = 1, B = 2, … Z = 26, a space 0), take the numbers two at a time, write each pair as a column, and multiply every column by a grid of four numbers you both keep secret, the key. Out come numbers that look like nothing at all.
But how does your friend turn them back into the word? And is every grid of four numbers a good key? This unit answers both. The grids are matrices; turning one round is its transpose; the key is used by multiplying matrices; one number, its determinant, says whether a key can be undone; and the matrix that undoes it is its inverse. The message is read back at the end of 6.5.
6.1 Introduction
A matrix is a set of numbers arranged in rows and columns, in a rectangle, inside brackets. Matrices are named with capital letters. You met them in Grade 9; here is what this unit uses.
- A matrix with m rows and n columns has order m × n (“m by n”): rows first, always. is a 2 × 3 matrix. Each number in it is an element (or entry).
- A row matrix has one row, ; a column matrix has one column; a square matrix has as many rows as columns.
- The zero matrix O has every element 0. The identity matrix I is square, with 1s along its leading diagonal (top left to bottom right) and 0s everywhere else: .
- Two matrices are equal when they have the same order and every pair of matching elements is equal.
- Matrices of the same order are added or subtracted element by element, and kA multiplies every element of A by the number k.
The word matrix was first used for such an arrangement by the English mathematician James Joseph Sylvester, and using capital letters such as A and B for whole matrices, and calculating with them as single objects, was developed by Arthur Cayley in 1858. Determinants are older: methods found in the unpublished work of Gottfried Wilhelm Leibniz were later turned into definite rules by Gabriel Cramer.
Matrices are used throughout computer science, engineering, economics and statistics, because they let a computer handle thousands of numbers with one instruction. A spreadsheet has them built in: Google Sheets’ MMULT, TRANSPOSE, MDETERM and MINVERSE do this unit’s four operations on a block of cells. Determinants are used for area and volume: in Unit 9 you will see a matrix stretch a square, and its determinant tells you how many times the area grows Grade 10: The determinant is the change in area.
What is the order of ?
Pick an answer to see why.
6.2 Transpose of a matrix
The matrix made by writing the rows of a matrix as columns (and so its columns as rows) is its transpose. The transpose of A is written A′, or . For the matrix above,
If A has order m × n, then has order n × m. The element in row i, column j of A is in row j, column i of . A square matrix keeps its order, and its leading diagonal stays where it is: everything else is reflected in that diagonal, as if it were a mirror.
6.2.1 Properties of the transpose
Let A and B be matrices of the same order, and k any real number. Each property below is checked on an example.
a. The transpose of a sum is the sum of the transposes: .
With and :
The same.
b. The transpose of a difference is the difference of the transposes: .
With and :
c. A number can be taken out: .
With and k = 2:
d. Transposing twice gives the matrix back: .
With : , and turning that round again gives . Rows become columns, then columns become rows again.
e. The transpose of a zero matrix is a zero matrix: .
A zero matrix that isn’t square turns into the zero matrix of the swapped order: the 2 × 3 zero matrix becomes the 3 × 2 one.
f. The transpose of an identity matrix is itself: .
The 3 × 3 identity is its own transpose in the same way. Its 1s are on the leading diagonal, which the transpose doesn’t move, and its 0s are all alike.
g. Symmetric matrices. A square matrix that equals its own transpose, , is a symmetric matrix. Its elements are mirrored across the leading diagonal: is symmetric, and so is
Check: the 2 in row 1, column 2 matches the 2 in row 2, column 1; the 3s and the 8s match the same way.
Worked examples
A matrix has order 4 × 1. What is the order of its transpose?
Pick an answer to see why.
Exercise 6.1
Question 1
A. What is meant by the transpose of a matrix?
Pick an answer to see why.
B. If , which of these is ?
Pick an answer to see why.
C. is a symmetric matrix. Which of these is ?
Pick an answer to see why.
D. If and , which of these is ?
Pick an answer to see why.
Question 2
Find the transpose of each matrix.
Answer
Answer
Answer
Answer
Answer
Answer
Questions 3 to 7
If , prove that .
Answer
If :
- a.Find and .
- b.Write the relation between M and .
Answer
If and :
- a.Find .
- b.Find .
- c.Are and equal? Give a reason.
Answer
If and :
- a.Prove that .
- b.Is A + B a symmetric matrix? Give a reason.
Answer
If , and , find a, b, c and d.
Answer
6.3 Multiplication of matrices
In CDC’s book this section is numbered 6.2, Determinant 6.3 and Inverse 6.4. Here the sections run 6.1 to 6.5 in order, and the exercises keep CDC’s numbers, 6.1 to 6.4.
Adding matrices is done element by element. Multiplying them is not, and the reason is the secret message: each number sent mixes both numbers of a pair. The first coded number of NE was 2 × 14 + 3 × 5 = 43: the key’s first row times the pair’s column, multiplied element by element and added. That one step, a row times a column, is all of matrix multiplication.
The rule: the element in row i, column j of AB is row i of A times column j of B, multiplied pair by pair and added. For 2 × 2 matrices,
A row can be multiplied by a column only if they have the same number of elements. So AB is possible only when the number of columns of A equals the number of rows of B. If A is m × n and B is n × p, the product has a row for each row of A and a column for each column of B:
The two inside numbers must match; the two outside numbers give the order of the answer. A 2 × 3 matrix times a 3 × 2 matrix is 2 × 2; a 2 × 2 matrix times a 3 × 2 matrix can’t be found at all.
Every entry of the product comes from one row of the first matrix and one column of the second, which is why the first matrix’s rows must be as long as the second’s columns. Swapping the order changes every entry, and with the 2 × 3 and 3 × 2 matrices it even changes the size of the answer: AB is 2 × 2 but BA is 3 × 3.
6.3.1 Properties of matrix multiplication
a. Not commutative. In general AB ≠ BA, as Activity 1 showed. (For some pairs they happen to be equal, A and I for one, but you can never assume it.)
b. Associative. (AB)C = A(BC), whenever the products can be found: three matrices in a row can be multiplied starting from either end, as long as their order is kept.
With , and :
From (i) and (ii), (AB)C = A(BC).
c. Distributive. A(B + C) = AB + AC, whenever the sums and products can be found.
With , and :
From (i) and (ii), A(B + C) = AB + AC.
d. Identity. If A is a square matrix and I the identity matrix of the same order, AI = IA = A: I does for matrices what 1 does for numbers.
With :
e. The transpose of a product turns the order round: . Example 4 below checks it. ( is usually different, and for matrices that aren’t square it often can’t even be found.)
Worked examples
A is a 3 × 2 matrix and B is a 2 × 4 matrix. What is the order of AB?
Pick an answer to see why.
Exercise 6.2
Question 1
A. When can two matrices be multiplied?
Pick an answer to see why.
B. A, B and C are matrices and (AB)C = A(BC). What is this property called?
Pick an answer to see why.
C. A, B and C are matrices and A(B + C) = AB + AC. What is this property called?
Pick an answer to see why.
D. A is a square matrix, I the identity matrix of the same order, and AI = IA = A. What is this property called?
Pick an answer to see why.
E. If and , what is PI?
Pick an answer to see why.
F. If and , what is the order of WR?
Pick an answer to see why.
Question 2
Say whether each product can be found, and find it if it can.
Answer
Answer
Answer
Answer
Answer
Answer
Questions 3 to 8
If , find .
Answer
- a.If and , find MN and NM.
- b.If , and , find C(D + E).
Answer
- a.If , prove that .
- b.If and , prove that XY is a zero matrix.
- c.If , prove that , the 2 × 2 identity matrix.
Answer
If , prove that , where I and O are the identity and zero matrices of order 2 × 2.
Answer
If , and UV = U + V, find p, q and r.
Answer
If and , prove that .
Answer
Question 9
, , and .
Prove that AB ≠ BA.
Answer
Prove that A(BC) = (AB)C.
Answer
Prove that A(B + C) = AB + AC.
Answer
Prove that IA = AI = A.
Answer
Prove that .
Answer
6.4 Determinant of a matrix
A square matrix’s numbers written between two upright bars, instead of brackets, are its determinant: one number worked out from all of them. Only a square matrix has a determinant, and a determinant is a single number (a scalar), not a matrix. The determinant of A is written |A|, or det A, or D. Cayley introduced the two upright bars in 1841.
6.4.1 Determinant of a matrix of order one
A 1 × 1 matrix has one element, and its determinant is that element. If , then |A| = 8; if , then |B| = −7.
6.4.2 Determinant of a matrix of order two
For a 2 × 2 matrix ,
Multiply along the leading diagonal (top left to bottom right), multiply along the other diagonal (bottom left to top right), and take the second product from the first. ad − bc is called the expansion of the determinant.
For example, if ,
A determinant can be negative, zero or positive.
What does the number tell you? Look back at the secret message: a matrix moves a whole column of numbers somewhere new. Think of the column as a point: the matrix moves every point of the plane, and the unit square, the square with corners (0, 0), (1, 0), (1, 1) and (0, 1), becomes a parallelogram. Its area is the size of the determinant. A negative determinant means the square has also been flipped over.
In Unit 9 you can drag a matrix’s two columns and watch this happen: A matrix at work. The parallelogram’s area is always |ad − bc|. When one column is a multiple of the other, the parallelogram collapses onto a line: its area is 0, the determinant is 0, and the whole plane is squashed flat. That is what a singular matrix does.
6.4.3 Singular matrix
Let . Then
A square matrix whose determinant is 0 is a singular matrix: if |A| = 0, A is singular. In a 2 × 2 singular matrix one row is a multiple of the other (here the first row is twice the second), and so is one column.
6.4.4 Non-singular matrix
Let . Then
A square matrix whose determinant is not 0 is a non-singular matrix, also called a regular matrix: if |A| ≠ 0, A is non-singular. Section 6.5 shows why the difference matters: only a non-singular matrix can be undone.
Worked examples
Which of these matrices is singular?
Pick an answer to see why.
Exercise 6.3
Question 1
A. If , what is |A|?
Pick an answer to see why.
B. If , what is |A|?
Pick an answer to see why.
C. If , what is |A|?
Pick an answer to see why.
D. If , what is x?
Pick an answer to see why.
Question 2
Find the value of each determinant.
Answer
Answer
Answer
Answer
Answer
Answer
Answer
Hint
Answer
Question 3
Find the determinant of each matrix.
Answer
Answer
Answer
Answer
Answer
Answer
Question 4
Find the value of x in each.
Answer
Answer
Answer
Answer
Question 5
If and , find the determinants of these matrices.
A − 3B
Answer
2A + B
Answer
3A − 2B
Answer
A + 2B
Answer
Question 6
Prove each of these.
Answer
Answer
Answer
Answer
Question 7
If and , verify that |MN| = |M||N|.
Answer
6.5 Inverse matrix
Every number except 0 has a number that undoes it: 5 × 1/5 = 1. For matrices the job of 1 is done by I, so the question is: for a matrix A, is there a matrix that multiplies it to give I?
If for a square matrix A there is a matrix B with
then A and B are inverse matrices of each other: (“A inverse”) and . A matrix must be non-singular to have an inverse.
6.5.1 Finding the inverse of a 2 × 2 matrix
Let , with |A| = ad − bc ≠ 0, and call its inverse . Then :
Equal matrices have equal elements, so
To find p, multiply (i) by d and (iii) by b and subtract: (ad − bc)p = d. To find r, multiply (i) by c and (iii) by a and subtract: (bc − ad)r = c. In the same way, (ii) and (iv) give q and s:
Taking out as a common factor:
In words, three steps:
- Swap the two elements on the leading diagonal (a and d).
- Change the signs of the other two (b and c), leaving them where they are.
- Divide by the determinant.
Back to the secret message
The key was , with |K| = 4 − 3 = 1. Its inverse is
Your friend multiplies each pair that arrived by . The first was 43, 24:
14 and 5: N and E. The other pairs give 16, 1 (P, A) and 12, 0 (L and a space). Because , multiplying by always gives back exactly the pair that was sent. And a singular key, such as , is useless: it sends AB, (1, 2), and CA, (3, 1), both to (5, 10), and nobody can say which was meant.
With either of the first two keys the word always comes back. With the third, whose determinant is 0, every coded pair has its second number twice its first: half the message is gone, and there is no inverse to read it with.
6.5.2 Properties of the inverse
Worked examples
What is the inverse of ?
Pick an answer to see why.
Exercise 6.4
Question 1
A. If , which of these is ?
Pick an answer to see why.
B. When is the inverse of a matrix A not defined?
Pick an answer to see why.
C. Which of these is a property of the inverse?
Pick an answer to see why.
D. If , which of these is ?
Pick an answer to see why.
Question 2
Multiply each pair of matrices, and show that they are inverses of each other.
and
Answer
and
Answer
and
Answer
and
Answer
Question 3
Find the inverse of each matrix.
Answer
Answer
Answer
Answer
Question 4
These pairs of matrices are inverses of each other. Find a and b, or p and q.
and
Answer
and
Hint
Answer
Questions 5 and 6
If , find A.
Answer
If and :
- a.Find |A| and |B|.
- b.Find and .
- c.Find .
- d.Verify that .
Answer
Project work
How the SEE asks it
In the SEE’s Optional Mathematics paper (75 marks, 3 hours), Matrix and Determinant is one of the units of Algebra (Units 1 to 6 of this book). CDC’s specification grid gives Algebra 17 marks, in three kinds of question:
| Group | Kind of question | Algebra’s marks | Levels |
|---|---|---|---|
| A | multiple choice, 1 mark each | 2 | knowledge 1, application 1 |
| B | within the content area: questions on Algebra alone, each of 2 to 4 parts | 10 | knowledge 2, understanding 2, application 4, higher ability 2 |
| C | across content areas: one question joining Algebra with another area | 5 | understanding 2, application 2, higher ability 1 |
In CDC’s model paper this unit opens a group B question: for a 2 × 2 matrix, find its transpose (1 mark, knowledge) and its inverse (1 mark, application); the question then goes on to linear programming. And a group C question joins it with Unit 9: a 2 × 2 matrix transforms a triangle (2 marks), and two of its parts ask whether the matrix is singular and how it could be made so (1 mark, higher ability), and whether the matrix and its transpose give the same transformation (2 marks, higher ability).
What each kind asks, and where its marks are:
- Transpose: written in CDC’s model paper and A′ in many books; either is right. Rows as columns, often with a property to verify, or .
- Product: say whether it can be found, then a row times a column for each element; equations such as ; unknowns from AB = A + B or from a product equal to I.
- Determinant: ad − bc; singular or not; an unknown that makes a matrix singular.
- Inverse: the determinant first (if it is 0, say there is no inverse), then swap, change signs, divide; to verify.
Here is a question of the longer kind, written for this book, with how it is marked.
Miscellaneous exercise
These questions join this unit with the other units of Algebra, as the longer SEE questions do: functions (Unit 1), polynomials (Unit 2), linear programming (Unit 3), quadratic equations (Unit 4) and surds (Unit 5). Look back at those units for any method you need.
In the mapping diagram, the function g(x) is from set A to set B, and h(x) from B to C.
- a.Write the composite function from A to C in symbols.
- b.Write it as ordered pairs.
- c.Is the inverse of this composite function defined? If it is, write it as ordered pairs.
Answer
The functions are f(x) = 2x + 3 and g(x) = x − 2.
- a.Find the composite functions f(g(x)) and .
- b.When f(x) is divided by g(x), find the quotient and the remainder.
- c.Show the linear inequality 2x + 3y > 6 on a graph.
- d.What is a surd equation? Solve and check the answer.
Answer
The polynomials are and d(x) = x + 2.
- a.Write the remainder when f(x) is divided by d(x).
- b.Is d(x) a factor of f(x)? Give a reason.
- c.Find the factors of f(x) using the factor theorem.
- d.If d(x) is a function, find .
Answer
Look at the graph of the system and answer the questions.
- a.Write the coordinates of the points O, A, B and C.
- b.From the feasible values, find the maximum and minimum of the objective function f(x, y) = 20x + 15y.
- c.Write the four inequalities of the shaded region.
- d.Taking the equation of line AB as f(x) and that of line BC as g(x), find f ∘ g(x).
Answer
Look at the graph and answer the questions.
- a.What is the curve called?
- b.Write the coordinates of its vertex.
- c.Find the equation of its axis of symmetry.
- d.Find the equation of the curve.
Answer
If :
- a.Say whether is defined, with a reason.
- b.If is defined, find it.
- c.Which of and is ? Find it.
Answer
If and :
- a.What is a transpose matrix? Write .
- b.Verify that .
- c.Can AB be found? Give a reason.
- d.If AB can be found, verify that .
Answer
, and its inverse is .
- a.Write the determinant of an identity matrix.
- b.Find m and n.
- c.Find the determinant of P.
- d.Find .
Answer
If and :
- a.Define an inverse matrix.
- b.Is equal to A + B? Show it by calculation.
- c.Find the determinant of BA.
Answer
Practice every question in the book, and keep track of the ones you miss →
Where these facts come from
- The history of matrices and determinants: the Nine Chapters on the Mathematical Art (about 200 to 100 BC), Seki (1683), Leibniz’s letter (1693), Cramer’s rule (1750), Cauchy’s multiplication theorem for determinants (1812), Cayley’s two upright bars (1841), Sylvester’s word matrix (1850, “an oblong arrangement of terms” giving determinants from the square arrays inside it), Cayley’s 1858 memoir (matrix algebra, the inverse from the determinant, a 2 × 2 matrix satisfying its own characteristic equation, checked for 3 × 3) (6.1, 6.3, 6.4): MacTutor, “Matrices and determinants”, read October 2026.
- Sylvester (1814 to 1897): actuary, Florence Nightingale’s tutor, law at Lincoln’s Inn with Cayley, walking round the courts, Johns Hopkins (1877) and the American Journal of Mathematics (6.1): MacTutor, “James Joseph Sylvester”, read October 2026.
- Cayley (1821 to 1895): his limited Cambridge fellowship, 14 years as a lawyer, about 250 papers in that time, discussing mathematics with Sylvester at Lincoln’s Inn (6.1): MacTutor, “Arthur Cayley”, read October 2026.
- The Hill cipher: Lester S. Hill, 1929, based on linear algebra, letters as numbers modulo 26, an invertible key matrix, decoding with its inverse, and its weakness against a known stretch of message (the opening, 6.5): Wikipedia, “Hill cipher”, read October 2026.
- Spreadsheet functions MMULT (columns of the first matrix must equal rows of the second), MDETERM, MINVERSE and TRANSPOSE (6.1, Project work): Google Docs Editors Help, “MMULT”, “MINVERSE” and “TRANSPOSE”, read October 2026.
- Balancing a chemical equation with a matrix, the methane example (6.3): Wikipedia, “Chemical equation”, “Matrix method”, read October 2026.
- The photograph of James Joseph Sylvester: its Wikimedia Commons file page.
- CDC’s specification grid and model paper for Optional Mathematics, 2082 (How the SEE asks it): the textbook folder,
Specification Grids/grid-Opt. Math-G10.
A companion to your textbook, not a replacement for it: study from the book your school uses, and where the two differ, follow your teacher. Found a mistake? Please tell us.
