\(\frac{P}{4}=\frac{x^2+y^2}{x^2+y^2-xy}\)
Đặt \(\frac{x}{y}=a\)
\(\frac{\Rightarrow P}{4}=\frac{a^2+1}{a^2-a+1}\)
\(\Leftrightarrow a^2\left(P-4\right)-Pa+P-4=0\)
Xét \(\Delta=P^2-4\left(P-4\right)^2\ge0\)
\(\Leftrightarrow\frac{8}{3}\le P\le8\)