The determinant
The determinant of a 2 × 2 2 \times 2 2 × 2 matrix is one number, written with straight bars:
∣ a b c d ∣ = a d − b c \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc a c b d = a d − b c
Multiply down the leading diagonal, then take away the product of the other diagonal.
a b c d ad − bc Determinant Leading diagonal minus the other diagonal: ad − bc
Try it
The determinant Change the entries with the sliders
−6 −5 −4 −3 −2 −1 1 2 3 4 5 6 −6 −5 −4 −3 −2 −1 1 2 3 4 5 6 x y (2 1 | 1 3) matrix 2 × 3 − 1 × 1 = 5 ad − bc (3/5 −1/5 | −1/5 2/5) inverse
a = 2 b = 1 c = 1 d = 3 Make it singular
The columns (2, 1) and (1, 3) are the sides of the shaded shape. The unit square (area 1) becomes a shape of area |ad − bc| = 5 . Its inverse is 1/5 times (d −b | −c a).
A 2 × 2 2 \times 2 2 × 2 matrix moves every point of the plane. The determinant tells you what happens to areas: the unit square becomes a shape whose area is the size of the determinant. Press “Make it singular” to see the determinant become 0 and the square flatten.
The inverse of a 2 × 2 matrix
The inverse A − 1 A^{-1} A − 1 undoes A A A : A A − 1 = A − 1 A = I AA^{-1} = A^{-1}A = I A A − 1 = A − 1 A = I . For A = ( a b c d ) A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} A = ( a c b d ) , swap a a a and d d d , change the signs of b b b and c c c , and divide by the determinant:
A − 1 = 1 a d − b c ( d − b − c a ) A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} A − 1 = a d − b c 1 ( d − c − b a )
If a d − b c = 0 ad - bc = 0 a d − b c = 0 there is no inverse: the matrix is singular .
A⁻¹ = 1 ad − bc d −b −c a swap a, d · change signs of b, c Inverse Swap a and d, change the signs of b and c, divide by ad − bc
Worked example · WAEC 2019
WAEC 2019 · Paper 2 · Q13 (b)
Given the matrices A = ( 2 5 − 1 − 3 ) \mathbf A = \begin{pmatrix} 2 & 5 \\ -1 & -3 \end{pmatrix} A = ( 2 − 1 5 − 3 ) and B = ( 3 − 2 4 1 ) \mathbf B = \begin{pmatrix} 3 & -2 \\ 4 & 1 \end{pmatrix} B = ( 3 4 − 2 1 ) , find: (i) B A \mathbf{BA} BA ; (ii) the determinant of B A \mathbf{BA} BA .
(i) Which way round?
B A \mathbf{BA} BA means rows of B \mathbf B B times columns of A \mathbf A A .
Think first. BA: whose rows and whose columns?
Multiply
B A = ( 3 ( 2 ) + ( − 2 ) ( − 1 ) 3 ( 5 ) + ( − 2 ) ( − 3 ) 4 ( 2 ) + 1 ( − 1 ) 4 ( 5 ) + 1 ( − 3 ) ) = ( 8 21 7 17 ) \mathbf{BA} = \begin{pmatrix} 3(2) + (-2)(-1) & 3(5) + (-2)(-3) \\ 4(2) + 1(-1) & 4(5) + 1(-3) \end{pmatrix} = \begin{pmatrix} 8 & 21 \\ 7 & 17 \end{pmatrix} BA = ( 3 ( 2 ) + ( − 2 ) ( − 1 ) 4 ( 2 ) + 1 ( − 1 ) 3 ( 5 ) + ( − 2 ) ( − 3 ) 4 ( 5 ) + 1 ( − 3 ) ) = ( 8 7 21 17 ) .
Think first. Work out each entry.
(ii) The determinant
∣ B A ∣ = 8 × 17 − 21 × 7 = 136 − 147 = − 11 |\mathbf{BA}| = 8 \times 17 - 21 \times 7 = 136 - 147 = -11 ∣ BA ∣ = 8 × 17 − 21 × 7 = 136 − 147 = − 11 .
Think first. ad − bc for the answer to (i).
← Back Next step → Show all steps Start again
Finding a matrix from its inverse
The inverse of A − 1 A^{-1} A − 1 is A A A itself. So to find P P P from P − 1 P^{-1} P − 1 , find the inverse of P − 1 P^{-1} P − 1 with the same rule.
Worked example · WAEC 2018
WAEC 2018 · Paper 2 · Q7 (b)
Given that P − 1 = ( − 1 1 4 − 3 ) P^{-1} = \begin{pmatrix} -1 & 1 \\ 4 & -3 \end{pmatrix} P − 1 = ( − 1 4 1 − 3 ) , find the matrix P P P .
The determinant of the given matrix
∣ P − 1 ∣ = ( − 1 ) ( − 3 ) − ( 1 ) ( 4 ) = 3 − 4 = − 1 |P^{-1}| = (-1)(-3) - (1)(4) = 3 - 4 = -1 ∣ P − 1 ∣ = ( − 1 ) ( − 3 ) − ( 1 ) ( 4 ) = 3 − 4 = − 1 .
Think first. ad − bc for P⁻¹.
Swap and change signs
( − 3 − 1 − 4 − 1 ) \begin{pmatrix} -3 & -1 \\ -4 & -1 \end{pmatrix} ( − 3 − 4 − 1 − 1 ) .
Think first. Swap −1 and −3; change the signs of 1 and 4.
Divide by the determinant
P = 1 − 1 ( − 3 − 1 − 4 − 1 ) = ( 3 1 4 1 ) P = \frac{1}{-1}\begin{pmatrix} -3 & -1 \\ -4 & -1 \end{pmatrix} = \begin{pmatrix} 3 & 1 \\ 4 & 1 \end{pmatrix} P = − 1 1 ( − 3 − 4 − 1 − 1 ) = ( 3 4 1 1 ) .
Think first. Divide every entry by −1.
Check
( 3 1 4 1 ) ( − 1 1 4 − 3 ) = ( 1 0 0 1 ) \begin{pmatrix} 3 & 1 \\ 4 & 1 \end{pmatrix}\begin{pmatrix} -1 & 1 \\ 4 & -3 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} ( 3 4 1 1 ) ( − 1 4 1 − 3 ) = ( 1 0 0 1 ) ✓.
Think first. What should P × P⁻¹ give?
← Back Next step → Show all steps Start again
Solving simultaneous equations with an inverse
Two equations such as 3 x + y = 7 3x + y = 7 3 x + y = 7 and 2 x + y = 5 2x + y = 5 2 x + y = 5 can be written as one matrix equation, ( 3 1 2 1 ) ( x y ) = ( 7 5 ) \begin{pmatrix} 3 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 7 \\ 5 \end{pmatrix} ( 3 2 1 1 ) ( x y ) = ( 7 5 ) . Multiplying both sides by the inverse on the left gives ( x y ) \begin{pmatrix} x \\ y \end{pmatrix} ( x y ) .
3 × 3 determinants
For a 3 × 3 3 \times 3 3 × 3 determinant, expand along the top row. Each top-row entry multiplies the 2 × 2 2 \times 2 2 × 2 determinant left when you cover its row and column, and the signs go + , − , + +, -, + + , − , + :
a b c d e f g h i + − + a(ei − fh) − b(di − fg) + c(dh − eg) 3 × 3 determinant Top row, signs + − +, each times the 2 × 2 left over
Your turn
(b) Given that X = ( 2 4 8 6 ) X = \begin{pmatrix} 2 & 4 \\ 8 & 6 \end{pmatrix} X = ( 2 8 4 6 ) , Y = ( a b c d ) Y = \begin{pmatrix} a & b \\ c & d \end{pmatrix} Y = ( a c b d ) and X Y = ( 12 16 8 10 ) XY = \begin{pmatrix} 12 & 16 \\ 8 & 10 \end{pmatrix} X Y = ( 12 8 16 10 ) , find: (i) matrix Y Y Y ; (ii) the determinant of Y Y Y .
Worked solution (try it first) (b)(i) Multiply row by column:
X Y = ( 2 a + 4 c 2 b + 4 d 8 a + 6 c 8 b + 6 d ) XY = \begin{pmatrix} 2a + 4c & 2b + 4d \\ 8a + 6c & 8b + 6d \end{pmatrix} X Y = ( 2 a + 4 c 8 a + 6 c 2 b + 4 d 8 b + 6 d ) = ( 12 16 8 10 ) = \begin{pmatrix} 12 & 16 \\ 8 & 10 \end{pmatrix} = ( 12 8 16 10 ) .
The first column gives
2 a + 4 c = 12 2a + 4c = 12 2 a + 4 c = 12 and
8 a + 6 c = 8 8a + 6c = 8 8 a + 6 c = 8 .
Multiply the first by 4:
8 a + 16 c = 48 8a + 16c = 48 8 a + 16 c = 48 .
Take away the second:
10 c = 40 10c = 40 10 c = 40 , so
c = 4 c = 4 c = 4 , and
2 a = 12 − 16 = − 4 2a = 12 - 16 = -4 2 a = 12 − 16 = − 4 , so
a = − 2 a = -2 a = − 2 .
The second column gives
2 b + 4 d = 16 2b + 4d = 16 2 b + 4 d = 16 and
8 b + 6 d = 10 8b + 6d = 10 8 b + 6 d = 10 .
Multiply the first by 4:
8 b + 16 d = 64 8b + 16d = 64 8 b + 16 d = 64 .
Take away the second:
10 d = 54 10d = 54 10 d = 54 , so
d = 27 5 d = \frac{27}{5} d = 5 27 , and
2 b = 16 − 108 5 = − 28 5 2b = 16 - \frac{108}{5} = -\frac{28}{5} 2 b = 16 − 5 108 = − 5 28 , so
b = − 14 5 b = -\frac{14}{5} b = − 5 14 .
So
Y = ( − 2 − 2 4 5 4 5 2 5 ) Y = \begin{pmatrix} -2 & -2\frac45 \\ 4 & 5\frac25 \end{pmatrix} Y = ( − 2 4 − 2 5 4 5 5 2 ) .
Watch out
In (a), move every term to one side before factorising, and give both values of y y y : each one gives an A.P. In (b), the first column of Y Y Y (a a a and c c c ) gives one pair of equations and the second column (b b b and d d d ) the other. Solve each pair separately. Report a problem with this question
More past questions like this
NECO 2023 · Paper 2 · Q9 Given A = ( 3 2 − 1 1 0 1 2 − 2 0 ) A = \begin{pmatrix} 3 & 2 & -1 \\ 1 & 0 & 1 \\ 2 & -2 & 0 \end{pmatrix} and B = ( 4 2 − 3 3 − 1 1 0 − 2 2 ) B = \begin{pmatrix} 4 & 2 & -3 \\ 3 & -1 & 1 \\ 0 & -2 & 2 \end{pmatrix} , … NECO 2022 · Paper 2 · Q4 Find the inverse of the matrix A = ( 3 4 5 2 ) A = \begin{pmatrix} 3 & 4 \\ 5 & 2 \end{pmatrix} and use it to solve the equations 3 x + 4 y = 1 3x + 4y = 1 … NECO 2023 · Paper 1 · Q16 Find the determinant of the matrix ( 2 3 1 1 0 2 0 2 3 ) \begin{pmatrix} 2 & 3 & 1 \\ 1 & 0 & 2 \\ 0 & 2 & 3 \end{pmatrix} . JAMB 1994 · UME · Q25 The determinant of the matrix ( 1 2 3 4 5 6 2 0 − 1 ) \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 2 & 0 & -1 \end{pmatrix} is JAMB 1997 · UME · Q24 Find the non-zero positive value of x x which satisfies ∣ x 1 0 1 x 1 0 1 x ∣ = 0 \begin{vmatrix} x & 1 & 0 \\ 1 & x & 1 \\ 0 & 1 & x \end{vmatrix} = 0 . JAMB 1998 · UME · Q23 The determinant of the matrix ( x 1 0 1 − x 2 3 1 1 + x 4 ) \begin{pmatrix} x & 1 & 0 \\ 1 - x & 2 & 3 \\ 1 & 1 + x & 4 \end{pmatrix} in terms of x x … JAMB 1999 · UME · Q15 Find the matrix T T if S T = I ST = I , where S = ( − 1 1 1 − 2 ) S = \begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix} and I I is the identity matrix. JAMB 2000 · UME · Q18 Find the values of t t for which the determinant of the matrix ( t − 4 0 0 − 1 t + 1 1 3 4 t − 2 ) \begin{pmatrix} t - 4 & 0 & 0 \\ -1 & t + 1 & 1 \\ 3 & 4 & t - 2 \end{pmatrix} … JAMB 2001 · UME · Q19 Evaluate ∣ − 1 − 1 − 1 3 1 1 1 2 1 ∣ \begin{vmatrix} -1 & -1 & -1 \\ 3 & 1 & 1 \\ 1 & 2 & 1 \end{vmatrix} . JAMB 2002 · UME · Q36 If N = ( 3 5 − 4 6 − 3 − 5 − 2 2 1 ) N = \begin{pmatrix} 3 & 5 & -4 \\ 6 & -3 & -5 \\ -2 & 2 & 1 \end{pmatrix} , find ∣ N ∣ |N| . JAMB 2003 · UME · Q15 A matrix P P has inverse P − 1 = ( 1 − 3 0 1 ) P^{-1} = \begin{pmatrix} 1 & -3 \\ 0 & 1 \end{pmatrix} . Find P P . JAMB 2004 · UME · Q22 The inverse of the matrix ( 2 1 1 1 ) \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} is JAMB 2004 · UME · Q23 If P = ( 1 0 − 1 3 4 5 − 1 0 1 ) P = \begin{pmatrix} 1 & 0 & -1 \\ 3 & 4 & 5 \\ -1 & 0 & 1 \end{pmatrix} , then ∣ P ∣ |P| is JAMB 2010 · UTME · Q25 If ∣ x 3 2 7 ∣ = 15 \begin{vmatrix} x & 3 \\ 2 & 7 \end{vmatrix} = 15 , find the value of x x . JAMB 2010 · UTME · Q27 If P = ( 2 − 3 1 1 ) P = \begin{pmatrix} 2 & -3 \\ 1 & 1 \end{pmatrix} , what is P − 1 P^{-1} ? JAMB 2011 · UTME · Q25 Evaluate ∣ 4 2 − 1 2 3 − 1 − 1 1 3 ∣ \begin{vmatrix} 4 & 2 & -1 \\ 2 & 3 & -1 \\ -1 & 1 & 3 \end{vmatrix} . JAMB 2011 · UTME · Q26 The inverse of matrix N = ( 2 3 1 4 ) N = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix} is JAMB 2012 · UTME · Q23 If ∣ 5 3 x 2 ∣ = ∣ 3 5 4 5 ∣ \begin{vmatrix} 5 & 3 \\ x & 2 \end{vmatrix} = \begin{vmatrix} 3 & 5 \\ 4 & 5 \end{vmatrix} , find the value of x x . JAMB 2012 · UTME · Q24 Given that I 3 I_3 is the unit matrix of order 3, find ∣ I 3 ∣ |I_3| . JAMB 2013 · UTME · Q23 Find the inverse of ( 5 3 6 4 ) \begin{pmatrix} 5 & 3 \\ 6 & 4 \end{pmatrix} . JAMB 2014 · UTME · Q23 If ∣ − x 12 − 1 4 ∣ = − 12 \begin{vmatrix} -x & 12 \\ -1 & 4 \end{vmatrix} = -12 , find x x . JAMB 2014 · UTME · Q24 Find the value of ∣ 0 3 2 1 7 8 0 5 4 ∣ \begin{vmatrix} 0 & 3 & 2 \\ 1 & 7 & 8 \\ 0 & 5 & 4 \end{vmatrix} . JAMB 2015 · UTME · Q37 Find the matrix T T if S T = I ST = I , where S = ( − 1 1 1 − 2 ) S = \begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix} and I I is the identity matrix. JAMB 2017 · UTME · Q25 If N = ( 3 5 − 4 6 − 3 − 5 − 2 2 1 ) N = \begin{pmatrix} 3 & 5 & -4 \\ 6 & -3 & -5 \\ -2 & 2 & 1 \end{pmatrix} , find ∣ N ∣ |N| .