A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Lagrange Multipliers

College Depth 87 in the knowledge graph I know this Set as goal
858topics build on this
423prerequisites beneath it
See this on the map →
Implicit Differentiation in Several VariablesThe Gradient Vector+3 moreApplications of Multivariable CalculusConstrained Optimization Applications+14 more
lagrange constraints

Core Idea

To optimize f(x, y) subject to g(x, y) = 0, solve ∇f = λ∇g along with the constraint. The Lagrange multiplier λ represents the sensitivity of the optimum to relaxing the constraint.

Explainer

Recall from single-variable calculus that finding the maximum of a function on a closed interval requires checking critical points (where f′ = 0) and boundary points separately. In multivariable calculus, optimizing f(x, y) subject to a constraint g(x, y) = 0 is the analog of that boundary problem: you want the best value of f, but only among points that satisfy the constraint curve.

The key geometric insight is this: at a constrained optimum, the constraint curve g = 0 must be tangent to a level curve of f. If the two curves crossed instead of touching, you could slide along the constraint to reach a higher (or lower) value of f — contradicting optimality. Because gradient vectors are always perpendicular to their level curves, tangency of the curves means the gradients must be parallel. Parallel vectors are scalar multiples of each other, so there exists some λ such that ∇f = λ∇g. That scalar λ is the Lagrange multiplier.

In practice, you solve the system: ∂f/∂x = λ·∂g/∂x, ∂f/∂y = λ·∂g/∂y, and g(x, y) = 0. That is three equations in three unknowns (x, y, λ). The solutions are constrained critical point candidates. You then evaluate f at each candidate to determine which is the maximum and which is the minimum (or compare to boundary behavior if the constraint is bounded).

The Lagrange multiplier λ has an important economic interpretation: it measures the rate of change of the optimal value of f with respect to a small relaxation of the constraint. If you are maximizing profit subject to a budget constraint, λ tells you how much additional profit you would gain per additional dollar of budget. This is why λ is often called the "shadow price" in optimization and economics.

One common error is forgetting to also solve the constraint equation g(x, y) = 0. The condition ∇f = λ∇g alone is not enough — it identifies the direction of the optimum but not where on the constraint it lies. All three equations must be solved simultaneously. Another pitfall: the method finds critical points, not guaranteed optima; always check whether you have found a maximum, a minimum, or a saddle point relative to the constraint.

Practice Questions 3 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsOne-Sided LimitsContinuity DefinitionLimits and Continuity in Multiple VariablesFunctions of Several VariablesContinuity in Multiple VariablesPartial Derivatives: Definition and ComputationDifferentiability in Multiple VariablesDifferentiability in Multivariable FunctionsTotal Differential and Linear ApproximationChain Rule for Multivariable FunctionsImplicit DifferentiationRelated RatesOptimization ProblemsCritical Points of Multivariable FunctionsCritical Points and Classification of ExtremaSecond Partial Test for Local Extrema (Hessian)The Hessian Matrix and Second Derivative TestUnconstrained Optimization: Finding ExtremaOptimization in Multiple VariablesLagrange Multipliers

Longest path: 88 steps · 423 total prerequisite topics

Prerequisites (5)

Leads To (16)