ĐKXĐ: \(\left\{{}\begin{matrix}x>0\\y>0\\x\ne y\end{matrix}\right.\)
\(M=\frac{\sqrt{xy}\left(\sqrt{x}+\sqrt{y}\right)}{\sqrt{x}}.\left(\sqrt{x}-\sqrt{y}\right)-x\)
\(=\left(\sqrt{x}+\sqrt{y}\right)\left(\sqrt{x}-\sqrt{y}\right)-x\)
\(=x-y-x=-y\)
\(M=-1\Rightarrow-y=-1\Rightarrow y=1\)