hanegreefs.com/Math II
Chapter 5 · unit 5 of 12

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).

Worked example

A 3 × 3 system

x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2.

1

Augmented matrix

11162−11312−12
2

R2 → R2 − 2R1 and R3 → R3 − R1

11160−3−1−901−2−4
3

R3 → 3R3 + R2

11160−3−1−900−7−21
4

Back substitution

z = 3, then −3y − 3 = −9 gives y = 2, then x = 6 − 2 − 3 = 1
Answer

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.

GaussGauss-Jordan
Goalechelon formreduced echelon form
Pivotsany non-zero valueall equal to 1, alone in their column
Finishback substitutionread the solution off
Unique result?no, depends on the stepsyes
Also used forrank, determinantinverse, 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:

SituationSolution set
rank A < rank [A | b] (a row 0 = c with c ≠ 0)empty: the system is inconsistent
rank A = rank [A | b] = nexactly one solution
rank A = rank [A | b] < ninfinitely 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.

Worked example

Two equations, four unknowns

x + 2y − z + w = 3 and 2x + 4y + z − w = 3.

1

R2 → R2 − 2R1

3z − 3w = −3, so z = w − 1
2

Free variables

y = s and w = t (no pivot in their columns)
3

Express the pivots

z = t − 1 and x = 3 − 2s + z − t = 2 − 2s
4

Vector form

(x, y, z, w) = (2, 0, −1, 0) + s(−2, 1, 0, 0) + t(0, 0, 1, 1)
Answer

A particular solution (2, 0, −1, 0) plus a 2-dimensional homogeneous part: a plane in ℝ4.

Worked example

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?

1

Eliminate x

y + 2z = 1 and 2y + (k − 1)z = 2
2

Eliminate y

(k − 5)z = 0
3

k ≠ 5

z = 0, y = 1, x = 0: exactly one solution
4

k = 5

the last row becomes 0 = 0: z is free, infinitely many solutions (x, y, z) = (0, 1, 0) + t(1, −2, 1)
Answer

There is no k without solutions here, because the right-hand side kept the last row at 0 = 0.

Common trapA row 0 0 0 | 0 is harmless (one equation fewer); a row 0 0 0 | 5 means no solution. Read the right-hand side before you conclude.

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.

Loading cards
Question
Click, tap or press space to flip
Answer

True or false (5)

Statement 1 · Chapter 5 · true or false

A homogeneous system can be inconsistent.

Why: x = 0 always solves it.
Statement 2 · Chapter 5 · true or false

A system of 3 equations in 5 unknowns can have exactly one solution.

Why: At least 5 − 3 = 2 free variables if it is consistent.
Statement 3 · Chapter 5 · true or false

Swapping two rows changes the solution set.

Why: It only reorders the equations.
Statement 4 · Chapter 5 · true or false

If rank A = 3 for a 3 × 3 matrix, A x = b has exactly one solution for every b.

Why: A is invertible.
Statement 5 · Chapter 5 · true or false

The row 0 0 | 0 in an augmented matrix means there is no solution.

Why: It is the harmless equation 0 = 0.

Multiple choice (7)

Question 1 · Chapter 5

After reduction a system in x, y, z has rows (1, 0, 2 | 3) and (0, 1, −1 | 1). The solution set is...

Why: One free variable (z): a line.
Question 2 · Chapter 5

The rank of [[1, 2, 3], [2, 4, 6], [3, 6, 9]] is...

Why: All rows are multiples of the first.
Question 3 · Chapter 5

For which k does x + y = 2, 2x + 2y = k have solutions?

Why: R2 − 2R1 gives 0 = k − 4.
Question 4 · Chapter 5

A 4 × 4 system with rank A = 3 and rank [A | b] = 4 has...

Why: Inconsistent.
Question 5 · Chapter 5

Which row operation is not allowed?

Why: Multiplying by 0 destroys information.
Question 6 · Chapter 5

The solution of 2x + y = 5, x − y = 1 is...

Why: Add the equations: 3x = 6.
Question 7 · Chapter 5

If p solves Ax = b and h solves Ax = 0, then p + 3h...

Why: A(p + 3h) = b + 0.

Exam-style open questions (3)

Open question · Chapter 5

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.
Open question · Chapter 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).
Open question · Chapter 5

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.