\(A=x-2\sqrt{x}\left(\sqrt{y}+1\right)+\left(\sqrt{y}+1\right)^2+\left(3y+1-\left(\sqrt{y}+1\right)^2\right)\)
\(=\left(\sqrt{x}-\sqrt{y}-1\right)^2+2\left(y-\sqrt{y}+\frac{1}{4}\right)-\frac{1}{2}\)
\(=\left(\sqrt{x}-\sqrt{y}-1\right)^2+2\left(\sqrt{y}-\frac{1}{2}\right)^2-\frac{1}{2}\ge-\frac{1}{2}\)
Amin= -1/2 khi y=1/4; x=9/4