What this les­son cov­ers

The deter­mi­nant test of the last les­son leaves one ques­tion open: when ∣A∣=0|A|=0, does a non-homo­ge­neous sys­tem have infi­nitely many solu­tions or none? The rank method answers it com­pletely, for any num­ber of equa­tions. This les­son gives the rank method, its ver­sion for homo­ge­neous sys­tems, and the full set of con­di­tions for three unknowns, includ­ing Cramer's rule for the unique solu­tion.

The matrix rank method

Let AX=BAX=B be a sys­tem of lin­ear equa­tions in nn unknowns.

  1. Write the aug­mented matrix [A ∣ B][A\,|\,B].
  2. Reduce it to ech­e­lon form using ele­men­tary row oper­a­tions.
  3. Count the non-zero rows of the reduced AA part and of the whole reduced [A ∣ B][A\,|\,B]. These are rank⁡(A)\operatorname{rank}(A) and rank⁡[A ∣ B]\operatorname{rank}[A\,|\,B].

Then:

  • if rank⁡(A)≠rank⁡[A ∣ B]\operatorname{rank}(A)\neq\operatorname{rank}[A\,|\,B], the sys­tem is incon­sis­tent (no solu­tion);
  • if rank⁡(A)=rank⁡[A ∣ B]=n\operatorname{rank}(A)=\operatorname{rank}[A\,|\,B]=n, the num­ber of unknowns, the sys­tem is con­sis­tent with a unique solu­tion;
  • if $\oper­a­tor­name{rank}(A)=\oper­a­tor­name{rank}[A\,|\,B]infi­nitely many solu­tions.

The idea behind the first case is sim­ple: a row that reduces to [0  0  0 ∣ k][0\;0\;0\,|\,k] with k≠0k\neq0 says 0=k0=k, which is impos­si­ble.

Homo­ge­neous sys­tems by rank

For a homo­ge­neous sys­tem AX=OAX=O the aug­mented col­umn is all zeros, so the two ranks are always equal and the sys­tem is always con­sis­tent.

  • If rank⁡(A)\operatorname{rank}(A) equals the num­ber of vari­ables, AX=OAX=O has only the triv­ial (zero) solu­tion.
  • If rank⁡(A)\operatorname{rank}(A) is less than the num­ber of vari­ables, AX=OAX=O has non-triv­ial solu­tions, in fact infi­nitely many.

Three unknowns: the com­plete pic­ture

Write Δ=∣A∣\Delta=|A|, and let Δ1,Δ2,Δ3\Delta_1,\Delta_2,\Delta_3 be the deter­mi­nants obtained by replac­ing the first, sec­ond and third col­umn of AA by the con­stant col­umn BB.

  1. If Δ≠0\Delta\neq0, equiv­a­lently rank⁡(A)=rank⁡[A ∣ B]=3\operatorname{rank}(A)=\operatorname{rank}[A\,|\,B]=3, the sys­tem is con­sis­tent with a unique solu­tion given by Cramer's rule:
    x=Δ1Δ,y=Δ2Δ,z=Δ3Δ.\displaystyle x=\frac{\Delta_1}{\Delta},\qquad y=\frac{\Delta_2}{\Delta},\qquad z=\frac{\Delta_3}{\Delta}.
  2. If Δ=0\Delta=0 and at least one of Δ1,Δ2,Δ3\Delta_1,\Delta_2,\Delta_3 is non-zero, or Δ=0\Delta=0 and (adj⁡A)B≠O(\operatorname{adj}A)B\neq O, or rank⁡(A)≠rank⁡[A ∣ B]\operatorname{rank}(A)\neq\operatorname{rank}[A\,|\,B], the sys­tem is incon­sis­tent: it has no solu­tion.
  3. If Δ=0\Delta=0 and (adj⁡A)B=O(\operatorname{adj}A)B=O, or rank⁡(A)=rank⁡[A ∣ B]<3\operatorname{rank}(A)=\operatorname{rank}[A\,|\,B]<3, the sys­tem is con­sis­tent and depen­dent with infi­nitely many solu­tions. In this case Δ1=Δ2=Δ3=0\Delta_1=\Delta_2=\Delta_3=0 as well.

One cau­tion: Δ=Δ1=Δ2=Δ3=0\Delta=\Delta_1=\Delta_2=\Delta_3=0 on its own does not always guar­an­tee solu­tions. The rank test or the (adj⁡A)B(\operatorname{adj}A)B test is the reli­able one, so use it when­ever Δ=0\Delta=0.

Exam­ple 1

Solve x+y+z=6x+y+z=6, x−y+z=2x-y+z=2, 2x+y−z=12x+y-z=1 by Cramer's rule.

Δ=∣1111−1121−1∣=1(1−1)−1(−1−2)+1(1+2)=6.\Delta=\begin{vmatrix}1&1&1\\1&-1&1\\2&1&-1\end{vmatrix}=1(1-1)-1(-1-2)+1(1+2)=6.

