\(x^2-2xy+x-2y\ge0\)
\(\Leftrightarrow x\left(x-2y\right)+x-2y\ge0\)
\(\Leftrightarrow\left(x+1\right)\left(x-2y\right)\ge0\)
\(\Leftrightarrow x\ge2y\)( vì x là số thực không âm nên x+1 >0 )
\(\Leftrightarrow0\le y\le\frac{x}{2}\)
\(\Leftrightarrow y^2\le\frac{x^2}{4}\)( do 2 vế không âm nên bình phương hai vế )
\(\Rightarrow M\le\frac{x^2+3x-5x^2}{4}=\frac{-x^2}{4}+3x=9-\left(3-\frac{x}{2}\right)^2\le9\)
Vậy Mmax=9 <=> x=6, y =3