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