Solving Systems of Equations Using Matrices
Key Terms
- Matrix equation
- A system of linear equations can be written as AX = B, where A = coefficient matrix, X = unknowns column, B = constants column.
- Solution by inverse
- X = A−1B (valid only when det(A) ≠ 0).
- Unique solution
- det(A) ≠ 0 → exactly one solution.
- No solution
- det(A) = 0 and the system is inconsistent → the lines are parallel (no intersection).
- Infinite solutions
- det(A) = 0 and the system is consistent → the equations represent the same line.
- Row reduction
- An alternative method: form the augmented matrix [A|B] and apply elementary row operations to find the solution.
The Matrix Method: AX = B
where A = coefficient matrix, X = variable column vector, B = constant column vector.
Solving: X = A−1B (multiply both sides on the left by A−1)
Condition: Only works when det(A) ≠ 0 (A must be invertible).
For 2×2: A = [[a,b],[c,d]] → A−1 = (1/det A) [[d, −b], [−c, a]]
det(A) = ad − bc (QCAA Formula Sheet)
Steps for the Matrix Method
| Step | Action |
|---|---|
| 1 | Write each equation in the form ax + by = c |
| 2 | Identify coefficient matrix A, variable vector X, constant vector B |
| 3 | Calculate det(A) = ad − bc. If det = 0, stop — no unique solution. |
| 4 | Find A−1 using the formula |
| 5 | Calculate X = A−1B by matrix multiplication |
| 6 | Write the solution and verify by substituting back |
Worked Example 1 — Solving a 2×2 System
Solve: 2x + y = 7 and x + 3y = 11
Step 1–2: Set up AX = B
A =
| 2 | 1 |
| 1 | 3 |
| x |
| y |
| 7 |
| 11 |
Step 3: det(A) = 2×3 − 1×1 = 6 − 1 = 5 ≠ 0 → unique solution exists.
Step 4: A−1 = ⅕
| 3 | −1 |
| −1 | 2 |
Step 5: X = A−1B = ⅕
| 3×7 − 1×11 |
| −1×7 + 2×11 |
| 10 |
| 15 |
| 2 |
| 3 |
Solution: x = 2, y = 3. Check: 2(2)+3=7 ✓ and 2+3(3)=11 ✓
Worked Example 2 — Practical Application
A farmer buys x bags of fertiliser at $18 each and y bags of seed at $24 each. He buys 10 bags total and spends $204. Find x and y.
System: x + y = 10 and 18x + 24y = 204
A =
| 1 | 1 |
| 18 | 24 |
| 10 |
| 204 |
det(A) = 24 − 18 = 6. A−1 = ⅙
| 24 | −1 |
| −18 | 1 |
X = A−1B = ⅙
| 240 − 204 |
| −180 + 204 |
| 36 |
| 24 |
| 6 |
| 4 |
Solution: 6 bags of fertiliser, 4 bags of seed.
Full Lesson: Solving Systems Using Matrices
Why Matrix Methods?
In Unit 1 you solved simultaneous equations using substitution and elimination. The matrix method is a powerful alternative that extends naturally to larger systems (3 equations, 3 unknowns; 4 equations, 4 unknowns; and so on). For 2×2 systems in General Maths, the process always follows the same structured steps.
The Matrix Equation AX = B
Any system of two linear equations can be written as a single matrix equation:
Matrix form: A · X = B where A =
| a | b |
| c | d |
| x |
| y |
| e |
| f |
Why X = A⁻¹B (not B·A⁻¹)?
From AX = B, we multiply both sides on the left by A−1:
A−1(AX) = A−1B → (A−1A)X = A−1B → IX = A−1B → X = A−1B
Matrix multiplication is NOT commutative, so the order matters. A−1B and BA−1 give different results.
Connection to the Real World
Businesses use matrix equations constantly: resource allocation (how many of each product to manufacture given cost and time constraints), logistics (how many items to ship via each route), finance (portfolio balancing). In each case, setting up AX = B and solving X = A−1B gives the answer directly.
What If det(A) = 0?
A determinant of zero means the two equations are either parallel lines (no intersection → no solution) or the same line (coincident → infinitely many solutions). In either case, no unique solution exists and the matrix method cannot be applied.
Mastery Practice
-
Fluency
Write the system in matrix form AX = B (identify A, X, and B only — do not solve):
3x + 2y = 11
x − y = 1 -
Fluency
Solve the system using the matrix inverse method:
2x + y = 7
x + y = 5 -
Fluency
Solve the system using the matrix inverse method:
4x − y = 9
2x + y = 3 -
Fluency
Solve using the matrix method:
x + 3y = 10
2x − y = 1 -
Understanding
The coefficient matrix for a system is A =
. Without solving, explain what happens when you attempt to use the matrix inverse method, and what this tells you about the system of equations geometrically.1 2 2 4 -
Understanding
Solve the system and verify your answer by substitution:
3x + 5y = 1
x + 2y = 0 -
Understanding
A café sells lattes for $5 and cappuccinos for $4. On Monday 40 drinks were sold for $182. Set up and solve a matrix equation to find the number of each type sold.
-
Understanding
Solve the following system using the matrix inverse method. Show all steps including finding det(A) and A−1.
2x − 3y = 4
x + y = 3 -
Problem Solving
A sports club sells adult tickets ($15) and concession tickets ($9). A total of 120 tickets are sold for $1470.
- Write a system of two equations, then express it in matrix form AX = B.
- Find A−1 and hence solve for the number of each ticket type sold.
- Verify your solution is correct.
-
Problem Solving
Two alloys are made from copper (Cu) and zinc (Zn). Alloy X is 60% Cu and 40% Zn. Alloy Y is 30% Cu and 70% Zn. A metalworker wants to combine x kg of Alloy X with y kg of Alloy Y to produce 100 kg of a mix that is 45% copper. Set up and solve the system using the matrix method.