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