\(\Rightarrow P=\left(\dfrac{\left(y-x\right)\left(y+x\right)}{y-x}-\dfrac{\left(x-y\right)\left(x^2+xy+y^2\right)}{\left(x-y\right)\left(x+y\right)}\right).\dfrac{x+y}{y^2-2xy+x^2+xy}\)
\(\Rightarrow P=\left(y+x-\dfrac{x^2+xy+y^2}{x+y}\right).\dfrac{x+y}{y^2-xy+x^2}\)
\(\Rightarrow P=\dfrac{\left(x+y\right)^2-\left(x^2+xy+y^2\right)}{x+y}.\dfrac{x+y}{y^2-xy+x^2}\)
\(\Rightarrow P=\dfrac{x^2+2xy+y^2-x^2-xy-y^2}{x+y}.\dfrac{x+y}{y^2-xy+x^2}\)
\(\Rightarrow P=\dfrac{xy}{x+y}.\dfrac{x+y}{y^2-xy+x^2}\)
\(\Rightarrow P=\dfrac{xy}{y^2-xy+x^2}\)