01 / 21

Systems via
Matrices & Row Reduction

Learn to translate systems of equations into augmented matrices and solve them systematically using elementary row operations.

Finite Mathematics

What Is a System of Linear Equations?

A system of linear equations is a collection of two or more linear equations involving the same set of variables. The solution is any ordered set of values that satisfies every equation simultaneously.

In finite mathematics, these systems arise in resource allocation, network flow, economics models, and anywhere multiple constraints must be satisfied at once.

Introducing Matrices

A matrix is a rectangular array of numbers arranged in rows and columns. Instead of rewriting variables over and over, we store just the coefficients and constants in a compact grid.

Coefficient Matrix
Contains only the coefficients of the variables from each equation.
Augmented Matrix
Appends the constants column to the coefficient matrix, separated by a vertical bar.

From Equations to Augmented Matrix

System:
\( 2x + 3y = 8 \)
\( x - y = 1 \)
translate Augmented Matrix:
\( 2 \)
\( 3 \)
\( 8 \)
\( 1 \)
\( -1 \)
\( 1 \)
coefficients constants

Elementary Row Operations

Row reduction works by applying three types of operations that never change the solution set:

1
Swap two rows: \( R_i \leftrightarrow R_j \). Exchange the positions of any two rows.
2
Scale a row: \( kR_i \rightarrow R_i \) where \( k \neq 0 \). Multiply every entry in a row by the same nonzero constant.
3
Add a multiple of one row to another: \( R_i + kR_j \rightarrow R_i \). Replace row \( i \) with itself plus \( k \) times row \( j \).

Row Echelon Form (REF)

The goal of row reduction is to transform the augmented matrix into row echelon form, where the solution can be read off easily.

1
All zero rows (if any) are at the bottom of the matrix.
2
The leading entry (first nonzero number) of each row is to the right of the leading entry in the row above it: a "staircase" pattern.
3
Each leading entry is \( 1 \) (called a pivot), and all entries below each pivot are \( 0 \).
1 * * * * 0 1 * * * 0 0 1 * * pivots form a staircase * = any value

REF vs RREF: Key Distinction

Row Echelon Form (REF) Reduced REF (RREF)
Leading entries Each is \( 1 \) (pivots) Each is \( 1 \) (pivots)
Below pivots All zeros All zeros
Above pivots May be nonzero All zeros
Reading solution Requires back-substitution Solution reads directly
Work involved Fewer row operations More row operations

Step-by-Step: Gaussian Elimination

1
Write the augmented matrix from the system of equations.
2
Identify the first pivot column (leftmost column with a nonzero entry). Swap rows if needed to place a nonzero entry at the top.
3
Scale the pivot row so the leading entry becomes \( 1 \).
4
Eliminate below: use row replacement to make all entries below the pivot equal to \( 0 \).
5
Move to the next pivot (one row down, one column right) and repeat steps 3–4.
6
Back-eliminate above each pivot to reach RREF (Gauss-Jordan). Read the solution.

Example 1: Two Variables

Solve the system using row reduction:

Step 1: Write the augmented matrix.

$$ \left[\begin{array}{cc|c} 1 & 2 & 5 \\ 3 & 5 & 14 \end{array}\right] $$

Step 2: The first pivot is already \( 1 \). Eliminate below: apply \( R_2 - 3R_1 \rightarrow R_2 \).

$$ \left[\begin{array}{cc|c} 1 & 2 & 5 \\ 0 & -1 & -1 \end{array}\right] $$

Example 1: Completing the Reduction

Step 3: Scale \( R_2 \) by \( -1 \) to make the pivot \( 1 \).

$$ \left[\begin{array}{cc|c} 1 & 2 & 5 \\ 0 & 1 & 1 \end{array}\right] $$

Step 4: Back-eliminate: \( R_1 - 2R_2 \rightarrow R_1 \).

$$ \left[\begin{array}{cc|c} 1 & 0 & 3 \\ 0 & 1 & 1 \end{array}\right] $$

Example 2: Three Variables

Solve the system:

Augmented matrix:

$$ \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & 3 & 1 & 14 \\ 1 & -1 & 2 & 2 \end{array}\right] $$

Eliminate below pivot 1: Apply \( R_2 - 2R_1 \rightarrow R_2 \) and \( R_3 - R_1 \rightarrow R_3 \).

$$ \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & -2 & 1 & -4 \end{array}\right] $$

Example 2: Reaching RREF

Eliminate below pivot 2: \( R_3 + 2R_2 \rightarrow R_3 \).

$$ \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & -1 & 0 \end{array}\right] $$

Scale: \( (-1)R_3 \rightarrow R_3 \). Then back-eliminate above each pivot.

$$ \left[\begin{array}{ccc|c} 1 & 0 & 0 & 4 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 0 \end{array}\right] $$

Example 2: Back-Elimination Detail

Here are the back-elimination steps in detail:

$$ \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & -1 & 0 \end{array}\right] \xrightarrow{(-1)R_3} \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & 1 & 0 \end{array}\right] $$
$$ \xrightarrow{R_2+R_3,\; R_1-R_3} \left[\begin{array}{ccc|c} 1 & 1 & 0 & 6 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 0 \end{array}\right] \xrightarrow{R_1-R_2} \left[\begin{array}{ccc|c} 1 & 0 & 0 & 4 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 0 \end{array}\right] $$

Three Possible Outcomes

When you row-reduce a system, exactly one of three things happens:

Unique Solution
Every variable has a pivot. The RREF has the identity matrix on the left. One specific answer.
Infinitely Many
Fewer pivots than variables. Free variables lead to a parametric family of solutions.
No Solution
A row like \( [0\;\;0\;\;0\;|\;5] \) appears: \( 0 = 5 \) is a contradiction.

Common Mistakes to Avoid

✕ Arithmetic Slips
A single sign error propagates through every subsequent row operation. Double-check each computation.
✕ Forgetting to Scale
Leaving a pivot as \( 2 \) or \( -3 \) instead of \( 1 \) makes back-substitution error-prone.
✕ Operating on the Wrong Row
When applying \( R_i + kR_j \rightarrow R_i \), make sure you replace row \( i \), not row \( j \). The "tool" row stays unchanged.

Summary: The Row Reduction Toolkit

Concept Key Idea Remember
Augmented matrix Encodes the entire system Rows = equations
Row operations Swap, scale, replace Never change the solution
REF Staircase of pivots Zeros below each pivot
RREF Identity-like left block Zeros above and below
Contradiction row \( [0\;\cdots\;0\;|\;c] \), \( c\neq 0 \) No solution exists
Free variables Columns without pivots Infinitely many solutions

Question 1 of 5

What is the augmented matrix for the system \( 2x - y = 7 \), \( x + 3y = 4 \)?

Question 2 of 5

Which of the following is not an elementary row operation?

Question 3 of 5

After row reduction, you obtain
\( \left[\begin{array}{ccc|c} 1 & 0 & 0 & 3 \\ 0 & 1 & 0 & -2 \\ 0 & 0 & 0 & 5 \end{array}\right] \).
What does this tell you?

Question 4 of 5

Given the augmented matrix \( \left[\begin{array}{cc|c} 1 & 4 & 10 \\ 2 & 9 & 23 \end{array}\right] \), what is the result of applying \( R_2 - 2R_1 \rightarrow R_2 \)?

Question 5 of 5

A matrix in RREF has the form \( \left[\begin{array}{ccc|c} 1 & 0 & 2 & 7 \\ 0 & 1 & -1 & 3 \end{array}\right] \). How many solutions does this system have?