Linear systems: Gauss and Gauss-Jordan
Gauss elimination to echelon form, Gauss-Jordan to reduced echelon form, the three possible solution sets, general = particular + homogeneous, rank, and systems with a parameter.
Course notes: Syllabus ch. 5 (Linear Systems) · Exercise sessions: Sheet 8 (Gauss) · About 50 minutes
Gauss eliminationImportant
A linear system is written compactly as an augmented matrix [A | b]. Three row operations never change the solution set: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another row.
Gauss’s method uses them to reach echelon form: the first non-zero entry of each row (its pivot or leading entry) lies to the right of the pivot of the row above, and zero rows are at the bottom. Then solve from the bottom up (back substitution).
A 3 × 3 system
x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2.
Augmented matrix
R2 → R2 − 2R1 and R3 → R3 − R1
R3 → 3R3 + R2
Back substitution
The unique solution is (x, y, z) = (1, 2, 3). Check it in all three original equations.
Gauss-Jordan and reduced echelon formImportant
Gauss-Jordan goes further: make every pivot 1 and clear the entries above each pivot as well. The result, the reduced row echelon form (RREF), is unique for every matrix, so it is a fingerprint: the solution can be read off directly.
| Gauss | Gauss-Jordan | |
|---|---|---|
| Goal | echelon form | reduced echelon form |
| Pivots | any non-zero value | all equal to 1, alone in their column |
| Finish | back substitution | read the solution off |
| Unique result? | no, depends on the steps | yes |
| Also used for | rank, determinant | inverse, kernel basis, independence |
The rank of a matrix is its number of pivots (the number of non-zero rows in echelon form). It equals the dimension of the column space and of the row space.
The structure of the solution setImportant
Every linear system has either no solution, exactly one, or infinitely many. With n unknowns:
| Situation | Solution set |
|---|---|
| rank A < rank [A | b] (a row 0 = c with c ≠ 0) | empty: the system is inconsistent |
| rank A = rank [A | b] = n | exactly one solution |
| rank A = rank [A | b] < n | infinitely many, with n − rank free variables |
The general solution has the form general = particular + homogeneous: one particular solution p of A x = b plus every solution of the homogeneous system A x = 0. The homogeneous solutions form a subspace (the kernel of A), so the solution set of a consistent system is a flat through p, parallel to that subspace.
Two equations, four unknowns
x + 2y − z + w = 3 and 2x + 4y + z − w = 3.
R2 → R2 − 2R1
Free variables
Express the pivots
Vector form
A particular solution (2, 0, −1, 0) plus a 2-dimensional homogeneous part: a plane in ℝ4.
A system with a parameter
x + y + z = 1, x + 2y + 3z = 2, x + 3y + kz = 3. For which k is there one solution, none, or infinitely many?
Eliminate x
Eliminate y
k ≠ 5
k = 5
There is no k without solutions here, because the right-hand side kept the last row at 0 = 0.
Key takeaways
- Row operations: swap, scale by a non-zero number, add a multiple of another row.
- Gauss: echelon form plus back substitution. Gauss-Jordan: reduced echelon form, unique.
- Rank = number of pivots.
- No solution if rank A < rank [A | b]; one if rank = n; otherwise n − rank free variables.
- General solution = particular solution + solutions of A x = 0.
- With a parameter, reduce first and then split cases on the last pivot.
True or false (5)
A homogeneous system can be inconsistent.
A system of 3 equations in 5 unknowns can have exactly one solution.
Swapping two rows changes the solution set.
If rank A = 3 for a 3 × 3 matrix, A x = b has exactly one solution for every b.
The row 0 0 | 0 in an augmented matrix means there is no solution.
Multiple choice (7)
After reduction a system in x, y, z has rows (1, 0, 2 | 3) and (0, 1, −1 | 1). The solution set is...
The rank of [[1, 2, 3], [2, 4, 6], [3, 6, 9]] is...
For which k does x + y = 2, 2x + 2y = k have solutions?
A 4 × 4 system with rank A = 3 and rank [A | b] = 4 has...
Which row operation is not allowed?
The solution of 2x + y = 5, x − y = 1 is...
If p solves Ax = b and h solves Ax = 0, then p + 3h...
Exam-style open questions (3)
Full Gauss-Jordan
Solve x + 2y + z = 4, 2x + 5y + 3z = 9, −x + y + 4z = 5 with Gauss-Jordan.
Show a model answer outline
- R2 − 2R1: (0, 1, 1 | 1); R3 + R1: (0, 3, 5 | 9).
- R3 − 3R2: (0, 0, 2 | 6), so z = 3.
- Back up: y = 1 − 3 = −2, x = 4 − 2(−2) − 3 = 5.
- Solution (5, −2, 3); check −5 − 2 + 12 = 5.
Parametrise a solution set
Describe all solutions of x − y + 2z − w = 1 and 2x − 2y + 5z = 4 as particular + homogeneous.
Show a model answer outline
- R2 − 2R1: z + 2w = 2, so z = 2 − 2w.
- Free y = s, w = t: x = 1 + s − 2(2 − 2t) + t = −3 + s + 5t.
- (x, y, z, w) = (−3, 0, 2, 0) + s(1, 1, 0, 0) + t(5, 0, −2, 1).
Parameter cases
For which a and b does x + 2y = 3, 2x + ay = b have no solution, one solution, infinitely many?
Show a model answer outline
- R2 − 2R1: (a − 4)y = b − 6.
- a ≠ 4: exactly one solution.
- a = 4 and b ≠ 6: no solution; a = 4 and b = 6: infinitely many.
LabGauss-Jordan solver
The last column is the right-hand side. Try the parameter example with k = 5.