a: \(A=-x^2+4x+5\)
\(=-\left(x^2-4x-5\right)\)
\(=-\left(x^2-4x+4-9\right)\)
\(=-\left(x-2\right)^2+9\le9\)
Dấu '=' xảy ra khi x=2
b: \(B=-4x^2+12x-1\)
\(=-\left(4x^2-12x+1\right)\)
\(=-\left(4x^2-12x+9-8\right)\)
\(=-\left(2x-3\right)^2+8\le8\)
Dấu '=' xảy ra khi x=3/2