a) Ta có: \(A=\dfrac{a^2+\sqrt{a}}{a-\sqrt{a}+1}-\dfrac{2a+\sqrt{a}}{\sqrt{a}}+1\)
\(=\dfrac{\sqrt{a}\left(\sqrt{a}+1\right)\left(a-\sqrt{a}+1\right)}{a-\sqrt{a}+1}-\dfrac{\sqrt{a}\left(2\sqrt{a}+1\right)}{\sqrt{a}}+1\)
\(=a+\sqrt{a}-2\sqrt{a}-1+1\)
\(=a-\sqrt{a}\)
c) Để A=2 thì \(a-\sqrt{a}-2=0\)
\(\Leftrightarrow\left(\sqrt{a}-2\right)\left(\sqrt{a}+1\right)=0\)
\(\Leftrightarrow a=4\)