a: ĐKXĐ: x>0; x<>1
b: \(B=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)-\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}+1\right)^2\cdot\left(\sqrt{x}-1\right)}\cdot\dfrac{\left(\sqrt{x}+1\right)\left(x-1\right)}{\sqrt{x}}\)
\(=\dfrac{x+\sqrt{x}-2-x+\sqrt{x}+2}{\sqrt{x}}=2\)