Matrices & determinants · Lesson 2 of 2

Determinants and inverses

The determinant ad − bc of a 2 × 2 matrix and what it measures, singular matrices, the inverse of a 2 × 2 matrix, finding a matrix from its inverse, solving simultaneous equations with an inverse, and 3 × 3 determinants.

16 minYou should already know: Linear & simultaneous equations
  1. 1
  2. 2

The determinant

The determinant of a 2×22 \times 2 matrix is one number, written with straight bars:

∣abcd∣=ad−bc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

Multiply down the leading diagonal, then take away the product of the other diagonal.

abcdad − bc
DeterminantLeading diagonal minus the other diagonal: ad − bc

Try it

The determinantChange the entries with the sliders
−6−5−4−3−2−1123456−6−5−4−3−2−1123456xy
(2 1 | 1 3)matrix2 × 3 − 1 × 1 = 5ad − bc(3/5 −1/5 | −1/5 2/5)inverse
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×22 \times 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−1A^{-1} undoes AA: AA−1=A−1A=IAA^{-1} = A^{-1}A = I. For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, swap aa and dd, change the signs of bb and cc, and divide by the determinant:

A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

If ad−bc=0ad - bc = 0 there is no inverse: the matrix is singular.

A⁻¹ =1ad − bcd−b−caswap a, d · change signs of b, c
InverseSwap 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=(25−1−3)\mathbf A = \begin{pmatrix} 2 & 5 \\ -1 & -3 \end{pmatrix} and B=(3−241)\mathbf B = \begin{pmatrix} 3 & -2 \\ 4 & 1 \end{pmatrix}, find: (i) BA\mathbf{BA}; (ii) the determinant of BA\mathbf{BA}.

  1. (i) Which way round?

    BA\mathbf{BA} means rows of B\mathbf B times columns of A\mathbf A.

    Think first. BA: whose rows and whose columns?

  2. Multiply

    BA=(3(2)+(−2)(−1)3(5)+(−2)(−3)4(2)+1(−1)4(5)+1(−3))=(821717)\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}.

    Think first. Work out each entry.

  3. (ii) The determinant

    ∣BA∣=8×17−21×7=136−147=−11|\mathbf{BA}| = 8 \times 17 - 21 \times 7 = 136 - 147 = -11.

    Think first. ad − bc for the answer to (i).

Finding a matrix from its inverse

The inverse of A−1A^{-1} is AA itself. So to find PP from P−1P^{-1}, find the inverse of P−1P^{-1} with the same rule.

Worked example · WAEC 2018

WAEC 2018 · Paper 2 · Q7 (b)

Given that P−1=(−114−3)P^{-1} = \begin{pmatrix} -1 & 1 \\ 4 & -3 \end{pmatrix}, find the matrix PP.

  1. The determinant of the given matrix

    ∣P−1∣=(−1)(−3)−(1)(4)=3−4=−1|P^{-1}| = (-1)(-3) - (1)(4) = 3 - 4 = -1.

    Think first. ad − bc for P⁻¹.

  2. Swap and change signs

    (−3−1−4−1)\begin{pmatrix} -3 & -1 \\ -4 & -1 \end{pmatrix}.

    Think first. Swap −1 and −3; change the signs of 1 and 4.

  3. Divide by the determinant

    P=1−1(−3−1−4−1)=(3141)P = \frac{1}{-1}\begin{pmatrix} -3 & -1 \\ -4 & -1 \end{pmatrix} = \begin{pmatrix} 3 & 1 \\ 4 & 1 \end{pmatrix}.

    Think first. Divide every entry by −1.

  4. Check

    (3141)(−114−3)=(1001)\begin{pmatrix} 3 & 1 \\ 4 & 1 \end{pmatrix}\begin{pmatrix} -1 & 1 \\ 4 & -3 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} ✓.

    Think first. What should P × P⁻¹ give?

Solving simultaneous equations with an inverse

Two equations such as 3x+y=73x + y = 7 and 2x+y=52x + y = 5 can be written as one matrix equation, (3121)(xy)=(75)\begin{pmatrix} 3 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 7 \\ 5 \end{pmatrix}. Multiplying both sides by the inverse on the left gives (xy)\begin{pmatrix} x \\ y \end{pmatrix}.

3 × 3 determinants

For a 3×33 \times 3 determinant, expand along the top row. Each top-row entry multiplies the 2×22 \times 2 determinant left when you cover its row and column, and the signs go +,−,++, -, +:

abcdefghi+−+a(ei − fh)− b(di − fg)+ c(dh − eg)
3 × 3 determinantTop row, signs + − +, each times the 2 × 2 left over

Your turn

WAEC 2020 · Paper 2 · Q6 (b)

  1. (b)

    Given that X=(2486)X = \begin{pmatrix} 2 & 4 \\ 8 & 6 \end{pmatrix}, Y=(abcd)Y = \begin{pmatrix} a & b \\ c & d \end{pmatrix} and XY=(1216810)XY = \begin{pmatrix} 12 & 16 \\ 8 & 10 \end{pmatrix}, find: (i) matrix YY; (ii) the determinant of YY.

Worked solution (try it first)

(b)(i)

  1. Multiply row by column: XY=(2a+4c2b+4d8a+6c8b+6d)XY = \begin{pmatrix} 2a + 4c & 2b + 4d \\ 8a + 6c & 8b + 6d \end{pmatrix}
    =(1216810)= \begin{pmatrix} 12 & 16 \\ 8 & 10 \end{pmatrix}.
  2. The first column gives 2a+4c=122a + 4c = 12 and 8a+6c=88a + 6c = 8.
  3. Multiply the first by 4: 8a+16c=488a + 16c = 48.
  4. Take away the second: 10c=4010c = 40, so c=4c = 4, and 2a=12−16=−42a = 12 - 16 = -4, so a=−2a = -2.
  5. The second column gives 2b+4d=162b + 4d = 16 and 8b+6d=108b + 6d = 10.
  6. Multiply the first by 4: 8b+16d=648b + 16d = 64.
  7. Take away the second: 10d=5410d = 54, so d=275d = \frac{27}{5}, and 2b=16−1085=−2852b = 16 - \frac{108}{5} = -\frac{28}{5}, so b=−145b = -\frac{14}{5}.
  8. So Y=(−2−2454525)Y = \begin{pmatrix} -2 & -2\frac45 \\ 4 & 5\frac25 \end{pmatrix}.

Report a problem with this question

More past questions like this