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 more→→Applications 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 Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → One-Sided Limits → Continuity Definition → Limits and Continuity in Multiple Variables → Functions of Several Variables → Continuity in Multiple Variables → Partial Derivatives: Definition and Computation → Differentiability in Multiple Variables → Differentiability in Multivariable Functions → Total Differential and Linear Approximation → Chain Rule for Multivariable Functions → Implicit Differentiation → Related Rates → Optimization Problems → Critical Points of Multivariable Functions → Critical Points and Classification of Extrema → Second Partial Test for Local Extrema (Hessian) → The Hessian Matrix and Second Derivative Test → Unconstrained Optimization: Finding Extrema → Optimization in Multiple Variables → Lagrange Multipliers

Longest path: 88 steps · 423 total prerequisite topics

Prerequisites (5)

Leads To (16)