Based on my Calculus textbook, the method of Lagrange multipliers is stated as follow:
Suppose that $f(x,y,z)$ and $g(x,y,z)$ are differentiable and $\nabla g \ne \mathbf 0$ when $g(x,y,z) = 0$. To find the local extremum values of $f$ subject to the constraint $g(x,y,z) = 0$, find the values of $x,y,z$ and $\lambda$ simultaneously satisfying the equations $\nabla f = \lambda \nabla g$ and $g(x,y,z) = 0$.
My questions are:
- Why do we need $\nabla g \ne \mathbf 0$ in the assumption? (Is there something realted to the implicit function theroem?)
- What happens if $\nabla g = \mathbf 0$?
I think the best way to understand the condition is to see what can go wrong when $\nabla g=0$. Try working through the following examples:
Apply Lagrange's method to the following problem and then solve it graphically:
$$\min_{x,y} x^2 +y^2\text{ subject to $(x−1)^3 −y^2 = 0$}$$
Apply the method to $$\max_{x,y} y−2x^2 +x\text{ subject to $(x+y)^2 = 0$}$$ and compare your findings to the equivalent problem:
$$\max_{x,y} y−2x^2 +x\text{ subject to $x+y = 0$}$$