a) ĐKXĐ: \(x\notin\left\{-3;2\right\}\)
b) Ta có: \(P=\dfrac{x^3+2x^2-5x-6}{x^2+x-6}\)
\(=\dfrac{x^3+3x^2-x^2-3x-2x-6}{\left(x+3\right)\left(x-2\right)}\)
\(=\dfrac{x^2\left(x+3\right)-x\left(x+3\right)-2\left(x+3\right)}{\left(x+3\right)\left(x-2\right)}\)
\(=\dfrac{\left(x+3\right)\left(x^2-x-2\right)}{\left(x+3\right)\left(x-2\right)}\)
\(=\dfrac{\left(x-2\right)\left(x+1\right)}{x-2}=x+1\)
Với mọi x nguyên thỏa ĐKXĐ, ta luôn có: x+1 là số nguyên
hay P là số nguyên(đpcm)