IB Mathematics: Analysis and Approaches • Number and Algebra

Systems via Matrices — AHL 1.16 Systems of linear equations (matrix/row-reduction methods) (HL extension)

Solve systems of equations systematically using augmented matrices and row reduction.

IB Mathematics Analysis and Approaches emblem with a function, curved graph, and sigma notation
Inside this lesson 10 sections 5 questions 11 figures

SECTION 1

Historical Context & Motivation

Systems of equations have been around for thousands of years. Ancient civilizations needed to solve practical problems — dividing resources, computing trade values, or planning construction — that boiled down to finding unknown quantities satisfying multiple conditions at once. The idea of organizing these equations into a compact rectangular array, what we now call a matrix, transformed how mathematicians and scientists handle these systems. Instead of juggling individual equations, matrices let us apply a systematic, almost mechanical procedure — row reduction — to find solutions reliably, even when the system involves dozens of variables.

~200 BCE • Chinese "Nine Chapters"

The ancient Chinese text Jiuzhang Suanshu describes a method of arranging coefficients on a counting board and eliminating unknowns column by column — essentially the earliest known form of Gaussian elimination.

1750 • Cramer's Rule

Swiss mathematician Gabriel Cramer publishes a formula for solving systems using determinants. While elegant, Cramer's Rule becomes impractical for large systems due to computational cost.

1810 • Gauss Formalizes Elimination

Carl Friedrich Gauss systematically uses elimination to solve systems arising in astronomy and geodesy. His method of reducing coefficients to a triangular pattern becomes the standard algorithm.

1888 • Jordan's Refinement

Wilhelm Jordan extends Gauss's method by continuing the elimination upward, producing a fully reduced form called row echelon form. This combined approach is now known as Gauss-Jordan elimination.

1940s–Today • Computers & Linear Algebra

With the rise of electronic computers, row reduction becomes the backbone of scientific computing. From weather prediction to 3-D graphics, matrix methods power modern technology.

The central question this topic answers is: given a system of linear equations, how can we find all solutions — or determine that no solution exists — using a structured, repeatable algorithm? Row reduction on an augmented matrix provides exactly that tool. In IB HL Mathematics, you are expected to set up augmented matrices, perform elementary row operations, and interpret the resulting forms to classify systems as having a unique solution, infinitely many solutions, or no solution at all.

SECTION 2

Core Principles & Definitions

Before diving into procedures, you need to understand the foundational ideas that make matrix methods work. Every system of linear equations can be translated into a matrix equation, and every step you perform on that matrix corresponds to a legal algebraic operation on the original equations. This means you never "break" the system — each row operation produces an equivalent system with the same solution set.

1

Augmented Matrix

A matrix formed by writing the coefficient matrix side-by-side with the constants column. The vertical bar '|' separates coefficients from constants. This single object encodes the entire system.
2

Elementary Row Operations (EROs)

Three legal moves: (1) swap two rows, (2) multiply a row by a non-zero constant, (3) add a multiple of one row to another. These preserve the solution set.
3

Row Echelon Form (REF)

A matrix where each leading entry (pivot) is to the right of the one above it, and all entries below each pivot are zero. This creates a staircase pattern from which back-substitution can begin.
4

Reduced Row Echelon Form (RREF)

Row echelon form taken further: each pivot equals 1, and every other entry in a pivot column is 0. Solutions can be read directly from this form without back-substitution.
5

Consistency & Solution Types

A system is consistent if at least one solution exists. It may have a unique solution (one intersection point) or infinitely many (a line or plane of solutions). If a row reads '0 0 … 0 | k' with k ≠ 0, the system is inconsistent.
✦

KEY TAKEAWAY

Think of row reduction like solving a jigsaw puzzle: each elementary row operation is a legal move that rearranges the pieces without losing any. Eventually, you reach a configuration where the picture — the solution — becomes clear. The augmented matrix is just a compact way to carry all the puzzle pieces at once.

SECTION 3

Visual Explanation — From Equations to Row Echelon Form

