$$k^{2}x=2(k-1)x+4=0$$
$xk^{2}=2\left(x\left(k-1\right)+2\right)\text{ and }2\left(x\left(k-1\right)+2\right)=0$
$x=2$
$k=0$
$k=0$
$x=2$