\(1,A=\dfrac{2x+1-x}{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}\cdot\left(x-\sqrt{x}-2\right)\\ A=\dfrac{\left(x+1\right)\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}=\dfrac{\left(x+1\right)\left(\sqrt{x}-2\right)}{x-\sqrt{x}+1}\\ 2,\Leftrightarrow\left\{{}\begin{matrix}2a-b=1\\a-b=2\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}a=-1\\b=-3\end{matrix}\right.\Leftrightarrow y=-x-3\)