minimize $3x_1^2+3x_2^2-2x_1x_2-12(x_1+x_2)+36$
s.t. $|x1+x2|=1$
Determine the maximum and minimum of this problem.
The Lagrangian can be set up as:
$L(x,\lambda)= 3x_1^2+3x_2^2-2x_1x_2-12(x_1+x_2)+36-\lambda(x1+x2-1)$
From the conditions I infer that for $\lambda =-10$ and $x_1=\frac{1}{2}$ and $x_2=\frac{1}{2}$ are solutions.
Here are my two questions.
Is there only one constraint or two because there is an absolute sign? (I tried using the constraints $x1+x2=1$ and $x1+x2= -1$ but that simply doesn't work because you then get $1-x_2+x_2+1 \neq 0$.
And thus I come to my second question, is the Lagrangian and the solutions that I inferred right?
EDIT: I thus find the following solutions:
Case 1 ($x_1+x_2=1$):
$(\frac{1}{2},\frac{1}{2})$ with $\lambda = -10$
$(-\frac{1}{2},-\frac{1}{2})$ with $\lambda = -14$
The Hessian here is:
$\begin{bmatrix} 6&-2\\-2 &6\end{bmatrix}$ so the two points above are minimum since the eigenvalues are 4 and 8 which are greater than $0$.
Case 2 ($-x_1-x_2= 1$):
$(\frac{1}{2},\frac{1}{2})$ with $\lambda = 10$
$(-\frac{1}{2},-\frac{1}{2})$ with $\lambda = 14$
$\begin{bmatrix} -6&2\\2 &-6\end{bmatrix}$ so the two points above are maximum since the eigenvalues are -4 and -8.