What about multivariable
problems with constraints?
The necessary condition for identifying an
optimal value becomes:
The gradient of the “Lagrangian” function
must become = 0
L(x,l) = f(x) + l*g(x)
l is called the Lagrangian multiplier
f(x) is the function we are optimizing
g(x) are the constraint equations