Este livro ainda não está disponível em Português. Edições: English.
University Economics — Year 1 · Graduação — Ano 1
2Optimisation under Constraint
A student in Brenmoor has sixty hours a week to split between paid work in a café and study. Each hour of work pays dalens. A grant of dalens a week comes with a rule: once the student earns more than dalens a week, the grant shrinks by half a dalen for each further dalen earned, until nothing is left. How many hours should the student work? The question has the shape of almost every problem in the microeconomics of this book: a person or a firm wants as much as possible of something, and a constraint — hours, income, land, a budget — stops them from having it all. This chapter gives the method that solves such problems, and the number it produces along the way: the value of relaxing the constraint by one unit.
Where an hour of work is paid more, people work fewer hours. The correlation between hours and the logarithm of pay per hour across the 111 countries is , and the fitted line falls by 162 hours a year for each unit of the logarithm, about 1.6 hours a year less for each per cent more pay. In the tenth of countries with the lowest pay (a median of $ an hour) the median worker puts in 2064 hours a year; in the tenth with the highest ($) the median is 1504 hours. In the United States, at $ an hour, it is 1797. A higher wage makes an hour of leisure more expensive, which should make people work more, and it makes them richer, which should make them take more leisure. The chart says that across countries the second force wins, or that something else differs between rich and poor countries. To say which, one must first know how a person chooses hours under a constraint. That is the subject of this chapter, and Chapter 8 returns to the chart with the answer.
You already know
For a function , the partial derivative is the derivative in with held fixed. The gradient points in the direction of steepest increase. A level curve is the set of points where takes one value. A critical point, where , is a candidate for an unconstrained maximum.
2.1 Functions of two variables
An objective in economics usually depends on two or more quantities: the amounts of two goods, of two inputs, of work and leisure. Its level curves — indifference curves for a consumer, isoquants for a firm — carry most of the reasoning, and the slope of a level curve is the number used most.
Proposition 2.1 (Slope of a level curve)
Let have continuous partial derivatives, and let the level curve be, near a point where , the graph of a differentiable function . Its slope there is
Proof. Along the curve, for every . Differentiate with respect to by the chain rule: . Divide by . ∎
That the curve is the graph of such a function whenever is the implicit function theorem of the mathematics volumes; it is admitted here. The proposition says that moving along a level curve, a small increase must be paid for with : the ratio of the partial derivatives is the rate at which the function lets one variable be traded for the other. For , and , so the slope of a level curve is . The gradient is perpendicular to the level curve, since it is perpendicular to the tangent vector : .
2.2 A maximum under one equality constraint
Definition 2.2 (Constrained maximum and minimum)
Let and be functions of and a number. A point with is a constrained maximum of under the constraint if for every with (in the region where the problem is posed). A constrained minimum reverses the inequality. The problem is written subject to .
The first method is substitution: solve the constraint for one variable and maximise a function of the other, with the calculus of one variable.
Example 2.3 (Substitution)
Maximise subject to , with . The constraint gives . Since the square root is increasing, maximising is maximising : at , and , so this is the maximum. Then and .
Substitution works when the constraint can be solved, and it hides the geometry. The geometry is this: at the best point on the constraint, the level curve of through that point cannot cross the constraint, for if it did, a step along the constraint would reach a higher level curve.
Definition 2.4 (Tangency condition)
For the problem of maximising subject to , the tangency condition at a point is that the level curve of and the constraint curve have the same slope there:
Proposition 2.5 (Tangency at an interior optimum)
Let and have continuous partial derivatives, let be a constrained maximum of subject to that is not at the edge of the region, and let and there. Then the tangency condition holds at .
Proof. Near the constraint is the graph of a function with (Proposition 2.1 applied to ). The function has a maximum at , an interior point, so . Divide by : . ∎
In Example 2.3, the slope of the level curve at is and the slope of the constraint is : tangency.
2.3 Lagrange’s method
The tangency condition and the constraint are two equations in two unknowns. Lagrange’s method writes them in a form that extends to many variables and many constraints, and that delivers one more number.
Definition 2.6 (Lagrangian)
For the problem subject to , the Lagrangian is the function of three variables
where the new variable is the Lagrange multiplier.
Theorem 2.7 (Lagrange conditions)
Let and have continuous partial derivatives on an open set, and let be a constrained maximum (or minimum) of subject to at which . Then there is a number such that is a critical point of :
The same holds with variables and constraints, one multiplier per constraint, when the gradients of the constraints are linearly independent.
Proof. Admitted at this level. ∎
Proposition 2.8 (Lagrange and tangency)
At a point where and , the Lagrange conditions hold for some if and only if the constraint and the tangency condition hold; then (the last when ).
Proof. If and , then and . Conversely, if , set : the second condition holds by construction, and gives the first. ∎
Method 2.9 (Solving a problem with Lagrange’s method)
- Write the Lagrangian .
- Set its three partial derivatives to zero.
- Eliminate by dividing the first two conditions: this gives the tangency condition, a relation between and .
- Substitute that relation into the constraint, solve, and recover from either of the first two conditions.
- Check that the point is a maximum: compare its value with the edges of the region (Section 2.5).
For Example 2.3: and . Dividing the second by the first, , so ; the constraint gives , , , and . The same point, found without solving the constraint, and a new number .
2.4 The multiplier as a shadow price
Definition 2.10 (Value function)
The value function of the problem subject to is the best attainable value as a function of the constraint’s level, , where is the solution for that .
Proposition 2.11 (The multiplier is the derivative of the value function)
If the solution and its multiplier satisfy the Lagrange conditions and , are differentiable in , then
Proof. Differentiate : . By the Lagrange conditions this is . The bracket is the derivative of , which equals for every , so the bracket is . ∎
Definition 2.12 (Shadow price)
The shadow price of a constraint is the value of its Lagrange multiplier at the optimum, : the increase in the best attainable value of the objective per unit by which the constraint is relaxed. Its unit is the unit of the objective divided by the unit of the constraint.
In the example, and , so and , the found above. Relaxing the constraint from 12 to 14 raises the value by , from to ; here the approximation is exact because is linear in . In general gives the first-order change, , as any derivative does.
The unit makes the multiplier economics. If is a firm’s profit in dalens and is hectares of land, is in dalens per hectare: the most the firm would pay to rent one more hectare, whatever the market rent happens to be. If is utility and is income, is utility per dalen, the marginal utility of income. If the constraint is a regulation — a cap on emissions, a quota — its shadow price is what the regulation costs the one who obeys it, at the margin. Chapter 3 extends the proposition to the derivative of a value function with respect to any parameter.
2.5 Corners and kinks
Quantities in economics cannot be negative, and many constraints are inequalities: a budget need not be spent, a field need not be fully planted.
Definition 2.13 (Binding constraint)
An inequality constraint is binding at a solution if it holds with equality there, , and slack if it holds strictly. A slack constraint has a shadow price of zero: relaxing it a little changes nothing.
Definition 2.14 (Interior and corner solutions)
A solution with every quantity strictly positive is an interior solution. A solution at which some quantity is zero because a non-negativity constraint binds is a corner solution.
At a corner the tangency condition need not hold, and usually does not. Take with the constraint and . Lagrange’s method gives and , so and . When this asks for a negative , which is not allowed. The solution is the corner , : every dalen goes to , because the last unit of is worth , more than a unit of . The rule at a corner is an inequality: the good that is not bought is worth less, at the margin, than its price in terms of the good that is bought.
The first-order conditions find candidates; they do not certify a maximum. A level curve can touch the constraint from the wrong side, as the level curves of touch a straight line: there the tangency point is the constrained minimum. A sufficient condition with two variables is that the level curves of are convex towards the origin — the upper level sets are convex — and the constraint is a straight line; the general test, with a bordered matrix of second derivatives, is in the Year 2 mathematics volume. In this book, objectives will be chosen so that their upper level sets are convex, and the edges are checked by hand.
Return to the student. With hours of work, weekly income is . Below hours each hour adds dalens. From there until the grant is gone, at , that is , each hour adds dalens. After that, dalens again. Income at the two kinks is dalens and dalens. Drawn against hours of study, , the constraint is a line with two kinks.
A kink where the reward for one more hour falls has a sharp prediction. At the first kink, where the grant starts to be withdrawn, pay per hour drops from dalens to dalens. Every student who would work past the kink at dalens an hour, but would not reach it at dalens, stops exactly there: students with different tastes end up at the same point. The model predicts bunching: more people exactly at such a kink than at nearby points. At the second kink, where the grant is exhausted and pay per hour rises back to dalens, the prediction is the opposite: nobody stops there.
Model — The constrained optimiser
Assumes. An agent knows its objective and its constraint, and chooses the point of the constraint with the highest value of the objective.
Predicts. At an interior optimum the agent’s rate of trade-off equals the constraint’s; a slack constraint has a shadow price of zero; a kink where the marginal reward falls attracts a bunch of agents with different tastes.
Tested. The fall of hours with pay across countries (correlation with log pay, 111 countries) is consistent with it but not a test: the model predicts no sign there. The test is bunching: American tax filers with self-employment income bunch at the first kink of the earned income tax credit (see the record box).
Breaks. When agents do not know the constraint: wage earners show no bunching at the same kink, and the response to the credit is larger where knowledge of its schedule is higher (Chetty, Friedman and Saez 2013); and when hours are set by the employer, not chosen.
On the record — Bunching at a kink
The American earned income tax credit pays low earners a credit that rises with earnings, then stays flat, then is withdrawn: its schedule has kinks. Pooling the tax returns of 1995 to 2004, Saez (2010) found clear bunching of reported earnings at the first kink, where the credit stops rising. The implied elasticity of reported earnings was 0.21 for filers with one child and 0.15 for those with two or more. The whole effect came from the self-employed, with elasticities of 1.1 and 0.8; filers with wage income only showed elasticities close to zero. At the threshold where income tax begins, bunching was clearest in the 1960s, with an elasticity around 0.2, and there was none at the higher kinks of the schedule. The prediction holds where the agent can adjust the number reported, and fails where hours are hard to adjust or the schedule is not known. The self-employed report their own earnings; a wage earner’s are reported by the employer.
Exercises
Exercise 2.1 ★
From the table behind the opening chart: in the tenth of countries with the lowest pay, the median pay is $ an hour and the median hours 2064; in the top tenth, $ and 1504.
- By what factor does pay differ, and by how many hours a year, and by what percentage, do hours differ?
- How many fewer hours does that make per week, over 48 working weeks?
- Is this the slope of one worker’s labour supply? Say why not in one sentence.
Solution
Solution of Exercise 2.1.
- Pay differs by a factor of . Hours differ by a year, which is fewer in the top tenth.
- hours a week fewer.
- No: each point is a different country, with its own taxes, its own mix of jobs and its own habits, not one worker facing two wages.
Exercise 2.2 ★
Maximise subject to , , by substitution. Check the tangency condition at your answer.
Solution
Solution of Exercise 2.2.
, so , with derivative at ; the second derivative is negative. Then and . Tangency: and .
Exercise 2.3 ★
Compute the slope of the level curve of through the point . Which level is it, and what is the equation of the curve?
Solution
Solution of Exercise 2.3.
and at , so the slope is . The level is , and the curve is , that is (whose derivative is indeed at ).
Exercise 2.4 ★
The solution of subject to , and is . Which constraints bind, and which have a shadow price of zero? What happens to the solution if the second constraint becomes ?
Solution
Solution of Exercise 2.4.
At , holds with equality: it binds. and : both are slack, with shadow prices of zero. With , the point is no longer allowed; the best point keeps as close as allowed to the old tangency, , and spends the rest on : . The solution is , with , and now two constraints bind.
Exercise 2.5 ★★
Maximise subject to with Lagrange’s method. Give , and as functions of , , , then evaluate them at , , .
Solution
Solution of Exercise 2.5.
. The conditions are and . Dividing, ; the constraint gives . So
At , , : , , .
Exercise 2.6 ★★
In Exercise 2.5, at , , :
- give the unit of and say in words what it measures;
- predict, with , the change in the maximum value if rises to 40;
- compute the exact change and explain the gap.
Solution
Solution of Exercise 2.6.
- Units of the objective per dalen: is the increase in the maximum value per extra dalen of , the marginal value of income.
- .
- at these prices, so . The prediction overshoots because falls as rises: is concave, and a derivative taken at overstates the average slope up to 40.
Exercise 2.7 ★★
Maximise subject to , . Show that Lagrange’s method gives an inadmissible point, find the solution, and compute the ratio of the marginal values of and there.
Solution
Solution of Exercise 2.7.
The conditions and give and : inadmissible. On the constraint, has for , so is largest at : the solution is the corner . There the marginal value of is and that of is 1: the ratio is 2, above the price ratio of 1, and the agent would like a negative if it could have one.
Exercise 2.8 ★★
For the student of the chapter:
- compute the hours at which the two kinks occur and the income there;
- compute what an hour of work adds to income on each of the three segments;
- compute weekly income at 20 hours and at 40 hours of work.
Solution
Solution of Exercise 2.8.
- The grant starts falling at , , where income is dalens. It is gone when , that is , , where income is dalens.
- dalens, then dalens, then dalens.
- At 20 hours: earnings dalens, grant dalens, income dalens. At 40 hours: earnings dalens, no grant, income dalens.
Exercise 2.9 ★★
The grant’s withdrawal rate rises from 0.5 to 0.75, the other rules unchanged. Predict, with reasons, the direction of the change in hours for three students: one who worked 5 hours, one who worked 20, and one who worked 40. Which of them could end up at a kink?
Solution
Solution of Exercise 2.9.
With the rate 0.75 the grant is gone at , that is , and the middle segment pays dalens an hour. Every point of the new constraint is on or below the old one, and the first segment and the points beyond 33.33 hours are unchanged. The student at 5 hours chose that point when better points were available; it is still available and the others are worse, so the student stays at 5 hours. The same argument keeps the student at 40 hours (income there is still dalens). The student at 20 hours sees the wage on the margin halve (substitution: fewer hours) and is poorer at 20 hours, dalens instead of dalens (income effect: more hours); the direction is not settled by the model alone, but a fall in hours down to the kink at 6.67 hours is the case the bunching evidence points to. Only that student can end up at a kink.
Exercise 2.10 ★★★
Let and be smooth, and let satisfy with , and .
- Show that if the gradients and are parallel at , the Lagrange conditions hold.
- Show that the Lagrange conditions hold if and only if the level curve of and the constraint have a common tangent line.
- Give an example where the Lagrange conditions hold at a constrained minimum, and draw it.
Solution
Solution of Exercise 2.10.
- , so “parallel” means for some number : that is , , and with the Lagrange conditions hold.
- The tangent lines at the point are perpendicular to and to ; they coincide if and only if the gradients are parallel, if and only if , which is Proposition 2.8.
- Minimise subject to : at , . The circles touch the line from the side of the origin; is the point of the line closest to the origin, a constrained minimum, and the Lagrange conditions do not tell it from a maximum.
Exercise 2.11 ★★★
Minimise the cost of reaching the level curve .
- Solve with Lagrange’s method; give the minimum cost and the multiplier .
- Show that , and give its unit.
- Take . Compare with Example 2.3, and show that .
Solution
Solution of Exercise 2.11.
- . The conditions and give ; then , so , , and .
- , in dalens per unit of : the cost of reaching one level higher.
- With : , , . The cheapest way to reach the level costs exactly the budget whose best use reaches , at the same point. And : one more unit of costs dalens when one more dalen buys units.
Exercise 2.12 ★★★
Someone reads the opening chart as proof that “when the wage rises, a worker works less because the income effect beats the substitution effect.”
- What would the chart look like if the reading were false and every worker had a rising labour supply curve?
- Name two differences between rich and poor countries, other than the wage, that could produce the falling cloud.
- What kind of data, about the same people over time, could contradict the reading?
Solution
Solution of Exercise 2.12.
- Nothing forces it to look different: the cloud compares countries, and countries differ in more than the wage, so even with every worker’s supply rising in the wage the cloud could fall.
- For example: tax rates and the transfers withdrawn as earnings rise are higher in rich countries; their jobs are more often in offices with set hours, and paid holidays are longer.
- Hours of the same workers before and after a change in their wage that has nothing to do with their own choices (a change in a tax rate for one group only, say). If those workers’ hours rose with the after-tax wage, the reading would be contradicted for them.
2.6 Problem: A Farm with One Field
Problem 2.1
Weekend problem — the shadow rent of a hectare
A farm near Brenmoor (invented) has a field of 20 hectares to share between potatoes and barley. On hectares of potatoes the season’s profit is dalens, and on hectares of barley dalens; the square roots say that the farmer plants the best soil first. The farmer maximises total profit subject to , .
Part I — By substitution.
- Write profit as a function of alone.
- Find the that makes its derivative zero, and the matching .
- Check that it is a maximum, using the second derivative.
- Compute the maximum profit.
- Compare with planting the whole field in potatoes, and in barley.
- Compute the marginal profit of a hectare of potatoes and of barley at the optimum. Why must they be equal?
Part II — By Lagrange’s method.
- Write the Lagrangian.
- Write the three conditions.
- Divide the first two to obtain the tangency condition, and solve it for .
- Solve for , and .
- Draw the constraint and the level curve of through the optimum, and mark the optimum.
- Explain why Lagrange’s method and substitution must give the same point here.
Part III — The shadow price of land.
- Solve the problem with hectares in place of 20, and show that the value function is .
- Compute and compare it with .
- Give the unit of and its meaning.
- A neighbour offers to rent one hectare to the farm for dalens for the season. Should the farm, maximising profit, take it? And at dalens?
- Compute the exact gain from a 21st hectare, , and compare it with .
- Does the shadow rent rise or fall with the size of the field? Explain from .
Part IV — A second constraint. Potatoes need 500 cubic metres of water a hectare in the season, barley 100. The farm has a water allowance of cubic metres.
- How much water does the plan of Part II use? Is the water constraint binding when ? What is its shadow price then?
- Take . Show that both constraints bind, and find and from the two constraints.
- Compute profit, and the profit lost because of the water allowance.
- Write the Lagrangian with two multipliers, for land and for water, and its conditions at the new plan.
- Solve for and .
- State the chapter’s result: the shadow rent of one hectare when water is plentiful and when it is scarce, and what the farm would pay for one more cubic metre of water.
Solution
Solution of Problem 2.1.
1. for .
2. gives , so , and .
3. : is concave, so the critical point is the maximum.
4. dalens.
5. All potatoes: dalens. All barley: dalens. Both are below dalens.
6. Potatoes: dalens a hectare; barley: dalens. If one were higher, moving a hectare to that crop would raise profit, so the optimum cannot have them differ.
7. .
8. , , .
9. Dividing, , so .
10. and : , , .
11. The level curve is , convex towards the origin, and touches the line at , where both slopes are ().
12. Both find the critical point of along the constraint: substitution by solving the constraint, Lagrange by the tangency condition, which Proposition 2.8 shows is the same condition. is concave, so that point is the maximum.
13. The tangency condition still gives , so and . Then .
14. ; at , (Proposition 2.11).
15. Dalens of profit per hectare for the season: what one more hectare is worth to this farm, the most it would pay to rent one.
16. At dalens, yes: the hectare is worth about dalens. At dalens, no.
17. , a little below 300 because is concave: the shadow rent falls as the field grows.
18. It falls: decreases in . Each extra hectare goes to poorer soil.
19. cubic metres. With the water constraint is slack and its shadow price is zero.
20. The plan of Part II needs 8400 cubic metres, more than 6000, so water binds. If land were slack, the water constraint alone would give and , so , and gives : land would be exceeded, so it binds too. From and : , , .
21. dalens; the water allowance costs dalens.
22. , with conditions , , and the two constraints.
23. At : and . Subtracting, , so ; then .
24. With plentiful water, one more hectare is worth dalens to the farm; with an allowance of 6000 cubic metres, about dalens, because a new hectare must be planted mostly in barley to stay within the water. One more cubic metre of water is worth about dalens.