If we have three equations in three variables,
a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
then Δ=∣a1a2a3b1b2b3c1c2c3∣,Δ1=∣d1d2d3b1b2b3c1c2c3∣,Δ2=∣a1a2a3d1d2d3c1c2c3∣,Δ3=∣a1a2a3b1b2b3d1d2d3∣.
If the set of equations do not have a solution then Δ=0 and at least one among Δ1,Δ2,Δ3 is not equal to zero.
Δ=∣21131−1−11∣λ∣∣=0
⇒∣λ∣=7⇒λ=±7…(1)
Case 1: λ=7
The system of equations are
2x+3y−z=−2x+y+z=4x−y+7z=24
a(2x+3y−z+2)+b(x+y+z−4)=(x−y+7z−24)
Comparing the coefficients of x and y we get,
2a+b=13a+b=−1⇒a=−2,b=5
For these values of a and b, coefficients of z and the constant values are matching. So the set of equations will have infinitely many solutions.
Case 2: λ=−7
The system of equations are
2x+3y−z=−2x+y+z=4x−y−7z=−32
a(2x+3y−z+2)+b(x+y+z−4)=(x−y−7z+32)
Comparing the coefficients of x and y we get,
2a+b=13a+b=−1⇒a=−2,b=5
For these values of a and b, coefficients of z and the constant values are not matching. So the set of equations will have no solutions.