a)\(M=x^2-2xy+2y^2-4y+2016\)
\(=\left(x^2-2xy+y^2\right)+\left(y^2-4y+4\right)+2012\)
\(=\left(x-y\right)^2+\left(y-2\right)^2+2012\ge2012\)
Dấu = khi \(\begin{cases}\left(x-y\right)^2=0\\\left(y-2\right)^2=0\end{cases}\)\(\Leftrightarrow\begin{cases}x-y=0\\y-2=0\end{cases}\)
\(\Leftrightarrow\begin{cases}x=y\\y=2\end{cases}\)\(\Leftrightarrow x=y=2\)
Vậy MinM=2012 khi x=y=2
b)\(N=x^2-2xy+2x+2y^2-4y+2016\)
\(=\left(x^2-2xy+2x+y^2-2y+1\right)+\left(y^2-2y+1\right)+2014\)
\(=\left(x-y+1\right)^2+\left(y-1\right)^2+2014\ge2014\)
Dấu = khi \(\begin{cases}\left(x-y+1\right)^2=0\\\left(y-1\right)^2=0\end{cases}\)\(\Leftrightarrow\begin{cases}x-y+1=0\\y-1=0\end{cases}\)
\(\Leftrightarrow\begin{cases}x-y+1=0\\y=1\end{cases}\)\(\Leftrightarrow\begin{cases}x-1+1=0\\y=1\end{cases}\)\(\Leftrightarrow\begin{cases}x=0\\y=1\end{cases}\)
Vậy MinN=2014 khi x=0;y=1