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