finding the domain of a rational function