From System of Equations → Augmented Matrix → REF → RREFSYSTEM2x + y − z = 3x − y + 2z = 13x + 2y + z = 8encodeAUGMENTED MATRIX[ 2 1 −1 | 3 ][ 1 −1 2 | 1 ][ 3 2 1 | 8 ]EROsROW ECHELON FORM (REF)[ 1 −1 2 | 1 ][ 0 3 −5 | 1 ][ 0 0 10 | 10 ]Pivots form a staircase ↘continueREDUCED ROW ECHELON (RREF)[ 1 0 0 | 2 ][ 0 1 0 | 2 ][ 0 0 1 | 1 ]SOLUTIONx = 2y = 2, z = 13 Elementary Row OperationsRi ↔ Rjswap rowskRi → Riscale row (k≠0)Ri + kRj → Riadd multipleThese preserve the solution set.
The diagram traces the complete workflow: a system of three equations is encoded into an augmented matrix, then transformed via elementary row operations into row echelon form (REF), and optionally into reduced row echelon form (RREF). The golden boxes highlight the pivot positions that form the characteristic staircase pattern. The three legal operations are summarized in the reference box at left.

Notice how the staircase pattern in the REF box moves diagonally from upper-left to lower-right. Each pivot — the first non-zero entry in each row — sits strictly to the right of the pivot above it. Everything below a pivot is zero. This structure makes back-substitution straightforward: you solve the last equation first (it has only one unknown), then work upward. If you continue to RREF, the identity matrix on the left tells you each variable's value directly.

SECTION 4

Mathematical Framework

Every system of m linear equations in n unknowns can be written in matrix form as Ax = b, where A is the m × n coefficient matrix, x is the column vector of unknowns, and b is the column vector of constants. The augmented matrix [A | b] packages all of this information for row reduction.

MATRIX EQUATION FORM

Ax=bAx = b

A = coefficient matrix (m × n), x = column vector of unknowns (n × 1), b = column vector of constants (m × 1)

AUGMENTED MATRIX

[A∣b][A | b]

The coefficient matrix A is placed next to the constants column b, separated by a vertical bar. Row operations are applied to the entire augmented matrix.

Elementary Row Operations (EROs)

Three operations are permitted, and each produces an equivalent system — meaning the solution set does not change.

ERO 1 — ROW SWAP

Ri↔RjRᵢ ↔ Rⱼ

Interchange row i and row j. This simply reorders the equations.

ERO 2 — SCALAR MULTIPLICATION

kRi→Ri(k≠0)kRᵢ → Rᵢ (k ≠ 0)

Multiply every entry of row i by a non-zero constant k. This scales one equation without changing its solutions.

ERO 3 — ROW REPLACEMENT

Ri+kRj→RiRᵢ + kRⱼ → Rᵢ

Replace row i with the sum of row i and k times row j. This is the main tool for creating zeros below (and above) pivots.

The goal is to use these operations to transform [A | b] into row echelon form (for Gaussian elimination) or reduced row echelon form (for Gauss-Jordan elimination). In the IB HL exam, you will most often work with 3 × 3 systems, so the target is a 3 × 4 augmented matrix reduced to a staircase pattern with pivots along the diagonal.

SECTION 5

Classifying Solutions — Unique, Infinite, or None

Not every system of equations has a neat, single answer. The row-reduced form of the augmented matrix reveals exactly what kind of solution set exists. Understanding how to read the final matrix is just as important as performing the row operations. The three possibilities for a system of linear equations are a unique solution, infinitely many solutions, or no solution (inconsistency).

Three Types of Solution SetsUNIQUE SOLUTION[1 0 0 | a][0 1 0 | b][0 0 1 | c]Identity on left → read offx = a, y = b, z = cPone pointINFINITELY MANY[1 0 2 | 5][0 1 −1 | 3][0 0 0 | 0]Row of zeros → free variablex = 5−2t, y = 3+t, z = ta lineNO SOLUTION[1 2 −1 | 4][0 1 3 | 2][0 0 0 | 5]0 = 5 is a contradictionSystem is inconsistentparallel linesIn 3D, "lines" become planes: they intersect at a point, along a line, or not at all.
The three columns show representative RREF matrices and their geometric interpretations. A unique solution yields the identity matrix on the left. A row of all zeros signals a free variable and infinitely many solutions. A row of the form [0 0 0 | k] with k ≠ 0 (dashed red outline) signals a contradiction and no solution.
Solution TypeWhat You See in RREFGeometric Meaning (3 planes)
UniqueIdentity matrix on left; each variable has one valueThree planes meet at a single point
Infinitely manyAt least one row of zeros with consistent right side; introduce parameter(s)Planes intersect along a line (one parameter) or coincide (two parameters)
No solutionA row reads [0 0 … 0 | k] with k ≠ 0At least two planes are parallel — no common point

