\(ĐKXĐ:\hept{\begin{cases}\sqrt{x}-1\ne0\\x\ge0\end{cases}\Leftrightarrow}\hept{\begin{cases}x\ne1\\x\ge0\end{cases}}\)
\(B=\left(\frac{2\sqrt{x}+x}{x\sqrt{x}-1}-\frac{1}{\sqrt{x}-1}\right):\frac{x-1}{x+\sqrt{x}+1}\)
\(=\left(\frac{2\sqrt{x}+x}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}-\frac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right).\frac{x+\sqrt{x}+1}{x-1}\)
\(=\left(\frac{2\sqrt{x}+x-x-\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right).\frac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\frac{\sqrt{x}-1}{\left(\sqrt{x}-1\right)}.\frac{1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(=\frac{1}{x-1}\)