An fraction is undefined when the denominator has value = 0.
x2−9x+18x2+2x−35 is undefined when x2+2x−35=0
x2+7x−5x−35=0implies(x+7)(x−5)=0
x=-7 or 5