Find the minimum value of 2x2+2xy+4y+5y2−xover all real numbers x and y.
Solution — click to reveal
We can write the expression as 2x2+2xy+4y+5y2−x=(x2+2xy+y2)+(x2−x+41)+(4y2+4y+1)−41−1=(x+y)2+(x−21)2+(2y+1)2−45.We see that the minimum value is −45, which occurs at x=21 and y=−21.