Week 1 Notes: Single Variable Differentiation Slopes of Curves
Week 1 Notes: Single Variable Differentiation Slopes of Curves
Week 1 Notes: Single Variable Differentiation Slopes of Curves
Differentiation
Slopes of Curves
the derivative is the most important con-
cept you will learn in the course.
many of the crucial concepts in economics
can be expressed as derivatives.
a derivative
– a generalization of the slope
is the rate of change of one variable due
to a change in another
the slope is defined for linear functions
derivatives are defined for linear and non-
linear functions
1
some examples include
– marginal cost
– marginal product
– marginal revenue
– marginal utility
– marginal social utility
– marginal benefit
– demand elasticity
– supply elasticity
– government spending multipliers
– investment multipliers
– tax multipliers
all these describe how one variable changes
due to changes in another
2
Outline
i. The slope of a tangent and the derivative
ii. The derivative
iii. Increasing and decreasing functions re-
visited
iv. Rates of change and their economic Sig-
nificance
3
i. The slope of a tangent and the derivative
y2 − y1 = β(x2 − x1)
4
hence, the slope is equivalent to:
y2 − y1
m=
x2 − x1
=β
rise
≡
run
or, if you know just the slope and one
point (e.g. x1, y1) on the line you have
y − y1 = β(x − x1)
this is also referred to as the equation of
the line with slope β which runs through
the point (x1, y1)
here the slope is
y − y1
m=
x − x1
=β
5
we want to define the rate of change of a
function, f (x), at a point a
a logical way to do this would be to con-
sider the rate of change of a linear func-
tion which “ just touches” f (x) at a
6
consider the function in the figure
let (x1, y1), (x2, y2) denote the coordi-
nates of the points P and L
the slope, m, of this curve at a is
y2 − y1 y2 − f (a)
=
x2 − x1 (a + 4) − a
f (a) + 2 − f (a)
=
a+4−a
2
=
4
1
=
2
7
ii. The derivative
the slope of the “tangent” to f (x) at P
is called the derivative of f at point a
this definition of a tangent as the line
that “just touches” f (x) is a little vague
let’s make this a bit more rigorous
consider a function f (x) and suppose we’re
interested in its rate of change at P
let Q be another point close to P and
consider a straight line cutting through
P and Q
– this line is known as a secant
8
suppose P has coordinates (a, f (a)) and
Q has coordinates (a + h, f (a + h))
the slope of the secant is:
f (a + h) − f (a) f (a + h) − f (a)
=
(a + h) − a h
this is clearly not exactly equal to the
rate of change of f (x) at a
9
now, consider a sequence of points such
that
– as we move along the curve towards
P from Q, we define a sequence of
secants defined as P Q1, P Q2 etc . . .
– the slopes of these secants approach
the rate of change of f (x) at P
10
f (a + h) − f (a)
mP Q =
a+h−a
f (a + h) − f (a)
=
h
f (a + h1) − f (a)
mP Q1 =
a + h1 − a
f (a + h1) − f (a)
=
h1
11
similarly
f (a + h2) − f (a)
mP Q2 =
h2
f (a + h3) − f (a)
mP Q3 =
h3
12
as QN approaches P, hN gets smaller
these “Newton quotients” or “differential
quotients” get closer and closer to the
rate of change of f (x) at a
13
14
in fact, we define the derivative of f (x)
at a as:
0 f (a + h) − f (a)
f (a) = lim
h→0 h
15
but, this is not the same as
f (a + 0) − f (a)
6= f 0(a)
0
the left hand side is actually undefined
we read limh→0 g(h) as the limit of the
function g(h) as h tends to 0
16
in fact, the equation for the tangent to
the graph of y = f (x) is defined as that
which has a slope equal to f 0(a)
the equation for a straight line passing
through (x1, y1) with slope β is given by
y − y1 = β(x − x1)
therefore, the tangent to the function f (x)
at a passes through (a, f (a)) and has
slope f 0(a)
y − f (a)
f 0(a) =
x−a
17
therefore, as above, its equation is:
y − f (a) = f 0(a)(x − a)
y = f (a) + f 0(a)(x − a)
we’ve used “limit” in an intuitive sense
and will continue to do so for a while
it’s not necessary to get completely rig-
orous at this point
18
let’s continue to think of the derivative
of a function f (x) at a as the limit
– as we simultaneously allow h to ap-
proach zero
* in the numerator
* and the denominator
of the Newton quotient
f (a + h) − f (a)
h
19
EXAMPLE:: f (x) = x2.
compute f 0(a) at a = 0, 1, 21
find the equation for the tangent func-
tion at ( 21 , 14 )
f (a + h) − f (a) (a + h)2 − a2
=
h h
a2 + 2ah + h2 − a2
=
h
2ah h2
= +
h h
= 2a + h
20
thus
f (a + h) − f (a)
lim = lim 2a + h
h→0 h h→0
= 2a
f 0(0) = 0
f 0(1) = 2
1
f0 =1
2
21
the equation of the tangent line at
1 1
(a, f (a)) = ,
2 4
is given by
y − f (a) = f 0(a)(x − a)
y − a2 = 2a(x − a)
y − ( 12 )2 = 2( 12 )(x − 21 )
y − 14 = 1(x − 21 )
y = x − 14
22
iii. Steps for finding derivative of f (a)
23
EXAMPLE:: f (x) = x3
(Step 1)
f (a + h) = (a + h)3
= a3 + 3a2h + 3ah2 + h3
(Step 2)
f (a + h) − f (a) = (a3 + 3a2h + 3ah2 + h3) − a3
= 3a2h + 3ah2 + h3
(Step 3)
f (a + h) − f (a) 3a2h + 3ah2 + h3
=
h h
24
(Step 4)
f (a + h) − f (a)
= 3a2 + 3ah1 + h2
h
(Step 5)
0 f (a + h) − f (a)
f (a) = lim = 3a2
h→0 h
25
EXAMPLE:: f (x) = x2
26
other notation for f 0(x) given y = f (x)
y 0 = f 0(x)
y 0 = f (1)(x)
or, in Leibnitz’s notation
dy d
y 0 = f 0(x) = = dy/dx = f (x)
dx dx
27
EXAMPLE:: Given y = x2
dy
= 2x
dx
28
EXAMPLE:: notation often changes, for
examples
P (t) = t2 ⇒ P 0(t) = 2t
Y = K3 ⇒ Y 0 = 3K 2
dA
A = r2 ⇒ = 2r
dr
29
iii. Increasing and decreasing functions re-
visited
let x1 < x2 be points in an interval I
if
– f (x2) ≥ f (x1): f is increasing in I
– f (x2) > f (x1): f is strictly increas-
ing in I
– f (x2) ≤ f (x1): f is decreasing in I
– f (x2) < f (x1): f is strictly decreas-
ing in I
30
31
these conditions sometimes are difficult
to verify
we also have if, ∀ x ∈ I
– f 0(x) ≥ 0 ⇔ f is increasing in I
– f 0(x) > 0 ⇒ f is strictly increasing
in I
– f 0(x) ≤ 0 ⇔ f is decreasing in I
– f 0(x) < 0 ⇒ f is strictly decreasing
in I
32
note the uni-directional arrows of the strictly
statements
– this is due to functions such as x3
which is strictly increasing around x =
0 but yet f 0(0) = 0
we also have if ∀ x ∈ I
– f 0(x) = 0 ⇔ f is constant in I
33
iv. Rates of change and their economic
significance
there are many applications of the deriva-
tive in economics
let f (x) be a function evaluated at two
points, a and a + h
we often interpret
f (a + h) − f (a)
h
as the average rate of change of f over
the interval from a to a + h
34
EXAMPLE
let f denote miles traveled as a function
of time
thus, the Newton Quotient
f (a + h) − f (a)
h
is average mph over the interval [a, a+h]
therefore
f (a + h) − f (a)
f 0(a) = lim
h→0 h
and f 0(a) is the instantaneous rate of
change of f at a
35
in contexts in which x represents time,
we often use t to denote the variable of
interest and write
36
we are often interested in proportional
rates of change or relative rates of change
f 0(a)
f (a)
an example would be growth rates of in-
come and population
also elasticities
a
0
Elf a ≡ f (a) ·
f (a)
∆y
y
≈ ∆x
x
∆y x
=
∆x y
37
Growth Rates
suppose N (t) is population at time
N (t + h) − N (t) is the change in popu-
lation
N (t+h)−N (t)
h is the average rate of change
in pop per unit of time
N (t+h)−N (t)
limh→0 h is the instantaneous
rate of change in the population
38
EXAMPLE
suppose P (t) = 6.4t + 641 population of
Europe, in millions
d
dt P (t) = 6.4 million per year
39
Economic examples
C(x) cost of producing x units
R(x) revenue from producing x units
Π(x) = R(x) − C(x) profits from pro-
ducing and selling x units
C 0(x) marginal cost at x
R0(x) marginal revenue at x
Π0(x) marginal profit
40
economists often refer to the marginal
propensity to consume (MPC).
let C = f (y) where C is consumption
and y is income
C 0 is the marginal propensity to consume
where
C 0 = f 0(y)
typically with 0 < C 0 < 1
41
EXAMPLE:
for a cost function C(x) the marginal
cost is given by
C(x + h) − C(x)
C 0(x) = lim
h→0 h
if x is large, 1 is relatively small:
C(x + 1) − C(x)
C 0(x) ∼
=
1
≈ C(x + 1) − C(x)
= ∆C(x)
often, however, you will see incremental
costs as marginal costs in your economics
classes as your professors choose to avoid
using calculus terminology
42
Differentiability and empirical functions
some functions are not differentiable, but
the derivatives can be approximated.
EXAMPLE
let K(t) denote capital stock at time t
K 0(t) = K̇(t)
0 d
K (t) = K(t)
dt
≡ I(t)
I(t) is investment
for actual accounting purposes
I(t) = K(t) − K(t − 1)
43