- Learn
- Mathematics
- University Math
- Mathematics for Economics and Business
- Lagrange Multipliers
Constrained Optimization and Lagrange Multipliers
BeginnerLesson 10 of 10 in Mathematics for Economics and Business Course
What you will learn
- Translate a decision with a limited resource into an objective and a constraint, and solve two-variable problems by reducing them to one variable.
- Write a constrained optimization problemIdentify the objective, the choice variables and the constraint in a decision, and see why the constraint changes the answer.
- Solve a two-variable problem by substitutionUse the constraint to eliminate one variable, optimize the resulting one-variable function and respect the interval the constraint allows.
- Write a constrained optimization problem
- Use level curves and gradients to see why the best point on a smooth constraint is a point of tangency, and turn that picture into the condition the Lagrange method solves.
- Find the optimum where a level curve touches the constraintRead a diagram of level curves and a constraint curve, and explain why a constrained optimum is a point of tangency.
- Connect gradients to the Lagrange conditionUse gradient vectors to state the condition that the gradient of the objective is a multiple of the gradient of the constraint, and recognize when it applies.
- Find the optimum where a level curve touches the constraint
- Form the Lagrangian, solve its first-order conditions for every candidate point, and decide which candidates are maxima or minima.
- Set up the Lagrangian and solve the first-order conditionsWrite the Lagrangian for one equality constraint, derive its first-order conditions and solve them step by step.
- Find every candidate and compare their valuesSolve a nonlinear Lagrange system without losing solutions, add any points where the gradient condition fails, and compare values to find the extremes.
- Decide whether a candidate is a maximum or a minimumClassify Lagrange candidates by comparing values, with the bordered Hessian for two variables and one constraint, or by concavity and convexity.
- Set up the Lagrangian and solve the first-order conditions
- Read the Lagrange multiplier as a shadow price, and use the method to find a consumer's best bundle and a firm's cheapest input mix.
- Read the multiplier as a shadow priceUse the multiplier to estimate how the optimal value changes when the constraint constant changes, with its units and sign.
- Maximize utility subject to a budgetSolve a consumer's choice problem, interpret the tangency and equal-marginal-utility-per-dollar conditions, and derive demand for Cobb–Douglas preferences.
- Minimize the cost of producing a required outputSolve a firm's cost-minimization problem, interpret the tangency of isoquant and isocost line, and read the multiplier as marginal cost.
- Read the multiplier as a shadow price
- Use one multiplier per constraint in problems with more variables, and decide whether a limit binds or has room to spare, including corner solutions.
- Handle more variables and several equality constraintsSet up and solve Lagrange problems with three variables and one or two equality constraints, and interpret each multiplier.
- Decide whether an inequality constraint bindsSolve a problem with one inequality constraint by checking the unconstrained optimum first, and use the sign of the multiplier to confirm a binding constraint.
- Recognize corner solutionsUse nonnegativity constraints to spot when the best choice buys none of a good, and find it by comparing the endpoints of the feasible set.
- Handle more variables and several equality constraints
Lagrange Multipliers study guide
1Set up and solve a constrained choice
A budget or production requirement changes which choices are available. Start by naming what the decision maker controls, what should improve, and which restriction must hold. When an equality is easy to rearrange, substitution turns the problem into a familiar one-variable calculation. The feasible interval then tells you which critical points and endpoints belong in the final comparison.
1.1 The best choice within a limit
A business may want the highest profit, but it cannot choose every possible production plan. A consumer may want more of two goods, but has a fixed budget. Constrained optimization puts the aim and the limit into one problem.
Separate the aim from the restriction
The objective function is the quantity to maximize or minimize. The choice variables are the quantities the decision maker controls. A constraint restricts those choices. Write an equality constraint as , where is a fixed amount. The problem becomes “maximize subject to ,” or the corresponding minimization.
The feasible set contains every point that satisfies all restrictions. An optimum must belong to this set. With two variables and one equality, it is usually a curve. Nonnegative quantities can restrict that curve to a segment or an arc.
Build a budget model
A student has $60 for coffee at $3 per cup and sandwiches at $6 each. Let be cups of coffee and sandwiches. Suppose utility is . The model is
Utility is the objective. Spending is the restriction. Prices belong in the budget equation; putting them into a different utility formula would change the student's preferences. This calculus model treats quantities as continuously divisible.
Each term in the budget has units of dollars: dollars per cup times cups, plus dollars per sandwich times sandwiches. Setting gives ; setting gives . The feasible set is the segment joining and , not the whole infinite line.
Model a production requirement
A firm uses labor and capital to produce . Labor costs $4 per unit and capital $16. To produce 100 units as cheaply as possible, write
Here cost is the objective and output is the requirement. Minimizing output would answer a different question. Both inputs must be positive to meet this positive output target.
See what the limit changes
Without a budget, has no maximum in the nonnegative quadrant: buying more of both goods keeps raising utility. A budget makes the choices bounded. A restriction can also exclude an existing unconstrained peak. Profit peaks at , using 50 machine hours if each unit uses one hour. A 30-hour limit excludes that plan. Restricting the available choices cannot raise the maximum above the unconstrained maximum.
“At most $60” means . When additional consumption always improves utility, any unspent money can improve the bundle, so the optimum spends the full budget. An equality is then justified by the objective's behavior; the words “at most” alone do not require full spending.
Key Takeaways
- The objective is the quantity to maximize or minimize; the constraint restricts the choices.
- Every feasible point satisfies the constraint and the variables’ domain restrictions.
- Check that every term in a resource equation has the same unit.
- An “at most” limit becomes an equality at the optimum when additional consumption always improves utility.
1.2 Reduce the problem to one variable
An equality often lets you write one variable in terms of the other. Substituting into the objective then turns a two-variable choice into the single-variable optimization you already know. The allowed interval is part of that new problem.
Substitute into the objective
For with , solve the budget for :
Since both quantities are nonnegative, . Differentiating gives . The stationary point satisfies , so . Recover the other quantity from the budget: . Utility is .
The second derivative is , so the stationary point is a maximum. The endpoints give zero utility. Buying 10 cups and 5 sandwiches therefore gives the largest utility on the whole budget segment. Reporting only would leave the choice incomplete.
Use the same method for a minimum
Minimize with . The constraint gives , hence
Differentiate both terms, keeping the chain-rule sign:
Thus and . The value is . Since throughout the line, this is its global minimum. If the variables represent nonnegative quantities, the same point lies in the interval and remains optimal.
Keep restrictions after eliminating a variable
On , the objective becomes
The circle still requires . Over this interval the maximum is 2 at , giving the two points and . The minimum is 1 at , giving and . Treating as a function on the whole real line would wrongly suggest there is no minimum.
Eliminating also leaves the sign of unresolved. Recover every allowed value from the original constraint. If you instead solve for with a square root, both branches can matter.
Choose and complete the method
Use substitution when a constraint gives a simple expression. Replace every occurrence of the eliminated variable in the objective. Find feasible critical points, include endpoints, and compare values or use curvature to classify the result. A derivative equal to zero identifies a candidate; it does not by itself identify a maximum.
For an equation such as , isolating a variable is awkward. The Lagrange method avoids that rearrangement and also finds a multiplier with an economic meaning.
Key Takeaways
- Solve the constraint for a variable, then substitute into the objective.
- The reduced function keeps the domain imposed by the original constraint.
- Classify feasible critical points and check endpoints when present.
- Recover both quantities and report the optimal objective value.
- A nonlinear substitution may leave several branches to recover.
2See why the optimum is stationary
Level curves show which objective values a constraint can reach. Their slopes explain the balance at a smooth interior optimum, while gradient vectors express that balance without relying on a slope formula. The same picture connects consumer trade-offs and input choices to prices. Checking the constraint gradient also reveals the points where the usual Lagrange condition can miss a solution.
2.1 Level curves and tangency
A level curve joins points with the same objective value: . Drawing several such curves shows how the objective changes across the feasible set. The best feasible choice reaches the highest attainable level for a maximum or the lowest for a minimum.
Read the levels
For utility, level curves are indifference curves: bundles on one curve give the same utility. For production, they are isoquants: input mixes with the same output. A budget line or an isocost line joins bundles with the same spending or cost.
Consider on . The level meets the line at and . Moving toward the center gives , where the value is 21. The level meets the line only at , while never meets it. The highest reachable value is therefore 25.
At the level curve crosses the line. One direction along the line raises the objective, so this crossing is not a maximum. At the curves share a tangent: a small feasible movement has no first-order gain.
Turn the picture into slopes
Implicit differentiation of gives
where . The constraint has slope where . Tangency makes these slopes equal.
For the slope is . It is at , matching the line . At it is , so the curves cross. Slope formulas with a zero denominator cannot describe a vertical tangent; gradient vectors handle that geometry without dividing.
Read the economic ratios
The marginal rate of substitution, , is the size of the indifference curve's slope. It measures how much of good compensates for one more unit of at the margin. A budget has slope . At a smooth interior consumer optimum,
The consumer's willingness to trade matches the market trade-off. For a firm, the corresponding condition is : the isoquant and isocost line have the same slope. MRTS is the marginal rate of technical substitution.
Know what tangency establishes
Tangency is a necessary condition at a regular, smooth, nonendpoint optimum where the objective gradient is nonzero. It is shared by constrained maxima and minima, so the diagram still needs a value or curvature check.
A zero objective gradient needs a different picture. Minimizing on gives the origin, where the zero level set is a single point. There is no ordinary level curve there to share a tangent. The gradient condition still works, with multiplier zero. A budget segment can also have its best point at an endpoint, where one quantity is zero and equal slopes need not hold.
Key Takeaways
- A maximum reaches the highest objective level that meets the feasible set.
- At a regular interior optimum with nonzero objective gradient, the level curve and constraint are tangent.
- Tangency identifies a candidate; minima can be tangent too.
- Consumer tangency gives MRS = price ratio; producer tangency gives MRTS = input-price ratio.
- Zero objective gradients and endpoints need care when reading a tangency diagram.
2.2 Why the gradients line up
The gradient collects the partial derivatives into a vector: . It describes how the objective changes in different directions. At a point with a nonzero gradient, the vector points toward the fastest increase and is perpendicular to the level curve.
Follow only feasible directions
The gradient is perpendicular to the constraint curve . A small movement along the curve must therefore be perpendicular to . At an optimum, the objective cannot have a first-order increase or decrease in that feasible direction.
If had a component along the curve, moving one way would raise and moving the opposite way would lower it. A local maximum or minimum on a smooth curve cannot behave that way. Thus must be a multiple of the constraint's normal vector:
The scalar is the Lagrange multiplier. The vectors may point the same way or opposite ways. The equation also allows with .
A tangent direction can be written as : its dot product with is zero. Zero first-order objective change along it means . This is the same proportionality condition without dividing by either component of the constraint gradient.
Check a proposed point
For and , the gradients are and . At , they are and . Multiplying the second by 5 gives the first, so .
At the objective gradient is . No single scalar turns into . Although this point lies on , it is not stationary along that line.
Use the component equations
The vector condition means and . Where both denominators are nonzero,
Each ratio measures marginal objective gained per unit of the constrained resource. With a budget, and , so each good gives the same marginal utility per dollar at an interior optimum. Keep the component equations when a derivative of the constraint is zero; dividing would be invalid.
Check the constraint gradient
The Lagrange condition is guaranteed at a regular point, where . A zero constraint gradient supplies no normal direction, and the method can miss an optimum.
For example, minimize on . Every feasible point satisfies , hence . The origin is therefore the minimum. But there and . No multiplier solves the vector equation.
Add feasible points with a zero constraint gradient to the candidates and inspect them directly. A nonconstant linear constraint has a fixed nonzero gradient, so this failure does not occur on an ordinary budget line. The requirement concerns the constraint gradient: a zero objective gradient can be a valid solution with multiplier zero.
Key Takeaways
- A nonzero gradient is perpendicular to its level curve.
- At a regular constrained optimum, .
- The same multiplier must satisfy every component equation.
- Check feasible points with separately.
- A zero objective gradient is allowed and gives at a regular point.
3Solve and classify Lagrange candidates
The Lagrangian turns a constrained problem into a system of equations for the quantities and a multiplier. Solving that system is only part of the work: nonlinear equations can have several branches, and each feasible candidate needs classification. Value comparisons, the bordered Hessian, and concavity or convexity answer different parts of the question, from a nearby improvement to a global best choice.
3.1 Solve the Lagrange equations
The Lagrangian packages the objective and the constraint into one expression. Differentiating it produces both the gradient condition and the original restriction. It gives a systematic route to candidate points without first isolating a choice variable.
Form three equations
For subject to , use
The first-order conditions are
The first two conditions say the gradients are proportional. The third says the point is feasible. There are three equations for three unknowns: . Treat the multiplier as constant when differentiating with respect to a choice variable.
Maximize a product
For and ,
Differentiating gives , and . Eliminate the multiplier: , so . Substituting into the constraint gives . Thus , and . The objective value is 200.
Check all three equations: , and . To classify the point, substitute into the product. The reduced objective is a downward parabola, so the point is the global maximum on the line.
Minimize squared distance
The point on closest to the origin minimizes . Squaring preserves the ordering of nonnegative distances and simplifies the derivatives. The Lagrangian gives and , hence . Now gives and .
The squared distance is 20. The actual distance is . The objective is convex and the constraint linear, so this is a global minimum. Keep the requested quantity distinct from the convenient objective used to calculate it.
Keep one sign convention
| Lagrangian | Multiplier relative to this method |
|---|---|
| Same multiplier | |
| Same multiplier | |
| Opposite multiplier |
The optimal quantities do not change when the sign convention changes. The sign attached to the multiplier does, so its economic interpretation must follow the expression actually used. With , it measures the rate of change of the optimal value with .
A frequent algebra error is to invert the relation between the quantities. In the product example, and imply . Checking each original condition catches both ratio errors and a forgotten constraint equation.
Key Takeaways
- Use consistently.
- Include both choice-variable conditions and the constraint equation.
- Eliminate the multiplier to relate the quantities, then use the constraint.
- Recover the multiplier, calculate the objective, and classify the candidate.
- Changing the multiplier sign convention changes its sign, not the optimal quantities.
- When minimizing squared distance, take a square root to report distance.
3.2 Keep every feasible candidate
A nonlinear Lagrange system can have several solutions. A candidate is a point worth checking, not yet a declared maximum or minimum. A complete solution keeps every algebraic case, discards infeasible points, and checks any points the regular gradient condition can miss.
Factor before dividing
Find the extremes of on . The conditions are
Substitute into the first equation:
This product is zero when or . Dividing immediately by would erase the first case without checking it. A lost zero case can contain an optimum in other problems.
Solve the cases
If , the equation gives . The origin fails the circle equation, so this case contributes no candidate.
If , then . The constraint gives , hence and . Each gives .
If , then . The two points are and , each giving . Both signs of the square root matter; the circle is not restricted to nonnegative coordinates.
Complete the list
The constraint gradient is . It vanishes only at the origin, which is not feasible. There are no extra singular points on this circle and no endpoints. The candidate list is therefore complete.
| Points | Objective value |
|---|---|
The extreme value theorem says a continuous function on a closed, bounded feasible set attains a maximum and a minimum. The circle meets these conditions. Comparing the complete candidate list therefore proves the global maximum is 4 and the global minimum is −4, each at two points.
Check whether extremes exist
An unbounded feasible set gives no such guarantee. On the whole line , the product becomes . It has maximum 25 at , but it falls without bound as grows in either direction. There is no minimum to find by comparing stationary points.
Add and the line becomes a closed segment. The endpoints and now belong in the comparison, and give minimum zero. Domain restrictions can change both the candidates and whether an extreme exists.
Keep an organized list of branches while solving. For each point, check the constraint, sign restrictions and the equation used to eliminate the multiplier. Add feasible points where the constraint gradient is zero and any endpoints of the feasible curve before comparing values.
Key Takeaways
- Factor expressions and check zero cases before dividing.
- A nonlinear system may have several maximizers or minimizers.
- Add feasible singular points and endpoints to the Lagrange candidates.
- Continuity on a closed, bounded feasible set guarantees both extremes exist.
- On an unbounded set, investigate behavior far along the constraint.
3.3 Classify a constrained candidate
Solving first-order conditions locates candidates. Classification asks how the objective behaves when you move along the feasible set. A local result concerns nearby feasible points; a global result concerns every feasible point.
Use the bordered Hessian
For two variables and one regular equality constraint, form the matrix
Evaluate it at the candidate and its multiplier. Its determinant is
| Determinant | Conclusion at a regular candidate |
|---|---|
| Strict local maximum | |
| Strict local minimum | |
| Test is inconclusive |
For on , the constraint derivatives are 2 and 4. The Lagrangian has second derivatives and . Thus at : a local maximum.
For on , the second derivatives are 2, 0 and 2. At , , giving a local minimum.
The sign rule can be checked using the feasible tangent direction . It is nonzero when the constraint is regular and perpendicular to its gradient. The Lagrangian curvature in this direction is . Thus a positive determinant means negative curvature along the feasible curve, explaining why the constrained maximum uses the positive sign.
Differentiate the Lagrangian, including the constraint
A linear constraint has zero second derivatives, but a curved one contributes to curvature. For on ,
At with , and the diagonal derivatives are −1. The determinant is . At with , it is . Using the objective's derivatives alone drops the constraint's curvature. The resulting test is not the bordered-Hessian test for this problem.
Zero determinant can occur at a genuine optimum. For on , the origin has multiplier zero and all second derivatives of the Lagrangian vanish there, so . Substitution gives , proving a global minimum. For on the same line, the test is still zero but the origin is a global maximum. Higher-order behavior, invisible to this second-derivative test, settles these cases.
Establish a global result
For the multiplier found, a Lagrangian that is concave in the choice variables makes its stationary point a global maximum on the constraint. A convex Lagrangian gives a global minimum. On feasible points , so the Lagrangian equals the objective, which transfers this comparison to the constrained problem.
With a linear constraint, the Lagrangian and objective have the same curvature. Thus convex gives a global minimum at on the whole line. The product is neither concave nor convex on the plane, but substituting its linear constraint gives , a concave one-variable function. This proves its candidate is a global maximum.
A complete value comparison on a closed, bounded feasible set is another route to global extremes. The unconstrained Hessian of the objective answers a different question: it allows movements that may violate the constraint. Use curvature along feasible choices or an appropriate constrained test.
Key Takeaways
- The bordered Hessian uses second derivatives of the Lagrangian.
- For two variables and one regular equality: gives a local maximum and a local minimum.
- If , use another method.
- A nonlinear constraint contributes terms such as .
- Concavity or convexity of the Lagrangian at the fixed multiplier gives a global conclusion.
- A complete candidate comparison on a closed, bounded set finds global extremes.
4Read economic choices and shadow prices
A multiplier connects an optimal choice with the value of changing a restriction. Its units and sign tell you how to read that change for profit, utility, or production cost. Consumer and firm problems then use the same marginal balance in different roles: a household allocates income across goods, while a firm allocates spending across inputs. Utility scales and input prices affect how these results are interpreted.
4.1 What one more unit is worth
An optimum describes the best choice at the current resource level. Its multiplier also describes how the best attainable value changes when that level changes. This gives a decision maker a useful value for a small increase in capacity, income or an output requirement.
Differentiate the optimal value
Write for the optimized objective as a function of the constraint constant. With , the envelope theorem gives
when the optimum changes smoothly. The multiplier is a rate of change, not the optimized value itself. A larger budget gives more room to choose; a larger required output asks the firm to produce more. Both changes raise , but they have different meanings.
To see why the multiplier appears, follow the optimal quantities as the right-hand side changes. Differentiating the constraint gives . The objective changes at rate . Replacing by turns that rate into . This calculation includes the firm's or consumer's reoptimization; it does not keep the old quantities fixed.
For on , the optimum is , giving and . At the value is 25 and the multiplier 5. Raising to 11 gives the estimate ; the exact value is 30.25. The approximation uses the slope at the original optimum, while that slope itself changes with .
A decrease uses the same formula with a negative change. In the product example, reducing from 10 to 9 gives and an estimated change of , so the predicted value is 20. The exact value is . The multiplier is positive in both calculations; the sign of the resource change determines whether the estimate rises or falls.
Value an extra machine hour
A firm's profit in dollars is with machine hours. The conditions and give . Thus , and , with profit $1,100.
The shadow price is $20 per machine hour: a small increase in available hours raises optimal profit by about this amount per hour. With 31 hours, the exact optimum is and profit $1,119.50. For a small addition, an hourly rental below the shadow price is worthwhile after accounting for that rental cost.
Keep the units and the sign
The multiplier's units are objective units divided by constraint units. A consumer's multiplier is utility per dollar. A cost-minimizing firm's multiplier is dollars per unit of required output. Only a money-valued objective makes the shadow price a dollar willingness to pay.
Measuring the same machine capacity in minutes multiplies the right-hand side by 60. Its multiplier becomes dollar per minute; the optimal production plan is unchanged.
A positive multiplier means increasing raises the optimized value. A negative one means it lowers the value. If the firm must use exactly 60 hours, its optimum is , profit $1,250, and . Extra compulsory hours move it farther from its unconstrained profit peak. A zero multiplier means no first-order change at the current point, not that every larger change has no effect.
Before reading the sign, check the Lagrangian. The convention produces the opposite multiplier. For large changes, solve again or use the full value function; a single marginal estimate need not remain accurate.
Key Takeaways
- With , the multiplier is for a smoothly changing optimum.
- For a small change, use .
- The multiplier has objective units per constraint unit.
- A shadow price is a dollar willingness to pay only for a money-valued objective.
- Check the sign convention and re-solve for large changes.
4.2 Choose a utility-maximizing bundle
A consumer chooses quantities to obtain the greatest utility within income. With positive prices and preferences that improve as either good increases, all income is spent. An interior solution balances what the final dollar contributes to each good.
Equalize marginal utility per dollar
Maximize with . The conditions are and , along with the budget. Here and . Dividing by the prices gives
If a dollar moved from good to good adds more utility than it removes, the bundle can improve. At an interior optimum that gain disappears. Dividing the two conditions also gives , the tangency condition. If a quantity reaches zero, the equal-per-dollar condition may be replaced by a corner comparison.
Derive Cobb–Douglas demands
For with , the marginal-utility ratio is . Setting it equal to the price ratio gives
Combine this spending ratio with :
For the algebra, let spending on be . Tangency makes spending on equal to . The budget says , hence . The remaining goes to . Dividing each spending amount by its own price gives the demand formulas. This order keeps the distinction between dollars allocated and units bought visible.
The shares are the exponents divided by their sum. For , they are and . The raw exponents 2 and 1 are not budget shares.
Apply the shares
Let , with prices $2 and $4 and income $120. Spending one third on buys units. Spending two thirds on buys . The budget is met and utility is 20.
At this bundle , so utility unit per dollar. At these fixed prices the indirect utility, or optimized utility as a function of income, is . Its derivative is the marginal utility of income, .
If the price of rises from $2 to $4, the consumer still spends $40 on it and buys only 10 units. Spending on stays $80, so its quantity stays 20. Fixed spending shares do not mean fixed quantities.
Distinguish preferences from the utility scale
Utility is ordinal: it ranks bundles. An increasing transformation preserves that ranking. Taking logarithms gives and the same demands. Its conditions at give , however, because the numerical utility scale changed.
Using the log objective, the first condition gives and the second gives . Thus and . The budget becomes , recovering and both quantities 20. The transformation simplifies the derivatives but requires positive quantities, which the Cobb–Douglas optimum supplies.
The bundle remains optimal while the multiplier's size changes. Interpret utility multipliers in their stated utility units. For positive income, Cobb–Douglas utility is positive at bundles with both goods and zero at either endpoint, so its optimum buys some of both goods.
Key Takeaways
- At an interior optimum, marginal utility per dollar is equal across goods.
- Consumer tangency uses .
- Cobb–Douglas spending shares are and .
- The utility multiplier measures marginal utility of income.
- An increasing utility transformation preserves demands but can change the multiplier.
- Fixed spending shares allow quantities to change when prices change.
4.3 Find the cheapest input mix
A firm that must meet an output requirement chooses the least expensive combination of inputs. Producing nothing may be cheap, but it is not feasible. The requirement stays in the problem throughout the calculation.
Match the input trade-off to prices
Let denote labor, capital, the wage, the rental rate, and output. To produce , solve
The Lagrangian is . The conditions and give
The first ratio is the marginal rate of technical substitution, or MRTS. The second equation says each final dollar spent adds the same output. The two statements express the same interior input balance.
With positive marginal products, if , moving a dollar from capital to labor raises output to first order at the same cost. The firm can then reduce inputs to return to its output target at lower cost. Equality of these ratios removes that opportunity for a small cost-saving adjustment at an interior optimum.
With labor on the horizontal axis, an isocost line has slope . The isoquant contains input mixes that meet the target. The lowest isocost line that reaches it gives the least cost, at a tangency for a smooth interior solution.
Solve a production example
Take , , and , with costs in dollars. The marginal-product ratio is , so . Thus .
The output constraint gives for positive inputs. Hence and . The cost is , or $1,600. The firm uses more units of the cheaper input; equal spending here does not mean equal input quantities.
You can also verify the minimum directly. The output target requires , so for . Cost becomes . Its derivative is , which vanishes at . Its second derivative is positive on the whole positive domain. This gives a global minimum and confirms the tangency calculation on the curved production requirement.
Interpret the multiplier as marginal cost
At the solution, . Therefore dollars per unit of output. This is marginal cost, the rate at which minimized cost rises with the required output.
For any positive target at these prices, the same relation gives and . Thus . Producing 101 units costs $1,616. Average cost and marginal cost happen to be equal in this example; they are different concepts and need not coincide for other production functions.
Read the dual problem and a price change
Maximizing with budget gives the same mix . The objective and constraint have exchanged roles. The output-maximization multiplier is unit of output per dollar, reciprocal to marginal cost at this corresponding solution.
If the wage rises to $16 while capital still costs $16, tangency requires . To produce 100 units, choose , at cost $3,200. Labor falls from 200 to 100 units and capital rises from 50 to 100. This is substitution toward capital as labor becomes more expensive.
Key Takeaways
- Keep the required output as a constraint when minimizing cost.
- At a smooth interior cost minimum, .
- The multiplier measures marginal cost in dollars per output unit.
- Output maximization at the corresponding budget gives the same input mix.
- Input-price changes alter the cost-minimizing mix.
- Average cost and marginal cost are different measures even when their values coincide.
5Handle more restrictions and corners
More variables call for more equations, and each independent equality gets its own multiplier. Inequality limits add a new decision: whether the available resource is actually used up. Nonnegative quantities also create endpoints where an interior tangency may fail to describe the best choice. These extensions keep the original method useful while making feasibility, independence, and candidate comparisons more important.
5.1 One multiplier for each restriction
The same method works with more choice variables. Each independent equality has its own multiplier, because each right-hand side can have a different effect on the optimized value. Keep every constraint as an equation in the final system.
Count equations and unknowns
With choice variables and equality constraints , write
Differentiating with respect to each choice variable and each multiplier gives equations for unknowns. In vector form,
A single multiplier cannot generally represent the marginal values of two different resources, such as money and time.
Three variables, one constraint
Minimize with . The conditions are , and . Thus
Substitution into the plane gives , so . The point is and the objective value is 14. This is the point of the plane nearest the origin. The convex objective and linear constraint make it a global minimum.
Three variables, two constraints
Now minimize the same objective with and . Use
The variable conditions are , and . Subtracting the first two gives . Adding the quantities gives , so . Hence and the minimum is again 14. Check both original equations.
For right-hand sides , the optimized value is . Its partial derivatives are and . They equal 4 and 2 at the current constraints, matching the multipliers. Each estimate holds the other right-hand side fixed.
For a small increase of 0.1 in the first right-hand side with the second fixed, the multiplier predicts an increase of in the minimized value. A 0.1 increase in the second instead predicts . If both change, add their first-order contributions. The units of the two multipliers can differ when the constraints measure different resources; combine value changes, not the raw resource amounts.
Check independence and feasibility
The constraint gradients must be linearly independent at the optimum. For the two constraints above, and are not multiples, so they impose two distinct restrictions.
By contrast, and describe the same plane. The second adds no restriction. Replacing its right-hand side by 10 makes the equations inconsistent and the feasible set empty. Check these relationships before solving a larger system. With as many independent equations as variables, feasible choices are usually isolated points; any choice among them comes from comparing objective values.
Key Takeaways
- Use one multiplier per independent equality constraint.
- With variables and constraints, write first-order equations.
- Each multiplier measures the effect of changing its own right-hand side while the others stay fixed.
- Constraint gradients must be linearly independent.
- Repeated constraints add no restriction; contradictory constraints leave no feasible point.
5.2 Check whether a limit is used up
An “at most” resource limit allows unused capacity. At the optimum it is binding if the limit is reached and slack if some remains. Checking this distinction prevents an equality calculation from forcing a firm to use capacity that lowers profit.
Start with the unconstrained optimum
For a concave objective to maximize and one linear limit , first find the unconstrained maximum. If it is feasible, keep it and set . If it is infeasible, solve on the boundary and check the nonnegative multiplier. Include any quantity restrictions when checking feasibility.
For , the unconstrained conditions give . It uses 50 hours when .
With , the peak is infeasible. On the boundary the conditions give , hence and . Profit is $1,100, and the resource is binding.
With , the peak is feasible. Choose , earn $1,300, and leave 10 hours unused. Forcing instead would give , profit $1,250 and . The equality solution asks the firm to use hours it would prefer to leave idle.
Read the sign and complementary slackness
For maximization with and , the conditions include
The last condition is complementary slackness. Positive unused capacity requires zero multiplier. A positive multiplier requires zero unused capacity. A constraint can also be binding with multiplier zero: setting the firm's capacity to exactly 50 hours puts the unconstrained peak on the boundary.
Increasing an upper resource limit expands the feasible set. The best profit cannot fall, which explains the nonnegative shadow price. A negative equality multiplier is therefore inconsistent with a solution that binds this upper limit.
Apply the matching minimization case
For a convex objective to minimize with a linear lower requirement , the same sign convention also uses . Keep a feasible unconstrained minimum with zero multiplier, or solve on if the minimum is infeasible. When producing more always costs more, a firm asked for at least units produces exactly ; the multiplier is marginal cost.
For example, minimize with . The free minimum at the origin fails the requirement, so solve on . The equations and give , minimum value 32 and . Increasing the required total raises the least attainable cost. The nonnegative sign here describes a higher minimum, while in a profit maximum it describes a higher maximum.
The two-case shortcut depends on the curvature of the objective and the linear constraint. With several peaks, an infeasible highest peak does not rule out another feasible interior peak. For such an objective, find feasible interior stationary points, add boundary candidates, and compare their values.
Key Takeaways
- Check the unconstrained optimum before replacing an inequality by equality.
- A slack resource has zero shadow price.
- For concave maximization with a linear upper limit, a binding solution has in the chosen convention.
- Complementary slackness is ; binding and zero multiplier can occur together.
- For convex minimization with a linear lower requirement, the same convention uses a nonnegative multiplier.
- For objectives with several peaks, compare feasible interior and boundary candidates.
5.3 Find a best choice at a corner
Economic quantities must be nonnegative. A tangency calculation that produces a negative quantity is not an admissible choice. On a budget segment the optimum can sit at a corner, where all spending goes to one good.
Test the interior answer
For with prices $1 and $2, the budget is . At an interior optimum,
Thus and . At income $40, the budget gives . Both quantities are positive, so the bundle is an interior solution.
At income $10, the same calculation gives . This violates nonnegativity. The interior equations have found a point outside the feasible segment; rounding or replacing only the negative quantity with zero would not repair the budget.
Compare the endpoints
With income $10, the endpoints are and . Their utilities are and 5. The best choice is . There is no feasible interior stationary point, and utility is continuous on this closed segment, so the endpoint comparison completes the search.
At this corner, marginal utility per dollar for is . For it is . Shifting money from to would help, but spending on is already zero. The unbought good gives no higher marginal utility per dollar than the bought good.
Equality can hold at a corner. With income $16 the optimal bundle is , and both marginal-utility-per-dollar ratios equal . A zero quantity defines a corner; unequal ratios are not required.
Compare perfect substitutes
For , with prices $3 and $1 and income $12, marginal utility per dollar is for and 1 for at every bundle. All spending goes to : gives utility 12, while gives 8. The interior equations would require both and , which is impossible.
If the price of falls to $2, the two ratios become equal. Now equals spending along the budget . Every point on the segment is optimal, including both endpoints and interior bundles. Equal ratios need not identify a unique choice.
Recognize when corners are ruled out
For Cobb–Douglas utility with positive exponents and positive income, either zero quantity gives utility zero. A feasible bundle with both quantities positive gives positive utility, so no endpoint is optimal. In general, solve the interior equations, check the domain, and compare endpoints when the interior solution is absent or infeasible. Where derivatives fail to exist, inspect those feasible points too.
Key Takeaways
- Check every proposed quantity for nonnegativity.
- Compare endpoints when a budget segment has no feasible interior stationary point.
- A corner has a zero quantity; marginal utility per dollar need not be equal across goods.
- Perfect substitutes favor the good with greater utility per dollar; a tie makes every budget bundle optimal.
- Positive-exponent Cobb–Douglas utility with positive income has an interior optimum.
Lagrange Multipliers examples
1From a resource limit to a one-variable optimum
9 steps
- 1IntroductionChoose the aim and the available choices
A constrained choice has two jobs: improve an objective and stay inside a feasible set. A consumer may maximize utility, while a firm may minimize cost. The budget or required output restricts the choices.
When an equality is easy to rearrange, substitute it into the objective. This turns the calculation into one variable, but the original domain still controls which answers can be used.
- 2ExampleWrite the budget
A student has $60 for coffee at $3 per cup and sandwiches at $6 each. Let and be the quantities, with utility .
The objective measures utility. Each term of the constraint measures dollars. The endpoints and define a budget segment; negative purchases are not available.
- 3ConnectionKeep a production target separate from cost
A firm pays $4 per labor unit and $16 per capital unit, and produces . Requiring 100 output units gives
Cost is the objective and output is the constraint. Removing the production requirement would make producing nothing look cheapest, but that would fail the firm's actual task.
- 4ChallengeBuild a new model
A firm earns dollars. Each unit uses 3 or 2 machine hours, respectively, and exactly 24 hours must be used. Both quantities are nonnegative. Write the model.
---reveal---
Maximize subject to and . The hours equation limits production; it is not the function to maximize. Each coefficient converts its output quantity into machine hours.
- 5ExampleEliminate a quantity
Return to coffee and sandwiches. Rearrange the budget and substitute into utility:
Nonnegativity gives . The upper limit follows because cannot be negative.
- 6ExampleFind and classify the best bundle
The reduced utility has derivatives
Setting the first derivative to zero gives . Recovering the other quantity gives and utility 50. Negative second derivative confirms a maximum; both endpoints have utility zero.
- 7TipKeep a nonlinear domain
On the circle , the objective becomes . The remaining variable is restricted to .
The largest value is 2 at , giving both and . The smallest is 1 at . Ignoring the interval would turn this bounded-circle problem into an unrelated problem on the entire real line.
- 8ChallengeSolve a choice and check its interval
Minimize subject to and nonnegative quantities. Find the bundle and minimum value.
---reveal---
Substitution gives on . Then gives and . Since , the minimum is . The bundle is feasible and improves on both endpoints.
- 9RecapComplete the substitution answer
A complete answer states the choice variables, the feasible domain, the best quantities and the objective value. The constraint gives the domain as well as the expression to substitute.
Use a derivative to find candidates, then use curvature or a value comparison to classify them. If a curve or interval has endpoints, include them; if a nonlinear substitution leaves two signs possible, recover both. Recover the eliminated variable before reporting the optimal bundle.
2From touching curves to proportional gradients
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionRead the objective along the constraint
- 2ExampleFind the last reachable level
- 3ExplanationCompare slopes
- 4ConnectionUse the price trade-off
- 5ChallengeTest a slope claim
- 6Key InsightReplace slopes with normal vectors
- 7ExampleCheck one scalar in both components
- 8TipSeparate the two zero-gradient cases
- 9ChallengeConnect stationarity and geometry
- 10RecapRead the regularity check correctly
3Solve every branch and classify the result
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFind candidates, then classify them
- 2ExplanationBuild the Lagrangian
- 3ExampleSolve the quantity relation
- 4ChallengeApply the equations to a minimum
- 5ExampleFactor the nonlinear system
- 6ExampleRecover both coordinate signs
- 7Key InsightJustify the global comparison
- 8ChallengeFind the branch division would lose
- 9ExplanationUse a bordered determinant
- 10ExampleInclude the constraint curvature
- 11ConnectionChoose a global argument
- 12ChallengeClassify and finish the result
- 13TipCheck the convention before using the multiplier
- 14RecapMake the candidate search complete
4Use shadow prices in consumer and firm choices
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAttach an economic meaning to the result
- 2ExplanationRead the value-function derivative
- 3ExampleValue a small capacity increase
- 4ChallengeKeep the units in a prediction
- 5Key InsightA larger equality can reduce value
- 6ExplanationBalance a consumer’s final dollar
- 7ExplanationDerive the spending shares
- 8ExampleUse shares and read the multiplier
- 9ChallengePredict demand after a change
- 10Key InsightA new utility scale preserves the choice
- 11ExplanationSet a firm’s target and input prices
- 12ExampleSolve the input mix
- 13ConnectionRead cost and its dual
- 14ChallengeApply the firm’s trade-off
- 15ChallengeCombine cost choice with a capacity value
- 16RecapInterpret the derivative in its own units
5Handle several constraints, slack capacity, and corners
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk which restrictions actually matter
- 2ExplanationGive every equality its own multiplier
- 3ExampleSolve a three-variable problem
- 4ExampleSolve with two restrictions
- 5TipCount independent restrictions
- 6ChallengeUse both constraint values
- 7ExplanationCheck the free peak first
- 8ExampleCompare tight and spare capacity
- 9Key InsightPair slack with a zero price
- 10ChallengeDecide the case and solve it
- 11ConnectionMatch the lower-requirement case
- 12ExampleTest the interior utility answer
- 13ExampleCompare the available endpoints
- 14Key InsightA corner can have equal ratios
- 15ExamplePrice perfect substitutes
- 16ChallengeFind the low-income solution
- 17ChallengeCombine a free optimum with a binding test
- 18RecapFinish with feasibility and a comparison
Lagrange Multipliers practice questions
Set 1: Build the model and find the best choice10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Apply the method to budgets and resources10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Check feasibility, curvature, and corner cases10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Combine the conditions and interpret the result10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
B
Binding constraint
Bordered Hessian
C
Candidate point
Choice variable
Cobb–Douglas utility
Complementary slackness
Concave objective
Constrained optimum
Constraint
Constraint-specific multiplier
Convex objective
Corner solution
Critical point
D
Demand function
Dual choice problems
E
Envelope theorem
Extreme value theorem
F
Feasible interval
Feasible set
First-order conditions
G
Global optimum
Gradient
I
Inconsistent constraints
Independent constraints
Indifference curve
Interior solution
Isocost line
Isoquant
L
Lagrange multiplier
Lagrangian
Level curve
Local optimum
M
Marginal approximation
Marginal cost
Marginal product
Marginal rate of substitution
Marginal rate of technical substitution
Marginal utility
Marginal utility of income
Multiplier units
O
Objective function
Optimal value function
Ordinal utility
P
Perfect substitutes
Q
Quasilinear utility
R
Reduced objective
Redundant constraint
Regular constraint point
S
Shadow price
Sign convention
Singular constraint point
Slack constraint
Solution branch
Substitution method
T
Tangency
U
Unbounded feasible set
Unconstrained optimum
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.