Mathematics Topic

Inverse of a 2 by 2 Matrix

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. The inverse of a square matrix A is the matrix A^-1 that undoes it: A × A^-1 = A^-1 × A = I, the identity matrix
  2. For [[a, b], [c, d]] with ad - bc not 0, the inverse is (1/(ad - bc)) × [[d, -b], [-c, a]]: swap a and d, change the signs of b and c, divide by the determinant
  3. A matrix whose determinant is 0 is singular and has no inverse; always check an inverse by multiplying

Section 1The identity matrix

The 2 by 2 identity matrix is I = [[1, 0], [0, 1]]: ones down the leading diagonal (top left to bottom right) and zeros elsewhere. Multiplying any 2 by 2 matrix by I, on either side, gives back the same matrix: A × I = I × A = A. I does for matrices what the number 1 does for ordinary multiplication. A square matrix of any order has its own identity, but here we only need the 2 by 2 one.

Section 2What the inverse is

The number 5 has the multiplicative inverse 1/5 because 5 × 1/5 = 1. In the same way, a square matrix A may have an inverse A^-1 with A × A^-1 = I and A^-1 × A = I. Write it A^-1 and read it as A inverse. Only square matrices can have an inverse, and even some square matrices have none. When an inverse exists it is unique, so there is only one right answer to find.

Section 3The determinant decides whether an inverse exists

For A = [[a, b], [c, d]] the determinant is det A = ad - bc: multiply the leading diagonal, then subtract the product of the other diagonal. If det A is not 0 the matrix is non-singular and has an inverse. If det A = 0 the matrix is singular and has no inverse at all. To find a value of x that makes a matrix singular, write the determinant using x, set it equal to 0 and solve.

Section 4The adjoint of a 2 by 2 matrix

The adjoint of [[a, b], [c, d]] is [[d, -b], [-c, a]]. Two actions build it: swap the two entries on the leading diagonal (a and d), and change the signs of the other two entries (b and c). Take care with negative entries: if b is -3, then -b is +3. Leave the positions of b and c alone; only their signs change.

Section 5The formula for the inverse

A^-1 = (1/(ad - bc)) × [[d, -b], [-c, a]]. Find the determinant, build the adjoint, then multiply every entry of the adjoint by 1/det. When det is 1 the inverse is just the adjoint. When det is -1, every sign of the adjoint flips. When det is 2, every entry is halved, so fractions such as 3/2 appear in the answer. Do not take the reciprocal of each entry of A; that does not give the inverse.

Section 6Checking by multiplication

Always check: multiply A by your answer and look for [[1, 0], [0, 1]]. A wrong sign, a missed division by the determinant or a mix-up of positions all show up as something other than I. The full test that B is the inverse of A is that both products are I: A × B = I and B × A = I. The test is the same from either side, so A is also the inverse of B, and the inverse of A^-1 is A itself. A check takes under a minute and is worth the marks.

Examples

Find the inverse of A = [[4, 3], [2, 2]] and check your answer by multiplication.

Step 1, determinant: det A = 4 × 2 - 3 × 2 = 8 - 6 = 2. It is not 0, so A has an inverse. Step 2, adjoint: swap 4 and 2, change the signs of 3 and 2, giving [[2, -3], [-2, 4]]. Step 3, multiply every entry of the adjoint by 1/2: A^-1 = [[1, -3/2], [-1, 2]]. Check: row 1 of A with column 1 of A^-1 gives 4 × 1 + 3 × (-1) = 1; row 1 with column 2 gives 4 × (-3/2) + 3 × 2 = -6 + 6 = 0; row 2 with column 1 gives 2 × 1 + 2 × (-1) = 0; row 2 with column 2 gives 2 × (-3/2) + 2 × 2 = -3 + 4 = 1. So A × A^-1 = [[1, 0], [0, 1]] = I.

The matrix P = [[x, 2], [3, x + 1]] has no inverse for two values of x. (a) Find them. (b) For x = 4, find P^-1 and check it.

(a) P has no inverse when det P = 0. det P = x(x + 1) - 2 × 3 = x^2 + x - 6. Solve x^2 + x - 6 = 0 by factorising: (x + 3)(x - 2) = 0, so x = -3 or x = 2. Test: for x = 2, P = [[2, 2], [3, 3]] and 2 × 3 - 2 × 3 = 0; for x = -3, P = [[-3, 2], [3, -2]] and (-3)(-2) - 2 × 3 = 6 - 6 = 0. (b) For x = 4, P = [[4, 2], [3, 5]]. det P = 4 × 5 - 2 × 3 = 20 - 6 = 14, which is not 0. The adjoint is [[5, -2], [-3, 4]] (swap 4 and 5, change the signs of 2 and 3). So P^-1 = 1/14 × [[5, -2], [-3, 4]] = [[5/14, -1/7], [-3/14, 2/7]]. Check with the adjoint first: P × [[5, -2], [-3, 4]] = [[4 × 5 + 2 × (-3), 4 × (-2) + 2 × 4], [3 × 5 + 5 × (-3), 3 × (-2) + 5 × 4]] = [[14, 0], [0, 14]] = 14 × I. Multiplying the adjoint by 1/14 turns 14 × I into I, so P × P^-1 = I.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from