Lời giải:
a)
\(A=\frac{\sqrt{3}-1+\sqrt{3}+1}{(\sqrt{3}+1)(\sqrt{3}-1)}+2-\sqrt{3}=\frac{2\sqrt{3}}{3-1}+2-\sqrt{3}=\sqrt{3}+2-\sqrt{3}=2\)
b)
\(B=\left(\frac{1}{\sqrt{x}(\sqrt{x}-1)}+\frac{\sqrt{x}}{\sqrt{x}(\sqrt{x}-1)}\right):\frac{\sqrt{x}}{(\sqrt{x}-1)^2}\)
\(=\frac{\sqrt{x}+1}{\sqrt{x}.(\sqrt{x}-1)}.\frac{(\sqrt{x}-1)^2}{\sqrt{x}}=\frac{(\sqrt{x}-1)(\sqrt{x}+1)}{x}=\frac{x-1}{x}\)