I am trying to maximize this objective function $$f(x)=-x^2$$ subject to $1 \le x\le 3 $
This is the Langrangian I wrote:
$$\mathcal L (x, \mu, \lambda) := x^2 + \lambda (3-x)+\mu (x-1)$$
F.O.C + other conditions
1) $2x=\mu-\lambda$
2) $\lambda (3-x)=0$
3) $\mu (x-1)=0$
4) $\lambda \geq0, \mu \ge0$
What am I stuggling with assuming that I dont know which constraints bind, how do I solve knowing potentially the answer is on the boundary? i.e, w/o converting this problem to a minimization or adding slack terms, how do I solve for the answer with the 4 equations I have? Thank you.