Calculus Optimization Methods/Lagrange Multipliers
From Wikibooks, the open-content textbooks collection
The method of Lagrange multipliers solves the constrained optimization problem by transforming it into a non-constrained optimization problem of the form:
Then finding the gradient and hessian as was done above will determine any optimum values of
.
Suppose we now want to find optimum values for f(x,y) = 2x2 + y2 subject to x + y = 1 from [2].
Then the Lagrangian method will result in a non-constrained function.
The gradient for this new function is
Finding the stationary points of the above equations can be obtained from their matrix from.
This results in x = 1 / 3,y = 2 / 3,λ = 4 / 3.
Next we can use the hessian as before to determine the type of this stationary point.
Since
then the solution (1 / 3,2 / 3,4 / 3) minimizes f(x,y) = 2x2 + y2 subject to x + y = 1 with f(x,y) = 2 / 3.






