2

I've been trying to get through some practice questions on the Karush-Kuhn-Tucker (KKT) theorem but I can't seem to answer the following.


Given $f, g : \mathbb{R}^2 \to \mathbb{R}$ defined by $f(x) := x_1 + x_2$ and $g(x) := x_1^2+3x_1x_2+3x_2^2-3$, respectively, $$\begin{array}{ll} \underset{x \in \mathbb{R}^n}{\text{maximize}} & f(x)\\ \text{subject to} & g(x) = 0\end{array}$$


My attempt:

$$\nabla f(x)=\begin{pmatrix} 1\\ 1\\ \end{pmatrix}$$ $$\nabla g(x)=\begin{pmatrix} 2x_1+3x_2\\ 3x_1+6x_2\\ \end{pmatrix}$$ and by complementary slackness $\lambda[x_1^2+3x_1x_2+3x_2^2-3]=0$ and $\lambda\geq0$

By first order conditions, I get $\lambda[2x_1+3x_2]=1$ and $\lambda[3x_1+6x_2]=1$

I checked WolframAlpha and the answer should be (3,-1) but I can't seem to figure out the right steps to solve this optimization.

ji zhi
  • 21
  • 3

1 Answers1

1

You were so close. Solving the linear system $\lambda[2x_1+3x_2]=1,\lambda[3x_1+6x_2]=1$ yields $x_1=1/ \lambda, x_2=-1/(3\lambda)$ and plug this into the KKT condition yields $$ \lambda \left( 3\cdot \frac{1}{9\lambda^2}-3 \right)= 0 $$ Because $\lambda$ must be positive, we end up with $\lambda=+1/3$ from which you will deduce that $(3,-1)$ is the solution you are searching.

Steph
  • 4,140
  • 1
  • 5
  • 13