\(a,\frac{\left(\sqrt{x}+1\right)\cdot\sqrt{x}\left(\sqrt{x}-\sqrt{y}\right)\left(\sqrt{x}+\sqrt{y}\right)}{\left(x-y\right)\sqrt{x}\left(x+1\right)}\)\(=\frac{\left(\sqrt{x}+1\right)\sqrt{x}\left(x-y\right)}{\left(x-y\right)\sqrt{x} \left(x+1\right)}\)\(=\frac{\sqrt{x}+1}{x+1}\)
\(b,\frac{\left(2-\sqrt{x}\right)^2-\sqrt{x}-3}{1+2\sqrt{x}}=\frac{4+x-4\sqrt{x}-\sqrt{x}-3}{1+2\sqrt{x}}=\frac{1+x-5\sqrt{x}}{1+2\sqrt{x}}\)