01 / 20

Systems via
Matrices

Master row reduction and matrix methods to solve systems of linear equations: the essential HL technique for \(2 \times 2\), \(3 \times 3\), and beyond.

IB Mathematics HL

What is a Linear System?

A system of linear equations is a collection of two or more equations, each linear in the same set of unknowns. We seek values that satisfy every equation simultaneously.

Geometrically, each equation represents a line (in 2D) or a plane (in 3D). A solution is a point where all lines or planes intersect.

From Equations to Matrices

Any linear system can be written compactly as \(A\mathbf{x} = \mathbf{b}\), where \(A\) is the coefficient matrix, \(\mathbf{x}\) the unknown vector, and \(\mathbf{b}\) the constant vector.

\( \begin{cases} 2x + 3y = 7 \\ x - y = 1 \end{cases} \)
\( \underset{\textstyle A}{\color{#4ade80} \begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix}} \) \( \underset{\textstyle \mathbf{x}}{\color{#fbbf24} \begin{pmatrix} x \\ y \end{pmatrix}} \) \( = \) \( \underset{\textstyle \mathbf{b}}{\color{#f87171} \begin{pmatrix} 7 \\ 1 \end{pmatrix}} \)

The Augmented Matrix

To solve by row reduction, we combine \(A\) and \(\mathbf{b}\) into a single augmented matrix \([A \mid \mathbf{b}]\), then apply elementary row operations (EROs).

\( \left[ \begin{array}{cc|c} \color{#4ade80}2 & \color{#4ade80}3 & \color{#f87171}7 \\ \color{#4ade80}1 & \color{#4ade80}-1 & \color{#f87171}1 \end{array} \right] \)
\( = [A \mid \mathbf{b}] \)
coefficients constants
ERO 1
Swap two rows: \(R_i \leftrightarrow R_j\)
ERO 2
Scale a row: \(R_i \to k R_i\), \(k \neq 0\)
ERO 3
Add a multiple: \(R_i \to R_i + k R_j\)

Row Echelon Form (REF)

The goal of Gaussian elimination is to transform the augmented matrix into row echelon form: an upper-triangular shape with leading 1s staircase-stepping to the right.

\(1\)
\( \star \)
\( \star \)
\( \star \)
\(0\)
\(1\)
\( \star \)
\( \star \)
\(0\)
\(0\)
\(1\)
\( \star \)
Leading 1s form a staircase pattern
\( \star \) = any value

REF vs RREF

Reduced Row Echelon Form (RREF) goes further: every leading 1 is the only nonzero entry in its column. The solution reads off directly: no back-substitution needed.

REF (Gaussian) RREF (Gauss-Jordan)
Form Upper-triangular with leading 1s Diagonal of leading 1s only
Zeros Below each pivot Above and below each pivot
Solve by Back-substitution Direct read-off
IB Expectation Either is acceptable Either is acceptable

Three Possible Outcomes

Unique Solution
Every variable has exactly one value. Pivots in every column. Lines/planes meet at a single point.
Infinitely Many
Free variables appear (no pivot in that column). Solutions form a line or plane of intersection.
No Solution
A row like \([0\ 0\ 0 \mid k]\), \(k \neq 0\). The system is inconsistent: planes are parallel or form a prism.

How to Apply Row Reduction

1
Write the augmented matrix \([A \mid \mathbf{b}]\) from the system of equations.
2
Create a leading 1 in row 1, column 1 (swap or scale if needed).
3
Eliminate below: use ERO 3 to make all entries below the pivot zero.
4
Move to the next pivot: repeat for row 2 column 2, row 3 column 3, etc.
5
Back-substitute (REF) or continue eliminating above (RREF) to read off solutions.

Example 1: A \(2 \times 2\) System

1
Augmented matrix: \(\left[\begin{array}{cc|c} 2 & 3 & 7 \\ 1 & -1 & 1 \end{array}\right]\)
2
\(R_1 \leftrightarrow R_2\): \(\left[\begin{array}{cc|c} 1 & -1 & 1 \\ 2 & 3 & 7 \end{array}\right]\)
3
\(R_2 \to R_2 - 2R_1\): \(\left[\begin{array}{cc|c} 1 & -1 & 1 \\ 0 & 5 & 5 \end{array}\right]\)
4
\(R_2 \to \frac{1}{5}R_2\): \(\left[\begin{array}{cc|c} 1 & -1 & 1 \\ 0 & 1 & 1 \end{array}\right]\) so \(y = 1\), \(x = 2\).

Example 2: A \(3 \times 3\) System

1
Augmented matrix: \(\left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & 3 & 1 & 14 \\ 1 & -1 & 2 & 2 \end{array}\right]\)
2
\(R_2 \to R_2 - 2R_1\), \(R_3 \to R_3 - R_1\): \(\left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & -2 & 1 & -4 \end{array}\right]\)
3
\(R_3 \to R_3 + 2R_2\): \(\left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & -1 & 0 \end{array}\right]\)

Example 2: Back-Substitution

From the REF obtained:

1
Row 3: \(-z = 0\), so \(z = 0\).
2
Row 2: \(y - z = 2 \Rightarrow y = 2 + 0 = \color{#f87171}2\).
3
Row 1: \(x + y + z = 6 \Rightarrow x = 6 - 2 - 0 = \color{#818cf8}4\).

Example 3: Infinitely Many Solutions

1
\(R_2 \to R_2 - 2R_1\), \(R_3 \to R_3 + R_1\): \(\left[\begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right]\)
2
Only one pivot: \(y\) and \(z\) are free variables. Let \(y = s\), \(z = t\).
3
Then \(x = 3 - 2s + t\). Solution: \(\begin{pmatrix}x \\ y \\ z\end{pmatrix} = \begin{pmatrix}3\\0\\0\end{pmatrix} + s\begin{pmatrix}-2\\1\\0\end{pmatrix} + t\begin{pmatrix}1\\0\\1\end{pmatrix}\).

Detecting No Solution

If row reduction produces a row of the form \([0\ 0\ \cdots\ 0 \mid k]\) where \(k \neq 0\), the system is inconsistent.

\(1\)
\(3\)
\(2\)
\(5\)
\(0\)
\(1\)
\(-1\)
\(2\)
\(0\)
\(0\)
\(0\)
\(4\)
\(0 = 4\) is impossible!
System is inconsistent

Common Mistakes

✕ Arithmetic Errors
A single sign or multiplication error cascades through every subsequent row operation. Check each step.
✕ Forgetting the Constant Column
Every ERO must be applied to the entire row, including the augmented column \(\mathbf{b}\).
✕ Scaling by Zero
Multiplying a row by \(0\) destroys information. ERO 2 requires \(k \neq 0\).

Summary of Solution Types

After Row Reduction Conclusion Geometric Meaning
Pivot in every column of \(A\) Unique solution Single intersection point
Fewer pivots than unknowns, no contradiction Infinitely many Line or plane of solutions
Row \([0 \cdots 0 \mid k]\), \(k \neq 0\) No solution Parallel planes / no common point

Question 1 of 5

Which elementary row operation is not permitted?

Question 2 of 5

Given the augmented matrix \(\left[\begin{array}{cc|c} 1 & 2 & 5 \\ 0 & 1 & 3 \end{array}\right]\), what is the solution?

Question 3 of 5

If row reduction yields the row \([0\ 0\ 0 \mid 0]\) in a \(3 \times 3\) system, this means:

Question 4 of 5

Given the system \(\begin{cases} x + y + z = 4 \\ 2x + 3y + z = 9 \\ x + 2y = 5 \end{cases}\), after \(R_2 \to R_2 - 2R_1\) and \(R_3 \to R_3 - R_1\), row 2 becomes:

Question 5 of 5

In RREF, the matrix \(\left[\begin{array}{ccc|c} 1 & 0 & 3 & 7 \\ 0 & 1 & -2 & 4 \\ 0 & 0 & 0 & 0 \end{array}\right]\) has the general solution: