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