ĐKXĐ: \(x\ge0,x\ne1\)
\(A=\dfrac{\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)-\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}{\left(x-1\right)\left(\sqrt{x}+1\right)}.\dfrac{\left(x-1\right)^2}{2}\)
\(=\dfrac{-2\sqrt{x}\left(x-1\right)}{\left(\sqrt{x}+1\right).2}=-\sqrt{x}\left(\sqrt{x}-1\right)=-x+\sqrt{x}\)