Linear systems and row reduction
Solve systems of linear equations by Gaussian elimination, read the result from the reduced form, and tell unique, infinite and no-solution cases apart.
24 min
A linear system is a set of equations in which each unknown appears only to the first power, such as
x + y + z = 6 2y + 5z = −4 2x + 5y − z = 27
Geometrically, each equation is a plane, and a solution is a point on all of them.
Write the system as an augmented matrix (coefficients, then a bar, then the right-hand sides). Three row operations never change the solution:
- 1.Swap two rows.
- 2.Scale a row by a nonzero number.
- 3.Add a multiple of one row to another.
Use them to create zeros below each leading entry (the pivot), reaching row echelon form; continue upward to reduced row echelon form (RREF), where each pivot is 1 and the only nonzero entry in its column.
| What you see | Meaning | |
|---|---|---|
| A pivot in every variable column | Exactly one solution | |
| A row like [0 0 0 | 5] | No solution (it says 0 = 5) |
| A variable column with no pivot | That variable is free; there are infinitely many solutions |
The number of pivots is the rank. For a consistent system, free variables = number of unknowns − rank.
Solve x + y + z = 6, 2y + 5z = −4, 2x + 5y − z = 27.
- 1
Augmented: [1 1 1 | 6], [0 2 5 | −4], [2 5 −1 | 27]
Write the matrix.
Solve x + 2y − z = 3 and 2x + 4y − 2z = 6.
- 1
R2 → R2 − 2R1 gives [0 0 0 | 0]
The second equation is just twice the first.
Read the answer from the echelon form.
- Row operations (swap, scale, add a multiple) never change the solution set.
- A pivot is the first nonzero entry in a row of echelon form; the number of pivots is the rank.
- [0 0 0 | c] with c ≠ 0 means no solution.
- A variable column without a pivot is free and gives infinitely many solutions.
- For a consistent system: free variables = unknowns − rank.
Practice.
Solve 2x + y = 5 and x − y = 1. Give x.
Which system has no solution?
- Ax + y = 2 and x − y = 0
- Bx + y = 2 and 2x + 2y = 4
- Cx + y = 2 and x + y = 3
- Dx = 1 and y = 2
A consistent system has 5 unknowns and rank 3. How many free variables?
After row reduction you get [1 0 2 | 4], [0 1 −1 | 3]. For three unknowns this means:
- Aa unique solution
- Bno solution
- Cinfinitely many solutions (one free variable)
- Dtwo free variables
Order the steps of solving a system by elimination.
- ABack-substitute from the bottom row up
- BWrite the augmented matrix
- CCheck for a contradictory row
- DUse row operations to get zeros below each pivot
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Linear Algebra is planned around your week. Free.