Skip to content
Lesson 2 of 9 · Linear Algebra

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. 1.Swap two rows.
  2. 2.Scale a row by a nonzero number.
  3. 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 seeMeaning
A pivot in every variable columnExactly one solution
A row like [0 0 05]No solution (it says 0 = 5)
A variable column with no pivotThat 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. 1

    Augmented: [1 1 1 | 6], [0 2 5 | −4], [2 5 −1 | 27]

    Write the matrix.

1/6

Solve x + 2y − z = 3 and 2x + 4y − 2z = 6.

  1. 1

    R2 → R2 − 2R1 gives [0 0 0 | 0]

    The second equation is just twice the first.

1/3

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.
Check yourself

Practice.

1Numeric answer

Solve 2x + y = 5 and x − y = 1. Give x.

2Multiple choice

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
3Numeric answer

A consistent system has 5 unknowns and rank 3. How many free variables?

4Multiple choice

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
5Put in order

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.