Skip to content

Commit 789f0dd

Browse files
Tom's March 11 edit of supply-demand lecture
1 parent 36de852 commit 789f0dd

File tree

1 file changed

+116
-84
lines changed

1 file changed

+116
-84
lines changed

in-work/supply_demand_foundations_v2.md

Lines changed: 116 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,58 @@
22

33
## Elements of Supply and Demand
44

5-
This document describe a class of linear models that determine competitive equilibrium prices and quantities.
5+
This lecture is about some linear models of equilibrium prices and quantities, one of the main topics
6+
of elementary microeconomics.
7+
8+
9+
The main tools that we deploy are linear algebra, multivariable calculus, and Python.
10+
11+
12+
13+
Our approach is first to offer a scalar version with one good and one price.
14+
15+
Then we'll offer a more general version with
16+
17+
* $n$ goods
18+
* $n$ relative prices
19+
20+
We offer several interpretations of the $n$ goods that will allow us eventually to model settings with
21+
dynamics (i.e., the passage of time) and risk (i.e., the dependence of outcomes on random events).
22+
23+
We'll offer versions of
24+
25+
* pure exchange economies with fixed endowments of goods
26+
* economies in which goods can be produced a cost
627

7-
Linear algebra and some multivariable calculus are the tools deployed.
828

9-
Versions of the two classic welfare theorems prevail.
29+
We shall eventually describe two classic welfare theorems:
1030

11-
* **first welfare theorem:** for a given a distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a particular social planning problem.
31+
* **first welfare theorem:** for a given a distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a social planning problem.
1232

13-
* **second welfare theorem:** An allocation of goods among consumers that solves a social planning problem can be supported by a compeitive equilibrium provided that wealth is appropriately distributed among consumers.
33+
* **second welfare theorem:** An allocation of goods to consumers that solves a social planning problem can be supported by a compeitive equilibrium with an appropriate initial distribution of wealth.
1434

15-
Key infrastructure concepts are
35+
Key infrastructure concepts that we'll encounter in this lecture are
1636

1737
* inverse demand curves
18-
* marginal utility of wealth or money
38+
* marginal utilities of wealth
1939
* inverse supply curves
2040
* consumer surplus
2141
* producer surplus
22-
* welfare maximization
42+
* social welfare as a sum of consumer and producer surpluses
2343
* competitive equilibrium
2444
* homogeneity of degree zero of
2545
* demand functions
2646
* supply function
27-
* dynamics as a special case
28-
* risk as a special case
29-
30-
Our approach is first to offer a
31-
32-
* scalar version with one good and one price
33-
34-
Then we'll offer a version with
35-
36-
* $n$ goods
37-
* $n$ prices or relative prices
38-
39-
We'll offer versions of
40-
41-
* pure exchange economies with fixed endowments of goods
42-
* economies in which goods can be produced a cost
47+
* dynamics as a special case of statics
48+
* risk as a special case of statics
4349

4450
### Scalar setting
4551

46-
We study a market for a single good.
52+
We study a market for a single good in which buyers and sellers exchange a quantity $q$ for a price $p$.
4753

48-
The quantity is $q$ and price is $p$, both scalars.
54+
quantity $q$ and price $p$ are both scalars.
4955

50-
Inverse demand and supply curves are:
56+
We assume that inverse demand and supply curves for the good are:
5157

5258
$$
5359
p = d_0 - d_1 q, \quad d_0, d_1 > 0
@@ -57,24 +63,26 @@ $$
5763
p = s_0 + s_1 q , \quad s_0, s_1 > 0
5864
$$
5965

60-
**Consumer surplus** equals area under an inverse demand curve minus $p q$:
66+
We call them inverse demand and supply curves because price is on the left side of the equation rather than on the right side as it would be in a direct demand or supply function.
67+
68+
69+
70+
We define **consumer surplus** as the area under an inverse demand curve minus $p q$:
6171

6272
$$
6373
\int_0^q (d_0 - d_1 x) dx - pq = d_0 q -.5 d_1 q^2 - pq
6474
$$
6575

