a: \(M=\dfrac{2x^2-10x-x^2+x+30-x-5}{\left(x-5\right)\left(x+5\right)}=\dfrac{x^2-10x+25}{\left(x-5\right)\left(x+5\right)}=\dfrac{x-5}{x+5}\)
b: Để M là số nguyên thì \(x+5\in\left\{1;-1;2;-2;5;-5;10;-10\right\}\)
hay \(x\in\left\{-4;-6;-3;-7;0;-10;-15\right\}\)