You might skip the example and just jump to the question.
Let's assume we have:
$f(x,y) = \frac{x^2}{2}+\frac{y^2}{2}$ and $M:=\{(x,y)\in\mathbb R^2 | \frac{x^2}{2}+y^2\leq1\}$
We get a minima in $p_1=(0,0)$ and two maxima at $p_{2,3}=(\pm\sqrt{2},0)$
One get's the local extrema by doing $df\overset{!}{=}0$. With the hessian we might be able to decide what kind of points we got.
If only the local extrema are wanted, we are finished. But they might ask me for the global ones. To get them, I either set each variable to zero and look at the resulting points or we use lagrangian-multipliers. [In this problem, it might be overkill, but nevermind]
So let's do it:
Define $g(x,y):=\frac{x^2}{2}+y^2-1=0$
Define $L=f-\lambda g = \frac{x^2}{2}+\frac{y^2}{2}-\lambda(\frac{x^2}{2}+y^2-1)
$\frac{\partial L}{\partial x} x-\lambda x = 0 \Rightarrow \lambda_1 = 1, x = 0$
$\frac{\partial L}{\partial y} y-\lambda 2y = 0 \Rightarrow \lambda_1 = 1/2, y = 0$
$g=0 \Rightarrow x^2 + 2y^2 = 2$
For $\lambda_1$ we get the possible extrem points $p_1(0,1), p_2=(0,-1)$
For $\lambda_2$ we get the possible extrem points $p_3(\sqrt{2},0), p_4=(\sqrt{2},0)$
By evaluating $f(p_i)$ or $Hess(L)$ (wheres the hessian might be not enough) we see what kind of points we got.
Questions: 1. If you look up "lagrangian-multiplier", you see, that it says: "(..)is a strategy for finding the local maxima and minima of a function subject to equality constraints". [Wikipedia] To what function are the points we got with the lagrangian multiplier local? I mean, that are boundary points, I somehow can't think of a function where they are local extrem. [Which implies they are critical points, doesn't it, so it can't be on the boundery]