a) \(M=\frac{x^2+\sqrt{x}}{x-\sqrt{x}+1}+1\)\(-\frac{2x+\sqrt{x}}{\sqrt{x}}\)
\(=\frac{\sqrt{x}\left(\sqrt{x^3}+1\right)}{x-\sqrt{x}+1}\)\(+\frac{\sqrt{x}-2x-\sqrt{x}}{\sqrt{x}}\)
\(=\sqrt{x}\left(\sqrt{x}+1\right)-2\sqrt{x}\)
\(=x+\sqrt{x}-2\sqrt{x}=x-\sqrt{x}\)