\(a,M=\dfrac{\left(x-\sqrt{2}\right)^2}{\left(x-\sqrt{2}\right)\left(x+\sqrt{2}\right)}=\dfrac{x-\sqrt{2}}{x+\sqrt{2}}\\ b,N=\dfrac{x+\sqrt{5}}{\left(x+\sqrt{5}\right)^2}=\dfrac{1}{x+\sqrt{5}}\)
\(N=\dfrac{x+\sqrt{5}}{x^2+2x\sqrt{5}+5}=\dfrac{1}{x+\sqrt{5}}\)