Ta có:
\(\frac{5\left(x-y\right)^4-3\left(x-y\right)^3+4\left(x-y\right)^2}{\left(y-x\right)^2}=\frac{\left(x-y\right)^2\left[5\left(x-y\right)^2-3\left(x-y\right)+4\right]}{\left(x-y\right)^2}\)
\(=5\left(x-y\right)^2-3\left(x-y\right)+4=5\left(x^2+2xy+y^2\right)-3x+3y+4\)
\(=5x^2+10xy+5y^2-3x+3y+4\)