\(1\ge x+\dfrac{1}{y}\ge2\sqrt{\dfrac{x}{y}}\Rightarrow\dfrac{x}{y}\le\dfrac{1}{4}\)
Đặt \(\dfrac{x}{y}=a\Rightarrow0< a\le\dfrac{1}{4}\)
\(P=\dfrac{\left(\dfrac{x}{y}\right)^2-\dfrac{2x}{y}+2}{\dfrac{x}{y}+1}=\dfrac{a^2-2a+2}{a+1}=\dfrac{4a^2-8a+8}{4\left(a+1\right)}=\dfrac{4a^2-13a+3+5\left(a+1\right)}{4\left(a+1\right)}\)
\(P=\dfrac{5}{4}+\dfrac{\left(1-4a\right)\left(3-a\right)}{4\left(a+1\right)}\ge\dfrac{5}{4}\)
Dấu "=" xảy ra khi \(a=\dfrac{1}{4}\) hay \(\left(x;y\right)=\left(\dfrac{1}{2};2\right)\)