Ta có: \(B=\left(\dfrac{2x+1}{x\sqrt{x}+1}-\dfrac{1}{\sqrt{x}-1}\right):\left(1-\dfrac{x}{x+\sqrt{x}+1}\right)\)
\(=\dfrac{2x\sqrt{x}-2x+\sqrt{x}-1-x\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}:\dfrac{x+\sqrt{x}+1-x}{x+\sqrt{x}+1}\)
\(=\dfrac{x\sqrt{x}-2x+\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}\cdot\dfrac{x+\sqrt{x}+1}{\sqrt{x}+1}\)
\(=\dfrac{\left(x+1\right)\left(\sqrt{x}+1\right)\left(x+\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2\cdot\left(x-\sqrt{x}+1\right)}\)
\(=\dfrac{\left(x+1\right)\left(x+\sqrt{x}+1\right)}{\left(x-1\right)\left(x-\sqrt{x}+1\right)}\)