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