UNIHIVE

Study Hub UNIPORT MTH 114

MTH 114 · Introduction to Sets, Logic and Algebra

Systems of linear equations and matrices

Writing a system as a matrix, elementary row operations, row echelon form, Gaussian elimination, and consistent and inconsistent systems.

Our notes

1 min read

From equations to matrices

The system

  • x + y + z = 6
  • 2x − y + z = 3
  • x + 2y − z = 2

has coefficient matrix with rows (1, 1, 1), (2, −1, 1), (1, 2, −1) and augmented matrix with the right-hand sides (6, 3, 2) added as a last column. In short, AX = B.

Elementary row operations

  1. Swap two rows (R₁ ↔ R₂).
  2. Multiply a row by a non-zero number (R₂ → 3R₂).
  3. Add a multiple of one row to another (R₂ → R₂ − 2R₁).

They do not change the solution set.

Row echelon form

A matrix is in row echelon form when each leading (first non-zero) entry is to the right of the one above it and zero rows are at the bottom. Reduced echelon form also has leading 1s with zeros above and below them.

Gaussian elimination: worked example

Start: rows (1, 1, 1 | 6), (2, −1, 1 | 3), (1, 2, −1 | 2).

  1. R₂ → R₂ − 2R₁: (0, −3, −1 | −9). R₃ → R₃ − R₁: (0, 1, −2 | −4).
  2. Swap R₂ and R₃ to get a simpler pivot: (0, 1, −2 | −4) then (0, −3, −1 | −9).
  3. R₃ → R₃ + 3R₂: (0, 0, −7 | −21).

Back-substitute: −7z = −21 gives z = 3; y − 2(3) = −4 gives y = 2; x + 2 + 3 = 6 gives x = 1.
Check in the original equations: 1 + 2 + 3 = 6 ✓; 2 − 2 + 3 = 3 ✓; 1 + 4 − 3 = 2 ✓.

Kinds of system

  • Unique solution: a pivot in every variable column.
  • Infinitely many: consistent but fewer pivots than variables (free variables).
  • Inconsistent: a row (0, 0, 0 | c) with c ≠ 0, which says 0 = c.

Example. x + y = 2 and 2x + 2y = 5: R₂ − 2R₁ gives (0, 0 | 1), so 0 = 1: no solution (parallel lines).

Exams usually ask: write the augmented matrix; reduce to echelon form; solve by Gaussian elimination; decide if a system has one, none or infinitely many solutions.

Common mistake: applying a row operation to the coefficient part but not to the right-hand column. Every operation acts on the whole augmented row.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 114 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.