a: \(A=-x^2-8x+5\)
\(=-\left(x^2+8x-5\right)\)
\(=-\left(x^2+8x+16-21\right)\)
\(=-\left(x+4\right)^2+21< =21\)
Dấu '=' xảy ra khi x=-4
b: \(B=-\left(x^2-2x+4y^2+4y-5\right)\)
\(=-\left(x^2-2x+1+4y^2+4y+1-7\right)\)
\(=-\left(x-1\right)^2-\left(2y+1\right)^2+7\le7\)
Dấu '=' xảy ra khi x=1 và y=-1/2