Ta có: \(\left(x-y\right)\left(1-xy\right)\le\dfrac{1}{4}\left(x-y+1-xy\right)^2=\dfrac{1}{4}\left(x+1\right)^2\left(1-y\right)^2\)
\(\Rightarrow P\le\dfrac{\left(1+x\right)^2\left(1-y\right)^2}{4\left(1+x\right)^2\left(1+y\right)^2}=\dfrac{1}{4}\left(\dfrac{y^2-2y+1}{y^2+2y+1}\right)=\dfrac{1}{4}\left(1-\dfrac{4y}{y^2+2y+1}\right)\le\dfrac{1}{4}\)
\(P_{max}=\dfrac{1}{4}\) khi \(\left(x;y\right)=\left(1;0\right)\)
Lại có:
\(\left(y-x\right)\left(1-xy\right)\le\dfrac{1}{4}\left(y-x+1-xy\right)^2=\dfrac{1}{4}\left(1+y\right)^2\left(1-x\right)^2\)
\(\Rightarrow-P\le\dfrac{\left(1+y\right)^2\left(1-x\right)^2}{4\left(1+y\right)^2\left(1+x\right)^2}=\dfrac{1}{4}\left(\dfrac{1-2x+x^2}{1+2x+x^2}\right)=\dfrac{1}{4}\left(1-\dfrac{4x}{x^2+2x+1}\right)\le\dfrac{1}{4}\)
\(\Rightarrow-P\le\dfrac{1}{4}\Rightarrow P\ge-\dfrac{1}{4}\)
\(P_{min}=-\dfrac{1}{4}\) khi \(\left(x;y\right)=\left(0;1\right)\)
(Do \(y\ge0\Rightarrow\dfrac{4y}{y^2+2y+1}\ge0\Rightarrow1-\dfrac{4y}{y^2+2y+1}\le1\Rightarrow...\))