Divide: flip the second one, then multiply
Dividing by a fraction means multiplying by its reciprocal, just like numbers: (2/3) ÷ (4/9) = (2/3)(9/4).
Excluded values come from three places: the denominator of the first fraction, the denominator of the second, and the numerator of the second. After flipping, that numerator becomes a denominator, and dividing by 0 is not allowed.
Example
Divide (x² − x − 6)/(x² − 1) ÷ (x − 3)/(x + 1).
Factor and flip: (x − 3)(x + 2)/((x − 1)(x + 1)) · (x + 1)/(x − 3). Excluded: x ≠ 1 and −1 (denominators), and x ≠ 3 (the divisor's numerator is 0). Cancel (x − 3) and (x + 1). Result: (x + 2)/(x − 1), with x ≠ 1, −1, 3.
Trap: Reading the excluded values off the simplified answer. (x + 2)/(x − 1) only shows x ≠ 1, but the original problem is also undefined at x = −1 and x = 3. Collect the excluded values before you cancel.