Let $$h(x,y) = \min\lbrace x,y \rbrace$$ I want to find $$\min ax + by$$ Subject to $$g(x,y) = c - h(x,y)= 0$$ My lagrangian is
$$L(x,y,\lambda) = ax+by + \lambda (c - h(x,y)) $$
I have calculated
$$L_x = a - \lambda h_x(x,y) =0$$ $$L_y = b - \lambda h_y(x,y) =0$$ $$L_\lambda = c - h(x,y) =0$$ So $$\lambda = \frac{a}{h_x} $$ $$\lambda = \frac{b}{h_y} $$
I know the partials for the $\min$ function. But this implies for $x<y$
$$ \frac{a}{1} = \frac{b}{0}$$ and for $x>y$
$$ \frac{a}{0} = \frac{b}{1}$$
I think this implies $\lambda$ is undefined over all intervals.
My Question Have I misused the first order conditions somehow? Why am I getting nonsense answers? Shouldn't the optimum be $x=y$?
You have for $x>y$, $ a=0, b=\lambda$, and for $x<y$ $ a=\lambda , b=0$. Btw, your third derivative should be $c-h(x,y)=0$ and not $c-h_x =0$. Now write $c=h(x,y)$, for the first case, $c= y$, so the minimum value is $cb$, for the second case the minimum value is $ac$.