$$\frac{x^2+6x+5}{x^2-x-2}$$
$$\frac{(x+5)(x+1)}{(x-2)(x+1)}$$
$$\frac{x+5}{x-2}$, $ x \ne -1$$
My question is when it comes to specifying that $ x \ne -1$, the end result is also undefined where $x=2$, but I only need to state the condition for $-1$, correct?