a) Ta có: \(Q=-x^2-y^2+4x-4y+2=-\left(x^2+y^2-4x+4y-2\right)\)
\(=-\left(x^2-4x+4+y^2+4y+4\right)+10\)
\(=-\left[\left(x-2\right)^2+\left(y+2\right)^2\right]+10\le10\forall x,y\)
Vậy MaxQ=10 khi x=2, y=-2
b) +Ta có: \(A=-x^2-6x+5=-\left(x^2+6x-5\right)=-\left(x^2+6x+9-14\right)\)
\(=-\left(x^2+6x+9\right)+14=-\left(x+3\right)^2+14\le14\forall x\)
Vậy MaxA=14 khi x=-3
+Ta có: \(B=-4x^2-9y^2-4x+6y+3=-\left(4x^2+9y^2+4x-6y-3\right)\)
\(=-\left(4x^2+4x+1+9y^2-6y+1-5\right)\)
\(=-\left[\left(2x+1\right)^2+\left(3y-1\right)^2\right]+5\le5\forall x,y\)
Vậy MaxB=5 khi x=-1/2, y=1/3
c) Ta có: \(P=x^2+y^2-2x+6y+12=x^2-2x+1+y^2+6y+9+2\)
\(=\left(x-1\right)^2+\left(y+3\right)^2+2\ge2\forall x,y\)
Vậy MinP=2 khi x=1, y=-3