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