For a system of equations to have a unique solution, the determinant of the coefficient matrix must be non-zero.
The coefficient matrix from the three equations is:
A=21k−1−2131−1
Using first row expansion to calculate the determinant:
det(A)=2−211−1−(−1)1k1−1+31k−21
For the first term:
2[(−2)(−1)−(1)(1)]
=2[2−1]
=2
For the second term:
+1[(1)(−1)−(1)(k)]
=−1−k
For the third term:
3[(1)(1)−(−2)(k)]
=3[1+2k]
=3+6k
Combining all terms:
det(A)=2+(−1−k)+(3+6k)
=2−1−k+3+6k
=4+5k
For a unique solution:
det(A)=0
4+5k=0
5k=−4
k=−54
Therefore, the system has a unique solution when k=−54.