Determine the value of k for which the equation will have equal roots.