Economics and Calculus
Economics and Calculus
Economics and Calculus
Daniel S. Christiansen
ALBION COLLEGE
[email protected]
August 14, 2002
Copyright
c 1999–2002 Daniel S. Christiansen
Table of Contents
1 Introduction 4
5 Rules of Differentiation 31
5.1 Sums, Differences, and Constants . . . . . . . . . . . . 32
5.2 Product Rule . . . . . . . . . . . . . . . . . . . . . . . 33
Table of Contents (cont.) 3
6 Optimization 44
6.1 Maximization and Minimization . . . . . . . . . . . . . 45
6.2 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 51
8 Chapter Quiz 56
Answers to Quizzes 60
Solutions to Exercises 61
References 68
Section 1: Introduction 4
1 Introduction
The idea of this project is to present an intermediate-level course
in microeconomic theory with the help of some simple notions from
calculus. There are two distinguishing features. The first is that each
chapter comes in two versions — one designed for the printed page
(the paper version) and one intended to be read on the computer
screen (the web version). The paper version comes in the form of a
traditional textbook. The web version presents the same material but
has interactive features, for example quizzes that can be corrected on
the spot. Furthermore, all of the material is hyperlinked, so reading
does not have to be done in a linear manner from beginning to end.
This is useful in leaving and then returning to figures, equations,
solutions to exercises, and other points of reference. It is also useful
in linking to other documents or web sites.
The other distinguishing feature is the way calculus is used to de-
velop microeconomic theory. We presume a minimal background in
calculus — just one course. You will surely benefit from having taken
more than one calculus course, and we eventually use some concepts
Section 1: Introduction 5
economics.1
The best background in mathematics is the most rigorous calculus
course you can find — the kind a serious mathematician would like to
offer you. If you are looking to make up deficiencies in your training
or simply looking for review, this advice is not likely to be timely. In
this case any calculus textbook should be able to serve as reference
material for the mathematics used here. One possibility is the book
by Hughes-Hallett [2]. Another good source of help is Donald P.
Story’s e-calculus web site [6], an interactive tutorial for a first course
in calculus.2 Still another possibility is the old but classic Calculus
Made Simple [7] written by Silvanus P. Thompson in 1910.3
1 In particular, see Mankiw’s Supply and Demand I: How Markets Work, Supply
and Demand II: Markets and Welfare, and Firm Behavior and the Organization
of Industry.
2 The e-calculus web site inspired this project, and Story’s exerquiz and web
packages, together with the mathematical typesetting system LATEX, made it pos-
sible.
3 Thompson’s book has the long and suggestive subtitle, Being a Very Simplest
proceed.
at the same point as 30 feet per second. But this leads to nonsensical comparisons
between distance and velocity: is 20 feet per second more or less than 30 feet?
To complicate the matter, the answer changes when we consider speed in feet per
minute.
Section 3: The Notion of a Derivative 14
0
y y
y
b y0
a
x x
Figure 1: (Left) A linear function y = a + bx. (Right) The derivative dy/dx
or y 0 of the same function, which is the constant b.
x x
Figure 2: (Left) A function y(x) with positive and increasing derivative.
(Right) The derivative y 0 (x) of the same function.
the x axis) and increasing (i.e., it slopes up). Its slope, the derivative,
is plotted on the right. The slope is positive, but it is not increasing.
(The slope as a function of x is constant!)
Consider next the function y(x) shown on the left of Figure 2. As x
increases the slope gets larger. Thus y 0 , plotted on the right, must
increase as x increases. Here we can say that the function y is positive
and increasing. The derivative is also positive and increasing. If the
derivative is linear, as we have drawn it, then the second derivative
(not shown) is a positive constant.
Now examine the function y(x) shown on the left of Figure 3.
As x increases the slope gets smaller. The slope, plotted on the right,
must thus decrease as x increases. Again the function y is positive
and increasing. But its derivative is positive and decreasing. If the
derivative is linear, as we have drawn it, then the second derivative
(not shown) is a negative constant.
Finally look at the function y(x) shown on the left of Figure 4.
For the values of x shown, the function is always positive. But it
first increases and then decreases. Thus the derivative, shown on
the right, is positive at first but after a point becomes negative. It is
Section 3: The Notion of a Derivative 17
y 0
y
y
y0
x x
Figure 3: (Left) A function y(x) with positive but decreasing derivative.
(Right) The derivative y 0 (x) of the same function.
0
x
y y0
x
Figure 4: (Left) A function y(x) with derivative first positive and then negative.
(Right) The derivative y 0 (x) of the same function.
take on any real value (or at least any nonnegative value) and not just
1, 2, 3, etc. This is appropriate when we want to measure, in pounds,
the amount of cheese produced in a day. Although commercial scales
may not be capable of measuring cheese to the one-millionth of a
pound, we are not misled by presuming that we could do so. Even
when we deal with goods such as automobiles that are less homoge-
neous than cheese, we can still make sense of requiring a production
of 61.5 automobiles per day if we interpret that to mean 123 automo-
biles over a two day production run. The advantage of working with
a continuous variable is that it greatly simplifies the mathematics.
For a continuous variable x the appropriate definition of marginal
cost is as the derivative of the cost function: MC = dC/dx or MC =
C 0 (x). An advantage of using the C 0 (x) notation is that it emphasizes
that marginal cost is itself a function of x.
In a continuous setting we often speak loosely of marginal cost
representing the extra cost incurred by increasing x by one unit or
the cost saved by decreasing it by one unit. We should remember
that, strictly speaking, the kinds of increments we are dealing with
are infinitesimal ones. But the units are still those of rates: dollars
Section 3: The Notion of a Derivative 21
3.4 Exercises
x
Figure 5: See Exercises 3.2 and 3.3.
The formula given in equation (1) covers more functions than you
might initially think. First, the formula works when a is a positive
Section 4: Derivatives of a Few Simple Functions 25
integer. Thus
dx2 dx3 dx10
= 2x, = 3x2 , and = 10x9 .
dx dx dx
For the special case a = 1, the derivative of x is the constant 1
(since x0 = 1).
The formula is also valid when a is a negative integer. You should
make sure you understand what is meant by a variable x raised to
a negative power: it is the same as one divided by x raised to the
corresponding positive power. Thus
1 1 1
x−2 = 2 x−3 = 3 and x−10 = 10 .
x x x
If we apply the formula from equation (1) to the three functions above
we find that
dx−2 dx−3 dx−10
= −2x−3 , = −3x−4 , and = −10x−11 .
dx dx dx
Given the meaning of negative exponents, we can write these as
d 1/x2 2 d 1/x3 3 d 1/x10 10
= − 3, = − 4, and = − 11 .
dx x dx x dx x
Section 4: Derivatives of a Few Simple Functions 26
Similarly,
√
dx−1/2 1 d (1/ x) 1
= − x−3/2 or =− √
2
.
dx 2 dx 2 x3
y = ln x
x
Figure 6: The exponential function y = ex and the logarithmic function y =
ln x. The two functions are inverses of one another. (As such each is the
reflection of the other around the 45◦ line, the dotted line in the graph.)
5 Rules of Differentiation
New functions can be made out of the simple functions introduced in
Section 4 by combining them in obvious ways. For example, we might
add or multiply two functions together. We need to discuss how to
differentiate these new functions.
Section 5: Rules of Differentiation 32
5.5 Inverses
The function y = y(x) is a rule that leads from any value of inde-
pendent variable x to a unique value for the dependent variable y.
The inverse function x = x(y) is a rule that goes the other direc-
tion: for a given value of y it provides the unique value of x such that
y = y(x). We will restrict ourselves to working with cases where the
inverse function is well-defined.6
The inverse function is quite different from the reciprocal of the
function y(x), which is 1/y(x).7
As long as we avoid dividing by zero, the derivative of the inverse
function is one divided by the derivative of the original function:
dx 1 1
= or x0 (y) = 0 . (7)
dy dy/dx y (x(y))
6 We have to be careful because there may be more than one value of x associ-
√
ated with each value of y. If y = x2 , for example, then x = ± y; i.e., there are
two values of x associated with a given y. Thus x = x(y) is not well defined over
all real numbers. If we look only at positive values of x, then there is no problem.
7 Note that x(y(x)) = x; this involves composition of two function. Alterna-
tively, y(x) times 1/y(x) equals one; this involves the product of two functions.
Section 5: Rules of Differentiation 41
Again the first set of notation is the most suggestive: it appears that
the dx and dy symbols can be manipulated as algebraic quantities.
The second set of notation is much more precise about where deriva-
tives are evaluated.
then x = ey . Hence
dx 1 1
= = = x = ey .
dy dy/dx (1/x)
This is the same result we gave for the derivative of the exponential
function in Section 4.2.
In economics we frequently need to invert demand functions: in-
stead of the quantity that can be sold at various prices, we will often
be interested in the price at which various quantities can be sold.
6 Optimization
Optimization is one of the basic analytical techniques employed in
microeconomics. We will get lots of mileage out of the idea that the
decisions of economic agents (households, firms, social planners, etc.)
are the result of these parties trying to do the best they can subject
to the constraints they face.
Section 6: Optimization 45
x∗ x x∗ x
∗ ∗
Figure 7: The point x gives a maximum of y(x) on the left; x gives a
minimum of y(x) on the right.
x∗ x
Figure 8: The function y(x) has an inflection point at x∗ ; y(x) is neither a
maximum nor minimum at this point.
the graph on the left of Figure 7 that the second derivative is negative
at x∗ . The second-order condition thus says that the function is max-
imized there. This illustrates possibility (a). At x∗ in the graph on
the right of Figure 7 the second derivative is positive and the function
is minimized there. This illustrates possibility (b). At x∗ in Figure 8
the second derivative is zero, and we have neither a maximum nor a
minimum. This is one illustration of possibility (c). Another is the
function y = x4 which does have a minimum at x = 0 but whose first
and second derivatives are zero there.
We should be very careful to distinguish between necessary and
sufficient conditions for a maximum. If x∗ maximizes y(x), then
y 0 (x∗ ) = 0 and y 00 (x∗ ) ≤ 0. This is a necessary condition for a maxi-
mum. If y 0 (x∗ ) = 0 and y 00 (x∗ ) < 0, then x∗ gives a local maximum.
This is a sufficient condition.12
We should say a few words about how to use these conditions to
find the maximum value when a specific function is given. We need to
12 Similar conditions apply for a minimum if we replace ≤ and < with ≥ and >,
respectively.
Section 6: Optimization 50
first find the stationary points, i.e., points where the first derivative is
zero. This involves solving one equation y 0 (x) = 0 in one unknown (x).
If this is a linear or quadratic equation, then a solution can be easily
obtained. For example, in determining stationary points we may have
to solve the quadratic equation
ax2 + bx + c = 0.
One way to find such values of x is to use the quadratic formula,
given by √
−b ± b2 − 4ac
x= . (8)
2a
Note that there are two solutions, one associated with the plus sign
and one with the minus sign. We need to apply the second-order
condition to each of these values to distinguish which might be the
maximum and which the minimum.
Example 6.1. We find the value of x that maximizes the function
y(x) = 10 − x2 . Since the first derivative is given by y 0 (x) = −2x,
we find the stationary point by solving −2x = 0 or x∗ = 0. The
Section 6: Optimization 51
6.2 Exercises
Exercise 6.1. Find the value of x that maximizes y(x) = 2x−x2 −2.
Section 7: A Few Words about Integration 52
the integral is a limit of sums of terms like y(x) multiplied by small changes in x.
Section 7: A Few Words about Integration 53
y
y
Z b
y(x) dx
a
a b x
Figure 9: The integral of a positive function is just the area beneath it.
y0
y(x) − y(0)
x x
Figure 10: The integral of the derivative y 0 is the original function y(x) except
for a constant.
8 Chapter Quiz
Click on the “Begin Quiz” button to begin, choose your answers, click
on the “End Quiz” button to see how many questions you answered
Section 8: Chapter Quiz 57
correctly, and click on the “Correct” button to see the correct answers.
Answers to Quizzes
Answers to Section Quiz 4.3
1. b 2. c 3. a 4. c 5. c 6. a 7. d 8. b 9. c 10. d
Solutions to Exercises
Exercise 3.1.
The marginal tax rate is written as dT /dx or T 0 (x). The units of
the marginal tax rate are the units of T (dollars per year) divided by
the units of x (dollars per year). Thus everything cancels out, and
there are no units! The marginal tax rate is a pure number, such as
30%. Return to Exercise 3.1
Solutions to Exercises 62
0
y
y0
x
Figure 11: The graph of y 0 (x) for Exercise 3.2.
Exercise 3.2.
The graph of the derivative y 0 is shown in Figure 11. The func-
tion y is always positive (it lies above the horizontal axis) and increas-
ing (it slopes up). The function y 0 is positive but it decreases at first
and then increases. The second derivative y 00 (not shown) is negative
at first and then becomes positive. It is always increasing.
Return to Exercise 3.2
Solutions to Exercises 63
Exercise 3.3.
Marginal cost first decreases and then increases. (Marginal cost
is always positive as well. If this were not true, the function y would
not be a reasonable cost function.) Return to Exercise 3.3
Solutions to Exercises 64
Exercise 3.4.
No. See Figures 2 and 3 for cases where this is clearly false. The
function y will be a straight line only for the case (as in Figure 1)
where the derivative is a horizontal line. Return to Exercise 3.4
Solutions to Exercises 65
Exercise 3.5.
The second derivative measures the slope of the slope, i.e., it mea-
sures the curvature of the function at the particular point. If the
second derivative is positive, then the function looks like a convex
function near the point (as in the diagram on the left of Figure 2). If
the second derivative is negative, then the function looks like a con-
cave function near the point (as in the diagram on the left of Figure 3).
Return to Exercise 3.5
Solutions to Exercises 66
Exercise 6.1.
First note that y 0 (x) = 2−2x, so stationary points satisfy 2−2x =
0 or x∗ = 1. The second derivative, y 0 (x) = −2 < 0 everywhere, so
the function is maximized at x∗ = 1. Return to Exercise 6.1
Solutions to Exercises 67
Exercise 6.2.
The first derivative is y 0 (x) = x2 − 4x + 3, so the stationary points
are solutions to the equation x2 − 4x + 3 = 0. This is a quadratic
equation with solution given by
√
4 ± 16 − 12 4±2
x= = = 2 ± 1.
2 2
Thus there are two stationary points, x = 1 and x = 3. To determine
whether each corresponds to a maximum or minimum, we need to look
at the second derivative y 00 (x) = 2x − 4. Evaluating this expression
at x = 1 and x = 3, we find that y 00 (1) = −2 < 0 and y 00 (3) = 2 > 0.
Thus x = 1 is a local maximum and x = 3 is a local minimum.
Return to Exercise 6.2
References 68
References
[1] Binger, Brian R. and E. Hoffman, Microeconomics with Calculus,
2nd ed., Addison-Wesley, Reading, MA, 1998. 7
[2] Hughes-Hallett, Deborah, et. al., Calculus, 2nd ed., John Wiley &
Sons, New York, 1998. 6
[3] Landsburg, Steven E., Price Theory and Applications, 5th ed.,
South-Western, Cincinnati, 2002. 7
[4] Mankiw, N. Gregory, Principles of Economics, 2nd ed., The Dry-
den Press, Fort Worth, 2001. 5
[5] Nicholson, Walter, Microeconomic Theory: Basic Principles and
Extensions, 7th ed., The Dryden Press, Fort Worth, 1998. 7
[6] Story, Donald P., e-calculus, April 3, 2000, http://www.math.
uakron.edu/~dpstory/e-calculus.html. Available: February
20, 2002. 6
References 69