66-
**Producer surplus** equals $p q$ minus the area under an inverse supply curve:
76+
We define **producer surplus** as $p q$ minus the area under an inverse supply curve:
6777

6878
$$
6979
p q - \int_0^q (s_0 + s_1 x) dx = pq - s_0 q - .5 s_1 q^2
7080
$$
7181

72-
Intimately associated with a competitive equilibrium is the following:
73-
74-
**Welfare criterion** is consumer surplus plus producer surplus
82+
Sometimes economists measure social welfare by a **welfare criterion** that equals consumer surplus plus producer surplus
7583

7684
$$
77-
\int_0^q (d_0 - d_1 x) dx - \int_0^q (s_0 + s_1 x) dx
85+
\int_0^q (d_0 - d_1 x) dx - \int_0^q (s_0 + s_1 x) dx \equiv \textrm{Welf}
7886
$$
7987

8088
or
@@ -83,49 +91,68 @@ $$
8391
\textrm{Welf} = (d_0 - s_0) q - .5 (d_1 + s_1) q^2
8492
$$
8593

86-
To compute the quantity that maximizes welfare criterion $\textrm{Welf}$, we differentiate $\textrm{Welf}$ with respect to $q$ and set the derivative to zero.
94+
To compute a quantity that maximizes welfare criterion $\textrm{Welf}$, we differentiate $\textrm{Welf}$ with respect to $q$ and then set the derivative to zero.
8795

88-
Solving that equation for $q$ gives
96+
We get
97+
98+
$$
99+
\frac{d \textrm{Welf}}{d q} = d_0 - s_0 - (d_1 + s_1) q = 0
100+
$$
101+
102+
which implies
89103

