Ta có: \(\dfrac{x^2+xy}{x^2+xy+y^2}-\left(\dfrac{x\left(2x^2+xy-y^2\right)}{x^3-y^3}-2+\dfrac{y}{y-x}\right):\dfrac{x-y}{x}-\dfrac{x}{x-y}\)
\(=\dfrac{x^2+xy}{x^2+xy+y^2}-\left(\dfrac{x\left(2x^2+xy-y^2\right)}{\left(x-y\right)\left(x^2+xy+y^2\right)}-\dfrac{2\left(x^3-y^3\right)-y\left(x^2+xy+y^2\right)}{\left(x-y\right)\left(x^2+xy+y^2\right)}\right):\dfrac{x-y}{x}-\dfrac{x}{x-y}\)
\(=\dfrac{x^2+xy}{x^2+xy+y^2}-\dfrac{2x^3+x^2y-xy^2-2x^3+2y^3-x^2y-xy^2-y^3}{\left(x-y\right)\left(x^2+xy+y^2\right)}:\dfrac{x-y}{x}-\dfrac{x}{x-y}\)
\(=\dfrac{x\left(x+y\right)}{x^2+xy+y^2}-\dfrac{y^3-2xy^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}:\dfrac{x-y}{x}-\dfrac{x}{x-y}\)
\(=\dfrac{x\left(x+y\right)}{x^2+xy+y^2}+\dfrac{y^2\left(x-y\right)}{\left(x-y\right)\left(x^2+xy+y^2\right)}\cdot\dfrac{x}{x-y}-\dfrac{x}{x-y}\)
\(=\dfrac{x\left(x+y\right)}{x^2+xy+y^2}+\dfrac{xy^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}-\dfrac{x}{x-y}\)
\(=\dfrac{x\left(x^2-y^2\right)}{\left(x-y\right)\left(x^2+xy+y^2\right)}+\dfrac{xy^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}-\dfrac{x\left(x^2+xy+y^2\right)}{\left(x-y\right)\left(x^2+xy+y^2\right)}\)
\(=\dfrac{x^3-xy^2+xy^2-x^3-x^2y-xy^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}\)
\(=\dfrac{-x^2y-xy^2}{\left(x-y\right)\left(x^2+xy+y^2\right)}\)