Answer
$$x\ne 2,-1$$
Work Step by Step
The denominator cannot be equal to zero.
If one of the quadratic equations in the denominator equals zero, the equation is undefined.
$$x-2\ne 0$$
$$x\ne 2$$
$$x+1\ne 0$$
$$x\ne -1$$
$$x^2-x-2\ne 0$$
$$(x-2)(x+1)\ne 0$$
$$x\ne 2,-1$$