IB Maths AA HL Topic 1 — Number & Algebra Paper 1 & 2 HL only ~10 min read

Solving Systems Using Row Reduction

In the last note you learned how to set up a system of linear equations and how to solve one using your GDC. But on Paper 1 you don’t have a calculator — and even on Paper 2, examiners sometimes specifically ask for an algebraic method. Row reduction is that algebraic method, and it’s astonishingly systematic. The idea: write the system as a grid of numbers (an augmented matrix), apply a few simple operations to whittle it down to a “staircase” pattern, then read off the answer line by line. Once you trust the algorithm, even messy 3×3 systems become surprisingly mechanical — every step has a reason, and there’s no guessing.

📘 What you need to know

The augmented matrix — packing a system into a grid

The first move is purely cosmetic but very useful: rewrite the system without the variables. Just keep the coefficients (and the constants on the right-hand side) in a rectangular grid called an augmented matrix:

3×3 system → augmented matrix a1x + b1y + c1z = d1
a2x + b2y + c2z = d2    ⟶    [a1  b1  c1  |  d1]
a3x + b3y + c3z = d3           [a2  b2  c2  |  d2]
                                         [a3  b3  c3  |  d3]

The vertical bar separates the coefficients from the constants — it’s just a visual reminder that the right-hand side comes from after the equals sign. Important: if a variable is missing from any equation, write a 0 in its place — don’t leave a gap.

Pre-flight check:   before converting to a matrix, make sure every equation is in standard form (ax + by + cz = d) with the variables in the same order across all rows. Missing variables → put 0; constants on the right of equals → after the bar.

What is row-reduced (echelon) form?

A matrix is in row-reduced echelon form when its non-zero entries form a “staircase” pattern: leading 1’s down the diagonal, with zeros below them. Above the diagonal, anything goes.

The “staircase” pattern of row-reduced echelon form
1 D₁ 0 1 D₂ 0 0 1 D₃ leading 1 zero below anything leading 1’s on the diagonal, zeros below — that’s the goal of row reduction

If your matrix looks like this at the end of the algorithm, the system is solved — well, almost. The last row gives z directly; the row above gives y in terms of z, which you’ve just found; and the top row gives x in terms of y and z. This last sweep is called back-substitution.

🤔 Why a “staircase” specifically?

Because the staircase shape makes back-substitution work in one direction. The bottom row has only one variable, so it’s solved directly. The next row up adds one new variable — but the previous one is already known, so it’s still a one-variable problem. And so on up. Each row introduces exactly one new unknown — that’s what the staircase shape encodes.

The three row operations

To get from your starting matrix to the staircase form, you may use only three operations. Each one is reversible, and crucially, none of them change the solution set — that’s what makes row reduction valid.

Operation 1
swap two rows
r1r2
useful when the top-left entry is 0 or awkward
Operation 2
multiply a row by k
kr2r2  (k ≠ 0)
useful for getting a leading 1
Operation 3
add a multiple of one row to another
r2 + kr1r2
useful for creating zeros below a leading 1
Each operation has a clean equation-level interpretation. Swapping rows = writing your equations in a different order. Multiplying a row by 5 = multiplying both sides of an equation by 5. Adding 3 times row 1 to row 2 = adding 3 copies of equation 1 to equation 2. None of these change which (x, y, z) satisfies the system, which is why they’re allowed.

The 4-step row reduction algorithm

Here’s the standard “going down the diagonal” recipe. Work column by column, from left to right.

🧭 Recipe — row reduction step by step

  1. STEP 1 — Get a 1 in the top-left corner. Either divide the first row by its leading entry (if non-zero) or swap with another row that has a friendlier leading entry.
  2. STEP 2 — Create zeros below that 1. For each row below, subtract a suitable multiple of row 1 to kill the entry in column 1.
  3. STEP 3 — Repeat for the sub-matrix. Now ignore the first row and column (they’re done). Apply Steps 1–2 to what remains: get a 1 in the new top-left, then zeros below it.
  4. STEP 4 — Get a 1 in the bottom row. If the bottom row’s only non-zero entry isn’t already 1, divide the row by its value. The matrix is now in echelon form.

