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