\(Q=\frac{x^2-x+1}{x^2+x+1}=\frac{\frac{2}{3}x^2-\frac{4}{3}x+\frac{2}{3}}{x^2+x+1}+\frac{1}{3}=\frac{2}{3}\frac{\left(x-1\right)^2}{x^2+x+1}+\frac{1}{3}\ge\frac{1}{3}\)
\(\Rightarrow MIN\left(Q\right)=\frac{1}{3}\)Dấu "=" xảy ra khi x=1
\(Q=\frac{x^2-x+1}{x^2+x+1}=\frac{-2x^2-4x-2}{x^2+x+1}+3=-2\frac{\left(x+1\right)^2}{x^2+x+1}+3\ge3\)
\(\Rightarrow MAX\left(Q\right)=3\)Dấu "=" xảy ra khi x=-1
Viết lộn, \(Q\le3\)mới đúng