For the system kx+y+2z=1, 3x−y−2z=2, −2x−2y−4z=3 to have infinitely many solutions, the third equation must be a linear combination of the first two, in both the coefficients and the right-hand side.
Let R3=αR1+βR2. Comparing coefficients of y: −2=α(1)+β(−1)=α−β. Comparing coefficients of z: −4=α(2)+β(−2)=2(α−β), which gives α−β=−2, consistent with the y-equation.
So α=β−2. Comparing coefficients of x: −2=αk+3β=(β−2)k+3β=β(k+3)−2k, giving β(k+3)=2k−2, hence β=k+32(k−1).
Comparing the right-hand sides: 3=α(1)+β(2)=(β−2)+2β=3β−2, which gives 3β=5, so β=35.
Setting the two expressions for β equal: k+32(k−1)=35. Cross-multiplying: 6(k−1)=5(k+3), so 6k−6=5k+15, giving k=21.
Therefore, k=21.