a) \(M=\dfrac{\sqrt{x}}{\sqrt{x}-1}-\dfrac{6\sqrt{x}-3}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\left(x\ge0,x\ne1\right)\)
\(=\dfrac{\sqrt{x}\left(\sqrt{x}+2\right)-6\sqrt{x}+3}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}=\dfrac{x-4\sqrt{x}+3}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}=\dfrac{\left(\sqrt{x}-1\right)\left(\sqrt{x}-3\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}=\dfrac{\sqrt{x}-3}{\sqrt{x}+2}\)
b) \(M=\dfrac{\sqrt{x}-3}{\sqrt{x}+2}=1-\dfrac{5}{\sqrt{x}+2}\in Z\)
\(\Rightarrow\sqrt{x}+2\inƯ\left(5\right)=\left\{-5;-1;1;5\right\}\)
Do \(\sqrt{x}\ge0\forall x\)
\(\Rightarrow\sqrt{x}\in\left\{3\right\}\Rightarrow x=9\left(tm\right)\)