\(=\dfrac{3x+3\sqrt{x}-3-x+1-x+4}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}\left(x\ge0;x\ne1\right)\\ =\dfrac{x+3\sqrt{x}+2}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)