\(=\dfrac{3x+3\sqrt{x}-3-x+1}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}+\dfrac{\sqrt{x}-2}{\sqrt{x}}\cdot\dfrac{1-1+\sqrt{x}}{1-\sqrt{x}}\)
\(=\dfrac{2x+3\sqrt{x}-2}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}\)
\(=\dfrac{2x+3\sqrt{x}-2-x-4\sqrt{x}-4}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\)
\(=\dfrac{x-\sqrt{x}-6}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}=\dfrac{\sqrt{x}-3}{\sqrt{x}-1}\)