MATH 250 · Mathematics for Economics II

The Envelope Theorem

When you choose the best option, a small change in the setting moves your best payoff by just the direct effect.

Key takeaways

  • A value function records the best payoff you can reach as a function of the settings (the parameters) of the problem.
  • The envelope theorem says the slope of the value function equals the partial derivative of the objective with respect to the parameter, holding the choice fixed at its best value.
  • You never need to work out how the best choice moves. Its movement is a second-order effect that drops out of the slope.
  • In a constrained problem, the Lagrange multiplier is the slope of the value function with respect to the constraint, so it prices the constraint.
  • The shortcut needs the choice to be optimal. At a choice that is not best, the indirect effect does not vanish.

Picture Maya, who runs a smoothie cart. Every morning she picks how many smoothies to blend, and she picks the number that earns her the most profit. One day the price of a smoothie rises by a dime. She wants to know how much richer she will be. The obvious answer is a mess. A higher price changes her profit directly. It also tempts her to blend more, and blending more changes her costs, which changes the best number again, and so on.

Here is the surprise. Maya can skip almost all of that. Because she was already choosing the best quantity, the small shift in her choice adds nothing to the first-order change in her profit. She only needs the direct effect: how many smoothies she was already selling. That shortcut is called the envelope theorem, and it is one of the most useful tricks in economics. This lesson shows why it works, how to use it, and when it fails.

Value functions: the best you can do

Start with a problem you have seen before. A decision maker picks a variable x to make an objective f(x, a) as large as possible. The letter a is a parameter: something the decision maker takes as given, like a price, a wage or a tax rate. For each value of a there is a best choice, written x*(a). Plug it back in and you get the best payoff the setting allows:

V(a) = f(x*(a), a)

V is called the value function. It answers "how well can I do if the world looks like a?" Economists meet it everywhere. The profit function is the value function of a firm's problem. The indirect utility function, which tells you the best satisfaction a budget buys, is the value function of a consumer's problem.

Our running example gives Maya a profit of

π(q, p) = p × q − q²/2

where q is the number of smoothies, p is the price, and q²/2 is her cost. The cost grows faster than q because the blender and her arms get tired. Choosing q to maximize π means setting the derivative with respect to q to zero (the first-order condition, covered in Finding Maximums and Minimums):

p − q = 0, so q*(p) = p

At p = 6 she blends 6 smoothies. Her best profit is 6 × 6 − 36/2 = 36 − 18 = 18. In general V(p) = p × p − p²/2 = p²/2. Check: 6²/2 = 18. Good.

The slope of the best payoff

Now ask the question from the opening. If p rises from 6 to 7, how much does V change? We have the formula, so we can compute it the long way: V(7) = 49/2 = 24.5. The gain is 24.5 − 18 = 6.5.

Take the derivative instead. V′(p) = p, so V′(6) = 6. That is exactly the number of smoothies Maya sells at p = 6. The slope at 6 is 6, and the gain from 6 to 7 (6.5) is the average slope between 6 and 7, which is 6.5. Everything lines up.

Why did the derivative come out equal to q*? Look at the profit function again. The direct effect of the price on profit, holding q fixed, is the partial derivative: ∂π/∂p = q. That is the number of smoothies sold. The envelope theorem says that this alone is the answer: V′(p) = ∂π/∂p evaluated at q = q*(p). Maya's dime raise is worth about a dime for each smoothie she was already going to sell.

The envelope theorem in one line
dV/da = ∂f/∂a at x = x*(a) dV/da = Slope of the best payoff How fast the best achievable payoff changes as the parameter a changes ∂f/∂a = Direct effect only The partial derivative of the objective with respect to a x = x*(a) = The best choice Evaluated with the choice held at its optimal value dV/da = ∂f/∂a at x = x*(a) dV/da = Slope of the best payoff How fast the best achievable payoff changes as the parameter a changes ∂f/∂a = Direct effect only The partial derivative of the objective with respect to a x = x*(a) = The best choice Evaluated with the choice held at its optimal value

Why the indirect effect disappears

The full chain rule says a change in a moves V two ways. There is the direct path through a in f. There is also an indirect path, because a changes the best choice x*, and x* feeds into f. In symbols (using the ideas from Total Differentials and the Chain Rule):

dV/da = ∂f/∂a + (∂f/∂x) × (dx*/da)

