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