Summary of solution types for a 3 × 3 system

💡

IB Exam Tip

IB HL questions often ask you to find a value of a parameter (like k) for which a system has no solution or infinitely many solutions. Row-reduce the system with k as a variable, then analyze the last row to determine which values of k create a contradiction or an all-zero row.

SECTION 6

Worked Example — Solving a 3 × 3 System

Let's solve the following system completely using Gauss-Jordan elimination (row reduction to RREF).

SYSTEM TO SOLVE

x+2y−z=42x+5y+z=113x+7y−2z=13x + 2y − z = 4 2x + 5y + z = 11 3x + 7y − 2z = 13

Three equations, three unknowns. We expect a unique solution unless the equations are dependent or contradictory.

Gauss-Jordan Elimination

  1. 1

    Step 1 — Write the augmented matrix

    Extract the coefficients of x, y, and z from each equation and place them in rows, with the constants after the bar: [1 2 −1 | 4] [2 5 1 | 11] [3 7 −2 | 13]. The first row comes from x + 2y − z = 4, and so on.
    Augmented matrix set up with three rows and four columns.
  2. 2

    Step 2 — Eliminate below pivot 1 (column 1)

    The entry in R₁C₁ is already 1 — a nice pivot. Now create zeros below it. Apply R₂ − 2R₁ → R₂: the new R₂ is [2−2, 5−4, 1−(−2), 11−8] = [0, 1, 3, 3]. Apply R₃ − 3R₁ → R₃: the new R₃ is [3−3, 7−6, −2−(−3), 13−12] = [0, 1, 1, 1].
    [1 2 −1 | 4] [0 1 3 | 3] [0 1 1 | 1]
  3. 3

    Step 3 — Eliminate below pivot 2 (column 2)

    R₂ already has a 1 in the second column. Eliminate the 1 in R₃C₂: apply R₃ − R₂ → R₃: the new R₃ is [0−0, 1−1, 1−3, 1−3] = [0, 0, −2, −2].
    [1 2 −1 | 4] [0 1 3 | 3] [0 0 −2 | −2]
  4. 4

    Step 4 — Scale pivot 3

    Divide R₃ by −2 to make the pivot equal to 1: (−1/2)R₃ → R₃. The matrix is now in row echelon form (REF).
    [1 2 −1 | 4] [0 1 3 | 3] [0 0 1 | 1]
  5. 5

    Step 5 — Back-eliminate to RREF

    Eliminate above pivot 3: R₂ − 3R₃ → R₂ gives [0, 1, 0, 0]. Then R₁ + R₃ → R₁ gives [1, 2, 0, 5]. Now eliminate above pivot 2: R₁ − 2R₂ → R₁ gives [1, 0, 0, 5].
    [1 0 0 | 5] [0 1 0 | 0] [0 0 1 | 1]
  6. 6

    Step 6 — Read the solution

    The RREF gives the identity on the left, so we read the solutions directly from the last column.
    x = 5, y = 0, z = 1
💡

Verification

Always check by substituting back: 5 + 2(0) − 1 = 4 ✓, 2(5) + 5(0) + 1 = 11 ✓, 3(5) + 7(0) − 2(1) = 13 ✓. In an exam, a quick check like this can catch arithmetic errors.

SECTION 7

Strengths & Limitations of Matrix Methods

Row reduction isn't the only way to solve systems of equations — you have likely already used substitution, elimination, and perhaps Cramer's Rule. How does the matrix method compare? The table below highlights the key trade-offs.

MethodStrengthsLimitations
Row Reduction (Gauss / Gauss-Jordan)Systematic — works for any size system. Reveals whether the solution is unique, infinite, or nonexistent. Easy to implement on a calculator or computer.Can be tedious by hand for large systems. Arithmetic errors compound if fractions appear early.
SubstitutionIntuitive for 2 × 2 systems. Good when one variable is already isolated.Becomes unwieldy for 3 or more unknowns. No systematic framework.
Cramer's RuleElegant formula using determinants. Useful for theoretical results.Only works when the coefficient matrix is square and the determinant is non-zero. Very slow for large systems.
Inverse Matrix (A⁻¹b)Direct: compute A⁻¹ once, then multiply. Quick on a GDC.Requires A to be invertible (det A ≠ 0). Cannot handle infinite or no-solution cases.

