Find the values of k for each of the following quadratic equations, so that they have two equal roots.