a) \(M=\left(\dfrac{x\sqrt{x}-1}{x-\sqrt{x}}-\dfrac{x\sqrt{x}+1}{x+\sqrt{x}}\right):\left(1-\dfrac{3-\sqrt{x}}{\sqrt{x}+1}\right)\)
\(=\left[\dfrac{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)}-\dfrac{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}+1\right)}\right]:\dfrac{\sqrt{x}+1-3+\sqrt{x}}{\sqrt{x}+1}\)
\(=\dfrac{x+\sqrt{x}+1-x+\sqrt{x}-1}{\sqrt{x}}:\dfrac{2\sqrt{x}-2}{\sqrt{x}+1}\)
\(=\dfrac{2\sqrt{x}}{\sqrt{x}}.\dfrac{\sqrt{x}+1}{2.\left(\sqrt{x}-1\right)}\)
\(=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)
b) Ta có:
\(M=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}=\dfrac{\sqrt{x}-1+2}{\sqrt{x}-1}=1+\dfrac{2}{\sqrt{x}-1}\)
Để M là số nguyên thì \(2⋮\left(\sqrt{x}-1\right)\)
\(\Rightarrow\sqrt{x}-1\inƯ\left(2\right)=\left\{-2;-1;1;2\right\}\)
Mà \(\sqrt{x}-1\ge-1\)
\(\Rightarrow\sqrt{x}-1\in\left\{-1;1;2\right\}\)
\(\Rightarrow\sqrt{x}\in\left\{0;2;3\right\}\)
\(\Rightarrow x\in\left\{0;4;9\right\}\)
Vậy \(x\in\left\{0;4;9\right\}\) thì M là số nguyên