Skip to content
VidiMaster it, module by module
Module 2/Systems & Gaussian Elimination

Linear Systems: Matrix Form & Solvability

Write any linear system as Ax=bAx=b, decide whether it is consistent using the rank criterion rank⁡(A)=rank⁡([A ∣ b])\operatorname{rank}(A)=\operatorname{rank}([A\,|\,b]), and describe its whole solution set as a particular solution plus the kernel.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

A square system Ax=bAx=b has A∈R3×3A\in\mathbb{R}^{3\times 3} with rank⁡(A)=3\operatorname{rank}(A)=3 and rank⁡([A ∣ b])=3\operatorname{rank}([A\,|\,b])=3. How many solutions does the system have?

A system Ax=bAx=b has A∈R4×4A\in\mathbb{R}^{4\times 4} (4 equations, 4 unknowns) with rank⁡(A)=2\operatorname{rank}(A)=2 and rank⁡([A ∣ b])=2\operatorname{rank}([A\,|\,b])=2. Classify the system.

What you’ll be able to do

  • Write a system of mm equations in nn unknowns in matrix form Ax=bAx=b, and build its coefficient matrix AA (Def. 5.5) and augmented matrix [A ∣ b][A\,|\,b] (Def. 5.6).
  • Distinguish homogeneous (Ax=0Ax=0) from non-homogeneous (Ax=bAx=b, b≠0b\neq 0) systems, and state the solution set sol⁡(A,b)={x∈Rn:Ax=b}\operatorname{sol}(A,b)=\{x\in\mathbb{R}^n : Ax=b\} (Def. 5.7).
  • Decide whether a system is consistent or inconsistent (Def. 5.8) using the equivalences Ax=bAx=b consistent   ⟺  b∈im⁡(A)  ⟺  rank⁡(A)=rank⁡([A ∣ b])\iff b\in\operatorname{im}(A)\iff \operatorname{rank}(A)=\operatorname{rank}([A\,|\,b]) (Thm. 5.4).
  • Describe sol⁡(A,b)=w+ker⁡(A)\operatorname{sol}(A,b)=w+\ker(A) for any particular solution ww, and compute its dimension n−rank⁡(A)n-\operatorname{rank}(A) (Thm. 5.4, Rem. 5.3).
  • Explain why a homogeneous solution set is a subspace while a non-homogeneous one is only an affine subspace.

In your course

· MATH2015 · Linear Algebra & Probability
§5.4 Systems of linear equations
  • Definition 5.5Coefficient matrix
    The m×nm\times n matrix AA in Ax=bAx=b; rows correspond to the mm equations and columns to the nn unknowns.
  • Definition 5.6Augmented matrix
    [A ∣ b]∈Rm×(n+1)[A\,|\,b]\in\mathbb{R}^{m\times(n+1)} formed by adjoining bb as an extra column; Ax=0Ax=0 is homogeneous, Ax=bAx=b with b≠0b\neq0 is non-homogeneous.
  • Definition 5.7Solution set
    sol⁡(A,b)={x∈Rn:Ax=b}\operatorname{sol}(A,b)=\{x\in\mathbb{R}^n : Ax=b\}.
  • Definition 5.8Consistent vs inconsistent
    Consistent if sol⁡(A,b)≠∅\operatorname{sol}(A,b)\neq\varnothing; inconsistent if sol⁡(A,b)=∅\operatorname{sol}(A,b)=\varnothing.
  • Theorem 5.4Solution set
    (1) sol⁡(A,0)=ker⁡(A)\operatorname{sol}(A,0)=\ker(A) is a subspace. (2) Consistent   ⟺  b∈im⁡(A)  ⟺  rank⁡(A)=rank⁡([A ∣ b])\iff b\in\operatorname{im}(A)\iff\operatorname{rank}(A)=\operatorname{rank}([A\,|\,b]). (3) sol⁡(A,b)=w+ker⁡(A)\operatorname{sol}(A,b)=w+\ker(A) for any particular solution ww.
  • Remark 5.3Solvability & dimension
    Inconsistent   ⟺  rank⁡([A ∣ b])>rank⁡(A)\iff\operatorname{rank}([A\,|\,b])>\operatorname{rank}(A); a homogeneous system is always consistent; dim⁡sol⁡(A,0)=n−rank⁡(A)\dim\operatorname{sol}(A,0)=n-\operatorname{rank}(A); a non-homogeneous solution set is an affine subspace, not a subspace.
Grounded in Chapter 5, §5.4 of the MATH2015 notes (Defs. 5.5–5.8, Thm. 5.4, Rem. 5.3), with worked Examples 5.7 (consistent, infinitely many), 5.8 (inconsistent), and 5.11 (unique solution). Source text was recovered from an OCR'd PDF, so symbols were normalized (e.g. '≠', '∈', '×', '⁻¹', the scalar λ\lambda).
1

