ta có : M=\(\frac{1}{x^2+x+1}=\frac{1}{\left(x+\frac{1}{2}\right)^2+\frac{3}{4}}\)
MÀ \(\left(x+\frac{1}{2}\right)^2\ge0\Rightarrow\left(x+\frac{1}{2}\right)^2+\frac{3}{4}\ge\frac{3}{4}\Rightarrow\frac{1}{\left(x+\frac{1}{2}\right)^2+\frac{3}{4}}\le\frac{1}{\frac{3}{4}}=\frac{4}{3}\)
Dấu '=' xảy ra khi : \(x+\frac{1}{2}=0\Leftrightarrow x=\frac{-1}{2}\)
Vậy GTLN của M là 4/3 khi x=-1/2