a: Ta có: \(A=\dfrac{x^2+\sqrt{x}}{x-\sqrt{x}+1}-\dfrac{2x+\sqrt{x}}{\sqrt{x}}+1\)
\(=\sqrt{x}\left(\sqrt{x}+1\right)-\left(2\sqrt{x}+1\right)+1\)
\(=x+\sqrt{x}-2\sqrt{x}-1+1\)
\(=x-\sqrt{x}\)
b: Ta có: \(A=\dfrac{\sqrt{x}+2}{\sqrt{x}+3}+\dfrac{5}{x+\sqrt{x}-6}+\dfrac{1}{2-\sqrt{x}}\)
\(=\dfrac{x-4+5-\sqrt{x}-3}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}\)
\(=\dfrac{x-\sqrt{x}-2}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}=\dfrac{\sqrt{x}+1}{\sqrt{x}+3}\)