Wize Engineering Mathematics Textbook > Linear Algebra

Existence and Uniqueness of Solutions (Homogeneous and General Forms)

Existence and Uniqueness of Solutions for Linear Systems

Every linear system Ax=bA\mathbf{x}=\mathbf{b} falls into exactly one of three outcomes: no solution, a unique solution, or infinitely many solutions. Two rank comparisons tell you which outcome occurs, and they must be made in that order: existence first, uniqueness second.

The general (inhomogeneous) case

Let AA be m×nm\times n and let [A ∣ b][A\,|\,\mathbf{b}] be the augmented matrix. Row reduce both.


  • Existence: a solution exists exactly when rank⁡(A)=rank⁡([A ∣ b])\operatorname{rank}(A)=\operatorname{rank}([A\,|\,\mathbf{b}]). If the ranks differ, b\mathbf{b} is not in the column space of AA and the system is inconsistent. The ranks can differ by at most one, because the augmented matrix adds only one column.
  • Uniqueness: given that a solution exists, it is unique exactly when rank⁡(A)=n\operatorname{rank}(A)=n, the number of unknowns. If rank⁡(A)<n\operatorname{rank}(A)<n, there are n−rank⁡(A)n-\operatorname{rank}(A) free variables and infinitely many solutions.


Notice that the two tests use different comparisons. Existence compares one rank with another; uniqueness compares a rank with the column count nn. The number of equations mm never appears in either test, which is why a system with more equations than unknowns can still be consistent and a system with fewer can still fail to be.

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Free parameters in a consistent system with n = 6 unknowns

Free parameters in a consistent system with n = 6 unknowns

The homogeneous case

For Ax=0A\mathbf{x}=\mathbf{0}, appending a column of zeros cannot create a new pivot, so rank⁡(A)=rank⁡([A ∣ 0])\operatorname{rank}(A)=\operatorname{rank}([A\,|\,\mathbf{0}]) no matter what AA is. The existence test is therefore passed automatically, and only the uniqueness test carries information:

rank⁡(A)=n  ⟹  only the trivial solution,rank⁡(A)<n  ⟹  infinitely many (nontrivial) solutions.\operatorname{rank}(A)=n \implies \text{only the trivial solution}, \qquad \operatorname{rank}(A)<n \implies \text{infinitely many (nontrivial) solutions.}

How the two cases fit together

If xp\mathbf{x}_p is any one solution of Ax=bA\mathbf{x}=\mathbf{b}, then every solution has the form xp+xh\mathbf{x}_p+\mathbf{x}_h, where xh\mathbf{x}_h ranges over the solutions of the homogeneous system Ax=0A\mathbf{x}=\mathbf{0}. The reason is one line: if Ax1=bA\mathbf{x}_1=\mathbf{b} and Ax2=bA\mathbf{x}_2=\mathbf{b}, then A(x1−x2)=0A(\mathbf{x}_1-\mathbf{x}_2)=\mathbf{0}.


So the general solution set is a translate of the homogeneous solution set, and the two have the same number of free parameters. Solving the homogeneous system is never wasted work.

Worked example

For A=(121243)A=\begin{pmatrix}1&2&1\\2&4&3\end{pmatrix} and b=(37)\mathbf{b}=\begin{pmatrix}3\\7\end{pmatrix}, subtracting twice the first row from the second gives (12130011)\begin{pmatrix}1&2&1&3\\0&0&1&1\end{pmatrix}. There are pivots in columns 1 and 3, so rank⁡(A)=2\operatorname{rank}(A)=2 and rank⁡([A∣b])=2\operatorname{rank}([A|\mathbf{b}])=2: a solution exists. With n=3n=3 unknowns and rank 2 there is 3−2=13-2=1 free variable, so there are infinitely many solutions. Back-substituting, x3=1x_3=1 and x1=3−2x2−x3=2−2x2x_1=3-2x_2-x_3=2-2x_2, so the general solution is x=(2,0,1)+t(−2,1,0)\mathbf{x}=(2,0,1)+t(-2,1,0).


The first vector is a particular solution and the second spans the homogeneous solution set, exactly as the structure above predicts.



Consider a homogeneous linear system Ax=0A\mathbf{x}=\mathbf{0}, where AA is an m×nm\times n matrix. Which statement about the existence of solutions is always true, regardless of the entries of AA?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A system Ax=bA\mathbf{x}=\mathbf{b} has 3 equations and 4 unknowns. After row reducing the augmented matrix [A ∣ b][A\,|\,\mathbf{b}], you find rank⁡(A)=3\operatorname{rank}(A)=3 and rank⁡([A ∣ b])=3\operatorname{rank}([A\,|\,\mathbf{b}])=3. Using the flowchart in the figure, what can you conclude about the solution set?

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Free parameters in a consistent system with n = 6 unknowns

Free parameters in a consistent system with n = 6 unknowns

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A homogeneous system Ax=0A\mathbf{x}=\mathbf{0} has 5 unknowns, and after row reduction the coefficient matrix AA is found to have rank 3. Following the right-hand branch of the flowchart in the figure, what can you conclude?

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Decision flowchart for classifying the solution set of Ax = b. The first decision is the existence test, comparing the rank of the coefficient matrix with the rank of the augmented matrix; the second is the uniqueness test, comparing that rank with n, the number of unknowns. The note beneath explains why the homogeneous system always clears the first decision.

Free parameters in a consistent system with n = 6 unknowns

Free parameters in a consistent system with n = 6 unknowns

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors