\(\left(x-y\right)\sqrt{\dfrac{xy}{\left(x-y\right)^2}}\)
\(=\dfrac{\left(x-y\right)\sqrt{xy}}{x-y}\)
\(=\sqrt{xy}\)
\(\left(x-y\right)\sqrt{\dfrac{xy}{\left(x-y\right)^2}}\)
= \(\left(x-y\right)\dfrac{1}{\left(\sqrt{x-y}\right)^2}\times\sqrt{xy}\)
=\(\left(x-y\right)\dfrac{1}{x-y}\times\sqrt{xy}\)
=\(\sqrt{xy}\)