90104
$$
91105
q = \frac{ d_0 - s_0}{s_1 + d_1}
92106
$$ (eq:old1)
93107
94-
A competitive equilibrium quantity equates demand price to supply price:
108+
Let's remember the quantity $q$ given by equation {eq}`eq:old`} that a social planner would choose
109+
to maximize consumer plus producer surplus.
110+
111+
We'll compare it to the quantity that emerges in a competitive equilibrium equilibrium that equates
112+
supply to demand.
113+
114+
Instead of equating quantities supplied and demanded, we'll can accomplish the same thing by equating demand price to supply price:
95115
96116
$$
97117
p = d_0 - d_1 q = s_0 + s_1 q ,
98118
$$
99119
100-
which implies {eq}`eq:old1`.
120+
121+
It we solve the equation defined by the second equality in the above line for $q$, we obtain the
122+
competitive equilibrium quantity; it equals the same $q$ given by equation {eq}`eq:old1`.
101123
102124
The outcome that the quantity determined by equation {eq}`eq:old1` equates
103-
supply to demand brings us the following important **key finding:**
125+
supply to demand brings us a **key finding:**
104126
105127
* a competitive equilibrium quantity maximizes our welfare criterion
106128
107-
It also brings us a convenient **competitive equilibrium computation strategy:**
129+
It also brings a useful **competitive equilibrium computation strategy:**
108130
109131
* after solving the welfare problem for an optimal quantity, we can read a competive equilibrium price from either supply price or demand price at the competitive equilibrium quantity
110132
111133
Soon we'll derive generalizations of the above demand and supply
112134
curves from other objects.
113135
114-
We'll derive the **demand curve** from a problem that maximizes a **utility function** subject to a **budget constraint**.
136+
Our generalizations will extend the preceding analysis of a market for a single good to the analysis
137+
of $n$ simulataneous markets in $n$ goods.
138+
139+
In addition
115140
116-
We'll derive the **supply curve** from a **cost function**.
141+
* we'll derive **demand curves** from a consumer problem that maximizes a **utility function** subject to a **budget constraint**.
142+
143+
* we'll derive **supply curves** from the problem of a producer who is price taker and maximizes his profits minus total costs that are described by a **cost function**.
117144
118145
# Multiple goods
119146
120147
We study a setting with $n$ goods and $n$ corresponding prices.
121148
122149
## Formulas from linear algebra
123150
124-
We apply formulas from linear algebra for
151+
We shall apply formulas from linear algebra that
125152
126-
* differentiating an inner product
127-
* differentiating a product of a matrix and a vector
128-
* differentiating a quadratic form
153+
* differentiate an inner product with respect to each vector
154+
* differentiate a product of a matrix and a vector with respect to the vector
155+
* differentiate a quadratic form in a vector with respect to the vector
129156
130157
Where $a$ is an $n \times 1$ vector, $A$ is an $n \times n$ matrix, and $x$ is an $n \times 1$ vector:
131158
@@ -153,16 +180,15 @@ Let
153180
154181
We assume that $\Pi$ has an inverse $\Pi^{-1}$ and that $\Pi^\top \Pi$ is a positive definite matrix.
155182
156-
It follows that $\Pi^\top \Pi$ has an inverse.
183+
* it follows that $\Pi^\top \Pi$ has an inverse.
157184
158185
159-
The matrix $\Pi$ describes a consumer's willingness to substitute one good for another, for each pair of
160-
good in the $n \times 1$ vector $c$.
186+
The matrix $\Pi$ describes a consumer's willingness to substitute one good for every other good.
161187
162-
In particular, we shall see below that $(\Pi^T \Pi)^{-1}$ is a matrix of slopes of (compensated) demand curves for $c$ with respect to a vector of prices:
188+
We shall see below that $(\Pi^T \Pi)^{-1}$ is a matrix of slopes of (compensated) demand curves for $c$ with respect to a vector of prices:
163189
164190
$$
165-
{\partial c } {\partial p} = (\Pi^T \Pi)^{-1}
191+
\frac{\partial c } {\partial p} = (\Pi^T \Pi)^{-1}
166192
$$
167193
168194
A consumer faces $p$ as a price taker and chooses $c$ to maximize the utility function
@@ -185,44 +211,13 @@ $$ (eq:bversusc)
185211
186212
so that utility function {eq}`eq:old2` tells us that the consumer has much less of each good than he wants.
187213
188-
Condition {eq}`eq:bversusc` will ultimately assure us that competitive equilibrium prices are all positive.
189-
190-
## Digression: Marshallian and Hicksian Demand Curves
191-
192-
**Remark:** We'll use budget constraint {eq}`eq:old2` in situations in which a consumers's endowment vector $e$ is his **only** source of income. But sometimes we'll instead assume that the consumer has other sources of income (positive or negative) and write his budget constraint as
193-
194-
$$
195-
p ^\top (c -e ) = W
196-
$$ (eq:old2p)
197-
198-
where $W$ is measured in "dollars" (or some other **numeraire**) and component $p_i$ of the price vector is measured in dollars per good $i$.
199-
200-
Whether the consumer's budget constraint is {eq}`eq:old2` or {eq}`eq:old2p` and whether we take $W$ as a free parameter or instead as an endogenous variable to be solved for will affect the consumer's marginal utility of wealth.
201-
202-
How we set $\mu$ determines whether we are constucting
203-
204-
* a **Marshallian** demand curve, when we use {eq}`eq:old2` and solve for $\mu$ using equation {eq}`eq:old4` below, or
205-
* a **Hicksian** demand curve, when we treat $\mu$ as a fixed parameter and solve for $W$ from {eq}`eq:old2p`.
206-
207-
Marshallian and Hicksian demand curves describe different mental experiments:
208-
209-
* For a Marshallian demand curve, hypothetical price vector changes produce changes in quantities determined that have both **substitution** and **income** effects
210-
211-
* income effects are consequences of changes in $p^\top e$ associated with the change in the price vector
212-
213-
* For a Hicksian demand curve, hypothetical price vector changes produce changes in quantities determined that have only **substitution** effects
214-
215-
* changes in the price vector leave the $p^\top e + W$ unaltered because we freeze $\mu$ and solve for $W$
216-
217-
Sometimes a Hicksian demand curve is called a **compensated** demand curve in order to emphasize that, to disarm the income (or wealth) effect associated with a price change, the consumer's wealth $W$ is adjusted.
218-
219-
We'll discuss these distinct demand curves more below.
214+
Condition {eq}`eq:bversusc` will ultimately assure us that competitive equilibrium prices are positive.
220215
221216
## Demand Curve Implied by Constrained Utility Maximization
222217
223218
For now, we assume that the budget constraint is {eq}`eq:old2`.
224219
225-
So we'll be deriving a **Marshallian** demand curve.
220+
So we'll be deriving what is known as a **Marshallian** demand curve.
226221
227222
Form a Lagrangian
228223
@@ -254,6 +249,10 @@ Equation {eq}`eq:old4` tells how marginal utility of wealth depends on the endo
254249
255250
**Remark:** Equation {eq}`eq:old4` is a consequence of imposing that $p^\top (c - e) = 0$. We could instead take $\mu$ as a parameter and use {eq}`eq:old3` and the budget constraint {eq}`eq:old2p` to solve for $W.$ Which way we proceed determines whether we are constructing a **Marshallian** or **Hicksian** demand curve.
256251
252+
253+
254+
255+
257256
## Endowment economy, I
258257
259258
We now study a pure-exchange economy, or what is sometimes called an endowment economy.
@@ -282,6 +281,39 @@ We'll set $\mu=1$.
282281
283282
**Exercise:** Verify that setting $\mu=2$ in {eq}`eq:old3` also implies that formula {eq}`eq:old4` is satisfied.
284283
284+
## Digression: Marshallian and Hicksian Demand Curves
285+
286+
**Remark:** Sometimes we'll use budget constraint {eq}`eq:old2` in situations in which a consumers's endowment vector $e$ is his **only** source of income. Other times we'll instead assume that the consumer has another source of income (positive or negative) and write his budget constraint as
287+
288+
$$
289+
p ^\top (c -e ) = W
290+
$$ (eq:old2p)
291+
292+
where $W$ is measured in "dollars" (or some other **numeraire**) and component $p_i$ of the price vector is measured in dollars per unit of good $i$.
293+
294+
Whether the consumer's budget constraint is {eq}`eq:old2` or {eq}`eq:old2p` and whether we take $W$ as a free parameter or instead as an endogenous variable will affect the consumer's marginal utility of wealth.
295+
296+
Consequently, how we set $\mu$ determines whether we are constucting
297+
298+
* a **Marshallian** demand curve, as when we use {eq}`eq:old2` and solve for $\mu$ using equation {eq}`eq:old4` below, or
299+
* a **Hicksian** demand curve, as when we treat $\mu$ as a fixed parameter and solve for $W$ from {eq}`eq:old2p`.
300+
301+
Marshallian and Hicksian demand curves contemplate different mental experiments:
302+
303+
* For a Marshallian demand curve, hypothetical changes in a price vector have both **substitution** and **income** effects
304+
305+
* income effects are consequences of changes in $p^\top e$ associated with the change in the price vector
306+
307+
* For a Hicksian demand curve, hypothetical price vector changes have only **substitution** effects
308+
309+
* changes in the price vector leave the $p^\top e + W$ unaltered because we freeze $\mu$ and solve for $W$
310+
311+
Sometimes a Hicksian demand curve is called a **compensated** demand curve in order to emphasize that, to disarm the income (or wealth) effect associated with a price change, the consumer's wealth $W$ is adjusted.
312+
313+
We'll discuss these distinct demand curves more below.
314+
315+
316+
285317
## Endowment Economy, II
286318
287319
Let's study a **pure exchange** economy without production.
@@ -758,7 +790,7 @@ where
758790
$$ \mu = \sum_i\mu_{i}=\frac{0 + p^{\top}\left(\Pi^{-1}b-e\right)}{p^{\top}(\Pi^{\top}\Pi)^{-1}p}.
759791
$$
760792

761-
Now, consider the representative economy specified above.
793+
Now consider the representative consumer economy specified above.
762794

763795
Denote the marginal utility of wealth of the representative consumer by $\tilde{\mu}$.
764796

0 commit comments

Comments
 (0)