a) +) Điều kiện : x \(\ge\) 0 ; y \(\ge\) 0 ; y \(\ne\) 1 ; x; y không đồng thời bằng 0
+) \(P=\frac{x\left(\sqrt{x}+1\right)-y\left(1-\sqrt{y}\right)-xy\left(\sqrt{x}+\sqrt{y}\right)}{\left(\sqrt{x}+\sqrt{y}\right)\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}=\frac{x\sqrt{x}+x-y+y\sqrt{y}-xy\left(\sqrt{x}+\sqrt{y}\right)}{\left(\sqrt{x}+\sqrt{y}\right)\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}\)
\(P=\frac{\left(x\sqrt{x}+y\sqrt{y}\right)+\left(x-y\right)-xy\left(\sqrt{x}+\sqrt{y}\right)}{\left(\sqrt{x}+\sqrt{y}\right)\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}=\frac{\left(\sqrt{x}+\sqrt{y}\right)\left(x+y-\sqrt{xy}\right)+\left(\sqrt{x}-\sqrt{y}\right)\left(\sqrt{x}+\sqrt{y}\right)-xy\left(\sqrt{x}+\sqrt{y}\right)}{\left(\sqrt{x}+\sqrt{y}\right)\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}\)
\(P=\frac{x+y-\sqrt{xy}+\sqrt{x}-\sqrt{y}-xy}{\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}=\frac{\left(x+\sqrt{x}\right)+\left(y-xy\right)-\left(\sqrt{xy}+\sqrt{y}\right)}{\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}=\frac{\left(1+\sqrt{x}\right)\sqrt{x}+y\left(1-x\right)-\sqrt{y}\left(\sqrt{x}+1\right)}{\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}\)
\(P=\frac{\left(1+\sqrt{x}\right)\left(\sqrt{x}+y-y\sqrt{x}-\sqrt{y}\right)}{\left(1-\sqrt{y}\right)\left(\sqrt{x}+1\right)}=\frac{\left(\sqrt{x}-y\sqrt{x}\right)+\left(y-\sqrt{y}\right)}{\left(1-\sqrt{y}\right)}=\frac{\sqrt{x}\left(1-\sqrt{y}\right)\left(1+\sqrt{y}\right)-\sqrt{y}\left(1-\sqrt{y}\right)}{\left(1-\sqrt{y}\right)}\)
\(P=\sqrt{x}\left(1+\sqrt{y}\right)-\sqrt{y}=\sqrt{x}-\sqrt{y}+\sqrt{xy}\)
b) Để P = 2 <=> \(\sqrt{x}-\sqrt{y}+\sqrt{xy}=2\) <=> \(\sqrt{x}+\sqrt{xy}=\sqrt{y}+2\)
<=> \(\left(\sqrt{x}+\sqrt{xy}\right)^2=\left(\sqrt{y}+2\right)^2\)
<=> \(x+xy+2x\sqrt{y}=y+4+4\sqrt{y}\)
<=> \(x+xy-y+\left(2x-4\right)\sqrt{y}=4\)(*)
P = 2 <=> (x; y) thỏa mãn (*)