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