\(\left(\frac{\sqrt{x}+2}{\left(\sqrt{x}+1\right)^2}-\frac{\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\right)\cdot\frac{\sqrt{x}+1}{\sqrt{x}}\\ =\left(\frac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)+\left(2-\sqrt{x}\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}+1\right)^2\left(\sqrt{x}-1\right)}\right)\cdot\frac{\sqrt{x}+1}{\sqrt{x}}\\ =\left(\frac{x+\sqrt{x}-2+2\sqrt{x}-x+2-\sqrt{x}}{\left(\sqrt{x}+1\right)\left(x-1\right)}\right)\cdot\frac{\sqrt{x}+1}{\sqrt{x}}\\ =\frac{2\sqrt{x}}{\left(\sqrt{x}+1\right)\left(x-1\right)}\cdot\frac{\sqrt{x}+1}{\sqrt{x}}\\ =\frac{2}{x-1}\)