a: Ta có: \(x^2+x+1\)
\(=x^2+2\cdot x\cdot\dfrac{1}{2}+\dfrac{1}{4}+\dfrac{3}{4}\)
\(=\left(x+\dfrac{1}{2}\right)^2+\dfrac{3}{4}\ge\dfrac{3}{4}\forall x\)
Dấu '=' xảy ra khi \(x=-\dfrac{1}{2}\)
b: Ta có: \(-x^2+x+2\)
\(=-\left(x^2-2\cdot x\cdot\dfrac{1}{2}+\dfrac{1}{4}-\dfrac{9}{4}\right)\)
\(=-\left(x-\dfrac{1}{2}\right)^2+\dfrac{9}{4}\le\dfrac{9}{4}\forall x\)
Dấu '=' xảy ra khi \(x=\dfrac{1}{2}\)