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