maths.
org/step
STEP Support Programme
STEP 3 Matrices Topic Notes
These notes are designed to help support the study of the matrices topic, which has been introduced into
the new STEP syllabus (first examination in 2019) in light of the changes to the A-level specifications.
Note that all of the content of the STEP 2 matrices topic (as well as the rest of the STEP 1 and STEP 2
content) is assumed knowledge for STEP 3.
The determinant of a 3 × 3 matrix
Just as the determinant of a 2 × 2 transformation matrix gives the area scale factor of the transformation,
the determinant of a 3 × 3 transformation matrix gives the volume scale factor of the transformation. A
negative determinant indicates that the orientation of the image is reversed by the transformation, as in a
reflection, for example.
Calculating a determinant
a b c
The determinant of the 3 × 3 matrix A = d e f is given by
g h i
a b c
e f d f d e
d e f =a −b +c
h i g i g h
g h i
Here we have taken the elements of the first row of A and multiplied each one by the determinant obtained by
crossing out its row and column in A. (For example, c is multiplied by the determinant obtained by crossing
out the first row and third column of A.) This smaller determinant is called a minor of A. The plusses
and minuses in the calculation are determined according to the position of the element in the following
alternating pattern:
+ − +
− + −
+ − +
We can calculate the determinant by expanding along any row or column of A in this way. For example, if
we expand using the second column, we would get
a b c
d f a c a c
d e f = −b +e −h
g i g i d f
g h i
On occasions, one row or column is much easier to use than others. For example, if one row has two zeros,
then expanding the determinant using that row would give us just a single 2 × 2 determinant to calculate.
As an example:
1 4 6
1 4
0 0 2 = −2 = −2 × (−23) = 46,
5 −3
5 −3 1
by expanding along the second row.
This method of calculating determinants also extends to calculating the determinant of an n × n matrix; in
the pattern of plusses and minuses, there is always a + in the top left-hand corner.
STEP 3 Matrices Topic Notes 1
maths.org/step
If we fully expand any of the above expressions for det A, we obtain
det A = aei + bf g + cdh − af h − bdi − ceg
Another way to think about this expression is that we multiply the elements in each of the six diagonals
(where a diagonal is allowed to “wrap around” the edges of the matrix, so the diagonals include a-e-i, b-f -g
and a-f -h); we add together the products of the forward diagonals (those which go down to the right) and
subtract the products of the backward diagonals (those which go down to the left). This approach, though,
does not generalise to higher-dimensional matrices.
a &b & c & a. b . c
.
d &e &f & d e f
. . .
g h i g h i
forward diagonals backward diagonals
Simplifying determinants using row and column operations
Sometimes a determinant can be simplified using the following row and/or column operations. These can
also be used to calculate any determinant, as we shall see. We will not attempt to prove that these operations
are valid in general. In the 2 × 2 and 3 × 3 cases, they can be checked using the formula for calculating a
determinant, but this is quite tedious and not necessarily enlightening.
Taking out a common factor. If k is a common factor of all of the elements in a row or a column,
it can be taken out as a factor of the determinant. For example:
3 1 −2 3 1 1
4 5 6 = −2 4 5 −3
0 −1 −6 0 −1 3
Be careful if two or more columns or rows share a common factor; each column or row needs to be
treated separately by this rule, for example:
6 −2 4 3 −1 2 3 −1 2
12 0 2 = 2 12 0 2 =4 6 0 1
1 2 3 1 2 3 1 2 3
Adding or subtracting a multiple of a row/column to a different row/column. We can add
or subtract a multiple of one row to a different row. Likewise, we can add or subtract a multiple of
one column to a different column. For example, in the determinant
6 −2 8
4 3 2
3 2 4
we notice that the first row is almost the same as twice the third row: two of the three elements in
each row are the same. So we can subtract twice the third row from the first row to get
6 −2 8 0 −6 0
4 3 2 = 4 3 2 (r1 → r1 − 2r3 )
3 2 4 3 2 4
which we can now easily evaluate by expanding along the first row. The comment for the reader,
(r1 → r1 − 2r3 ), means that the first row has been replaced by the first row minus twice the third row.
(This notation might also be useful in exams to explain your working to the examiner.)
STEP 3 Matrices Topic Notes 2
maths.org/step
A particularly useful application is this. If a determinant has two identical rows, then we can subtract one
from the other. This will result in a row which is all zero. If we then expand the determinant along this
row, we find that the determinant equals zero. Similarly, if one row is a multiple of another, we can use row
operations to get a row which is all zero, and so the determinant equals zero in the same way as before. The
same also applies to two columns which are identical or where one column is a multiple of another. We will
see examples of how this can be effectively used in the collection of matrices questions.
Another result that follows from this is that if any two rows of a determinant are swapped, then the
determinant is negated (i.e. the sign of the determinant changes). Similarly, if any two columns are swapped,
then the determinant is also negated. (Can you prove this using row/column operations?)
It also turns out that by a judicious choice of row operations, we can transform any determinant into one
which has at most one non-zero entry in some row, and is therefore very easy to calculate. When we then
expand the determinant, we have to calculate a smaller determinant, and this can be done in the same way.
In general, this is an efficient way to calculate determinants, and is far less effort than working with the
adjugate matrix. Nevertheless, the adjugate is useful theoretically and for proving results about matrices.
The inverse of a 3 × 3 matrix
To find the inverse of a 3 × 3 matrix you can find the adjugate matrix and divide throughout by the
determinant, as explained in “Method 1” of this wikiHow. An alternative approach is to use row operations
instead, as explained
in “Method
2” of the above wikiHow. For example, to use this method to find the
1 1 −1
inverse of A = 1 −1 1 , start by adjoining the identity matrix to A to get:
−1 1 1
1 1 −1 1 0 0
1 −1 1 0 1 0
−1 1 1 0 0 1
Then perform row operations until the LHS of the above matrix is the 3 × 3 identity matrix, and then the
RHS will be A−1 .
This method has the advantage of being more efficient for larger matrices. Do beware, though, that if a
question specifies a method to use, you must use it.
STEP 3 Matrices Topic Notes 3
maths.org/step
Solving simultaneous equations
Consider the simultaneous equations:
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3
Each of these three equations isthe equation of a plane
in 3 dimensions.
The equations can be written in
a1 b1 c1 x d1
the form Ax = d, where A = a2 b2 c2 , x = y and d = d2 . If A−1 exists (which it will as
a3 b3 c3 z d3
long as det A 6= 0) then there is a unique solution to the simultaneous equations given by x = A−1 d.
If, on the other hand, det A = 0 then the equations do not have unique solution. There are several different
situations which could occur geometrically, and you need to look at the three equations more closely to work
out which situation you have.1
To start with, consider whether any of the planes described by the equations are parallel or the same plane.
This will be the case when 2 (or 3) rows of A are multiples of each other. In this case, the possibilities are:
The three planes described by the equations are all identical. In this case, all three equations are
the same (though they might be multiplied throughout by a constant), i.e., we have (a1 , b1 , c1 , d1 ) =
k(a2 , b2 , c2 , d2 ) = m(a3 , b3 , c3 , d3 ) for some k and m. There are infinitely many solutions (all the points
on this plane), and it takes 2 parameters to describe the general solution algebraically.
The three planes described by the planes are all parallel, but they are not all the same plane (though
two of them might be). In this case there will be no solutions. Here we have (a1 , b1 , c1 ) = k(a2 , b2 , c2 ) =
m(a3 , b3 , c3 ) but d1 6= kd2 or d1 6= md3 or kd2 6= md3 .
Two of the planes are the same (so we have (ai , bi , ci , di ) = k(aj , bj , cj , dj ) for some i and j), but
the third plane is not parallel, so it will cut the other plane to create a line of solutions. It takes
1 parameter to describe the general solution algebraically.
Two of the planes are parallel but not the same (and hence there are no solutions), and the third plane
cuts across these two.
If none of the planes are parallel, but det A = 0, then there are two possible situations.
The three planes meet in a line of solutions – this is sometimes called a “sheaf” of planes. If you
eliminate one of the variables from two pairs of equations (for example, eliminate x from the first and
second equations, and also eliminate x from the first and third equations) you will end up with two
consistent equations (i.e., two equations which are just multiples of each other) which describe how y
and z are related along this line; together with one of the equations, this will give an expression for
the line of solutions involving 1 parameter.
The three planes form the sides of an infinitely long triangular prism, and there are no solutions as
there are no points which are on all three planes at the same time. When you try to eliminate a
variable in this case you will end up with two inconsistent equations.
1 In 2 dimensions things are much easier. Each equation represents a line, and either the lines cross (a unique solution exists),
the lines are parallel (no solutions) or the lines are the same line (infinitely many solutions).
STEP 3 Matrices Topic Notes 4