\(M=\left(\dfrac{2\left(\sqrt{x}+1\right)-\sqrt{x}\left(\sqrt{x}+2\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\right)\cdot\dfrac{x\left(\sqrt{x}-1\right)+2\left(\sqrt{x}-1\right)}{x^2-4}\)
\(=\dfrac{2\sqrt{x}+2-x-2\sqrt{x}}{\sqrt{x}\left(x-1\right)}\cdot\dfrac{\left(x+2\right)\left(\sqrt{x}-1\right)}{\left(x+2\right)\left(x-2\right)}\)
\(=\dfrac{2-x}{\sqrt{x}\cdot\left(\sqrt{x}+1\right)}\cdot\dfrac{1}{x-2}=\dfrac{-1}{\sqrt{x}\left(\sqrt{x}+1\right)}\)