\(A=\left(\dfrac{x+2}{x\sqrt{x}-1}+\dfrac{\sqrt{x}}{x+\sqrt{x}+1}+\dfrac{1}{1-\sqrt{x}}\right):\dfrac{\sqrt{x}-1}{2}\\ =\left(\dfrac{x+2}{\sqrt{x}^3-1}+\dfrac{\sqrt{x}}{x+\sqrt{x}+1}-\dfrac{1}{\sqrt{x}-1}\right)\cdot\dfrac{2}{\sqrt{x}-1}\\ =\left(\dfrac{x+2}{\left(x+\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}+\dfrac{\sqrt{x}\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}-\dfrac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right)\cdot\dfrac{2}{\sqrt{x}-1}\\ =\dfrac{x+2+x-\sqrt{x}-x-\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\cdot\dfrac{2}{\sqrt{x}-1}\\ =\dfrac{x-2\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\cdot\dfrac{2}{\sqrt{x}-1}\\ =\dfrac{2\left(\sqrt{x}-1\right)^2}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\\ =\dfrac{2}{x+\sqrt{x}+1}\)