Ta có: \(3x^2+3y^2+4xy+2x-2y+2=0\)
\(\Leftrightarrow x^2+2x+1+y^2-2y+1+2x^2+4xy+2y^2=0\)
\(\Leftrightarrow\left(x+1\right)^2+\left(y-1\right)^2+2\left(x^2+2xy+y^2\right)=0\)
\(\Leftrightarrow\left(x+1\right)^2+\left(y-1\right)^2+2\left(x+y\right)^2=0\)
Ta có: \(\left(x+1\right)^2\ge0\forall x\)
\(\left(y-1\right)^2\ge0\forall y\)
\(2\left(x+y\right)^2\ge0\forall x,y\)
Do đó: \(\left(x+1\right)^2+\left(y-1\right)^2+2\left(x+y\right)^2\ge0\forall x,y\)
Dấu '=' xảy ra khi
\(\left\{{}\begin{matrix}x+1=0\\y-1=0\\x+y=0\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=-1\\y=1\\-1+1=0\left(đúng\right)\end{matrix}\right.\)
Thay x=-1 và y=1 vào biểu thức \(M=\left(x+y\right)^{2016}+\left(x+2\right)^{2017}+\left(y-1\right)^{2018}\), ta được:
\(M=\left(-1+1\right)^{2016}+\left(-1+2\right)^{2017}+\left(1-1\right)^{2018}\)
\(=0^{2016}+1^{2017}+0^{2018}=1\)
Vậy: M=1