Find the minimum value of 2x2+2xy+y2−2x+2y+4over all real numbers x and y.
Solution — click to reveal
We can write 2x2+2xy+y2−2x+2y+4=(x2+y2+1+2x+2y+2xy)+(x2−4x+4)−1=(x+y+1)2+(x−2)2−1.Thus, the minimum value is −1, which occurs when x+y+1=0 and x−2=0, or x=2 and y=−3.