ĐKXĐ: \(...\)
\(P=\dfrac{2}{x}-\left(\dfrac{x^2}{x\left(x+y\right)}-\dfrac{y^2}{y\left(x+y\right)}+\dfrac{y^2-x^2}{xy}\right).\dfrac{x+y}{x^2+xy+y^2}\)
\(P=\dfrac{2}{x}-\left(\dfrac{x-y}{x+y}-\dfrac{\left(x-y\right)\left(x+y\right)}{xy}\right).\dfrac{x+y}{x^2+xy+y^2}\)
\(P=\dfrac{2}{x}-\left(\dfrac{1}{x+y}-\dfrac{x+y}{xy}\right)\dfrac{x^2-y^2}{x^2+xy+y^2}\)
\(P=\dfrac{2}{x}-\dfrac{-\left(x^2+xy+y^2\right)}{xy\left(x+y\right)}.\dfrac{\left(x-y\right)\left(x+y\right)}{x^2+xy+y^2}\)
\(P=\dfrac{2}{x}+\dfrac{x-y}{xy}=\dfrac{2}{x}+\dfrac{1}{y}-\dfrac{1}{x}=\dfrac{1}{x}+\dfrac{1}{y}\)
b/ \(x^2+y^2+10=2x-6y\Leftrightarrow x^2-2x+1+y^2+6y+9=0\)
\(\Leftrightarrow\left(x-1\right)^2+\left(y+3\right)^2=0\Leftrightarrow\left\{{}\begin{matrix}x=1\\y=-3\end{matrix}\right.\)
\(\Rightarrow P=\dfrac{1}{1}-\dfrac{1}{3}=\dfrac{2}{3}\)