A matrix is singular when its determinant equals zero.
For the given matrix:
det(A)=20211−1−12λ
Expanding along the first row:
det(A)=21−12λ−1022λ+(−1)021−1
For the first minor:
21−12λ=2[(1)(λ)−(2)(−1)]
=2[λ+2]
=2λ+4
For the second minor:
−1022λ=−1[(0)(λ)−(2)(2)]
=−1[−4]
=4
For the third minor:
−1021−1=−1[(0)(−1)−(1)(2)]
=−1[−2]
=2
Combining all terms:
det(A)=2λ+4+4+2
det(A)=2λ+10
Since the matrix is singular:
2λ+10=0
2λ=−10
λ=−5
Therefore, the value of λ is −5.