a: \(=\dfrac{x+2+x-\sqrt{x}-x-\sqrt{x}-1}{x\sqrt{x}-1}\cdot\dfrac{2}{\sqrt{x}-1}\)
\(=\dfrac{x-2\sqrt{x}+1}{\left(\sqrt{x}-1\right)^2}\cdot\dfrac{2}{x+\sqrt{x}+1}=\dfrac{2}{x+\sqrt{x}+1}\)
b: Để B=7 thì \(x+\sqrt{x}+1=\dfrac{2}{7}\)
\(\Leftrightarrow x+\sqrt{x}+\dfrac{5}{7}=0\)
hay \(x\in\varnothing\)