Now remember what "best" means. At the optimum, the first-order condition says ∂f/∂x = 0. The second term is therefore zero times something, whatever dx*/da turns out to be. Only the direct effect is left.

The intuition is a hilltop. Standing exactly at the top, a tiny step in any direction barely changes your height, because the ground is flat there. When the parameter moves the top a little, you shift your feet to the new top. The shift itself is nearly free, since you were on flat ground. What you do gain or lose comes from the hill itself changing height, which is the direct effect.

The name comes from geometry. For each fixed choice q, plot profit against the price. Each choice gives a straight line, here 6p − 18 for q = 6. The value function is the upper edge of all those lines, because for each price you take the best line. That upper edge is an envelope, and it touches each line at the point where that line's choice is optimal. At the touching point the two have the same slope.

Value function V(p) and the line for a fixed quantity of 6
Profit ($) 6 18 V(p) = p²/2 Profit with q = 6 Touch point Line stays below V Price p ($) Profit ($) 6 18 V(p) = p²/2 Profit with q = 6 Touch point Line stays below V Price p ($)

The dashed line is what Maya would earn if she locked in 6 smoothies and the price moved. It is tangent to V at p = 6 and sits under it everywhere else. Locking in a quantity can never beat choosing freely, which is why the line stays below the curve.

A worked example, step by step

Let us carry the shortcut through with new numbers. Suppose Maya's price is p = 6 and she is considering a move to p = 7.

  1. Solve for the best choice at p = 6: q* = 6, profit 18.
  2. Use the envelope theorem for the slope: V′(6) = ∂π/∂p = q = 6.
  3. Estimate the gain: price up by 1, so the profit rises by about 6 × 1 = 6.
  4. Compare with the exact gain: V(7) − V(6) = 24.5 − 18 = 6.5.

The estimate 6 is a first-order approximation. It misses 0.5, and that missing piece has a clear meaning. It is the extra profit Maya earns by adjusting her quantity. Suppose she kept blending 6 smoothies at the new price. Profit would be 7 × 6 − 18 = 24. If she resets q to the new best, 7, she earns 24.5. The reset is worth exactly 0.5.

From profit 18 to profit 24.5 when the price rises by $1
Profit at p = 6 $18 Direct effect (q fixed at 6) +$6 Adjusting q to 7 +$0.50 Profit at p = 7 $24.50 Profit at p = 6 $18 Direct effect (q fixed at 6) +$6 Adjusting q to 7 +$0.50 Profit at p = 7 $24.50

Example with made-up numbers.

Notice how lopsided the bridge is. The direct effect carries nearly all the gain. The adjustment is small, and it shrinks faster than the price change does: for a price move of Δp, the adjustment gain here is (Δp)²/2. For a dime, that is half a cent. The envelope theorem is the statement that, in the limit of tiny changes, the adjustment disappears.

With a constraint: the multiplier as a price

Most economic problems have a budget. The envelope theorem keeps working, and it gives a famous result about the Lagrange multiplier from Constrained Optimization and Lagrange Multipliers.

Suppose a student, Dev, maximizes utility U = x × y with each good costing $1 and income m. The Lagrangian is L = x × y + λ(m − x − y). The first-order conditions are y = λ, x = λ, and x + y = m. So x* = y* = m/2, and the value function is V(m) = (m/2)² = m²/4.

The envelope theorem says V′(m) = ∂L/∂m = λ. From the first-order conditions λ = y = m/2. Check by differentiating V directly: V′(m) = 2m/4 = m/2. They match. For m = 10, λ = 5, and V(10) = 25. At m = 11, V = 30.25, a gain of 5.25, close to λ = 5.

So the multiplier answers a precise question: how much better off would Dev be with one more dollar? That is why economists call it the shadow price of the constraint, a price no one charges but that the problem itself implies. Later, Inequality Constraints and Kuhn-Tucker Conditions shows that a constraint which does not bind has a shadow price of zero, which fits the same logic.

Where economists use it

The theorem turns hard derivatives into easy ones.

  • Hotelling's lemma. The slope of the profit function with respect to the output price is the firm's supply. We found exactly that: V′(p) = q* = p.
  • Roy's identity and Shephard's lemma give demand curves as derivatives of the indirect utility function and the expenditure function. Both are envelope results.
  • Comparative statics. Following the approach of Implicit Differentiation and Comparative Statics, you usually need the derivative of the choice x*. Often you only want the effect on the payoff, and the envelope theorem hands you that without solving for x* at all.
  • Welfare questions. How much does a tax of a few cents cost a firm? The direct effect gives a quick first estimate.

