UNIHIVE

Study Hub UNIPORT MTH 210

MTH 210 · Linear Algebra

Systems of linear equations

Writing a system as Ax = b, Gaussian and Gauss-Jordan elimination, consistency by rank, the general solution, and Cramer's rule.

Our notes

2 min read

Matrix form

m equations in n unknowns: Ax = b, with A the m × n coefficient matrix. The augmented matrix is [A | b]. Homogeneous if b = 0 (always has x = 0).

Elementary row operations

  1. Swap two rows. 2. Multiply a row by a non-zero number. 3. Add a multiple of one row to another.

They do not change the solution set.

  • Gaussian elimination: reduce to row echelon form, then back-substitute.
  • Gauss-Jordan: continue to reduced row echelon form (leading 1s with zeros above and below).

Consistency (Rouché-Capelli)

  • No solution if rank A < rank [A | b] (a row 0 = non-zero appears).
  • Exactly one if rank A = rank [A | b] = n.
  • Infinitely many if rank A = rank [A | b] < n: n − rank free variables.

Worked example (unique). x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2.
R₂ − 2R₁: −3y − z = −9. R₃ − R₁: y − 2z = −4.
From the second: y = 2z − 4. Substitute: −3(2z − 4) − z = −9, so −7z + 12 = −9, z = 3; y = 2; x = 1.
Check in equation 2: 2 − 2 + 3 = 3 ✓; equation 3: 1 + 4 − 3 = 2 ✓. (1, 2, 3).

Worked example (infinitely many). x + 2y − z = 3, 2x + 4y − 2z = 6. The second is twice the first: rank 1, n = 3, two free variables. x = 3 − 2s + t, y = s, z = t.
General solution: (3, 0, 0) + s(−2, 1, 0) + t(1, 0, 1).
Structure: general solution = one particular solution + the general solution of Ax = 0 (the null space).

Worked example (none). x + y = 2, x + y = 5: R₂ − R₁ gives 0 = 3. Inconsistent.

A system with a parameter

Worked example. For which k does x + y = 1, 2x + ky = 3 have a unique solution? det = k − 2 ≠ 0, so k ≠ 2. If k = 2: R₂ − 2R₁ gives 0 = 1, no solution.

Cramer's rule (square, det A ≠ 0)

xᵢ = det Aᵢ / det A, where Aᵢ is A with column i replaced by b.
Worked example. 2x + y = 5, x − y = 1: det A = −2 − 1 = −3; det A₁ = det [5 1; 1 −1] = −5 − 1 = −6, so x = 2; det A₂ = det [2 5; 1 1] = 2 − 5 = −3, so y = 1.

Homogeneous systems

Ax = 0 with more unknowns than equations always has non-zero solutions. For a square A, there are non-zero solutions exactly when det A = 0.

Exams usually ask: solve by Gaussian elimination; decide consistency by comparing ranks; find the general solution with free parameters; values of a parameter giving none, one or infinitely many solutions; Cramer's rule.

Common mistake: doing an arithmetic slip in elimination and not checking. Always substitute the answer back into every original equation.

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