`B=x^2 +y^2 -2x+4y+2010`
`=x^2 -2x+1+y^2 +4y+4+2005`
`=(x-1)^2 + (y+2)^2 +2005 >= 2005`
Dấu "=" xảy ra `<=>{(x-1=0),(y+2=0):}<=>{(x=1),(y=-2):}`
Vậy `B_(min) = 2005 <=> {(x=1),(y=-2):}`
`B=x^2+y^2-2x+4y+2010`
`B=x^2-2x+y^2+4y+2010`
`B= x^2-2.x.1+1^2-1^2 +y^2+2y.2+2^2-2^2+2010`
`B= (x^2-2x+1)+(y^2+4y+4)-1-4+2010`
`B= (x-1)^2 +(y+2)^2 +2005≥2005`
nên `B` đạt GTNN là `B=2005`
khi đó \(\left\{{}\begin{matrix}\left(x-1\right)^2=0\\\left(y+2\right)^2=0\end{matrix}\right.\) `<=>`\(\left\{{}\begin{matrix}x=1\\y=-2\end{matrix}\right.\)