Lagrange multiplierSay we have a function constrainted by an equation where . We can find the extrema of by finding the points where the is parallel to . Formally, the extrema of are the solutions to where is the Lagrange multiplier. The specific value for does not matter, it only matters that some exists for which the equation holds. Consider why this works. is always perpendicular to the level curve . If is not parallel to , then we can follow along the level curve to reach a different . But when , we have nowhere to move on that will change , so we have found a local extremum. |