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:
- A has determinant 1, so A⁻¹ = [[1, −1], [−1, 2]]. Then X = A⁻¹ B.
- Row 1 of A⁻¹ with B: 1 × 5 + (−1) × 3 = 2.
- Row 2 of A⁻¹ with B: (−1) × 5 + 2 × 3 = 1.
- So X is the column (2, 1).
A = [[2, 1], [1, 1]] and AX = [[5], [3]].
- The determinant is 2 × 1 − 1 × 1 = 1, so A⁻¹ = [[1, −1], [−1, 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:
- A = [[3, −4], [2, 2]] has determinant 14, so A⁻¹ = 1/14 [[2, 4], [−2, 3]]. Then X = A⁻¹ B.
- Row 1 of A⁻¹ with B: 1/7 × 31 + 2/7 × 2 = 5.
- Row 2 of A⁻¹ with B: (−1/7) × 31 + 3/14 × 2 = −4.
- So X is the column (5, −4).
Solve 3x − 4y = 31 and 2x + 2y = 2.
- A = [[3, −4], [2, 2]]. The determinant is 3 × 2 − (−4) × 2 = 14.
- A⁻¹ is 1/14 of [[2, 4], [−2, 3]].
- Top: (2 × 31 + 4 × 2) ÷ 14 = 70 ÷ 14 = 5.
- 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:
- A has determinant 1, so A⁻¹ = [[1, −1], [−1, 2]]. Then X = A⁻¹ B.
- Row 1 of A⁻¹ with column 1 of B: 1 × 5 + (−1) × 3 = 2.
- Row 1 of A⁻¹ with column 2 of B: 1 × 3 + (−1) × 2 = 1.
- Row 2 of A⁻¹ with column 1 of B: (−1) × 5 + 2 × 3 = 1.
- Row 2 of A⁻¹ with column 2 of B: (−1) × 3 + 2 × 2 = 1.
- So X = (2, 1, 1, 1), row by row.
A = [[2, 1], [1, 1]] and AX = [[5, 3], [3, 2]].
- A⁻¹ = [[1, −1], [−1, 2]].
- Row 1: 5 − 3 = 2 and 3 − 2 = 1.
- Row 2: −5 + 6 = 1 and −3 + 4 = 1.
X = (2, 1, 1, 1)
Try it
Show answer
(-3, 6)Show answer
(1, 4)Show answer
(4, -3)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