Suppose we may want to use the K–T conditions to find the optimal solution to: \begin{array}{cc} \max & (\text { or } \min ) z=f\left(x_{1}, x_{2}, \ldots, x_{n}\right) \\ \text { s.t. } & g_{1}\left(x_{1}, x_{2}, \ldots, x_{n}\right) \leq b_{1} \\ & g_{2}\left(x_{1}, x_{2}, \ldots, x_{n}\right) \leq b_{2} \\ & \vdots \\ &g_{m}\left(x_{1}, x_{2}, \ldots, x_{n}\right) \leq b_{m} \\ & -x_{1} \leq 0 \\ & -x_{2} \leq 0 \\ & \vdots \\ & -x_{n} \leq 0 \end{array} then the theorem state the KT condition as:
Which I really don't understand and eventually failed to applied as my book didn't illustrate any example with details. For sake of clarity, let's pick one minimization problem,
\begin{array}{ll} \text { Minimize } & Z=2 x_{1}+3 x_{2}-x_{1}^{2}-2 x_{2}^{2} \\ \text { subject to } & x_{1}+3 x_{2} \leq 6 \\ & 5 x_{1}+2 x_{2} \leq 10 \\ & x_{1} \geq 0, i=1,2 . \end{array}
After google searching and watching YouTube video, I find they solve it by,
$$L(x_1,x_2,x_3,\lambda_1,\lambda_2)=2 x_{1}+3 x_{2}-x_{1}^{2}-2 x_{2}^{2}+\lambda_1(x_{1}+3 x_{2}-6)+\lambda_2(5 x_{1}+2 x_{2}-10)$$
$(1)$ Assuming both $g_1$ and $g_2$ active:
Solving $\frac{\partial L}{\partial x_1}=0,\frac{\partial L}{\partial x_2}=0,\frac{\partial L}{\partial \lambda_1}=0,\frac{\partial L}{\partial \lambda_2}=0 \implies \left(\frac{18}{13},\frac{20}{13},\frac{185}{169},-\frac{11}{169}\right)$ Which can't accept.
$(2)$ Assuming $g_1$ active:
Solving $\frac{\partial L}{\partial x_1}=0,\frac{\partial L}{\partial x_2}=0,\frac{\partial L}{\partial \lambda_1}=0 \implies \left(\frac{3}{2},\frac{3}{2},1,0\right)$, hence $z=\frac34$
$(3)$ Assuming $g_2$ active:
Solving $\frac{\partial L}{\partial x_1}=0,\frac{\partial L}{\partial x_2}=0,\frac{\partial L}{\partial \lambda_2}=0 \implies \left(\frac{89}{54},\frac{95}{108},0,\frac{7}{27}\right)$, hence $z=\frac{371}{216}$
$(4)$ Assume none of constraint is active:
Solving $\frac{\partial L}{\partial x_1}=0,\frac{\partial L}{\partial x_2}=0 \implies \left(1,\frac{3}{4}\right)$ hence $z=\frac{17}{8}$
Hence, $z_{\min}=\frac{3}{4}$
So, I was confusing how the second method satisfy the theorem $10$? Like did they do the same thing? Checking the inequality is binding or not? And could I write the second method on exam as a solution for KKT condition?