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