I think Stefan4024 made a mistake in his answer. I shall hence write my own solution and compare the result and argument for why I believe the provided answer is wrong.
Specifying The Problem
First, we have that we must minimize:
$f_1(x,y)=-x+y$
Let's convert it to a maximization problem by multiplying by -1:
$f_2(x,y)=x-y$
We now specify the constraints in the generic form:
${h_j(x,y)}\leq{0}$
Which gives:
$-a\le h_1(x,y)=x-a\leq{0}$
$-1\le h_2(x,y)=y-1\leq{0}$
$-y\le h_3(x,y)=x^2-y\leq{0}$
As for the lagrange equation:
$\nabla{f_2(x,y)}=\sum_i{\lambda_i\cdot\nabla{g_i(x,y)}}+\sum_j{\mu_j\cdot\nabla{h_j(x,y)}}$
Since we have no fixed constraints, we can omit g's sum entirely such that:
$\nabla{f_2(x,y)}=\sum_j{\mu_j\cdot\nabla{h_j(x,y)}} \Rightarrow (1,-1)=\mu_1(1,0)+\mu_2(0,1)+\mu_3(2x,-1)$
The second last step in formulating the problem is to state that:
$\forall{j},\mu_j\ge0$. Here is where I think the Stefan4024 answer fails, as I think his answer has no consistent usage of this specifier; and thus an invalid answer comes up. I question the validity of the assertion that it is a saddle point, as the Hessian matrix shows that it is indeterminate (0) at that point. The invalidity can be observed in Case 2, where $\lambda_2 = -1$.
The last step will be to formulate the tightness of inequalities through:
$\forall j, \mu_j\cdot h_j(x,y) = 0$
Which implies that either of the factors are 0.
Here are all equation/inequalities for a quick reference.
- $1=\mu_11+\mu_3\cdot2x$
- $-1=\mu_2-\mu_3$
- $\forall j, \mu_j\cdot h_j(x,y) = 0$
- $\forall{j},\mu_j\ge0$
Solving The Problem
Case 1: $\mu_1 = \mu_2 = \mu_3 = 0$
Plugging the values into equation 2, we observe that -1 = 0; such that this case is a contradiction.
Case 2: $\mu_1=\mu_2=x^2-y=0$
From equation 2 we get $1=\mu_3$, such that substituting in equation 1 results in $\frac{1}{2}=x$.
Since $y=±\sqrt{x}$ according to $x^2-y=0$, we observe from eq. 3.2 that $0\le y$, such that y can only be $\frac{1}{4}$.
Point: $(2^{-1}, 4^{-1})$
Case 3: $\mu_1=y-1=\mu_3=0$
We observe that equation 1 grants: 1=0, which invalidates case 3.
Case 4: $\mu_1=y-1=x^2-y=0$
From equation 1 we get: $\mu_3=\frac{1}{2x}$, by substituting in eq. 2, we get: $\mu_2=\frac{1}{2x}-1$.
Since $y=1, x=±1$, we get from the above that $\mu_2=\frac{1}{2x}-1$, which only results in a negative result in either case, in which case $\mu_2 \lt 0$, which invalidates this case.
Case 5: $x-a=\mu_2=\mu_3=0$
From equation 2 we observe that -1 = 0, which contradicts this case.
Case 6: $x-a=\mu_2=x^2-y=0$
From equation 2 we get $\mu_3=1$, which we plug into the first, giving:
$1/2=x$. Since $y=1, x^2=y$, then x must be ±1, which contradicts that it must be 1/2.
Case 7: $x-a=y-1=\mu_3=0$
Pluggin into equation 2, we get $\mu_2=-1$ which is invalid.
Case 8: $x-a=y-1=x^2-y=0$
$x=a, y=1, y=x^2 \Rightarrow 1=a^2 \Rightarrow a=±1$. From our boundaries, we observe that a is always larger than 0, thus, a = 1.
Plugging the values into equation 1: $1=\mu_1+\mu_3\cdot2$, we observe that our system of equations is unsolvable, so this answer is invalidated.
Set Of Solutions
We have acquired only 1 point:
A = $(1/2, 1/4)$
$f_1($**A**$) = -1/4$
We can easily observe that this answer is only valid for $a \ge 1/2$.
As stated before, Stefan has a "saddle point" on this linear curve at (1,1), which appears invalid to me (as I think his answer used a negative/positive lambda quite liberally.)
When $a$ becomes smaller than 1/2, we need to solve for boundary points; which appear to me to be located at $(a, a^2)$ (Without evidence).