P=\(\left(\dfrac{1}{\sqrt{x}-1}-\dfrac{2}{x-\sqrt{x}}\right):\left(\dfrac{2}{x-1}+\dfrac{1}{\sqrt{x}+1}\right)\)
=\(\left(\dfrac{\sqrt{x}}{\sqrt{x}\left(\sqrt{x}-1\right)}-\dfrac{2}{\sqrt{x}\left(\sqrt{x}-1\right)}\right):\left(\dfrac{2}{x-1}+\dfrac{\sqrt{x}-1}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\right)\)
=\(\dfrac{\sqrt{x}-2}{\sqrt{x}\left(\sqrt{x}-1\right)}:\left(\dfrac{\sqrt{x}+1}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\right)\)
=\(\dfrac{\sqrt{x}-2}{\sqrt{x}\left(\sqrt{x}-1\right)}.\dfrac{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}{\sqrt{x}+1}\)
=\(\dfrac{\sqrt{x}-2}{\sqrt{x}}\)