The function to minimize is f(x,y) = (x+y−1)^2 + (x+y)^2.
Let u=x+y. Then the function can be written as g(u) = (u−1)^2 + u^2
To minimize g(u), its derivative with respect to u and set it to 0:
g′(u)=2(u−1)+2u=2u−2+2u=4u−2
g′(u)=0
4u−2=0, so
u=1/2. The minimum value of the function occurs when
x+y=1/2
This equation represents a straight line in the plane, which contains an infinite number of points.
(B) Therefore, the set S has an infinite number of elements.