\(a,-x^2+2x+5=-\left(x^2-2x-5\right)=-\left(x^2-2x+1-6\right)=-\left(x-1\right)^2+6\le6\)
dấu'=' xảy ra<=>x=1=>Max A=6
\(b,B=-x^2-y^2+4x+4y+2=-x^2+4x-4-y^2+4x-4+10\)
\(=-\left(x^2-4x+4\right)-\left(y^2-4x+4\right)+10\)
\(=-\left(x-2\right)^2-\left(y-2\right)^2+10=-\left[\left(x-2\right)^2+\left(y-2\right)^2\right]+10\le10\)
dấu"=" xảy ra<=>x=y=2=>Max B=10
\(c,C=x^2+y^2-2x+6y+12=\left(x-1\right)^2+\left(y+3\right)^2+2\ge2\)
dấu'=' xảy ra<=>x=1,y=-3=>MinC=2