Chapter 5
Chapter 5
CHAPTER FIVE
5. UNIVARIATE DIFFERENTIAL CALCULUS AND ITS
APPLICATIONS
5.1. Definition of derivative and its basic rules
The derivative
defined as
f ( x + Δx )−f ( x )
f ' ( x )= lim
Δx → 0 Δx
'
Where f ( x ) is read “the derivative of f with respect to x” or “ f prime of x.”
'
The derivative of a function f ( x ) , or simply f’, is itself a function which measures both the
slope and the instantaneous rate of change of the original function f ( x ) at a given point.
In the previous section, we showed that the slope of the tangent line for the function
f ( x )=x 2 at x=1 is 2 and so this is also its derivative; i.e., f ' ( x )=2 x at x=1 is 2 or
dy/dx=2 x at x=1 is 2.
Rules of differentiation
Differentiation is the process of finding the derivative of the function. It involves nothing more
complicated than applying a few basic rules or formulas to a given function.
1
Lecture Notes on Mathematics for Economists / 2024
The derivative of a sum of two functions f ( x )=g( x )+h( x ) , where g( x ) and h( x ) are both
differentiable functions, is equal to the sum of the derivatives of the individual functions.
Similarly, the derivative of the difference of two functions is equal to the difference of the
derivatives of the two functions.
' ' '
Given f ( x )=g( x )±h( x ) , f ( x )=g ( x )±h ( x )
5 4
Examples: Given f ( x )=12 x −4 x , f ' ( x )=60 x 4 −16 x 3
2
Given f ( x )=9 x +2 x−3 , f ' ( x )=18 x +2
The derivative of a product f ( x )=g( x )⋅h( x ) , where g( x ) and h( x ) are both differentiable
functions, is equal to the first function multiplied by the derivative of the second plus the second
function multiplied by the derivative of the first. Given f ( x )=g( x )⋅h( x ) ,
2
Lecture Notes on Mathematics for Economists / 2024
4 4
Example: Given f ( x )=3 x (2 x −5) , let g( x )=3 x and h( x )=2 x −5 . Taking the individual
3
derivatives, g '( x )=12 x andh '( x )=2 . Then by subtracting this values in the product rule
formula,
The derivative of a quotient f ( x )=g( x )÷h( x ) , where g( x ) and h( x ) are both differentiable
functions andh( x )≠0 , is equal to the denominator times the derivative of the numerator, minus
the numerator times the derivative of the denominator, all divided by the denominator squared.
Given f ( x )=g( x )/h( x ) ,
( 4 x+3)(15 x 2 )−5 x3 (4 )
f ' ( x )=
(4 x+3 )2
Simplifying algebraically,
60 x 3 + 45 x 2−20 x 3 40 x 3 + 45 x 2 5 x 2 (8 x +9 )
f ' ( x )= = =
( 4 x +3)2 (4 x +3 )2 ( 4 x +3)2
3
Lecture Notes on Mathematics for Economists / 2024
n−1
f ' ( x )=n [ g( x ) ] ⋅g ' (x )
3 5 3 2
Example: Given f ( x )=(x +6 ) , let g( x )=x +6 , then g '( x )=3 x . Substituting these values
in the generalized power function formula gives
Note: the generalized power function rule is derived from the chain rule which follows below.
Given a composite function, also called a function of a function, in which y is a function of u and
u in turn is a function of x, that is, y=f (u ) and u=g ( x ) , then y=f [ g ( x ) ] and the derivative of
y with respect to x is equal to the derivative of the first function with respect to u times the
derivative of the second function with respect to x:
dy dy du
= ⋅
dx du dx
2 4
Example: Consider the function y=(5 x +3) . To use the chain rule, let y=u 4 and
3
u=5 x 2 + 3 . Then dy /du=4 u and dy/du=10 x . Substitute these values in the chain rule
formula gives
dy
=4 u 3⋅10 x=40 xu3
dx
2
Then to express the derivative in terms of a single variable, substitute 5 x +3 for u.
dy
=40 x (5 x2 +3)3
dx
Note: For more complicated functions, different combinations of the basic rules must be used.
1. Suppose a manufacturer’s profit from the sale of radios is given by the function
P( x )=400(15−x )( x−2) , where x is the price in dollars at which the radios are sold. Find
the selling price that maximizes profit.
4
Lecture Notes on Mathematics for Economists / 2024
Solution
Your goal is to find the value of x that maximizes the profit P( x ) . This is the value of x for
which the slope of the tangent line is zero. Since the slope of the tangent line is given by the
derivative, begin by computing P '( x ) . For simplicity; apply the definition of the derivative to the
unfactored form of the profit function.
P '( x )=0
−800 x +6800=0
800 x=6800
6800
x= =$ 8 .5
800
It follows that x=8 . 5 are the x coordinates of the peak of the graph and that the optimal selling
price is x=$ 8 .50 per radio.
2. A manufacturer estimates that when x units of a particular commodity are produced, the
1 1
C ( x )= x 2 +3 x +98 P( x )= (75−x )
total cost will be 8 dollars, and that 3 dollars per unit is
the price at which all x units will be sold.
a. Find the marginal cost and the marginal revenue.
b. Use marginal cost to estimate the cost of producing the 9th unit.
c. What is the actual cost of producing the 9th unit?
d. Use the marginal revenue to estimate the revenue derived from the sale of the 9th unit.
e. What is the actual revenue derived from the sale of the 9th unit?
Solution
1
C ' ( x )= x +3
a. The marginal cost is 4 . Since x units of the commodity are sold at a price of
1
P( x )= (75−x )
3 dollars per unit, the total revenue is
5
Lecture Notes on Mathematics for Economists / 2024
Solution
Using the chain rule we need to derive a formula for MRP L in terms of L and then set it equal to
$8, given that MCL is fixed at this wage rate. As
dTR dTR dq
MRP L= = ............................................................................................(1)
dL dq dL
Therefore
6
Lecture Notes on Mathematics for Economists / 2024
dTR
=200−4 q........................................................................................................(2)
dq
q=4 L0. 5
Given , then the marginal product of labor will be
dq
=2L−0.5 ...............................................................................................................(3)
dL
As all units of L cost $8, setting this function for MRP L equal to the wage rate we get
400−8q
=8
L0 .5
400−8q=8 L0 .5 ...............................................................................................( 4)
Substituting the production function q = 4L 0.5 into (4), as we are trying to derive a formula in
terms of L, gives
400−8 (4 L0 .5 )=8
400−32 L0. 5 =8 L0. 5
400=40 L0 . 5
10=L0. 5
100=L
which is the optimal employment level.
The chain rule can help the calculation of point elasticity of demand for some non-linear demand
functions.
0.5
4. Find point elasticity of demand when q=10 If p=(120−2 q ) .
Solution
7
Lecture Notes on Mathematics for Economists / 2024
p 1
e=(−1) ...............................................................................................................(1)
()
q dp
dq
0.5
Create a new variable z=120−2 q . Thus p=z and so, by differentiating:
dp dp dz
=
dq dz dq
=0 . 5 z −0 . 5 (−2 )
=0 .5 (120−2 q )−0. 5 (−2 )
−1
= 0 .5
(120−2 q)
and so, inverting this result,
1
=−(120−2 q )0. 5
dp/dq
q=10
when , then from the original demand function price can be calculate as
p=(120−20 )0 .5 =100 0. 5 =10
Thus, substituting these results into formula (1), point elasticity will be
10
e=(−1 ) (−1 )(120−2 q )0 .5 =(120−20 )0. 5 =1000 . 5=10
10
Sometimes it may be possible to simplify an expression in order to be able to differentiate it, but
one may instead use the chain rule if it is more convenient. The same result will be obtained by
8
Lecture Notes on Mathematics for Economists / 2024
f ''( x )
The second-order derivative, written , measures the slope and the rate of change of the first
derivative, just as the first derivative measures the slope and the rate of change of the original or
f '''( x )
primitive function. The third-order derivatives measures the slope and rate of change of
the second-order derivative, etc. Higher-order derivatives are found by applying the rules of
y=f ( x ) f ''( x )
Example: Given , common notation for the second-order derivatives includes ,
For any positive integer n, the nth derivative of a function is obtained from the function by
differentiating successively n times. If the original function is y=f ( x ) , then n derivative is
th
denoted by
dn y ( n)
n
or f ( x )
dx
5.3.2. Implicit differentiation
Introductory economics deals most often which explicit functions in which the dependent
variable appears to the left of the equal sign and independent variable appears to the right.
9
Lecture Notes on Mathematics for Economists / 2024
Frequently encountered in more advanced economics courses, however, are implicit functions in
which both variables and constraints are to the left of the equal sign. Some implicit functions can
be easily converted to explicit functions by solving for the dependent variable in terms of the
independent variable; others cannot. For those not readily convertible, the derivative may be
found by implicit differentiation.
x 4 −9 x3
y=4 x y =x2 +6 x−7 y=
Explicit: x 2−13
1) Differentiate both sides of the equation with respect to x while treating y as a function of x,
d 4 5 d
(3 x −7 y −86)= (0) ...................................................................................(1)
dx dx
d d d d
(3 x 4 )− (7 y 5 )− (86)= (0)
dx dx dx dx
d d d
(3 x 4 )=12 x 3 , (86 )=0 , (0)=0
where dx dx dx . Using the generalized power function rule for
d d dy
(7 y 5 ) ( y )=
dx and noting that dx dx , we get
d d dy
(7 y 5 )=7⋅5⋅y5−1⋅ ( y )=35 y 4
dx dx dx
Substitute the above values in (1)
dy
12 x3−35 y 4 =0 ..............................................................................................................(2)
dx
10
Lecture Notes on Mathematics for Economists / 2024
An important practical problem for which differentiation can often provide quick and easy
answers is that of finding the extreme values, that is maximum and minimum values of a
function. To set the stage consider the following graph of a function y=f ( x ) defined on closed
interval a≤x≤b
The points A, B, C, D, E, and F are the extrema (singular extreme points) of the function. In
particular,
Relative extreme value: is an extreme value when compared with the values near to it.
f has a relative minimum at A, C and E (i.e f at that point is less than or equal to all values
of f ( x ) in some interval about that point);
f has a relative maximum at B, D and F (i.e f at that point is greater than or equal to all
values of f ( x ) in some interval about that point);
Absolute extreme value: is an extreme value that the function attains throughout its
domain.
f has an absolute minimum at C (i.e at that point f is less than or equal to all values of f
on the interval);
f has an absolute maximum at F (i.e at that point f is greater than or equal to all values of
f on the interval);
For example consider a function y=2x+1. As we increase the value of x, the value of y
increases continuously. Again, when we decrease the value of x, the value of y decreases
continuously. However, if the domain is restricted to a closed interval [a, b] which means
and the function is continuous everywhere within the interval, the function will have an
absolute minima and absolute maxima within the interval. They may be located either:
11
Lecture Notes on Mathematics for Economists / 2024
Note that a function may (or may not) have absolute extreme value like there may or may not
exist relative extreme value.
For continuous functions extrema occur at only a limited class of points and the five extrema
above illustrate each class. For a function y = f (x) a point in its graph is They may be located
either:
It is a singular point, that is, its derivative does not exist there;
It is an end point, that is, some interval on one side of the point is not in the domain of f .
For example, for the above function, the points B, C and E are stationary and D is singular, so
these are the critical points of the function. The points A and F are the end-points.
The extreme points of a continuous function occur only at critical points and end-points.
This pretty clearly makes the task of finding all extreme points a much easier task.
3rd Use the above value to get the extreme value of the function (i.e, insert the value you got in
the 2nd step in f(x) to get the extreme value).
4th Evaluate the first derivative function at some values of x to the left and the right of each
critical point
a. If f ' ( x ) > 0 to the left and f ' ( x ) < 0 to the right of the critical value of f(x), the critical
point is relative maximum
b. If f ' ( x ) < 0 to the left and f ' ( x ) > to the right of the critical value of f(x), the critical
point is relative minima.
12
Lecture Notes on Mathematics for Economists / 2024
3
Example: Let’s find all extreme points of f ( x )=12 x−x on the interval−3≤x≤5 . We begin
our search by finding all critical points and that begins with the derivative:
d
f ' ( x )= (12 x−x 3 )=12−3 x 2
dx
Since this is defined for all values of x on the interval, there are no singular points. But
Next, there are only two end-points at x = −3 and x = 5. That is the end-points are (−3, −9) and
(5, −65).
Since these four points are the only possible extreme points, we need only compare them to see
that
So
Finally just comparing the relative extrema, we see that (5, −65) is the absolute minimum and (2,
16) is the absolute maximum.
3
f ( x )=(x −1)
Example: Here is a curious one. Let’s find the extrema of
13
Lecture Notes on Mathematics for Economists / 2024
1
f ( x )= x 3 −x 2−3 x +2
a. 3
3 2
b. f ( x )=2 x −6 x +6 x+1
Solution
1 3 2
a ) f (x )= x −x −3 x +2
3
f ' ( x )=x 2 −2 x−3
f ' ( x )=x 2 −2 x−3=0
( x−3 )( x+1 )=0
x=3 or x =−1
1
f (3 )= (3)3 −32 −3(3 )+2=−7
3
1
f (−1)=− −1+3+2
3
1 11
=4− =
3 3
(3,−7) and (−1,11/3)
Thus, the critical values are . To find out which one relative minima or
(−1 , 11/3 ) (3 ,−7 )
maxima, use the number line. Thus, is relative maxima and is relative minima.
14
Lecture Notes on Mathematics for Economists / 2024
b ) f ( x )=2 x 3 −6 x 2 +6 x +1
f ' ( x )=6 x 2 −12 x +6
f ' ( x )=6 x 2 −12 x +6=0
x2 −2 x+1=0
( x−1)2 =0
x=1
f (1)=2−6+6 +1=3
The only critical value is (1,3) . To check whether it is relative minima or maxima, let’s see the
df ( x )
behavior of dx near 1. This shows that the function has no relative extreme value.
Note that instead of taking the number line to check for maxima or minima, we can use the 2 nd
derivative. If λ is the critical value which makes f ' ( x )=0 , then the point ( λ , f ( λ ) is relative
maxima if f ''( λ )<0 and relative minima if f ''( λ )>0 . But when f ''( λ )=0 we can’t use the
2nd derivative test and we have to use the behavior of the first derivative to check for relative
optima.
Example: Use the 2nd derivative test of the previous function to know whether they are relative
maxima or relative minima.
1
f ( x )= x 3 −x 2−3 x +2
a. 3
3 2
b. f ( x )=2 x −6 x +6 x+1
Solution
11
2 (3 ,−7 ) and (−1 , )
a . f ' (x )=x −2 x−3 critical values are 3
11
(−1 , )
f ''( x )=2 x −2 f ''(−1)=2(−1)−2=−4 so 3
is relative maxima
15
Lecture Notes on Mathematics for Economists / 2024
f ''( x )=12−12=0
a. Find the critical values and critical points and check whether they are within the interval
b. Calculate f(a) and f(b)
c. The largest value and smallest value obtained from the above steps represent the absolute
maxima and the absolute minima of the function over the interval respectively.
Examples
2
1. Find the absolute maxima and minima of f ( x )=x −6 x+ 2 over the interval0≤x≤5 .
2. Find the absolute extrema of f ( x )=x +3 x + 4 over the interval [ −4 ,−2 ]
3 2
Solution
1 . f ' ( x )=0
2 x−6=0
x=3
f (0)=2
f (5)=−3
There is absolute maxima at x = 0 (0, 2) and absolute minima at x = 3 (5, -3) within [0,5].
16