The denominator of the rational function
gk(x)=x2−(k+1)x+kx2−1
depends on a real parameter k.
(i) Determine all real values of k for which gk is undefined at exactly one real number.
(ii) For each such k, write the domain of gk in interval notation.