\(A=5-6x-x^2\)
\(A=5-\left(x^2+6x\right)\)
\(A=14-\left(x^2+6x+9\right)\)
\(A=14-\left(x+3\right)^2\le14\)
Dấu "=" xảy ra khi:\(x=-3\)
\(B=2-x^2-y^2-2x-2y\)
\(B=2-\left(x^2+2x\right)-\left(y^2+2y\right)\)
\(B=4-\left(x^2+2x+1\right)-\left(y^2+2y+1\right)\)
\(B=4-\left(x+1\right)^2-\left(y+1\right)^2\le4\)
Dấu "=" xảy ra khi: \(x=y=-1\)