Ответ:

Знаменатели должны быть ненулевыми:

\(x+1\ne0\Rightarrow x\ne-1\), \(x-2\ne0\Rightarrow x\ne2\).

Ответ: \(D=\mathbb R\setminus\{-1;2\}\).