\(\dfrac{xy}{x-y}-\dfrac{2x^2}{y-2x}\)
\(=\dfrac{xy}{x-y}+\dfrac{2x^2}{2x-y}\)
\(=\dfrac{xy\left(2x-y\right)+2x^2\left(x-y\right)}{\left(x-y\right)\left(2x-y\right)}\)
\(=\dfrac{2x^2y-xy^2+2x^3-2x^2y}{\left(x-y\right)\left(2x-y\right)}\)
\(=\dfrac{2x^3-xy^2}{\left(x-y\right)\left(2x-y\right)}=\dfrac{x\left(2x^2-y^2\right)}{\left(x-y\right)\left(2x-y\right)}\)