\(\left[3\left(x-y\right)^4+2\left(x-y\right)^3-5\left(x-y\right)^2\right]:\left(y-x\right)^2\)
\(=\dfrac{3\left(x-y\right)^4}{\left(x-y\right)^2}+\dfrac{2\left(x-y\right)^3}{\left(x-y\right)^2}-\dfrac{5\left(x-y\right)^2}{\left(x-y\right)^2}\)
\(=3\left(x-y\right)^2+2\left(x-y\right)-5\)