hpt <=>\(\left\{{}\begin{matrix}x+y=m\\\left(x+y\right)^2-2xy=-m^2+6\end{matrix}\right.\)
<=>\(\left\{{}\begin{matrix}x+y=m\\\frac{2m^2-6}{2}=xy\end{matrix}\right.\)
Có \(P=xy+2\left(x+y\right)=\frac{2m^2-6}{2}+2m\)
=\(\frac{2m^2-6+4m}{2}=\frac{2\left(m+1\right)^2-8}{2}\ge-4\)
Dấu "=" xảy ra <=> m=-1