1) \(\left(a-b\right)\cdot\sqrt{\frac{ab}{\left(a-b\right)^2}}=\left(a-b\right)\cdot\frac{\sqrt{ab}}{a-b}=\sqrt{ab}\)
2) \(\frac{x-y}{y}\cdot\sqrt{\frac{y^4}{x^2-2xy+y^2}}=\frac{x-y}{y}\cdot\frac{\sqrt{y^4}}{\sqrt{\left(x-y\right)^2}}=\frac{x-y}{y}\cdot\frac{y^2}{x-y}=y\)