1,\(B=-x^2+20x-1=-\left(x^2-20x+1\right)\)
\(=-\left(x^2-2.10x+100-99\right)=-\left(x-10\right)^2+99\le99\)
Dấu ''='' xảy ra khi x = 10
Vậy GTLN B là 99 khi x = 10
2, \(E=x^2+2x\left(y+1\right)+y^2+2y+1\)
\(2E=2x^2+4x\left(y+1\right)+2y^2+4y+2\)
\(=2x^2+4xy+4x+2y^2+4y+2\)
\(=x^2+4xy+4y^2+x^2+4x+4-2\left(y^2-2y+1\right)\)
\(=\left(x+2y\right)^2+\left(x+2\right)^2-2\left(y-1\right)^2\ge0\)
Dấu ''='' xảy ra khi x = -2 ; y = 1
Vậy GTNN E là 0 khi x = -2 ; y = 1