G=\(\left(\dfrac{\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}-\dfrac{\sqrt{x}\left(\sqrt{x}-1\right)}{\left(\sqrt{x}+1\right)^2\left(\sqrt{x}-1\right)}\right)\). \(\dfrac{\left(x-1\right)^2}{2}\)
=\(\dfrac{x-\sqrt{x}-2-x+\sqrt{x}}{\left(\sqrt{x}+1\right)^2\left(\sqrt{x}-1\right)}.\dfrac{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{2}\)
=\(\dfrac{-1}{\sqrt{x}+1}\)