A common mistake: using it away from the optimum

The shortcut depends on one fact: the first-order condition holds. If the choice is not optimal, the term (∂f/∂x) × (dx/da) is not zero, and the direct effect alone is wrong.

Suppose Maya is stuck with a contract that makes her blend 5 smoothies, whatever the price. At p = 6 her profit is 30 − 12.5 = 17.5, below the best possible 18. Her choice is not optimal, so ∂π/∂q = p − q = 1, not zero. Now let the price rise and let her adjust a little. The choice would move, and that movement is worth something at the first order, because she starts on a slope rather than on flat ground. The direct effect alone (q = 5) understates how much she could gain by adjusting. The envelope result describes V, the best payoff, and only V.

A second slip is to forget which things are parameters. If the thing that changes is itself something you choose, it is not a parameter, and the derivative follows the ordinary rules. Ask first: is this a setting I take as given, or a decision I make?

A third slip is to expect the shortcut to give an exact change for a big jump. It gives the slope. The exact change over a large move also includes the adjustment gains, as the 0.5 above shows. Think of the theorem as exact for tiny changes and as a good estimate for small ones.

Words to know

Parameter a setting of the problem, such as a price or a tax rate, that the decision maker takes as given.

Value function the best payoff reachable, written as a function of the parameters.

Envelope theorem the slope of the value function equals the partial derivative of the objective with respect to the parameter, at the best choice.

Direct effect the change in the objective caused by the parameter alone, holding the choice fixed.

Indirect effect the change that comes through the choice moving; it has no first-order effect at an optimum.

Shadow price the extra best payoff gained from one more unit of a constraint, equal to the Lagrange multiplier.

Hotelling's lemma the slope of the profit function with respect to price is the firm's supply.

Check yourself

  1. In your own words, what is a value function, and what does V(a) measure?
  2. A firm has profit π(q, p) = p × q − q²/2. Find the best quantity and the value function V(p) when p = 10.
  3. Use the envelope theorem to find V′(10) for that firm, then check it by differentiating V(p) = p²/2.
  4. Explain why the indirect effect of a parameter on the choice drops out at the optimum.
  5. A consumer with utility x × y, both prices $1 and income m = 20, has multiplier λ = m/2. How much extra utility does one more dollar buy, approximately?
  6. Explain why the envelope theorem would give a wrong answer for a firm that always blends a fixed 5 smoothies.
Show the answers
  1. A value function gives the best payoff the decision maker can reach for each setting a of the parameters, V(a) = f(x*(a), a).
  2. The first-order condition p − q = 0 gives q* = 10. Profit is 10 × 10 − 100/2 = 50, and V(p) = p²/2 gives 100/2 = 50.
  3. The direct effect is ∂π/∂p = q, which at the optimum is 10. Differentiating V = p²/2 gives p = 10. They match.
  4. The chain rule has a term (∂f/∂x) × (dx*/da). At the optimum ∂f/∂x = 0, so this term is zero no matter how the choice moves.
  5. The shadow price is λ = 20/2 = 10 utility units per dollar, so about 10 extra units of utility (an exact check: V = 100, V at 21 is 110.25).
  6. A fixed quantity is not an optimal choice, so ∂π/∂q is not zero. The payoff is then not a value function, and the direct effect alone is not the whole story.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Optimization

  1. Unconstrained Optimization With Several VariablesFind the best mix of two or more choices by setting every partial derivative to zero, then reading the shape of the hill.11 min
  2. Second-Order Conditions, Concavity and ConvexitySort peaks from valleys and saddles with a short test on the second partial derivatives, and learn when a flat spot is a global best.11 min
  3. Constrained Optimization and Lagrange MultipliersChoose the best basket you can afford with a budget line, and learn what the multiplier says about an extra dollar.10 min
  4. Inequality Constraints and Kuhn-Tucker ConditionsHandle limits that may or may not bite, such as "spend at most this much" or "buy no less than zero", with complementary slackness.11 min
  5. The Envelope TheoremWhen you choose the best option, a small change in the setting moves your best payoff by just the direct effect.12 min

In the news