Dễ thấy $x^2 + x + 1 = (x + \dfrac{1}{2})^2 + \dfrac{3}{4} > 0$
Ta có : $2(x - 1)^2 \ge 0$
$\leftrightarrow 2x^2 - 4x + 2 \ge 0$
$\leftrightarrow 3(x^2 - x + 1) \ge x^2 + x + 1$
$\leftrightarrow \dfrac{x^2 - x + 1}{x^2 + x + 1} \ge \dfrac{1}{3}$
Đẳng thức xảy ra $\leftrightarrow x = 1$
Mặt khác ta lại có : $2(x + 1)^2 \ge 0$
$\leftrightarrow 2x^2 + 4x + 2 \ge 0$
$\leftrightarrow 3(x^2 + x + 1) \ge x^2 - x + 1$
$\leftrightarrow \dfrac{x^2 - x + 1}{x^2 + x + 1} \le 3$
Đẳng thức xảy ra $\leftrightarrow x = (- 1)$
Vậy $Min M = \dfrac{1}{3} \leftrightarrow x = 1; Max M = 3 \leftrightarrow x = (- 1)$