Deciding consistency by comparing rank(A) with rank[A|B], homogeneous systems by rank, and Cramer's rule for three unknowns.
Lesson 3 of 4
5 min read
7 practice questions
What this lesson covers
The determinant test of the last lesson leaves one question open: when ∣A∣=0, does a non-homogeneous system have infinitely many solutions or none? The rank method answers it completely, for any number of equations. This lesson gives the rank method, its version for homogeneous systems, and the full set of conditions for three unknowns, including Cramer's rule for the unique solution.
The matrix rank method
Let AX=B be a system of linear equations in n unknowns.
Write the augmented matrix [A∣B].
Reduce it to echelon form using elementary row operations.
Count the non-zero rows of the reduced A part and of the whole reduced [A∣B]. These are rank(A) and rank[A∣B].
Then:
if rank(A)=rank[A∣B], the system is inconsistent (no solution);
if rank(A)=rank[A∣B]=n, the number of unknowns, the system is consistent with a unique solution;
if $\operatorname{rank}(A)=\operatorname{rank}[A\,|\,B]infinitely many solutions.
The idea behind the first case is simple: a row that reduces to [000∣k] with k=0 says 0=k, which is impossible.
Homogeneous systems by rank
For a homogeneous system AX=O the augmented column is all zeros, so the two ranks are always equal and the system is always consistent.
If rank(A) equals the number of variables, AX=O has only the trivial (zero) solution.
If rank(A) is less than the number of variables, AX=O has non-trivial solutions, in fact infinitely many.
Three unknowns: the complete picture
Write Δ=∣A∣, and let Δ1,Δ2,Δ3 be the determinants obtained by replacing the first, second and third column of A by the constant column B.
If Δ=0, equivalently rank(A)=rank[A∣B]=3, the system is consistent with a unique solution given by Cramer's rule: x=ΔΔ1,y=ΔΔ2,z=ΔΔ3.
If Δ=0 and at least one of Δ1,Δ2,Δ3 is non-zero, or Δ=0 and (adjA)B=O, or rank(A)=rank[A∣B], the system is inconsistent: it has no solution.
If Δ=0 and (adjA)B=O, or rank(A)=rank[A∣B]<3, the system is consistent and dependent with infinitely many solutions. In this case Δ1=Δ2=Δ3=0 as well.
One caution: Δ=Δ1=Δ2=Δ3=0 on its own does not always guarantee solutions. The rank test or the (adjA)B test is the reliable one, so use it whenever Δ=0.
Example 1
Solve x+y+z=6, x−y+z=2, 2x+y−z=1 by Cramer's rule.
using R2→R2−R1, R3→R3−2R1 and then R3→R3−R2. Now rank(A)=2 but rank[A∣B]=3, so the system is inconsistent.
Example 3
Examine x+y+z=3, 2x+2y+2z=6, x−y+z=1.
[A∣B]∼10010−210030−2∼1001−201003−20.
Both ranks are 2, less than 3, so there are infinitely many solutions. From the second row y=1; then x+z=2, so with z=k the solutions are (2−k,1,k).
Practice
Solve x+y−z=1, x−y+z=1, −x+y+z=1 by Cramer's rule.
Solve 2x−y+3z=9, x+y+z=6, x−y+z=2.
Use the rank method on x+y+z=1, 2x+2y+2z=3, x−y−z=0.
Solve x+2y−z=3, 3x−y+2z=1, 2x−2y+3z=2.
A homogeneous system in 3 variables has a coefficient matrix of rank 3. What are its solutions?
A homogeneous system in 3 variables has a coefficient matrix of rank 2. How many solutions does it have?
For a system in 3 unknowns, rank(A)=2 and rank[A∣B]=2. What can you say?
Answers
Show answers
Δ=−4 and Δ1=Δ2=Δ3=−4, so x=y=z=1.
Δ=−2, Δ1=−2, Δ2=−4, Δ3=−6, so x=1, y=2, z=3.
R2→R2−2R1 gives the row [000∣1], so rank(A)=2, rank[A∣B]=3: inconsistent.
Δ=−5, Δ1=5, Δ2=−20, Δ3=−20, so x=−1, y=4, z=4.
Only the trivial solution x=y=z=0.
Infinitely many, including non-trivial ones.
The system is consistent with infinitely many solutions, since the common rank is less than 3.