If a quadratic equation has equal roots then the discriminant is 0 where the discriminant is
and a, b and c are identified from the quadratic
. In this case, a=k, b=-4 and c=2. The discriminant is then
. If this must be zero then the value of k must be 2.