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