Ta có:
\(x^2+5y^2-4x-4xy+6y+5=0\\\Rightarrow[(x^2-4xy+4y^2)-(4x-8y)+4]+(y^2-2y+1)=0\\\Rightarrow[(x-2y)^2-4(x-2y)+4]+(y-1)^2=0\\\Rightarrow(x-2y-2)^2+(y-1)^2=0\)
Ta thấy: \(\left\{{}\begin{matrix}\left(x-2y-2\right)^2\ge0\forall x,y\\\left(y-1\right)^2\ge0\forall y\end{matrix}\right.\)
\(\Rightarrow\left(x-2y-2\right)^2+\left(y-1\right)^2\ge0\forall x,y\)
Mà: \(\left(x-2y-2\right)^2+\left(y-1\right)^2=0\)
nên: \(\left\{{}\begin{matrix}x-2y-2=0\\y-1=0\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x=2y+2\\y=1\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}x=2\cdot1+2=4\\y=1\end{matrix}\right.\)
Thay \(x=4;y=1\) vào \(P\), ta được:
\(P=\left(4-3\right)^{2023}+\left(1-2\right)^{2023}+\left(4+1-5\right)^{2023}\)
\(=1^{2023}+\left(-1\right)^{2023}+0^{2023}\)
\(=1-1=0\)
Vậy \(P=0\) khi \(x=4;y=1\).