ĐKXĐ: ...
\(B=\left(\dfrac{\sqrt{x}+2}{\left(\sqrt{x}+1\right)^2}-\dfrac{\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\right).\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
\(=\left(\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\left(\sqrt{x}-1\right)}\right)\left(\dfrac{\sqrt{x}+1}{\sqrt{x}}\right)\)
\(=\dfrac{2\sqrt{x}}{\left(\sqrt{x}+1\right)^2\left(\sqrt{x}-1\right)}.\dfrac{\left(\sqrt{x}+1\right)}{\sqrt{x}}\)
\(=\dfrac{2}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}=\dfrac{2}{x-1}\)