From equations to $Ax=b$: coefficient and augmented matrices

A system of mm linear equations in nn unknowns a11x1+⋯+a1nxn=b1,  …,  am1x1+⋯+amnxn=bma_{11}x_1+\cdots+a_{1n}x_n=b_1,\ \ \ldots,\ \ a_{m1}x_1+\cdots+a_{mn}x_n=b_m is packaged as a single matrix equation Ax=bAx=b. The m×nm\times n matrix AA of coefficients is the coefficient matrix (Def. 5.5): its rows count the equations (mm) and its columns count the unknowns (nn). Appending the right-hand side as one extra column gives the m×(n+1)m\times(n+1) augmented matrix (Def. 5.6) [A ∣ b]=[a11a12⋯a1nb1⋮⋮⋮⋮am1am2⋯amnbm].[A\,|\,b]=\left[\begin{array}{cccc|c} a_{11} & a_{12} & \cdots & a_{1n} & b_1\\ \vdots & \vdots & & \vdots & \vdots\\ a_{m1} & a_{m2} & \cdots & a_{mn} & b_m \end{array}\right]. If b≠0b\neq 0 the system is non-homogeneous; the companion system Ax=0Ax=0 is its associated homogeneous system.

2

Solution set, consistency, and the rank test

The solution set is sol⁡(A,b)={x∈Rn:Ax=b}\operatorname{sol}(A,b)=\{x\in\mathbb{R}^n : Ax=b\} (Def. 5.7). Reading AA as a linear map, this is exactly the set of inputs that AA sends to bb. A system is consistent when sol⁡(A,b)≠∅\operatorname{sol}(A,b)\neq\varnothing and inconsistent when sol⁡(A,b)=∅\operatorname{sol}(A,b)=\varnothing (Def. 5.8). Theorem 5.4(2) gives three equivalent ways to test consistency: Ax=bAx=b has a solution   ⟺  b∈im⁡(A)  ⟺  rank⁡(A)=rank⁡([A ∣ b])\iff b\in\operatorname{im}(A)\iff\operatorname{rank}(A)=\operatorname{rank}([A\,|\,b]). Since the columns of AA span im⁡(A)\operatorname{im}(A), adjoining bb cannot lower the rank; it raises it precisely when bb is not a combination of those columns. So a system is inconsistent exactly when rank⁡([A ∣ b])>rank⁡(A)\operatorname{rank}([A\,|\,b])>\operatorname{rank}(A) (Rem. 5.3).

3

Structure of the solution set: particular + homogeneous

Theorem 5.4(1) says sol⁡(A,0)=ker⁡(A)\operatorname{sol}(A,0)=\ker(A), which is a subspace of Rn\mathbb{R}^n. For a consistent non-homogeneous system, Theorem 5.4(3) says: pick any one solution ww (a particular solution); then every solution is ww plus something in the kernel, sol⁡(A,b)=w+ker⁡(A)={w+x:x∈ker⁡(A)}.\operatorname{sol}(A,b)=w+\ker(A)=\{w+x : x\in\ker(A)\}. So you solve a non-homogeneous system by finding the general homogeneous solution plus a single particular solution. The dimension of the solution set is the nullity, dim⁡sol⁡(A,0)=n−rank⁡(A)\dim\operatorname{sol}(A,0)=n-\operatorname{rank}(A) (rank–nullity, Rem. 5.3). A homogeneous solution set always contains 00 and is a subspace; a non-homogeneous one (with b≠0b\neq0) does not contain 00 (because A0=0≠bA0=0\neq b) and is an affine subspace — a copy of ker⁡(A)\ker(A) shifted off the origin.

Theorem 5.4 — Solution set

Let Ax=bAx=b with A∈Rm×nA\in\mathbb{R}^{m\times n} and b∈Rmb\in\mathbb{R}^m. (1) sol⁡(A,0)=ker⁡(A)\operatorname{sol}(A,0)=\ker(A); in particular the homogeneous solution set is a subspace of Rn\mathbb{R}^n. (2) The following are equivalent: (a) Ax=bAx=b is consistent; (b) b∈im⁡(A)b\in\operatorname{im}(A); (c) rank⁡(A)=rank⁡([A ∣ b])\operatorname{rank}(A)=\operatorname{rank}([A\,|\,b]). (3) If ww is any solution of Ax=bAx=b, then sol⁡(A,b)=w+ker⁡(A)={w+x:x∈ker⁡(A)}\operatorname{sol}(A,b)=w+\ker(A)=\{w+x : x\in\ker(A)\}.

