• a unique solution when det(A)=0,
• either no solution or infinitely many solutions when det(A)=0.
For the latter case we compare the ranks: if rank(A)<rank([A∣b]) we get no solution, whereas equal ranks give infinitely many solutions.
First compute det(A). Using cofactor expansion along the first row,
Set the determinant to zero to find the values of λ that can possibly give inconsistency:
−2λ2+λ+1=0⟹2λ2−λ−1=0.
Solve this quadratic equation. The discriminant is
Δ=(−1)2−4(2)(−1)=1+8=9,Δ=3.
Hence
λ=41±3⟹λ1=1,λ2=−21.
The determinant is non-zero for every other real λ, giving a unique solution there.
Thus, only the two values λ=1 and λ=−21 need further investigation.
We now check whether the system is inconsistent at those two values.
Case 1: λ=1.
The equations become
2x−y+2zx−2y+zx+y+z=2,=−4,=4.
The augmented matrix is
211−1−21211∣∣∣2−44.
Perform elementary row operations:
Subtract twice Row 2 from Row 1:
R1←R1−2R2:[030∣10].
Subtract Row 2 from Row 3:
R3←R3−R2:[030∣8].
Now subtract the new Row 3 from the new Row 1:
R1←R1−R3:[000∣2].
This gives the equation 0=2, an impossibility.
Thus rank(A)=2 and rank([A∣b])=3, so the system has no solution when λ=1.
Case 2: λ=−21.
The equations now read
2x−y+2zx−2y−21zx−21y+z=2,=−4,=4.
The augmented matrix is
211−1−2−212−211∣∣∣2−44.
Again perform row operations.
First, eliminate the leading 1 of Row 2 from Row 3:
R3←R3−R2:[0,23,23∣8].
Next, eliminate the leading 2 of the original Row 1 with twice Row 2:
R1←R1−2R2:[0,3,3∣10].
Now compare the new Row 1 and Row 3.
Half of Row 1 is [0,1.5,1.5∣5].
Subtract this half from Row 3:
R3←R3−21R1:[0,0,0∣3].
Once again we reach an impossible equation 0=3.
Therefore rank(A)=2 and rank([A∣b])=3, giving no solution when λ=−21.
We have shown that the system is inconsistent precisely for the two values
λ=1andλ=−21.
Hence the set S of all real λ that make the system unsolvable contains exactly two elements.
Hence, the correct answer is Option D.
Tagged Systems of linear equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.