---
title: "Optimisation under Constraint"
book: "University Economics — Year 1"
subject: economics
language: en
chapter: 2
exercises: 12
source: https://one-course.com/books/economics/3/en/chapter/2-optimisation-under-constraint
license: CC-BY-NC-SA-4.0
credit: "One Economics Book, One Course (one-course.com)"
---

# Chapter 2 — Optimisation 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 $15$ dalens. A grant of $200$ dalens a week comes with a rule: once the student earns more than $100$ 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.

![Hours worked in a year by a person in work, against labour compensation per hour, 111 countries, 2019. Compensation is in 2021 dollars at purchasing-power parity, on a logarithmic axis. Venezuela, at 5 cents an hour in these data, is left out.](https://one-course.com/images/onecourse/chapters/economics-3/b1-constrained-optimisation/fig-d0ebe4517d4a.svg)

*Hours worked in a year by a person in work, against labour compensation per hour, 111 countries, 2019. Compensation is in 2021 dollars at purchasing-power parity, on a logarithmic axis. Venezuela, at 5 cents an hour in these data, is left out. Source: Penn World Table 11.0; average annual hours worked by persons engaged; compensation per hour = labour share $\times$ output-side real GDP at current PPPs $\div$ (persons engaged $\times$ hours)*

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 $-0.53$, 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 $$2.20$ an hour) the median worker puts in 2064 hours a year; in the tenth with the highest ($$49.48$) the median is 1504 hours. In the United States, at $$45.86$ 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](https://one-course.com/books/economics/3/en/chapter/8-labour-supply-and-saving#ch-b1-labour-supply-and-saving) returns to the chart with the answer.

**You already know.**

For a function $f(x, y)$, the partial derivative $f_x = \pd{f}{x}$ is the derivative in $x$ with $y$ held fixed. The gradient $\nabla f = (f_x, f_y)$ points in the direction of steepest increase. A level curve is the set of points where $f$ takes one value. A critical point, where $\nabla f = 0$, 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 $f$ have continuous partial derivatives, and let the level curve $f(x, y) = c$ be, near a point where $f_y \neq 0$, the graph of a differentiable function $y(x)$. Its slope there is

$$
y'(x) = -\frac{f_x}{f_y}.
$$

**Proof.** Along the curve, $f(x, y(x)) = c$ for every $x$. Differentiate with respect to $x$ by the chain rule: $f_x + f_y\, y'(x) = 0$. Divide by $f_y \neq 0$. ∎

That the curve is the graph of such a function whenever $f_y \neq 0$ 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 $\dd x$ must be paid for with $\dd y = -(f_x/f_y)\dd x$: the ratio of the partial derivatives is the rate at which the function lets one variable be traded for the other. For $f(x, y) = x^{1/2}y^{1/2}$, $f_x = \tfrac12 x^{-1/2}y^{1/2}$ and $f_y = \tfrac12 x^{1/2}y^{-1/2}$, so the slope of a level curve is $-y/x$. The gradient $(f_x, f_y)$ is perpendicular to the level curve, since it is perpendicular to the tangent vector $(1, y')$: $f_x + f_y y' = 0$.

## 2.2 A maximum under one equality constraint

**Definition 2.2 (Constrained maximum and minimum).**

Let $f$ and $g$ be functions of $(x, y)$ and $b$ a number. A point $(x^*, y^*)$ with $g(x^*, y^*) = b$ is a *constrained maximum* of $f$ under the constraint $g = b$ if $f(x^*, y^*) \ge f(x, y)$ for every $(x, y)$ with $g(x, y) = b$ (in the region where the problem is posed). A *constrained minimum* reverses the inequality. The problem is written $\max_{x, y} f(x, y)$ subject to $g(x, y) = b$.

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 $f(x, y) = x^{1/2}y^{1/2}$ subject to $x + 2y = 12$, with $x, y > 0$. The constraint gives $x = 12 - 2y$. Since the square root is increasing, maximising $f$ is maximising $h(y) = (12 - 2y)y = 12y - 2y^2$: $h'(y) = 12 - 4y = 0$ at $y = 3$, and $h'' = -4 < 0$, so this is the maximum. Then $x = 6$ and $f^* = \sqrt{18} = 4.243$.

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 $f$ 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 $f$ subject to $g = b$, the *tangency condition* at a point is that the level curve of $f$ and the constraint curve have the same slope there:

$$
\frac{f_x}{f_y} = \frac{g_x}{g_y}.
$$

**Proposition 2.5 (Tangency at an interior optimum).**

Let $f$ and $g$ have continuous partial derivatives, let $(x^*, y^*)$ be a [constrained maximum](#def-b1-constrained-optimisation-constrained-max) of $f$ subject to $g = b$ that is not at the edge of the region, and let $g_y \neq 0$ and $f_y \neq 0$ there. Then the [tangency condition](#def-b1-constrained-optimisation-tangency) holds at $(x^*, y^*)$.

**Proof.** Near $(x^*, y^*)$ the constraint is the graph of a function $y(x)$ with $y' = -g_x/g_y$ ([Proposition 2.1](#prop-b1-constrained-optimisation-level-slope) applied to $g$). The function $h(x) = f(x, y(x))$ has a maximum at $x^*$, an interior point, so $h'(x^*) = f_x + f_y y' = f_x - f_y g_x/g_y = 0$. Divide by $f_y \neq 0$: $f_x/f_y = g_x/g_y$. ∎

In [Example 2.3](#ex-b1-constrained-optimisation-substitution), the slope of the level curve at $(6, 3)$ is $-y/x = -1/2$ and the slope of the constraint $x + 2y = 12$ is $-1/2$: tangency.

![Level curves of f = x1/2y1/2 (blue) and the constraint x + 2y = 12 (red). The highest level curve that the constraint reaches, f = √18, touches it at (6, 3); the curve f = 5 lies beyond reach.](https://one-course.com/images/onecourse/chapters/economics-3/b1-constrained-optimisation/fig-dd6d4f22143e.svg)

*Level curves of $f = x^{1/2}y^{1/2}$ (blue) and the constraint $x + 2y = 12$ (red). The highest level curve that the constraint reaches, $f = \sqrt{18}$, touches it at $(6, 3)$; the curve $f = 5$ lies beyond reach.*

## 2.3 Lagrange’s method

The [tangency condition](#def-b1-constrained-optimisation-tangency) and the constraint are two equations in two unknowns. [Lagrange’s method](#met-b1-constrained-optimisation-lagrange) 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 $\max f(x, y)$ subject to $g(x, y) = b$, the *Lagrangian* is the function of three variables

$$
\mathcal{L}(x, y, \lambda) = f(x, y) - \lambda\bigl(g(x, y) - b\bigr),
$$

where the new variable $\lambda$ is the Lagrange multiplier.

**Theorem 2.7 (Lagrange conditions).**

Let $f$ and $g$ have continuous partial derivatives on an open set, and let $(x^*, y^*)$ be a [constrained maximum](#def-b1-constrained-optimisation-constrained-max) (or minimum) of $f$ subject to $g = b$ at which $\nabla g \neq 0$. Then there is a number $\lambda^*$ such that $(x^*, y^*, \lambda^*)$ is a critical point of $\mathcal L$:

$$
f_x = \lambda g_x, \qquad f_y = \lambda g_y, \qquad g(x, y) = b .
$$

The same holds with $n$ variables and $m < n$ 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 $f_y \neq 0$ and $g_y \neq 0$, the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) hold for some $\lambda$ if and only if the constraint and the [tangency condition](#def-b1-constrained-optimisation-tangency) hold; then $\lambda = f_y/g_y = f_x/g_x$ (the last when $g_x \neq 0$).

**Proof.** If $f_x = \lambda g_x$ and $f_y = \lambda g_y$, then $\lambda = f_y/g_y \neq 0$ and $f_x/f_y = \lambda g_x/(\lambda g_y) = g_x/g_y$. Conversely, if $f_x/f_y = g_x/g_y$, set $\lambda = f_y/g_y$: the second condition holds by construction, and $f_x = f_y g_x/g_y = \lambda g_x$ gives the first. ∎

**Method 2.9 (Solving a problem with Lagrange’s method).**

1. Write the [Lagrangian](#def-b1-constrained-optimisation-lagrangian) $\mathcal L = f - \lambda(g - b)$ .
2. Set its three partial derivatives to zero.
3. Eliminate $\lambda$ by dividing the first two conditions: this gives the [tangency condition](#def-b1-constrained-optimisation-tangency) , a relation between $x$ and $y$ .
4. Substitute that relation into the constraint, solve, and recover $\lambda$ from either of the first two conditions.
5. Check that the point is a maximum: compare its value with the edges of the region ( [Section 2.5](#sec-2-5) ).

For [Example 2.3](#ex-b1-constrained-optimisation-substitution): $\tfrac12\sqrt{y/x}
= \lambda$ and $\tfrac12\sqrt{x/y} = 2\lambda$. Dividing the second by the first, $x/y = 2$, so $x = 2y$; the constraint gives $4y = 12$, $y = 3$, $x = 6$, and $\lambda = \tfrac12\sqrt{3/6} = 0.354$. The same point, found without solving the constraint, and a new number $\lambda$.

## 2.4 The multiplier as a shadow price

**Definition 2.10 (Value function).**

The *value function* of the problem $\max f$ subject to $g = b$ is the best attainable value as a function of the constraint’s level, $V(b) = f\bigl(x^*(b), y^*(b)\bigr)$, where $(x^*(b), y^*(b))$ is the solution for that $b$.

**Proposition 2.11 (The multiplier is the derivative of the value function).**

If the solution $(x^*(b), y^*(b))$ and its multiplier $\lambda^*(b)$ satisfy the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) and $x^*$, $y^*$ are differentiable in $b$, then

$$
V'(b) = \lambda^*(b).
$$

**Proof.** Differentiate $V(b) = f(x^*(b), y^*(b))$: $V'(b) = f_x \,x^{*\prime} + f_y \,y^{*\prime}$. By the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) this is $\lambda^*(g_x x^{*\prime} + g_y y^{*\prime})$. The bracket is the derivative of $g(x^*(b), y^*(b))$, which equals $b$ for every $b$, so the bracket is $1$. ∎

**Definition 2.12 (Shadow price).**

The *shadow price* of a constraint is the value of its Lagrange multiplier at the optimum, $\lambda^* = V'(b)$: 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, $x^* = b/2$ and $y^* = b/4$, so $V(b) = \sqrt{b^2/8} = b/(2\sqrt2)$ and $V'(b) = 1/(2\sqrt 2) = 0.354$, the $\lambda$ found above. Relaxing the constraint from 12 to 14 raises the value by $2 \times 0.354 = 0.71$, from $4.243$ to $4.950$; here the approximation is exact because $V$ is linear in $b$. In general $\lambda$ gives the first-order change, $\Delta V \approx \lambda \Delta b$, as any derivative does.

![The shadow price: relaxing the constraint from b = 12 to b = 14 (dashed) moves the optimum from (6, 3) to (7, 3.5) and raises the value by * b = 0.354 × 2 = 0.71.](https://one-course.com/images/onecourse/chapters/economics-3/b1-constrained-optimisation/fig-f83e0b3d8ff3.svg)

*The [shadow price](#def-b1-constrained-optimisation-shadow-price): relaxing the constraint from $b = 12$ to $b = 14$ (dashed) moves the optimum from $(6, 3)$ to $(7, 3.5)$ and raises the value by $\lambda^* \Delta b = 0.354 \times 2 = 0.71$.*

The unit makes the multiplier economics. If $f$ is a firm’s profit in dalens and $b$ is hectares of land, $\lambda^*$ is in dalens per hectare: the most the firm would pay to rent one more hectare, whatever the market rent happens to be. If $f$ is utility and $b$ is income, $\lambda^*$ is utility per dalen, the marginal utility of income. If the constraint is a regulation — a cap on emissions, a quota — its [shadow price](#def-b1-constrained-optimisation-shadow-price) is what the regulation costs the one who obeys it, at the margin. [Chapter 3](https://one-course.com/books/economics/3/en/chapter/3-comparative-statics#ch-b1-comparative-statics) extends the proposition to the derivative of a [value function](#def-b1-constrained-optimisation-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 $g(x, y) \le b$ is *binding* at a solution if it holds with equality there, $g(x^*, y^*) = b$, and *slack* if it holds strictly. A slack constraint has a [shadow price](#def-b1-constrained-optimisation-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](#def-b1-constrained-optimisation-tangency) need not hold, and usually does not. Take $f(x, y) = x + \ln y$ with the constraint $x + y = m$ and $x, y \ge 0$. [Lagrange’s method](#met-b1-constrained-optimisation-lagrange) gives $1 = \lambda$ and $1/y = \lambda$, so $y = 1$ and $x = m - 1$. When $m < 1$ this asks for a negative $x$, which is not allowed. The solution is the corner $x = 0$, $y = m$: every dalen goes to $y$, because the last unit of $y$ is worth $1/m > 1$, more than a unit of $x$. 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.

![A corner: the level curves of x + y (blue) and the constraint x + y = 0.5 (red). Every point of the constraint with x > 0 lies on a lower level curve than the corner (0, 0.5), where the level curve is flatter than the constraint (slope -0.5 against -1): a unit of x is worth only half a unit of y there.](https://one-course.com/images/onecourse/chapters/economics-3/b1-constrained-optimisation/fig-9edd18fe6686.svg)

*A corner: the level curves of $x + \ln y$ (blue) and the constraint $x + y = 0.5$ (red). Every point of the constraint with $x > 0$ lies on a lower level curve than the corner $(0, 0.5)$, where the level curve is flatter than the constraint (slope $-0.5$ against $-1$): a unit of $x$ is worth only half a unit of $y$ there.*

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 $x^2 + y^2$ touch a straight line: there the tangency point is the [constrained minimum](#def-b1-constrained-optimisation-constrained-max). A sufficient condition with two variables is that the level curves of $f$ are convex towards the origin — the upper level sets $\{f \ge c\}$ 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 $h$ hours of work, weekly income is $y = 15h + \max\bigl(0, 200 - 0.5\max(0, 15h - 100)\bigr)$. Below $h = 100/15 = 6.67$ hours each hour adds $15$ dalens. From there until the grant is gone, at $15h - 100 = 400$, that is $h = 33.33$, each hour adds $15 \times 0.5 = 7.5$ dalens. After that, $15$ dalens again. Income at the two kinks is $300$ dalens and $500$ dalens. Drawn against hours of study, $60 - h$, the constraint is a line with two kinks.

![The student’s weekly constraint (red): 15 dalens an hour, a grant of 200 dalens withdrawn at half a dalen per dalen earned above 100 dalens. On the middle segment an hour of work pays 7.5 dalens. The dotted line is the constraint with no grant.](https://one-course.com/images/onecourse/chapters/economics-3/b1-constrained-optimisation/fig-674d0929789f.svg)

*The student’s weekly constraint (red): $15$ dalens an hour, a grant of $200$ dalens withdrawn at half a dalen per dalen earned above $100$ dalens. On the middle segment an hour of work pays $7.5$ dalens. The dotted line is the constraint with no grant.*

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 $15$ dalens to $7.5$ dalens. Every student who would work past the kink at $15$ dalens an hour, but would not reach it at $7.5$ 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 $15$ 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](#def-b1-constrained-optimisation-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 $-0.53$ 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 $$2.20$ an hour and the median hours 2064; in the top tenth, $$49.48$ and 1504.

1. By what factor does pay differ, and by how many hours a year, and by what percentage, do hours differ?
2. How many fewer hours does that make per week, over 48 working weeks?
3. Is this the slope of one worker’s labour supply? Say why not in one sentence.

**Solution of Exercise 2.1.**

1. Pay differs by a factor of $49.48/2.20 = 22.5$ . Hours differ by $2064 - 1504 = 560$ a year, which is $560/2064 = 27\%$ fewer in the top tenth.
2. $560/48 = 11.7$ hours a week fewer.
3. 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 $xy$ subject to $2x + 3y = 24$, $x, y > 0$, by substitution. Check the [tangency condition](#def-b1-constrained-optimisation-tangency) at your answer.

**Solution of Exercise 2.2.**

$y = (24 - 2x)/3$, so $xy = (24x - 2x^2)/3$, with derivative $(24 - 4x)/3 = 0$ at $x = 6$; the second derivative $-4/3$ is negative. Then $y = 4$ and $xy = 24$. Tangency: $f_x/f_y = y/x = 4/6 = 2/3$ and $g_x/g_y = 2/3$.

**Exercise 2.3 ★.**

Compute the slope of the level curve of $f(x, y) = x^2 y$ through the point $(1, 2)$. Which level is it, and what is the equation of the curve?

**Solution of Exercise 2.3.**

$f_x = 2xy = 4$ and $f_y = x^2 = 1$ at $(1, 2)$, so the slope is $-4/1 = -4$. The level is $f(1, 2) = 2$, and the curve is $x^2y = 2$, that is $y = 2/x^2$ (whose derivative $-4/x^3$ is indeed $-4$ at $x = 1$).

**Exercise 2.4 ★.**

The solution of $\max x^{1/2}y^{1/2}$ subject to $x + 2y \le 12$, $x \le 8$ and $y \le 5$ is $(6, 3)$. Which constraints bind, and which have a [shadow price](#def-b1-constrained-optimisation-shadow-price) of zero? What happens to the solution if the second constraint becomes $x \le 4$?

**Solution of Exercise 2.4.**

At $(6, 3)$, $x + 2y = 12$ holds with equality: it binds. $x = 6 < 8$ and $y = 3 < 5$: both are slack, with [shadow prices](#def-b1-constrained-optimisation-shadow-price) of zero. With $x \le 4$, the point $(6, 3)$ is no longer allowed; the best point keeps $x$ as close as allowed to the old tangency, $x = 4$, and spends the rest on $y$: $y = (12 - 4)/2 = 4 \le 5$. The solution is $(4, 4)$, with $f = 4$, and now two constraints bind.

**Exercise 2.5 ★★.**

Maximise $\ln x + 2\ln y$ subject to $p_1 x + p_2 y = m$ with [Lagrange’s method](#met-b1-constrained-optimisation-lagrange). Give $x^*$, $y^*$ and $\lambda^*$ as functions of $p_1$, $p_2$, $m$, then evaluate them at $p_1 = 1$, $p_2 = 2$, $m = 30$.

**Solution of Exercise 2.5.**

$\mathcal L = \ln x + 2\ln y - \lambda(p_1x + p_2y - m)$. The conditions are $1/x = \lambda p_1$ and $2/y = \lambda p_2$. Dividing, $p_2 y = 2p_1 x$; the constraint gives $3p_1x = m$. So

$$
x^* = \frac{m}{3p_1}, \qquad y^* = \frac{2m}{3p_2}, \qquad \lambda^* = \frac{1}{p_1 x^*} = \frac{3}{m}.
$$

At $p_1 = 1$, $p_2 = 2$, $m = 30$: $x^* = 10$, $y^* = 10$, $\lambda^* = 0.1$.

**Exercise 2.6 ★★.**

In [Exercise 2.5](#exo-b1-constrained-optimisation-lagrange-log), at $p_1 = 1$, $p_2 = 2$, $m = 30$:

1. give the unit of $\lambda^*$ and say in words what it measures;
2. predict, with $\lambda^*$ , the change in the maximum value if $m$ rises to 40;
3. compute the exact change and explain the gap.

**Solution of Exercise 2.6.**

1. Units of the objective per dalen: $\lambda^*$ is the increase in the maximum value per extra dalen of $m$ , the marginal value of income.
2. $\Delta V \approx \lambda^* \Delta m = 0.1 \times 10 = 1.0$ .
3. $V(m) = \ln(m/3) + 2\ln(m/3) = 3\ln(m/3)$ at these prices, so $V(40) - V(30) = 3\ln(40/30) = 0.863$ . The prediction overshoots because $\lambda^* = 3/m$ falls as $m$ rises: $V$ is concave, and a derivative taken at $m = 30$ overstates the average slope up to 40.

**Exercise 2.7 ★★.**

Maximise $x + \ln y$ subject to $x + y = 0.5$, $x, y \ge 0$. Show that [Lagrange’s method](#met-b1-constrained-optimisation-lagrange) gives an inadmissible point, find the solution, and compute the ratio of the marginal values of $y$ and $x$ there.

**Solution of Exercise 2.7.**

The conditions $1 = \lambda$ and $1/y = \lambda$ give $y = 1$ and $x = 0.5 - 1 = -0.5 < 0$: inadmissible. On the constraint, $h(x) = x + \ln(0.5 - x)$ has $h'(x) = 1 - 1/(0.5 - x) < 0$ for $0 \le x < 0.5$, so $h$ is largest at $x = 0$: the solution is the corner $(0, 0.5)$. There the marginal value of $y$ is $1/y = 2$ and that of $x$ is 1: the ratio is 2, above the price ratio of 1, and the agent would like a negative $x$ if it could have one.

**Exercise 2.8 ★★.**

For the student of the chapter:

1. compute the hours at which the two kinks occur and the income there;
2. compute what an hour of work adds to income on each of the three segments;
3. compute weekly income at 20 hours and at 40 hours of work.

**Solution of Exercise 2.8.**

1. The grant starts falling at $15h = 100$ , $h = 6.67$ , where income is $100 + 200 = 300$ dalens. It is gone when $0.5(15h - 100) = 200$ , that is $15h = 500$ , $h = 33.33$ , where income is $500$ dalens.
2. $15$ dalens, then $15 \times (1 - 0.5) = 7.5$ dalens, then $15$ dalens.
3. At 20 hours: earnings $300$ dalens, grant $200 - 0.5 \times 200 = 100$ dalens, income $400$ dalens. At 40 hours: earnings $600$ dalens, no grant, income $600$ 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 of Exercise 2.9.**

With the rate 0.75 the grant is gone at $15h - 100 = 200/0.75 = 266.67$, that is $h = 24.44$, and the middle segment pays $15 \times 0.25 = 3.75$ 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 $600$ dalens). The student at 20 hours sees the wage on the margin halve (substitution: fewer hours) and is poorer at 20 hours, $350$ dalens instead of $400$ 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 $f$ and $g$ be smooth, and let $(x^*, y^*)$ satisfy $g = b$ with $g_x \neq 0$, $g_y \neq 0$ and $f_y \neq 0$.

1. Show that if the gradients $\nabla f$ and $\nabla g$ are parallel at $(x^*, y^*)$ , the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) hold.
2. Show that the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) hold if and only if the level curve of $f$ and the constraint have a common tangent line.
3. Give an example where the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) hold at a [constrained minimum](#def-b1-constrained-optimisation-constrained-max) , and draw it.

**Solution of Exercise 2.10.**

1. $\nabla g \neq 0$ , so “parallel” means $\nabla f = \lambda \nabla g$ for some number $\lambda$ : that is $f_x = \lambda g_x$ , $f_y = \lambda g_y$ , and with $g = b$ the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) hold.
2. The tangent lines at the point are perpendicular to $\nabla f$ and to $\nabla g$ ; they coincide if and only if the gradients are parallel, if and only if $f_x/f_y = g_x/g_y$ , which is [Proposition 2.8](#prop-b1-constrained-optimisation-equivalence) .
3. Minimise $x^2 + y^2$ subject to $x + y = 2$ : at $(1, 1)$ , $\nabla f = (2, 2) = 2\nabla g$ . The circles $x^2 + y^2 = c$ touch the line from the side of the origin; $(1, 1)$ is the point of the line closest to the origin, a [constrained minimum](#def-b1-constrained-optimisation-constrained-max) , and the [Lagrange conditions](#thm-b1-constrained-optimisation-lagrange) do not tell it from a maximum.

**Exercise 2.11 ★★★.**

Minimise the cost $x + 2y$ of reaching the level curve $x^{1/2}y^{1/2} = u_0$.

1. Solve with [Lagrange’s method](#met-b1-constrained-optimisation-lagrange) ; give the minimum cost $C(u_0)$ and the multiplier $\mu^*$ .
2. Show that $C'(u_0) = \mu^*$ , and give its unit.
3. Take $u_0 = \sqrt{18}$ . Compare with [Example 2.3](#ex-b1-constrained-optimisation-substitution) , and show that $\mu^* = 1/\lambda^*$ .

**Solution of Exercise 2.11.**

1. $\mathcal L = x + 2y - \mu(\sqrt{xy} - u_0)$ . The conditions $1 = \tfrac{\mu}{2}\sqrt{y/x}$ and $2 = \tfrac{\mu}{2}\sqrt{x/y}$ give $x = 2y$ ; then $\sqrt{2}\,y = u_0$ , so $y = u_0/\sqrt 2$ , $x = \sqrt 2\, u_0$ , $C(u_0) = 2\sqrt 2\, u_0$ and $\mu^* = 2\sqrt 2 = 2.828$ .
2. $C'(u_0) = 2\sqrt2 = \mu^*$ , in dalens per unit of $f$ : the cost of reaching one level higher.
3. With $u_0 = \sqrt{18}$ : $x = \sqrt{36} = 6$ , $y = 3$ , $C = 12$ . The cheapest way to reach the level $\sqrt{18}$ costs exactly the budget whose best use reaches $\sqrt{18}$ , at the same point. And $\mu^* = 2.828 = 1/0.354 = 1/\lambda^*$ : one more unit of $f$ costs $1/\lambda^*$ dalens when one more dalen buys $\lambda^*$ 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.”

1. What would the chart look like if the reading were false and every worker had a rising labour supply curve?
2. Name two differences between rich and poor countries, other than the wage, that could produce the falling cloud.
3. What kind of data, about the same people over time, could contradict the reading?

**Solution of Exercise 2.12.**

1. 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.
2. 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.
3. 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 $x$ hectares of potatoes the season’s profit is $2400\sqrt x$ dalens, and on $y$ hectares of barley $1200\sqrt y$ dalens; the square roots say that the farmer plants the best soil first. The farmer maximises total profit $\Pi(x, y) = 2400\sqrt x + 1200\sqrt y$ subject to $x + y = 20$, $x, y \ge 0$.

**Part I — By substitution.**

1. Write profit as a function of $x$ alone.
2. Find the $x$ that makes its derivative zero, and the matching $y$ .
3. Check that it is a maximum, using the second derivative.
4. Compute the maximum profit.
5. Compare with planting the whole field in potatoes, and in barley.
6. 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.**

7. Write the [Lagrangian](#def-b1-constrained-optimisation-lagrangian) .
8. Write the three conditions.
9. Divide the first two to obtain the [tangency condition](#def-b1-constrained-optimisation-tangency) , and solve it for $x/y$ .
10. Solve for $x$ , $y$ and $\lambda$ .
11. Draw the constraint and the level curve of $\Pi$ through the optimum, and mark the optimum.
12. Explain why [Lagrange’s method](#met-b1-constrained-optimisation-lagrange) and substitution must give the same point here.

**Part III — The shadow price of land.**

13. Solve the problem with $L$ hectares in place of 20, and show that the [value function](#def-b1-constrained-optimisation-value-function) is $V(L) = 6000\sqrt{L/5}$ .
14. Compute $V'(20)$ and compare it with $\lambda$ .
15. Give the unit of $\lambda$ and its meaning.
16. A neighbour offers to rent one hectare to the farm for $250$ dalens for the season. Should the farm, maximising profit, take it? And at $350$ dalens?
17. Compute the exact gain from a 21st hectare, $V(21) - V(20)$ , and compare it with $\lambda$ .
18. Does the shadow rent rise or fall with the size of the field? Explain from $V(L)$ .

**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 $W$ cubic metres.

19. How much water does the plan of Part II use? Is the water constraint [binding](#def-b1-constrained-optimisation-binding) when $W = 9000$ ? What is its [shadow price](#def-b1-constrained-optimisation-shadow-price) then?
20. Take $W = 6000$ . Show that both constraints bind, and find $x$ and $y$ from the two constraints.
21. Compute profit, and the profit lost because of the water allowance.
22. Write the [Lagrangian](#def-b1-constrained-optimisation-lagrangian) with two multipliers, $\lambda$ for land and $\mu$ for water, and its conditions at the new plan.
23. Solve for $\mu$ and $\lambda$ .
24. 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 of Problem 2.1.**

**1.** $\Pi(x) = 2400\sqrt x + 1200\sqrt{20 - x}$ for $0 \le x \le 20$.

**2.** $\Pi'(x) = 1200/\sqrt x - 600/\sqrt{20 - x} = 0$ gives $\sqrt{20 - x} = \sqrt x/2$, so $20 - x = x/4$, $x = 16$ and $y = 4$.

**3.** $\Pi''(x) = -600x^{-3/2} - 300(20 - x)^{-3/2} < 0$: $\Pi$ is concave, so the critical point is the maximum.

**4.** $2400 \times 4 + 1200 \times 2 = 12\,000$ dalens.

**5.** All potatoes: $2400\sqrt{20} = 2400 \times 4.4721 = 10\,733$ dalens. All barley: $1200 \times 4.4721 = 5367$ dalens. Both are below $12\,000$ dalens.

**6.** Potatoes: $1200/\sqrt{16} = 300$ dalens a hectare; barley: $600/\sqrt 4 = 300$ dalens. If one were higher, moving a hectare to that crop would raise profit, so the optimum cannot have them differ.

**7.** $\mathcal L = 2400\sqrt x + 1200\sqrt y - \lambda(x + y - 20)$.

**8.** $1200/\sqrt x = \lambda$, $600/\sqrt y = \lambda$, $x + y = 20$.

**9.** Dividing, $2\sqrt{y/x} = 1$, so $x/y = 4$.

**10.** $x = 4y$ and $5y = 20$: $y = 4$, $x = 16$, $\lambda = 1200/4 = 300$.

**11.** The level curve $2400\sqrt x + 1200\sqrt y = 12000$ is $y = (10 - 2\sqrt x)^2$, convex towards the origin, and touches the line $x + y = 20$ at $(16, 4)$, where both slopes are $-1$ ($-\Pi_x/\Pi_y = -300/300$).

**12.** Both find the critical point of $\Pi$ along the constraint: substitution by solving the constraint, Lagrange by the [tangency condition](#def-b1-constrained-optimisation-tangency), which [Proposition 2.8](#prop-b1-constrained-optimisation-equivalence) shows is the same condition. $\Pi$ is concave, so that point is the maximum.

**13.** The [tangency condition](#def-b1-constrained-optimisation-tangency) still gives $x = 4y$, so $x = 4L/5$ and $y = L/5$. Then $V(L) = 2400 \times 2\sqrt{L/5} + 1200\sqrt{L/5} = 6000\sqrt{L/5}$.

**14.** $V'(L) = 6000 \times \tfrac{1}{2\sqrt{L/5}} \times \tfrac15 =
600/\sqrt{L/5}$; at $L = 20$, $600/2 = 300 = \lambda$ ([Proposition 2.11](#prop-b1-constrained-optimisation-shadow)).

**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 $250$ dalens, yes: the hectare is worth about $300$ dalens. At $350$ dalens, no.

**17.** $V(21) - V(20) = 6000(\sqrt{4.2} - 2) = 6000 \times 0.04939 =
296.34\text{ dalens}$, a little below 300 because $V$ is concave: the shadow rent falls as the field grows.

**18.** It falls: $V'(L) = 600/\sqrt{L/5}$ decreases in $L$. Each extra hectare goes to poorer soil.

**19.** $16 \times 500 + 4 \times 100 = 8400$ cubic metres. With $W = 9000$ the water constraint is slack and its [shadow price](#def-b1-constrained-optimisation-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 $1200/\sqrt x = 500\mu$ and $600/\sqrt y = 100\mu$, so $y = 6.25x$, and $1125x = 6000$ gives $y = 33.3 > 20$: land would be exceeded, so it binds too. From $x + y = 20$ and $500x + 100y = 6000$: $400x + 2000 = 6000$, $x = 10$, $y = 10$.

**21.** $2400\sqrt{10} + 1200\sqrt{10} = 3600 \times 3.1623 = 11\,384$ dalens; the water allowance costs $12000 - 11384 = 616$ dalens.

**22.** $\mathcal L = 2400\sqrt x + 1200\sqrt y - \lambda(x + y - 20) -
\mu(500x + 100y - 6000)$, with conditions $1200/\sqrt x = \lambda + 500\mu$, $600/\sqrt y = \lambda + 100\mu$, and the two constraints.

**23.** At $x = y = 10$: $379.47 = \lambda + 500\mu$ and $189.74 = \lambda + 100\mu$. Subtracting, $400\mu = 189.73$, so $\mu = 0.4743$; then $\lambda = 189.74 - 47.43 = 142.31$.

**24.** With plentiful water, one more hectare is worth $300$ dalens to the farm; with an allowance of 6000 cubic metres, about $142$ 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 $0.47$ dalens.
