a: \(M=\left(\dfrac{-\left(x+2\right)}{x-2}-\dfrac{4x^2}{\left(x-2\right)\left(x+2\right)}+\dfrac{x-2}{x+2}\right):\dfrac{x^2\left(x-3\right)}{x^3\left(2-x\right)}\)
\(=\dfrac{-x^2-4x-4-4x^2+x^2-4x+4}{\left(x-2\right)\left(x+2\right)}\cdot\dfrac{-x\left(x-2\right)}{x-3}\)
\(=\dfrac{-4x^2-8x}{x+2}\cdot\dfrac{-x}{x-3}=\dfrac{4x^2+8x}{x+2}\cdot\dfrac{x}{x-3}\)
\(=\dfrac{4x^2}{x-3}\)
b: Để M là số nguyên thì \(4x^2⋮x-3\)
\(\Leftrightarrow4x^2-36+36⋮x-3\)
\(\Leftrightarrow x-3\in\left\{1;-1;2;-2;3;-3;4;-4;6;-6;9;-9;12;-12;18;-18;36;-36\right\}\)
hay \(x\in\left\{4;5;1;0;7;-1;9;-3;12;-6;15;-9;21;-12;39;-33\right\}\)