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.