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