Intuition. Part (1): the inputs sent to 00 are by definition the kernel. Part (2): bb is reachable by AA exactly when it is a combination of AA's columns, which is what equal ranks detect. Part (3): differences of two solutions are killed by AA, so all solutions sit at a fixed offset ww from the kernel — one particular solution pins down the rest.
Remark 5.3 — Solvability & dimension

(1) Ax=bAx=b is inconsistent   ⟺  rank⁡([A ∣ b])>rank⁡(A)\iff \operatorname{rank}([A\,|\,b])>\operatorname{rank}(A). (2) A homogeneous system Ax=0Ax=0 is always consistent (it has x=0x=0), and dim⁡sol⁡(A,0)=n−rank⁡(A)\dim\operatorname{sol}(A,0)=n-\operatorname{rank}(A). (3) To solve Ax=bAx=b it suffices to find the general homogeneous solution plus one particular solution. (4) The homogeneous solution set is always a subspace (ker⁡A\ker A); the non-homogeneous solution set is generally only an affine subspace (a point, or a line/plane shifted off the origin). It is all of Rn\mathbb{R}^n iff AA is invertible.

Intuition. Adjoining bb can only keep or raise the rank; a strictly higher rank means bb escapes the column span, so there is no solution. Because 00 always solves Ax=0Ax=0, the homogeneous system can never fail — and its solution-space size is dictated purely by how many columns are 'free' (n−rank⁡n-\operatorname{rank}).
Theorem 5.5 (with Lemma 5.1) — Row operations preserve solutions

If A′A' is obtained from AA by elementary row operations and b′b' is obtained from bb by the same operations, then sol⁡(A′,b′)=sol⁡(A,b)\operatorname{sol}(A',b')=\operatorname{sol}(A,b). (More generally, for any invertible m×mm\times m matrix BB, sol⁡(A,b)=sol⁡(BA,Bb)\operatorname{sol}(A,b)=\operatorname{sol}(BA,Bb).)

Intuition. Row-reducing [A ∣ b][A\,|\,b] is left-multiplication by invertible elementary matrices, which can be undone, so no solutions are gained or lost. This is exactly why Gaussian elimination on the augmented matrix is a legitimate way to read off sol⁡(A,b)\operatorname{sol}(A,b) and to compare rank⁡(A)\operatorname{rank}(A) with rank⁡([A ∣ b])\operatorname{rank}([A\,|\,b]).

Worked examples

Example 1

Classify the system and, if possible, describe its solutions: x+4y+2z=22x+8y+4z=5.\begin{aligned} x+4y+2z&=2\\ 2x+8y+4z&=5. \end{aligned}

  1. 1

    Form the augmented matrix [A ∣ b]=[14222845][A\,|\,b]=\left[\begin{array}{ccc|c} 1 & 4 & 2 & 2\\ 2 & 8 & 4 & 5 \end{array}\right].

  2. 2

    Eliminate below the first pivot: R2→R2−2R1R_2\to R_2-2R_1 gives [14220001]\left[\begin{array}{ccc|c} 1 & 4 & 2 & 2\\ 0 & 0 & 0 & 1 \end{array}\right].

  3. 3

    Count ranks: the coefficient part has one nonzero row, so rank⁡(A)=1\operatorname{rank}(A)=1. The augmented matrix has the extra pivot in the last column (row 0  0  0 ∣ 10\;0\;0\,|\,1 means 0=10=1), so rank⁡([A ∣ b])=2\operatorname{rank}([A\,|\,b])=2.

  4. 4

    Apply the test: rank⁡([A ∣ b])=2>1=rank⁡(A)\operatorname{rank}([A\,|\,b])=2>1=\operatorname{rank}(A), so by Theorem 5.4(2)/Remark 5.3 the system is inconsistent — equivalently b∉im⁡(A)b\notin\operatorname{im}(A).

Answer. Inconsistent: sol⁡(A,b)=∅\operatorname{sol}(A,b)=\varnothing. The impossible row 0=10=1 shows bb is not in the column span of AA.
Example 2

Find the full solution set of x1−x2=0x3=1,\begin{aligned} x_1-x_2&=0\\ x_3&=1, \end{aligned} and write it in the form (particular solution) +ker⁡(A)+\ker(A).

Example 3

A system Ax=bAx=b has A∈R3×4A\in\mathbb{R}^{3\times 4} with rank⁡(A)=3\operatorname{rank}(A)=3 and rank⁡([A ∣ b])=3\operatorname{rank}([A\,|\,b])=3. Without row-reducing further, classify the system and give the dimension of its solution set.