Lecture 8
Lecture 8
1
Learning outcomes
• Use the product rule, quotient rule, chain rule and
general power rule to compute the derivatives of
complex functions.
• Compute derivatives of exponential and logarithmic
functions.
• Understand and derive marginal cost, revenue and
profit functions.
• Find the relative extrema of a function.
2
Product rule / Quotient rule
• If f and g are functions, then
d d d
éë f ( x ) g ( x ) ùû = f ( x ) éë g ( x ) ùû + g ( x ) éë f ( x ) ùû
dx dx dx
d d
g ( x ) éë f ( x ) ùû - f ( x ) éë g ( x ) ùû
d é f ( x) ù dx dx
ê ú =
dx ë g ( x ) û éë g ( x ) ùû
2
3
Example 8.1
• Find the derivative of the following functions.
(a) f ( x ) = ( x 2 + 6 ) ( 3x - 1)
d é 2
f ' ( x ) = ë( x + 6 ) ( 3 x - 1) ùû
dx
d d 2
= ( x + 6 ) ( 3 x - 1) + ( 3 x - 1) ( x + 6 )
2
dx dx
= ( x 2 + 6 ) ( 3) + ( 3 x - 1)( 2 x )
= 9 x 2 - 2 x + 18 4
Example 8.1
• Find the derivative of the following functions.
2x
(b) g ( x ) =
x -1
d d
d æ 2x ö (
x - 1) ( 2 x ) - ( 2 x ) ( x - 1)
g '( x) = ç = dx dx
÷
dx è x - 1 ø ( x - 1)
2
=
( x - 1)( 2 ) - ( 2 x )(1) 2 x - 2 - 2 x
= =
-2
( x - 1) ( x - 1) ( x - 1)
2 2 2
5
Chain rule / General power rule
• If h is the composite of two functions f and g, then
d
h '( x) = g éë f ( x ) ùû = g ' éë f ( x ) ùû f ' ( x )
dx
dx
6
Example 8.2
• Find the derivative of f(x) = (2x2 + 1)10.
d
f ' ( x ) = ( 2 x + 1)
2 10
dx
éd ù
= 10 ( 2 x + 1) êë dx ( )úû
10 -1
2
2 x 2
+ 1
= 10 ( 2 x + 1) ( 4 x )
2 9
= 40 x ( 2 x + 1)
2 9
7
Exponential functions
• The derivative of an exponential function with base e is
equal to itself.
d x
dx
( e ) = e x
( ) = ln
1
g ( x ) = ln
3 3
-x -x - x3
xe x + ln e = ln x + ln e
2
1 1
= ln x - x ln e = ln x - x 3
3
2 2 13
Example 8.4
• Find the derivative of the following functions.
1
g ( x ) = ln x - x 3
2 d æ1 ö
g ' ( x ) = ç ln x - x 3 ÷
dx è 2 ø
1 d d 3
= ln x - x
2 dx dx
1
= - 3x 2
2x
14
More derivatives
• A function might need a combination of rules to compute
the derivative, e.g. chain rule with product rule
15
Example 8.5(b)
• Find the derivative of the following functions
(b) g ( x ) = e 4 x ln x
d 4x 4x d d 4x
g ' ( x ) = ( e ln x ) = e ( ln x ) + ln x ( e )
dx dx dx
4x æ 1 ö 4x æ d ö
= ( e ) ç ÷ + ( ln x ) ( e ) ç 4 x ÷
èxø è dx ø
e4 x e 4x
= + ( ln x ) ( e 4 x ) ( 4 ) = + 4e 4 x ln x
x x 16
Exercise
• Try Discussion questions Q1, 2, and 3.
17
Marginal functions
• Marginal analysis is the study of the rate of change of
economic quantities, e.g. the rate at which a country’s
GDP is growing, how much the cost of a product
changes with respect to the level of production.
• We will examine marginal cost, revenue and profit
functions.
18
Marginal cost function
• The total cost function C(x) gives the total cost required
to manufacture x units of the product.
• The marginal cost function gives the cost incurred in
producing an additional unit of a product.
19
Average cost function
• The average cost function is computed by dividing the
total cost by the number of units produced (x).
C ( x)
Average cost function = C ( x ) =
x
= $42,159.90
= $42, 000.00
22
Example 8.6
Cost to manufacture 201st unit = C ( 201) - C ( 200 )
= 42,159.90 - 42, 000.00
= $159.90
23
Example 8.6
d
(b) C ' ( x ) = ( 6000 + 200 x - 0.1x 2 ) = 200 - 0.2 x
dx
C ' ( 200 ) = 200 - 0.2 ( 200 ) = $160
24
Example 8.6
C ( x) 6000 + 200 x - 0.1x 2 6000
(c ) C ( x ) = = = + 200 - 0.1x
x x x
6000
C ( 200 ) = + 200 - 0.1( 200 ) = $210
200
26
Revenue function
• Total revenue realised from the sale of x units and it is
given by R(x) = px where p is the selling price per unit.
• However, selling price of a product is dependent on its
demand in the market. If the demand equation is given
by p = f(x),
R ( x ) = px = xf ( x )
• The marginal revenue function gives the revenue
realized from an additional unit of a product.
Marginal revenue function = R’ ( x )
27
Profit function
• The profit function is the difference between the total
revenue and total cost.
P ( x) = R ( x) – C ( x)
28
Example 8.7
• A company has determined that the total cost function in
manufacturing one unit of television set is given by C(x)
= 100x + 200,000. The monthly demand for the laptop is
given by the equation p = –0.02x + 400.
• (a) Find the revenue function and the marginal revenue
function.
• (b) Find the marginal profit function. Interpret the result
when x = 1000.
29
Example 8.7
(a) R ( x ) = px = ( -0.02 x + 400 ) x = -0.02 x 2 + 400 x
Marginal revenue function = R ' ( x )
d
= ( -0.02 x 2 + 400 x )
dx
= -0.04 x + 400
30
Example 8.7
(b) P ( x ) = R ( x ) - C ( x )
= -0.02 x 2 + 400 x - (100 x + 200, 000 )
= -0.02 x 2 + 300 x - 200, 000
32
Exercise
• Try Discussion questions Q4 and 5.
33
Increasing and decreasing functions
• A function f is said to be increasing on an interval (a, b)
if for any two numbers x1 and x2 in (a, b), f(x1) < f(x2)
whenever x1 < x2. Informally, this means that as x
increases, f(x) increases.
35
Increasing and decreasing functions
• A function can be increasing and decreasing at various
intervals.
• Use the following technique to find these intervals
1. Find these values of x. These
values will form open intervals.
1 f ' ( x ) = 0 Þ 3 x 2 - 6 x - 24 = 0
- ( -6 ) ± ( -6 ) - 4 ( 3)( -24 )
2
x= = -2 or 4
2 ( 3)
37
Example 8.8
2 The x values found in step 1 divide the number line into
the intervals (–∞, –2), (–2, 4) and (4, ∞).
3 Pick a test point in the interval c and check f’(c).
f’(x) = 0 40
First derivative test
1. First determine the x-coordinate by setting f’(x) = 0.
2. Check the sign of f’(x) to the left and right of x found in 1.
(i) If f’(x) changes from positive to negative, it is a relative
maximum.
(ii) If f’(x) changes from negative to positive, it is a relative
minimum.
(iii) If there is no change in sign, it is not a relative extrema.
3. Compute the relative maximum or minimum by finding the
value of f(x) at that point.
41
Example 8.9
• Find and determine the nature of the relative extrema of
the function f(x) = x3 – 3x2 – 24x + 32.
42
Example 8.9
2 Choose a value of x to the left and right of the relative
extrema. Then determine the slope of the curve at those
values.
44