IB Maths AI HLMatricesPaper 1 & 2Linear systems~8 min read
Solving Systems of Linear Equations with Matrices
A system of linear equations packs into a single matrix equation Ax = b. If A is invertible, the solution is one matrix multiplication away: x = A−1b. The same machinery handles 2×2 systems by hand and 3×3 systems with a GDC.
📘 What you need to know
A system of linear equations can be written as Ax = b, where A is the matrix of coefficients and b is the column of constants.
Each equation becomes a row of A and b; each unknown becomes an entry of x.
If A is invertible (det A ≠ 0), the system has a unique solution given by x = A−1b.
If det A = 0, the system has no unique solution (either no solution or infinitely many).
For 2×2 systems you can solve by hand using the inverse formula.
For 3×3 (or larger), enter the matrices into your GDC and let it compute A−1b.
Writing a system as a matrix equation
Each linear equation contributes a row. The coefficients of the unknowns go into A, the unknowns themselves stack into the column vector x, and the constants from the right-hand side make up b. Once you can see the pattern, the translation is mechanical.
Each colour-coded equation maps to a row of A and b. The unknowns stack into x. Inverting A and multiplying by b reads off the solution in one step.
Matrix form of a linear systemAx = b, with det A ≠ 0 ⇒ x = A−1brows of A hold the coefficients; b holds the constants; x stacks the unknowns
Solving with the inverse
Once the system sits in matrix form, the same trick from the previous note finishes it: pre-multiply by A−1 to isolate x. For 2×2 systems use the inverse formula by hand; for 3×3 let your GDC do the heavy lifting — you only need to enter A and b, then compute A−1b.
When does a unique solution exist?
The determinant is the gate. If det A ≠ 0, the system has exactly one solution and inversion finds it. If det A = 0, the coefficient matrix is singular — the system either has no solution (the equations contradict each other) or infinitely many (the equations are essentially the same). Either way, the inverse method fails.
Quick check: before reaching for the GDC, compute (or estimate) det A. A non-zero determinant tells you a unique solution exists; a zero one tells you to look for special structure rather than a unique answer.
🧠Recipe — solving a linear system with matrices
Read off the coefficients of the unknowns into matrix A, row by row.
Read off the constants from the right-hand sides into the column vector b.
Compute det A; if zero, there is no unique solution — stop.
Find A−1 by hand for 2×2, or with the GDC for 3×3.
Multiply: x = A−1b. The entries of x are the values of the unknowns.
Worked examples
WE 1
Set-up: write a system in matrix form
Write the system 2x − 3y = 7, x + 4y = −2 as a matrix equation Ax = b.
A holds the coefficients of x and y row by rowA = ((2, −3), (1, 4))x stacks the unknowns; b stacks the constantsx = (x, y)T; b = (7, −2)T((2, −3), (1, 4)) · (x, y)T = (7, −2)Tmatch the order: row 1 of A goes with the top entry of b.
Show that the system 2x + 3y = 7, 4x + 6y = 14 has no unique solution.
coefficient matrix and its determinantA = ((2, 3), (4, 6))det A = (2)(6) − (3)(4) = 12 − 12 = 0det A = 0 ⇒ A is singularno unique solutionnotice the second equation is twice the first — infinitely many solutions, but no single one.
WE 4
3×3 system using the GDC
Solve x + 2y − z = 2, 2x − y + z = 3, −x + y + 3z = 10.
set up the matrix equationA = ((1, 2, −1), (2, −1, 1), (−1, 1, 3)); b = (2, 3, 10)Tdet A on GDC: −19 ≠ 0 ⇒ unique solutionenter A and b, compute A⁻¹ bx = A⁻¹ b = (1, 2, 3)Tx = 1, y = 2, z = 3verify by plugging back: 1 + 4 − 3 = 2 ✓, 2 − 2 + 3 = 3 ✓, −1 + 2 + 9 = 10 ✓.
WE 5
Applied: pricing three items
A shop sells apples, bananas and cherries by the unit. Three customers each buy a mix: customer 1 buys 2 apples, 3 bananas and 1 cherry for $11; customer 2 buys 1 apple, 2 bananas and 4 cherries for $17; customer 3 buys 3 apples, 1 banana and 2 cherries for $11. Find the unit price of each fruit.
let a, b, c be the unit prices of apple, banana, cherry2a + 3b + c = 11; a + 2b + 4c = 17; 3a + b + 2c = 11matrix formA = ((2, 3, 1), (1, 2, 4), (3, 1, 2)); b = (11, 17, 11)TA⁻¹ b on the GDC(a, b, c) = (1, 2, 3)apple $1, banana $2, cherry $3real-world systems often hide behind word problems — set the unknowns up first, then translate.
WE 6
Parameter: existence and explicit solve
Consider the system kx + 2y = 8, 3x + 4y = 14. (a) Find the value of k for which the system has no unique solution. (b) Solve the system when k = 2.
(a) no unique solution ⇔ det A = 0det A = 4k − 6 = 0 ⇒ k = 3/2(b) at k = 2: A = ((2, 2), (3, 4)); b = (8, 14)Tdet A = 8 − 6 = 2A⁻¹ = (1/2)((4, −2), (−3, 2))x = (1/2)(4·8 + (−2)·14) = (1/2)(4) = 2y = (1/2)((−3)·8 + 2·14) = (1/2)(4) = 2(a) k = 3/2 · (b) x = 2, y = 2the boundary value of k turns A singular — any k away from 3/2 gives a unique solution.
💡 Top tips
One row per equation: write coefficients in the same variable order across every row of A.
Watch for missing variables — if y doesn’t appear in an equation, the corresponding entry of A is 0, not blank.
For 2×2 systems, the inverse formula by hand is faster than substitution or elimination once you’re comfortable.
For 3×3 systems, your GDC can find A−1b in one step — learn the menu now.
Always cross-check by substituting the answer back into the original equations.
âš Common mistakes
Misaligning coefficients — every equation must list the unknowns in the same order before reading into A.
Forgetting a zero coefficient when a variable is absent from an equation.
Computing without checking det A — if it is zero, A−1 does not exist.
Post-multiplying instead of pre-multiplying: x = A−1b, not bA−1.
Confusing the row order of b with the column order of x — b entries match equations; x entries match variables.
That completes Matrices. From the basic definition through addition, multiplication, determinants and inverses, and now linear systems, you have a full toolkit for handling matrices in IB Maths AI HL Paper 1 & 2.
Need help with AI HL Matrices?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.