so this is an exmaple from a book I have.
Find Max/Min of $f=\frac{x^2}{2} + \frac{y^2}{2}$ on $E=\big\{ (x,y)\in \mathbb R \big| \frac{x^2}{2} + y^2 \leq 1\big\}$
1. Step: We look at the Interior of E:
$df=(x,y)=0 \Rightarrow p_0 = (0,0)$
2. Step: We look at $\partial E$
$g(x,y):=\frac{x^2}{2}+y^2 - 1 = 0 $
We define the lagrangian function:
$L:=f-\lambda g = \frac{x^2}{2}+\frac{y^2}{2}-\lambda (\frac{x^2}{2}+y^2-1)$
We solve
$\frac{\partial L}{\partial x}=x -\lambda x = 0 \quad \Rightarrow \quad x=0, \lambda = 1$
$\frac{\partial L}{\partial y}=y-2y=0\quad \Rightarrow \quad y=0, \lambda = -\frac{1}{2}$
With $g$ we get the candidates: $p_{1,2}=(0,\pm 1)$ and $p_{3,4}=(\pm\sqrt{2},0)$
Step 3: We evaulate $f(p_i)$
$f(0,0)=0$
$f(\pm\sqrt{2},0)=1$
$f(0,\pm 1) = \frac{1}{2}$
So the global min is $(0,0)$ and the global max are $(\pm\sqrt{2},0)$
Question 1: What can we say about the points $(0,\pm 1)$?
Question 2: If we wanted to look at all points and at local ones as well we would need hessian matrix, no?
