Open Mathhh

Matrix methods for simultaneous equations

Matrices · worksheets 37 to 45 · 3 min read

I can

  • solve AX = B for a column matrix X
  • solve two simultaneous equations using an inverse matrix
  • solve AX = B when X is a 2 × 2 matrix

Key idea

If AX = B, multiply both sides on the left by A⁻¹. Then X = A⁻¹B. The order matters, so A⁻¹ goes in front of B.

To solve two equations like 2x + y = 7 and x + y = 4, write them as AX = B. A holds the numbers in front of x and y. X is the column (x, y). B holds the right-hand sides. Then X = A⁻¹B.

If B is a 2 × 2 matrix, X is a 2 × 2 matrix. Multiply A⁻¹ by B in the same way.

Worked examples

Example 1: AX = B with a column

Watch it: A = [[2, 1], [1, 1]] and AX = [[5], [3]]: X = A⁻¹ times the column, step by step:

  1. A has determinant 1, so A⁻¹ = [[1, −1], [−1, 2]]. Then X = A⁻¹ B.
  2. Row 1 of A⁻¹ with B: 1 × 5 + (−1) × 3 = 2.
  3. Row 2 of A⁻¹ with B: (−1) × 5 + 2 × 3 = 1.
  4. So X is the column (2, 1).

A = [[2, 1], [1, 1]] and AX = [[5], [3]].

  1. The determinant is 2 × 1 − 1 × 1 = 1, so A⁻¹ = [[1, −1], [−1, 2]].
  2. Top: 1 × 5 + (−1) × 3 = 2. Bottom: (−1) × 5 + 2 × 3 = 1.

X = (2, 1)

Example 2: simultaneous equations

Watch it: 3x − 4y = 31 and 2x + 2y = 2: X = A⁻¹ times the column, step by step:

  1. A = [[3, −4], [2, 2]] has determinant 14, so A⁻¹ = 1/14 [[2, 4], [−2, 3]]. Then X = A⁻¹ B.
  2. Row 1 of A⁻¹ with B: 1/7 × 31 + 2/7 × 2 = 5.
  3. Row 2 of A⁻¹ with B: (−1/7) × 31 + 3/14 × 2 = −4.
  4. So X is the column (5, −4).

Solve 3x − 4y = 31 and 2x + 2y = 2.

  1. A = [[3, −4], [2, 2]]. The determinant is 3 × 2 − (−4) × 2 = 14.
  2. A⁻¹ is 1/14 of [[2, 4], [−2, 3]].
  3. Top: (2 × 31 + 4 × 2) ÷ 14 = 70 ÷ 14 = 5.
  4. Bottom: ((−2) × 31 + 3 × 2) ÷ 14 = (−56) ÷ 14 = −4.

(x, y) = (5, -4)

Check: 3 × 5 − 4 × (−4) = 31 and 2 × 5 + 2 × (−4) = 2.

Example 3: X is 2 × 2

Watch it: A = [[2, 1], [1, 1]] and AX = [[5, 3], [3, 2]]: X = A⁻¹ times the matrix, step by step:

  1. A has determinant 1, so A⁻¹ = [[1, −1], [−1, 2]]. Then X = A⁻¹ B.
  2. Row 1 of A⁻¹ with column 1 of B: 1 × 5 + (−1) × 3 = 2.
  3. Row 1 of A⁻¹ with column 2 of B: 1 × 3 + (−1) × 2 = 1.
  4. Row 2 of A⁻¹ with column 1 of B: (−1) × 5 + 2 × 3 = 1.
  5. Row 2 of A⁻¹ with column 2 of B: (−1) × 3 + 2 × 2 = 1.
  6. So X = (2, 1, 1, 1), row by row.

A = [[2, 1], [1, 1]] and AX = [[5, 3], [3, 2]].

  1. A⁻¹ = [[1, −1], [−1, 2]].
  2. Row 1: 5 − 3 = 2 and 3 − 2 = 1.
  3. Row 2: −5 + 6 = 1 and −3 + 4 = 1.

X = (2, 1, 1, 1)

Try it

A = [[−4, −3], [−3, 1]] and AX = [[−6], [15]]. Find the column matrix X, answer as (top, bottom).
Show answer(-3, 6)
Use matrices to solve 2x + 6y = 26 and 2x + 4y = 18. Answer (x, y).
Show answer(1, 4)
Use matrices to solve x + 3y = −5 and −x + 2y = −10. Answer (x, y).
Show answer(4, -3)
A = [[2, −1], [3, −2]] and AX = [[−2, −2], [−4, −2]]. Find the 2 × 2 matrix X. Give the answer row by row.
Show answer(0, -2, 2, -2)

Common mistakes

  • Multiplying on the right: X = BA⁻¹ is wrong. Write A⁻¹B.
  • Mixing up the columns. The first column of A holds the x numbers.

Remember

  • AX = B means X = A⁻¹B.
  • Check your answer in the original equations.

Practise this

Worksheets 37 to 45 of Matrices practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Matrices notes

Keep learning

All Matrices notes · All study notes