đk x > 0 , x khác 1
\(P=\dfrac{3x+3\sqrt{x}-3-\left(x-1\right)}{x+\sqrt{x}-2}+\dfrac{\sqrt{x}-2}{\sqrt{x}}\left(\dfrac{\sqrt{x}}{1-\sqrt{x}}\right)\)
\(=\dfrac{2x+3\sqrt{x}-2}{x+\sqrt{x}-2}-\dfrac{x-4}{x+\sqrt{x}-2}=\dfrac{x+3\sqrt{x}+2}{x+\sqrt{x}-2}=\dfrac{\sqrt{x}+2}{\sqrt{x}-2}\)