After reaching echelon form, convert the matrix back into equations and back-substitute upwards.

Bookkeeping advice:   write the operation you used next to the row in the new matrix — for example “r2 − 3r1r2“. This earns you method marks and helps you spot any mistakes when you check your working.

Back-substitution — recovering x, y, z

Once the matrix is in echelon form, switch back to equations and solve from the bottom up:

Back-substitution from echelon form bottom row gives  z = D3
middle row gives  y + C2z = D2  ⟹  y = D2C2z
top row gives  x + B1y + C1z = D1  ⟹  x = D1B1yC1z
Each step gives you one new variable. By the time you get to the top, you’ve got the whole solution. The order is rigid: you cannot find x first because the top equation has three unknowns. Always start at the bottom and work up.

Worked examples

WE 1

Convert a system to an augmented matrix

Write the following system as an augmented matrix:
   2x + y − 3z = 4
   x + z = 6
   3x − 2y + z = 9

Step 1: Make sure every equation is in standard form ax + by + cz = d 2x + y − 3z = 4 ✓ x + 0y + z = 6 (insert 0 for missing y!) 3x − 2y + z = 9 ✓ Step 2: Strip out the variables, write coefficients in a grid [2  1  −3  |  4]  /  [1  0  1  |  6]  /  [3  −2  1  |  9] missing variable → 0, never blank. The y coefficient in the second row is 0.
WE 2

Apply a single row operation

Given the matrix
[1  −1  2  |  5]
[2  1  −1  |  3]
[3  −2  1  |  6]
apply the row operation r2 − 2r1r2 and write the new matrix.

Step 1: Identify what we’re computing replace row 2 with (row 2 − 2 × row 1) Step 2: Compute element by element col 1: 2 − 2(1) = 0 col 2: 1 − 2(−1) = 1 + 2 = 3 col 3: −1 − 2(2) = −1 − 4 = −5 RHS: 3 − 2(5) = 3 − 10 = −7 Step 3: Replace row 2 with the new values; rows 1 and 3 unchanged [1  −1  2  |  5]  /  [0  3  −5  |  −7]  /  [3  −2  1  |  6] notice the new row 2 has a 0 in column 1 — exactly the goal of this operation
WE 3

Solve a 2×2 system using row reduction

Solve the system using row reduction:
   x + 2y = 8
   3xy = 3

Step 1: Convert to augmented matrix [1  2  |  8] [3  −1  |  3] Step 2: Already 1 in top-left ✓  Make zero below: r₂ − 3r₁ → r₂ row 2: [3−3, −1−6, 3−24] = [0, −7, −21] [1  2  |  8] [0  −7  |  −21] Step 3: Get a 1 in the bottom row: r₂ ÷ (−7) → r₂ [1  2  |  8] [0  1  |  3] Step 4: Back-substitute. Bottom row: y = 3 Top row: x + 2y = 8 → x + 6 = 8 → x = 2 x = 2,   y = 3 verify: 2 + 6 = 8 ✓   3(2) − 3 = 3 ✓
WE 4

Solve a 3×3 system using row reduction

Solve using row reduction:
   x + 2y + z = 7
   2x + 5yz = 6
   3x + y + 2z = 13

Step 1: Convert to augmented matrix [1  2  1  |  7] [2  5  −1  |  6] [3  1  2  |  13] Step 2: Already 1 in top-left ✓  Create zeros below it r₂ − 2r₁ → r₂:  [0, 1, −3,  −8] r₃ − 3r₁ → r₃:  [0, −5, −1,  −8] [1  2  1  |  7] [0  1  −3  |  −8] [0  −5  −1  |  −8] Step 3: Already 1 in row 2, col 2 ✓  Create zero below in row 3 r₃ + 5r₂ → r₃:  [0, 0, −16,  −48] [1  2  1  |  7] [0  1  −3  |  −8] [0  0  −16  |  −48] Step 4: Get a 1 in the bottom row: r₃ ÷ (−16) → r₃ [1  2  1  |  7] [0  1  −3  |  −8] [0  0  1  |  3] Step 5: Back-substitute z = 3 y − 3z = −8 → y − 9 = −8 → y = 1 x + 2y + z = 7 → x + 2 + 3 = 7 → x = 2 x = 2,   y = 1,   z = 3 verify in original equation 2: 2(2) + 5(1) − 3 = 4 + 5 − 3 = 6 ✓ — always check at least one
WE 5

