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