\(M=\dfrac{a\sqrt{a}-b\sqrt{b}-a\sqrt{a}+a\sqrt{b}+b\sqrt{a}+b\sqrt{b}}{\left(\sqrt{a}+\sqrt{b}\right)\left(\sqrt{a}-\sqrt{b}\right)}\\ M=\dfrac{a\sqrt{b}+b\sqrt{a}}{\left(\sqrt{a}+\sqrt{b}\right)\left(\sqrt{a}-\sqrt{b}\right)}=\dfrac{\sqrt{ab}\left(\sqrt{a}+\sqrt{b}\right)}{\left(\sqrt{a}-\sqrt{b}\right)\left(\sqrt{a}+\sqrt{b}\right)}\\ M=\dfrac{\sqrt{ab}}{\sqrt{a}-\sqrt{b}}\)
\(\left(1-a\right)\left(1-b\right)+2\sqrt{ab}=1\\ \Leftrightarrow1-a-b+ab+2\sqrt{ab}=1\\ \Leftrightarrow a+b-ab-2\sqrt{ab}=0\\ \Leftrightarrow\left(\sqrt{a}-\sqrt{b}\right)^2=ab\\ \Leftrightarrow\left[{}\begin{matrix}\sqrt{a}-\sqrt{b}=\sqrt{ab}\\\sqrt{a}-\sqrt{b}=-\sqrt{ab}\end{matrix}\right.\)
Với \(\sqrt{a}-\sqrt{b}=\sqrt{ab}\Leftrightarrow M=\dfrac{\sqrt{ab}}{\sqrt{ab}}=1\)
Với \(\sqrt{a}-\sqrt{b}=-\sqrt{ab}\Leftrightarrow M=\dfrac{\sqrt{ab}}{-\sqrt{ab}}=-1\)
\(M=\dfrac{a\sqrt{a}-b\sqrt{b}-a\left(\sqrt{a}-\sqrt{b}\right)+b\left(\sqrt{a}+\sqrt{b}\right)}{\left(\sqrt{a}-\sqrt{b}\right)\left(\sqrt{a}+\sqrt{b}\right)}\)
\(=\dfrac{a\sqrt{b}+b\sqrt{a}}{\left(\sqrt{a}-\sqrt{b}\right)\left(\sqrt{a}+\sqrt{b}\right)}=\dfrac{\sqrt{ab}\left(\sqrt{a}+\sqrt{b}\right)}{\left(\sqrt{a}-\sqrt{b}\right)\left(\sqrt{a}+\sqrt{b}\right)}=\dfrac{\sqrt{ab}}{\sqrt{a}-\sqrt{b}}\)
\(\left(1-a\right)\left(1-b\right)+2\sqrt{ab}=1\)
\(\Leftrightarrow a+b-ab-2\sqrt{ab}=0\)
\(\Leftrightarrow\left(\sqrt{a}-\sqrt{b}\right)^2=ab\Leftrightarrow\sqrt{a}-\sqrt{b}=\sqrt{ab}\)
\(M=\dfrac{\sqrt{ab}}{\sqrt{a}-\sqrt{b}}=\dfrac{\sqrt{ab}}{\sqrt{ab}}=1\)