ĐK: \(x>0\).
a)\(A=\dfrac{x^2+x+1}{x-\sqrt{x}+1}-2\sqrt{x}-1\)
\(A=\dfrac{x^2+x+1-\left(2\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}{x-\sqrt{x}+1}\)
\(=\dfrac{-2x\sqrt{x}+x^2+3x-2\sqrt{x}-x+\sqrt{x}}{x-\sqrt{x}+1}\)
\(=\dfrac{-2x\sqrt{x}+x^2+2x-\sqrt{x}}{x-\sqrt{x}+1}\)
b)Với x>1 thì A>0 nên |A|=A do đó A-|A|=0.