Δ1=∣6112−1111−1∣=6,Δ2=∣16112121−1∣=12,Δ3=∣1161−12211∣=18.\Delta_1=\begin{vmatrix}6&1&1\\2&-1&1\\1&1&-1\end{vmatrix}=6,\quad\Delta_2=\begin{vmatrix}1&6&1\\1&2&1\\2&1&-1\end{vmatrix}=12,\quad\Delta_3=\begin{vmatrix}1&1&6\\1&-1&2\\2&1&1\end{vmatrix}=18.

So x=66=1\displaystyle x=\frac66=1, y=126=2\displaystyle y=\frac{12}{6}=2, z=186=3\displaystyle z=\frac{18}{6}=3.

Exam­ple 2

Exam­ine x+y+z=3x+y+z=3, x+2y+3z=4x+2y+3z=4, 2x+3y+4z=82x+3y+4z=8 by the rank method.

[A ∣ B]=[111312342348]∼[111301210122]∼[111301210001],[A\,|\,B]=\begin{bmatrix}1&1&1&3\\1&2&3&4\\2&3&4&8\end{bmatrix}\sim\begin{bmatrix}1&1&1&3\\0&1&2&1\\0&1&2&2\end{bmatrix}\sim\begin{bmatrix}1&1&1&3\\0&1&2&1\\0&0&0&1\end{bmatrix},

using R2→R2−R1R_2\to R_2-R_1, R3→R3−2R1R_3\to R_3-2R_1 and then R3→R3−R2R_3\to R_3-R_2. Now rank⁡(A)=2\operatorname{rank}(A)=2 but rank⁡[A ∣ B]=3\operatorname{rank}[A\,|\,B]=3, so the sys­tem is incon­sis­tent.

Exam­ple 3

Exam­ine x+y+z=3x+y+z=3, 2x+2y+2z=62x+2y+2z=6, x−y+z=1x-y+z=1.

[A ∣ B]∼[111300000−20−2]∼[11130−20−20000].[A\,|\,B]\sim\begin{bmatrix}1&1&1&3\\0&0&0&0\\0&-2&0&-2\end{bmatrix}\sim\begin{bmatrix}1&1&1&3\\0&-2&0&-2\\0&0&0&0\end{bmatrix}.

Both ranks are 2, less than 3, so there are infi­nitely many solu­tions. From the sec­ond row y=1y=1; then x+z=2x+z=2, so with z=kz=k the solu­tions are (2−k, 1, k)(2-k,\,1,\,k).

Prac­tice

  1. Solve x+y−z=1x+y-z=1, x−y+z=1x-y+z=1, −x+y+z=1-x+y+z=1 by Cramer's rule.
  2. Solve 2x−y+3z=92x-y+3z=9, x+y+z=6x+y+z=6, x−y+z=2x-y+z=2.
  3. Use the rank method on x+y+z=1x+y+z=1, 2x+2y+2z=32x+2y+2z=3, x−y−z=0x-y-z=0.
  4. Solve x+2y−z=3x+2y-z=3, 3x−y+2z=13x-y+2z=1, 2x−2y+3z=22x-2y+3z=2.
  5. A homo­ge­neous sys­tem in 3 vari­ables has a coef­fi­cient matrix of rank 3. What are its solu­tions?
  6. A homo­ge­neous sys­tem in 3 vari­ables has a coef­fi­cient matrix of rank 2. How many solu­tions does it have?
  7. For a sys­tem in 3 unknowns, rank⁡(A)=2\operatorname{rank}(A)=2 and rank⁡[A ∣ B]=2\operatorname{rank}[A\,|\,B]=2. What can you say?

Answers

Show answers
  1. Δ=−4\Delta=-4 and Δ1=Δ2=Δ3=−4\Delta_1=\Delta_2=\Delta_3=-4, so x=y=z=1x=y=z=1.
  2. Δ=−2\Delta=-2, Δ1=−2\Delta_1=-2, Δ2=−4\Delta_2=-4, Δ3=−6\Delta_3=-6, so x=1x=1, y=2y=2, z=3z=3.
  3. R2→R2−2R1R_2\to R_2-2R_1 gives the row [0  0  0 ∣ 1][0\;0\;0\,|\,1], so rank⁡(A)=2\operatorname{rank}(A)=2, rank⁡[A ∣ B]=3\operatorname{rank}[A\,|\,B]=3: incon­sis­tent.
  4. Δ=−5\Delta=-5, Δ1=5\Delta_1=5, Δ2=−20\Delta_2=-20, Δ3=−20\Delta_3=-20, so x=−1x=-1, y=4y=4, z=4z=4.
  5. Only the triv­ial solu­tion x=y=z=0x=y=z=0.
  6. Infi­nitely many, includ­ing non-triv­ial ones.
  7. The sys­tem is con­sis­tent with infi­nitely many solu­tions, since the com­mon rank is less than 3.