3×3 system requiring row swaps

Solve the system using row reduction:
   3x − 2y + z = 1
   x + yz = 4
   2x + 3y − 2z = 11

Step 1: Convert to matrix; the top-left entry is 3, so swap to get a 1 [3  −2  1  |  1] [1  1  −1  |  4] [2  3  −2  |  11] apply r₁ ↔ r₂: [1  1  −1  |  4] [3  −2  1  |  1] [2  3  −2  |  11] Step 2: Create zeros below the leading 1 r₂ − 3r₁ → r₂:  [0, −5, 4,  −11] r₃ − 2r₁ → r₃:  [0, 1, 0,  3] [1  1  −1  |  4] [0  −5  4  |  −11] [0  1  0  |  3] Step 3: Swap rows 2 and 3 to get a 1 in the (2,2) position [1  1  −1  |  4] [0  1  0  |  3] [0  −5  4  |  −11] Step 4: Zero below the new (2,2) entry: r₃ + 5r₂ → r₃ [1  1  −1  |  4] [0  1  0  |  3] [0  0  4  |  4] Step 5: Get a 1 in the bottom row: r₃ ÷ 4 → r₃ [1  1  −1  |  4] [0  1  0  |  3] [0  0  1  |  1] Step 6: Back-substitute z = 1 y = 3 (directly from middle row) x + y − z = 4 → x + 3 − 1 = 4 → x = 2 x = 2,   y = 3,   z = 1 two strategic swaps made the rest of the algebra clean — always swap when it gets you a friendlier leading entry
WE 6

Word problem solved using row reduction

Three friends — Yara, Zayn, and Wei — buy concert tickets at three price tiers (standard, premium, VIP).
• Yara buys 2 standard, 1 premium, 1 VIP for £110.
• Zayn buys 1 standard, 2 premium, 1 VIP for £120.
• Wei buys 1 standard, 1 premium, 2 VIP for £130.
Find the price of each tier using row reduction.

Step 1: Define variables and form equations Let s, p, v be the prices in £ 2s + p + v = 110 s + 2p + v = 120 s + p + 2v = 130 Step 2: Augmented matrix; swap r₁ ↔ r₂ to get 1 in top-left [1  2  1  |  120] [2  1  1  |  110] [1  1  2  |  130] Step 3: Zero below the leading 1 r₂ − 2r₁ → r₂: [0, −3, −1,  −130] r₃ − r₁ → r₃: [0, −1, 1,  10] [1  2  1  |  120] [0  −3  −1  |  −130] [0  −1  1  |  10] Step 4: Swap r₂ ↔ r₃ for a friendlier middle entry, then negate r₂ [0  −1  1  |  10] → after −r₂ → r₂: [0, 1, −1,  −10] [1  2  1  |  120] [0  1  −1  |  −10] [0  −3  −1  |  −130] Step 5: Zero below: r₃ + 3r₂ → r₃ [0, 0, −4,  −160] divide by −4: [0, 0, 1, 40] [1  2  1  |  120] [0  1  −1  |  −10] [0  0  1  |  40] Step 6: Back-substitute v = 40 p − v = −10 → p = −10 + 40 = 30 s + 2p + v = 120 → s + 60 + 40 = 120 → s = 20 standard = £20,   premium = £30,   VIP = £40 always interpret in the context — “standard tickets cost £20” not just “s = 20”

💡 Top tips

⚠ Common mistakes

Row reduction is the workhorse algebraic method for systems of linear equations — and once you’ve practised the algorithm a few times, it becomes almost automatic. The next note covers what happens when row reduction doesn’t end up with a clean staircase: when the system has no solutions (an inconsistent system) or infinitely many solutions (a dependent system). The matrix tells you straight away which case you’re in — you just need to know what to look for.

Need help with Row Reduction?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →