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