Comparison of methods for solving linear systems

✦

KEY TAKEAWAY

Row reduction is like a universal wrench — it fits every bolt. Substitution or Cramer's Rule might be faster for a specific 2 × 2 system, but only Gaussian elimination handles every case: unique, infinite, or no solution, in any dimension. That's why it's the go-to method at the HL level.

SECTION 8

Connections to Further Topics

The techniques you have learned in AHL 1.16 are foundational stepping stones toward more advanced ideas in linear algebra and applied mathematics. Understanding row reduction well prepares you not only for the IB exam but for university-level courses in engineering, economics, data science, and physics.

This Course (AHL 1.16)Advanced / University Topic
Row reduction of augmented matricesGeneral Gaussian elimination for m × n systems; LU decomposition
Row echelon form & pivotsRank of a matrix; column space and null space
Free variables and parametric solutionsVector spaces; eigenvalue problems
Unique vs. infinite vs. no solutionRank-nullity theorem; Fredholm alternative
Systems with a parameter kLinear programming; sensitivity analysis in optimization

How AHL 1.16 connects to university mathematics

In particular, the concept of rank — the number of non-zero rows in the REF — becomes the central tool for analyzing any linear system. At university, you will learn the Rank-Nullity Theorem, which formalizes the relationship between the number of pivot columns (rank), the number of free variables (nullity), and the total number of unknowns. For now, the key insight is that every zero row in the REF corresponds to one degree of freedom — one parameter in the solution.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why multiplying a row by a non-zero constant does not change the solution set of a system of linear equations. Use a specific simple example to support your reasoning.
Show answer
Multiplying both sides of an equation by any non-zero constant k produces an equivalent equation — the set of (x, y, z) values satisfying the new equation is identical to the original. For example, 2x + 4y = 6 and x + 2y = 3 are the same equation (divide by 2). In matrix terms, scaling row Rᵢ by k changes every coefficient and the constant by the same factor, so the equality is preserved. This is why ERO 2 requires k ≠ 0: multiplying by 0 would destroy information, collapsing the equation to 0 = 0 and losing a constraint.

Question 2: BASIC CALCULATION

Solve the following system using row reduction: x + y + z = 6 2x − y + z = 3 x + 2y − z = 4
Show answer
Write the augmented matrix: [1 1 1 | 6; 2 −1 1 | 3; 1 2 −1 | 4]. Apply R₂ − 2R₁ → R₂ to get [0 −3 −1 | −9] and R₃ − R₁ → R₃ to get [0 1 −2 | −2]. Swap R₂ and R₃ for convenience: [0 1 −2 | −2; 0 −3 −1 | −9]. Then R₃ + 3R₂ → R₃ gives [0 0 −7 | −15]. Wait — let me redo: R₂ − 2R₁: [0, −3, −1, −9]. R₃ − R₁: [0, 1, −2, −2]. Swap R₂ and R₃: new R₂ = [0 1 −2 | −2], new R₃ = [0 −3 −1 | −9]. R₃ + 3R₂ → R₃: [0, 0, −7, −15]. Scale R₃ by −1/7: [0 0 1 | 15/7]. Back-substitute: y − 2(15/7) = −2, so y = −2 + 30/7 = 16/7. Then x + 16/7 + 15/7 = 6, so x = 6 − 31/7 = 11/7. Solution: x = 11/7, y = 16/7, z = 15/7. Verify: 11/7 + 16/7 + 15/7 = 42/7 = 6 ✓.

Question 3: INTERMEDIATE

Use Gauss-Jordan elimination to solve: 2x + 4y − 2z = 2 x + 2y + z = 5 3x + 6y − z = 9 Classify the solution type and, if there are infinitely many solutions, express your answer in parametric form.
Show answer
Augmented matrix: [2 4 −2 | 2; 1 2 1 | 5; 3 6 −1 | 9]. Swap R₁ and R₂ for a leading 1: [1 2 1 | 5; 2 4 −2 | 2; 3 6 −1 | 9]. R₂ − 2R₁ → R₂: [0 0 −4 | −8]. R₃ − 3R₁ → R₃: [0 0 −4 | −6]. Scale R₂ by −1/4: [0 0 1 | 2]. R₃ − (−4)(R₂ scaled) → actually R₃ + R₂ (original): R₃ was [0 0 −4 | −6] and R₂ is now [0 0 1 | 2]. Apply R₃ + 4R₂ → R₃: [0 0 0 | 2]. The last row says 0 = 2, which is a contradiction. Therefore, the system has no solution — it is inconsistent. Geometrically, the three planes do not share a common point.

