a, \(A=x^2+2xy+y^2-4x-4y+1\)
\(=\left(x+y\right)^2-4\left(x+y\right)+1\)
Thay x + y = 3
\(\Leftrightarrow A=9-12+1=-2\)
Vậy A = -2 khi x + y = 3
b, \(B=x^2+4y^2-2x+10+4xy-4y\)
\(=x^2+4xy+4y^2-2x-4y+10\)
\(=\left(x+2y\right)^2-2\left(x+2y\right)+10\)
Thay x + 2y = 5 có:
\(B=25-10+10=25\)
Vậy B = 25 khi x + 2y = 5