Question 4: APPLIED

A chemistry student mixes three solutions. Solution A contains 10% acid, Solution B contains 30% acid, and Solution C contains 50% acid. She needs 100 mL of a 28% acid mixture, and she wants to use twice as much of B as A. Set up and solve the system of equations using row reduction to find how many millilitres of each solution she needs.
Show answer
Let a, b, c be the mL of A, B, C respectively. The three equations are: (1) a + b + c = 100 (total volume), (2) 0.10a + 0.30b + 0.50c = 28 (acid content: 28% of 100 mL), (3) b = 2a, or −2a + b = 0. Multiply equation (2) by 10: a + 3b + 5c = 280. Augmented matrix: [1 1 1 | 100; 1 3 5 | 280; −2 1 0 | 0]. R₂ − R₁ → R₂: [0 2 4 | 180]. R₃ + 2R₁ → R₃: [0 3 2 | 200]. Scale R₂ by 1/2: [0 1 2 | 90]. R₃ − 3R₂/2... better: use new R₂ = [0 1 2 | 90]. R₃ − 3R₂ → R₃: [0 0 −4 | −70], so c = 70/4 = 17.5. Then b = 90 − 2(17.5) = 55. Then a = 100 − 55 − 17.5 = 27.5. Check: b = 2a → 55 = 2(27.5) ✓. Acid: 0.10(27.5) + 0.30(55) + 0.50(17.5) = 2.75 + 16.5 + 8.75 = 28 ✓. She needs 27.5 mL of A, 55 mL of B, and 17.5 mL of C.

Question 5: CRITICAL THINKING

Consider the system: x + y + kz = 1 x + ky + z = 1 kx + y + z = 1 For what value(s) of the parameter k does the system have (a) no solution, (b) infinitely many solutions, and (c) a unique solution? Justify your answers using row reduction.
Show answer
Augmented matrix: [1 1 k | 1; 1 k 1 | 1; k 1 1 | 1]. R₂ − R₁ → R₂: [0, k−1, 1−k, 0] = [0, k−1, −(k−1), 0]. R₃ − kR₁ → R₃: [0, 1−k, 1−k², 1−k]. Factor: R₂ = [0, (k−1), −(k−1), 0] and R₃ = [0, −(k−1), (1−k)(1+k), (1−k)]. If k = 1, R₂ and R₃ become all zeros: system has infinitely many solutions (x + y + z = 1, one equation, two free variables). If k ≠ 1, divide R₂ by (k−1): [0, 1, −1, 0]. R₃ = [0, −(k−1), −(k−1)(k+1), −(k−1)] → divide by −(k−1): [0, 1, k+1, 1]. R₃ − R₂ → R₃: [0, 0, k+2, 1]. If k = −2, last row becomes [0 0 0 | 1], a contradiction → no solution. For all other k (k ≠ 1 and k ≠ −2), the system has a unique solution because all three pivots exist. Summary: (a) no solution when k = −2, (b) infinitely many solutions when k = 1, (c) unique solution for all other real values of k.

SUMMARY

Lesson Summary

Summary

A system of linear equations can be encoded as an augmented matrix [A | b] and solved using elementary row operations — row swaps, scalar multiplication, and row replacement. These operations transform the matrix into row echelon form (REF) for back-substitution, or further into reduced row echelon form (RREF) where solutions are read directly. The process is known as Gaussian elimination (to REF) or Gauss-Jordan elimination (to RREF).

After row reduction, the result reveals the nature of the solution set. An identity matrix on the left means a unique solution. A zero row with a zero on the right signals a free variable and infinitely many solutions expressed with a parameter. A row reading [0 0 … 0 | k] with k ≠ 0 is a contradiction, indicating no solution. For IB HL exams, be prepared to apply these methods to systems involving a parameter and to classify solution types based on the value of that parameter.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Systems via Matrices — AHL 1.16 Systems of linear equations (matrix/row-reduction methods) (HL extension)