Calculus-chapter 2_edited Version
Calculus-chapter 2_edited Version
x = x1-xo or x1 = xo + x.
•The corresponding change in y is said to be an increment in y and
denoted by y (read as “delta y”). That is, an increment in y from y0 to y1 can be
•Given y = f(x)
1. The average rate of change of y with respect to x is the change in y resulted from some
change in x. the average rate of change of y between x=x0 and x=x1 is given by
•Average rate of change =
•It is also termed as the difference quotient of the function and represents change in y per
unit change in x.
•Solutions
•a) x0 = 1 and x1 = 4, and thus x = x1-x0 = 4-1 = 3 Moreover, y = y1-y0 = f(x1) – f(x0)
• = f(4) – f(1)
• = 3(42) – 3(12) = 48 –3 = 45
Given y = 2x2 – 1
• Find the average rate of change of y.
Solution:
• f(x0) = 2x02 -1 and f(x0 + ∆x) = 2(x0 + ∆x)2 - 1
• The next step is to form the difference quotient
• Let x0 = 3 and ∆x = 5
• Symbolically, as 0
= () =
• This is the derivative of the function y = f(x) = 2x 2 – 1, provided that the limit
of exists as approaches zero
II. Slope of a Tangent line
• Suppose the figure given below be the graph of y = f(x)
•A secant line is a straight line which passes through two points on the graph of
y = f(x). For instance, line L2 which passes through P and Q (in the graph on the next slide) is
a secant line. The slope of the secant line which passes through the point (x0, f(x0)) and (x0+ x
, f(x0+Δx) is given by:
•A tangent line is a straight line which touches (but not crosses) the graph of
y=f(x) at a given point. For instances, line L1 in the following graph is a tangent line.
•As it can be seen from the above graph, as x becomes closer and closer to 0 (as
x 0), the point Q approaches to point P. In other words, as x 0 the secant line L2 will
approaches to line L1 and its slope will approaches to the slope of L1.
•Given the graph of Y =f(x), the tangent line at (x , f(x )) is a line that passes through this point
0 0
1. The slope of the tangent line at (x0, f(x0)) is always equal to the slope of the graph or the
function y = f(x) at (x0, f(x0)).
Derivatives: Definition
The derivative of a function 𝑦 =ƒ (𝑥) at the point 𝑥0 is the slope of the tangent line at that
point:
x0
f (x0 xx) f (x0 )
lim f '(x )
•If ƒ′(𝑥 0 ) exists, then we say that ƒ is differentiable at point 𝑥0.
•We say that the function ƒ is differentiable over (𝑎, 𝑏) if it is differentiable at each point
𝑥0 in (𝑎, 𝑏).
2.2. Continuity and Differentiability of a Function
To summarize:
•Notice that we are not claiming that a continuous function must be differentiable. Indeed it
can be shown that a continuous function f ( x) will not be differentiable at x c if f ( x)
becomes infinite at x c or if the graph of f ( x) has a “sharp” point at P(c, f (c)) ; that is, a
point where the curve makes an abrupt change in direction. If f(x) is continuous at x c but
f '(c) is infinite, the graph of f may have a “vertical tangent” at the point P(c, f(c)) (Figure a)
or a “cusp” at P (Figure b). The absolute value function f (x) | x| has a “sharp point” at the
origin (0, 0) (see Figure c). Another graph with a “sharp point” is shown in Figure d.
• Steps on how to compute the derivative of f(x), f’(x)
I. From the difference quotient (Note that ∆x = h)
II. Simplify the difference quotient algebraically to eliminate the factor h
from the denominator.
III. Let ∆x or h approaches zero in the simplified difference quotient.
• Use the difference quotient steps find the derivative of the following functions.
a) f(x) = 3x + 5
b) f(x) = x2 + 1 A n sw e r
a) f1(x) = 3 b) f1(x) = 2x
c) f(x) = 1/x
c) f1(x) = 21 d) f1(x)=8x-5
d) f(x) = 4x2 – 5x + 1 x
Rules of Differentiation: Derivative Notations
• Up to now we found the derivative of a function by using the steps discussed earlier
• There are some general rules for differentiating particular types of function.
• They are handy to simplify the task of finding the derivative of a function
• Below are some of the derivative rules we are commonly practicing in calculus
1. Constant Function Rule
The derivative of a constant function y = f(x) = k is zero.
dy dk 1
0 or 0 or f ( x) 0
dx dx
Proof:
Ex 1:- Fforinany derxivwe
d thxeand ve offxf (x)x =k3.and
atihave Solu x: xf1( xf)(=x) 00
y tiof n
Ex 2. b)Ff(ix)n=d d
x . tSh
olue
tiond: e
3
f (rxi) v
= at(ixv
1 3 e o
) 3x 3 1ft3h
x 2 e following f
dx
2 1 d
Proof
Proof: - Let f x x is a function and x h, then f ' x lim
n x h x
n n
h 0
h
But
n n 1 n(n 1) n 2 2 n
x nx h x h ... h
2!
n 1 n 2 2
n nx h n ( n 1) x h
(x ... h n x n )
f ' ( x) lim 1! 2!
h 0
h
dx
Ex 2. Find the derivative of the following functions
d 2
a) f(x) = x . Solution: f (x) = ( x ) 2 x 2 1 2 x
2 1
dx
d 3
b) f(x) = x . Solution: f (x) = ( x ) 3x3 1 3x 2
3 1
dx
1 1 1
1 d( x) d 1 1 1 1 1
c) f ( x) x . Solution: f ( x) (x ) x 2 2
x 1
2
dx dx 2 2 2 x
2x 2
25 1 d 25 25 1 24
d) f(x) = x . Solution: f ( x) ( x ) 25 x 25 x
dx
Exercises
The derivative of a sum (difference) of two functions is the sum (difference) of the individual
derivatives.
d d d
f ( x ) g ( x ) f ( x ) g ( x ) f 1 ( x ) g 1 ( x )
dx dx dx
Example 3: Find the derivative dy/dx for each of the following functions.
a) f(x) = x2 + 2x
1 dy d 2 d 2 d
Solution: f ( x) ( x 2 x) ( x ) (2 x)
dx dx dx dx
Proof: - Let F(x) = f(x) g(x)
lim F ( x x) F ( x)
F ' ( x) x 0
x
lim [ f ( x x) g ( x x)] [ f ( x) g ( x)]
x 0
x
b) f (x) = x3 + x2 + 1
1 d 3 2 d 3 d 2 d
Solution: f ( x) ( x x 1) ( x ) ( x ) (1)
dx dx dx dx
d 3 2 d 2 d (1)
d (x ) d d 2
But 2 x and (2 x) 2 Therefore ( x 2 x) 2 x 2 2( x 1)
dx dx dx
b) f (x) = x3 + x2 + 1
1 d 3 2 d 3 d 2 d
Solution: f ( x) ( x x 1) ( x ) ( x ) (1)
dx dx dx dx
d 3 2 d 2 d (1)
But ( x ) 3x and ( x ) 2 x by power rule. 0 by cons tan t rule.
dx dx dx
d 3
( x x 2 1) 3 x 2 2 x
dx
c) f(x) = x5 + x3 + x + 10
Solution:
d 5
f ( x) ( x x 3 x 10)
1
dx
dx
c) f(x) = x5 + x3 + x + 10
Solution:
1 d 5 3
f ( x) ( x x x 10)
dx
d 5 d 3 d d
( x ) ( x ) ( x) (10)
dx dx dx dx
5 x 4 3 x 2 1 0
5 x 4 3 x 2 1
2 1 d 2 d 2 d
d) f(x) = x – 5x. Solution: f ( x) ( x 5 x) ( x ) (5 x) 2 x 5
dx dx dx
5). The Product Rule
The derivative of the product of two (differentiable) functions is equal to the first function
times the derivative of the second function plus the second function times the derivative of the
first function.
Ex 5 Find the derivative of each of the following functions:
a). y =(x + 1) (x2 + 5)
Solution: Let f (x) = x + 1 and g (x) = x2 + 5
Then f1(x) = 1 and g1(x) = 2x
2 d d 2
( x 5) (1 2 x) (1 2 x) ( x 5)
dx dx
2
( x 5)( 2) (1 2 x)( 2 x)
2 2 2
2 x 10 2 x 4 x 6 x 2 x 10
Exercises
Note that
• The product rule can be extended to more than two functions
• For instance for the case of three functions: y = f(x) . g(x) . h(x)
Ex 6: Find the derivative of the function: y = (3x2 + 2) (3x) (6x + 7)
f ( x)
h(x) = ,then
g ( x)
d f x f ' ( x ) f ( x ). g ' ( x )
( )
dx g ( x ) [ g ( x )] 2
f ( x)
Proof:-Let h(x) =
g ( x)
f ( x) h( x) g ( x)
f ' ( x ) h' ( x ) g ( x ) h( x ) g ' ( x ) - - - product rule
h’(x)g(x) = f’(x) - h(x)g’(x)
h’(x) = (f’(x) - h(x)g’(x) )/g(x)
f ( x) This is
f ' ( x) g ' ( x) b/s
g ( x) f ' ( x). g ( x) f ( x).g ' ( x)
h’(x) = h’(x) =
g ( x) [ g ( x)] 2
x 1
Ex 5 y=
x 2
Solution: Let f (x) = x + 1 and g(x) = x – 2. Then
d d
( x 2) ( x 1) ( x 1) ( x 2)
dy dx dx
dx ( x 2) 2
( x 2)(1) ( x 1)(1) x 2 x 1 3
2
2
2
( x 2) ( x 2) ( x 2)
x2 1
Ex 6 y =
1 x2
Solution:
d 2 2 2 d
(1 x ) ( x 1) ( x 1) (1 x 2 )
dy dx dx
dx (1 x 2 ) 2
(1 x 2 )( 2 x ) ( x 2 1)( 2 x )
(1 x 2 ) 2
2 x (1 x 2 ( x 2 1)) 2 x (1 x 2 x 2 1
2 2
(1 x ) (1 x 2 ) 2
4x
(1 x 2 ) 2
x 2 2 x 21
Ex 7 Y
x 3
Solution: d 2 2 d
( x 3) ( x 2 x 21) ( x 2 x 21) ( x 3)
dy 2 d 2 d
dx dxd
2 x 21) ( x ( x2 x3) 21 ( x) 2 x(x 21 2
)3 )(3x 2 x 21) ( x 3)
dy
dx dx dx ( x 3) dx
3
3
( x 3dx
) ( x 3)( 2 x 2) ( x 2 (2xx 321 ) )(1)
d
21 2) ( x
2
2 x 21) ( x 23)
( x 2 x 21)( ( x1) 3)( 2 xdx
(2x) 3()x 2 x 21)(1)
3
3
3
3()x 3) 3
2 ( x 3 ) 2
2 x 6 x 2 x 6 x 2 x 21 x 6 x 15 2
2 2 2 2 2
x6 x2 x 221
2
x )2 x 6xx 2
)(121 ( x x36
6
x ) 15
3 x 2 x 21 x( x 63x) 2 15
3 3
23
3)3) ( x (x 33 )) ( x 3) 2
2 2
x 2 x 21 x 6 x 15
3
2
( x 3)
2
Ex 8: f ( x) x ; f ' ( x)
2 x.(1 x ) x 2
(1)
2
1 x (1 x )
Answer:
2
x ; f ' ( x)
2
2 x.(1 x) x (1) x 2 x
2
2 2
1 x (1 x) (1 x)
2 2
1 x) x (1) x 2 x
2
2
(1 x) (1 x)
7: The Chain Rule (Composite Function Rule)
•The Chain Rule
c) f ( x) ln x 2 1
Solution:
= = = =
= .
Therefore, = =
Derivatives of Exponential Functions
Differential Calculus – Derivative . . .
Exponential function Rule
• Now we learn to differentiate exponential functions of the form
• The derivative of the exponential function y = ex is ex
𝑥
𝑑 𝑒 𝑥
=𝑒
𝑑𝑥
• We can proof this by using the inverse function rule.
• Let y = ex
• The inverse of the function will be x = log ey = lny
Then, by inverse
function rule:-
d
Ex 1: Ex e 2 x e 2 x 2 2e 2 x
dx
• Generally if h (x) is a differentiable function of x, then the derivative of eh(x) can
be found by using the following formula.
𝑑 h (𝑥)
𝑒 =h1 ( 𝑥 ) 𝑒 h ( 𝑥 )
𝑑𝑥
• That is the derivative of eh(x) is multiplying eh(x) by the derivative of the exponent
h(x)
• Note that in y = ex , h (x) = x and h1(x) = 1 hence
• Generalizing the above result to any base b, that is, in the form of bh(x), then the
derivative can be found by using the following formula.
𝑑 h( 𝑥) 1 h (𝑥)
𝑏 =h ( 𝑥) 𝑏 ln 𝑏
𝑑𝑥
If b = e then the formula will reduce to the above formula. (Since ln b = lne =
1).
If h(x) = x, then the derivative of bh(x) = bx is equal to bx ln b.
This can be proved as follows.
Let b = elnb
bx = exlnb
Differentiating both sides with respect to x,
𝑑 𝑥 𝑑 𝑥 ln 𝑏 d
dx
a x a x ln a, w/ a 0, 1
𝑏= 𝑒 d u
a au ln a
du
𝑑𝑥 𝑑𝑥
dx dx
d sin x
Ex
dx
2 2
sin x
ln 2 cos x
Derivatives of Exponential Functions
Derivatives of Exponential Functions
Exercise:
Differentiate the following functions by using exponential rule
a). f(x) = 5x-2
x 2 3x
b). f(x) = 12
1
f (x) = (2x – 3) 12 x 2 3x
ln12.
Exercises
How do we differentiate a function when both the base and exponent
contain the variable???
Example: , find the derivative of y with respect to x
For a function like this we have to use Logarithmic Differentiation
Procedures to use Logarithmic Differentiation are:
a. Take the natural logarithm of both sides of the equation
b. Use the properties of logarithms to simplify the equation
c. Differentiate (sometimes implicitly!) the simplified equation
Examples: solve the followings
x
y x
ln y ln x x =x
ln y x ln x dy
y ln x 1
dx
d d
ln y x ln x
dx dx dy
x ln x 1
x
dx
Higher order derivatives
2.5 Higher Order Derivatives
In our previous discussion we have considered only the first derivative of a
function
Next we will see the concept of second derivative, and derivatives of even high
orders.
The derivative of a function is the first derivative.
The derivative of the first derivative is called the second derivative.
The second derivative of the function f denoted by or indicates that
has been differentiated with respect to x twice.
If exists for all x values in the domain, the function is said to be twice
differentiable:
WExample:
e call the second derivative of f.
5 4
For y f ( x ) x 3 x x, the second derivative is given by
y
3 2
f ( x ) 20 x 36 x .
Continuing in this manner, we have
f ( x ) 60 x 2 72 x, the third derivative of f
f ( x ) 120 x 72, the fourth derivative of f
f ( x ) 120, the fifth derivative of f .
Example1: Find the first and second derivative of the function f (x) = 3x2-5x+15
Exercise
The sign of the derivative
• You are now well acquainted of what the derivatives of higher orders mean
Conditions:-
I. If then the value of the function tends to increase(or f(x) is an increasing function at a
given point and/or interval or the rate of change of f(x) with respect to x is positive)
II. If , then the value of the function tends to decrease (or f(x) is decreasing function at a
given point and/or interval); (or the rate of change of f(x) with respect to x is negative)
The sign of the derivative
derivative.
Hence:-
a. A function is said to be concave up ward (convex down ward) curve, if it increases at
an increasing rate or f” (x)>0.
b. A function is said to be concave down ward/convex up ward) curve, if it increases at a
decreasing rate or f” (x) <0
c. A function can be neither concave nor convex curve at a given point and it is called
point of inflection it is true when f”(x) = 0
Example.
The We can
inflection illustrate
point in diagram
(or point form about
of inflection) concavity,f convexity
of a function is defined&topoint of
be the
point at which the concavity changes.
inflection.
Example. We can illustrate in diagram form about concavity, convexity & point of
inflection.
y
Note:
• To find the inflection points, we look at the second derivative.
• Find all the points such that f” is zero or undefined at those points.
• Then use the Key Number Method to test the sign changes of f” at those
points.
Concavity and convexity of a function
•Let f(x) be a function of a single variable defined on an interval.
•f(x) is Convex if every line segment joining two points on its graph is never
below the graph
•The line tangent to convex (concave upward) functions is below the graph of
the functions (tangent from below).
• However, there are also stationary points that are neither a maximum nor a
minimum value of the function.
• These stationary points are called points of inflection
Point of inflection
• key insight is that a point of inflection is a point at which the slope of the function (not the
function itself) reaches a maximum or minimum value.
• At a stationary point the curve is neither rising nor falling at this point.
• For any function 𝑦 = 𝑓(x), a point of inflection is a point on the curve at which the slope is
at a maximum value or a minimum value.
• Conditions for inflection
First Order Condition for a point of inflection
The second order derivative = 𝑑𝑑x2 𝑦2 =
0 Order Condition for a point of inflection
Second
The third order derivative = 𝑑3𝑦
> 0, the slope is the minimum of the
𝑑x 3
The third order derivative =
function 𝑑3𝑦
< 0, the slope is the maximum of the
𝑑x 3
𝑑𝑦
function
• Note that 𝑑 may or may not equal zero at a point of inflection.
x
lOMoARcPSD|6162234
• 𝑦 = x 3 − 12x 2 +
• 𝑦 = 3 1 x 3 − 3x 2 + 9x 𝑦 = −x 3 + 6x 2 − 12x
20
+5 + 50
3 2
4
• 𝑑x = 2x − 6 =
𝑑2𝑦 𝑑2
𝑦
= 6x − 24 = 𝑑2
= −6x + 12 =
• 0𝑑𝑑x𝑦 = 2 > 0
2 • 𝑑x 2 • 𝑦
𝑑x 2
0 =6 >0 0 = −6 < 0
3
𝑑3𝑦 𝑑3𝑦
3
• 𝑑x 3
• 𝑑x 3
• Slope is min • Slope is min • Slope is max
𝑑2 𝑑 2
• OR check sign of 𝑑 𝑦2 close to 2 and if
2
• OR check sign of 𝑑𝑦x 2 close to 3 and if • OR check sign of 𝑑𝑦x 2 close to 4 and if 𝑑x
sign changes, then there is inflection point sign changes, then there is inflection point
sign changes, then there is inflection point
lOMoARcPSD|6162234
f’(x)= 2x-6
When x=2 f’ (2) =2(2)-6=-2<0, the function is decreasing.
When = 4 f’ (4) -6 = 2>0, the function is increasing.
b. f(x) = x2+4x+5, at x =-3 and x = -1, and x =-2
f’(x) = 2x+4
When x = -3 f’(x) =2(-3) +4 = -2<0, the function is decreasing.
When x =-1 f’(x) =2(-1) +4 = 2>0, the function is increasing.
When x = -2 f’(x) = 2(-2) + 4=0, the slope of the curve is horizontal
and stationary.
Example:
II. Identify the following function whether they are concave, convex curve or has point of
1.
inflection.
a) f(x)=2x2-4x
f’(x) = 4x-4
f” (x) = 4>0 , then the curve is convex downward.
b). f (x) = x3-3 x2+4
f”(x) = 3x2-6x
f”’(x) = 6x – 6, point of inflection is where f”(x) = 0
hence it will be at x=1.
Maximization and minimization
• Students will apply the knowledge they acquire in other fields of economics like
microeconomics, labor economics, macroeconomics, etc.
• Therefore, they apply the concept of derivative in order to solve such kind of problems
(optimization problems) involving one variable only and we will extend it to more than one
variable in unit 6.
Maximization and minimization
4.1. INTRODUCTION
• Concepts of absolute and Relative extrema, the first and second order test
• Finally how to find the minimum or maximum values of economic problems will
be discussed.
Maximization and minimization
4.2. Absolute Maxima and Minima
find the
x x
a
x
x1 X2
A) Absolute maximum at x = 0 B) Absolute minimum at x = 0,
C) Absolute maximum (b) and minimum(a) on a
but no absolute maximum
closed interval or
The absolute maximum of The absolute minimum of The absolute The absolute
the function occurs at a. the function occurs at b. maximum of the minimum of the
function occurs function occurs
at c. at a.
• The following steps will help to find the absolute extrema of a continuous
function f on a closed interval
Steps
1. Check that the function is continuous over the interval [a, b]
2. Find the critical values of the function f on the closed interval [a, b] (i.e )
3. Compute f (x) at these critical values and compute f (x) at the end points (critical
points found in step 2) i.e. at x = a and x = b.
4. Select the largest and smallest value of f (x) in step 3.
5. The largest value is an absolute maximum
6. The smallest value is the absolute minimum
Ex 1: Find the absolute maximum and absolute minimum of the function:
f (x) = x2 + 4x + 5 on the interval
Solution:
Does f have absolute maximum and minimum values? Yes. Let us see it.
Step 1: The function is continuous on [-3, 1]
Step 2: f1(x) = 2x + 4 = 0
2x + 4 = 0
2x = -4 x = -2 is the critical value.
Step 3: f (-2) = (-2)2 + 4(-2) + 5 = 4 – 8 + 5 = 1
f (-3) = (-3)2 + 4(-3) + 5 = 9 – 12 + 5 = 2
f (1) = 12 + 4(1) + 5 = 1 + 4 + 5 = 10
Step 4: The largest value in step 3 is f (1) = 10 is an absolute maximum.
The smallest value f (-2) = 1 is an absolute minimum.
Ex 2: Find the absolute maximum and absolute minimum of the function
f (x) = x3 + 3x2 – 9x – 7;
Solution:
Steps 1. The function is continuous
Steps 2. f’(x) = 3x2 + 6x – 9 = 0. Hence, x = -3 or x = 1 are the critical values.
Steps 3. f (-3) = (-3)3 + 3(-3)2 – 9(-3) – 7 = 20
f (1) = (1)3 + 3(1)2 – 9(1) – 7 = -12
At end points
f (-4) = (-4)3 + 3(-4)2 – 9(-4) – 7 = 13
f (2) = (2)3 + 3(2)2 – 9(2) – 7 = -5
• Therefore: f (-3) = 20 is an absolute maximum
f (1) = -12 is an absolute minimum
Class Work:
Find the absolute extrema of g on [-3,-1] if g(x) = x 3 + 5x - 4
Solution:
Does f have absolute maximum and minimum values? Yes
Solve for the critical numbers of g on [-3,-1].
g’(x) = 3x2 + 5 = 0. Then for what value/s of x will g’(x) be zero? None
Thus, g has no critical number on [-3,-1].
Compute the function values of g at the endpoints,
x 3 g 3 3 5 3 4
3
Sketch the graph of the function to identify the absolute maximum and minimum
The interval with which you are working will contain only one first order critical
value of the function.
That is functions with no absolute extrema
To find the local extrema and or absolute extrema of interval that is not closed:
Solution:
• Take the first derivative of the function and find the critical value.
Solution:
• But only x = 3 is the only value on the relevant
• As usual find the critical values of
interval.
the function
1). Find the absolute minimum and maximum value of the function:
f(x) = 4x2 – 16x + 4
Solution:
f(x) = 4x2 – 16x + 4
f’(x) = 8x – 16 = 0, x = 2 is critical value
f’’(x) = 8, hence:
• f’’(x) is always positive, that is f(x) is always concave up and
• Thus, by the 2nd derivative test f(x) has a relative minimum at x = 2
• Since this is the only critical value, it follows that:
f(x) has an absolute minimum of f(x) = f(2) = 4.22 – 16.2 + 4 = -12 at x = 2
and consequently, has no absolute maximum.
Home Work
a). Find the absolute minimum and b). Find the absolute minimum value of
maximum value of the function: the function f(x) = ex – 5x
f(x) = x3 – 9x2 + 24x -10 Solution:
Solution: f’(x) = ex – 5 = 0
f’(x) = 3x2 – 18x + 24 = 0
ex = 5
3(x2 – 6x + 8) = 0
ln ex = ln 5 so x = ln 5 is a critical
3(x – 4) (x -2) = 0 point
so x = 2 or x = 4 are both critical points
f’’(x) = ex
f’’(x) = 6x – 18
f’’(ln5) = eln5 = 5 > 0
f’’(2) = -6 < 0
so f has a local minimum at x = ln5
so f has a local maximum at x = 2
f’’(4) = 6 > 0
so f has a local minimum at x = 4
c). Find the absolute minimum value of the function f(x) = 10x6 – 24x5 + 15x4
Solution:
Therefore, there is
a local minimum at
x=0
Decreasing Increasing Increasing
RELATIVE MAXIMUM AND MINIMUM
A relative maximum of a function is a peak, a point on the graph of the
function that is higher than any neighboring point on the graph.
A relative minimum is the bottom of a valley, a point on the graph that is lower
than any neighboring point.
The relative maxima and minima of a function are collectively called relative
extrema.
Y
C Y = f(x)
D
B
Fig a: Fig b:
a) a relative maximum if f’(x) changes its sign from positive to negative from the
immediate left of the point x0 to its immediate right.
b) a relative minimum if f’(x) changes its sign from negative to positive from the
immediate left of x0 to its immediate right.
c) neither a relative maximum nor a relative minimum if f’(x) has the same sign on
both the immediate left and right of point xo
Important Note:
• Need to find out the critical values first before we can apply the 2nd derivative
test
(a) (c)
• In fig (a) above, the values x1 and x2 are critical values of f (x).
• The value of the function at x1, f (x1), is a relative minimum because the sign of the
first derivative f’(x) changes its sign from negative to positive.
• The value of the function at x2, f (x2), is a relative maximum because the sign of the
first derivative f’(x) changes its sign from positive to negative.
• Fig (b) shows that the value of the first derivative at x1, f’(x1) is zero, the derivative
does not change its sign from one side of x = x1, to the other side.
• In figure (c) the slope of the function is maximum at point R, but it is not zero.
Critical Point:
Stationary Point
Point of Inflection:
• f’’(x) = 0
• An inflection point is a point on a curve at which the
sign of the curvature (i.e., the concavity) changes.
• Independent of first derivative – it is what make it
differ with saddle point
Ex 1: Find the relative extrema of the function: f (x) = x2 – 4x + 5
Solution:
• First find the first derivative of the function;
f’(x) = 2x – 4, then equate f’(x) to zero
f’(x) = 2x – 4 = 0
2x = 4, x = 2 is the only critical value.
• Now check the sign of f’(x) by taking numbers from the immediate left and right of x
=2
• Let's take 1.9 from the left and 2.1 from the right.
• Therefore, the sign of f’(x)
f’(x) = 2x – 4. changes from negative to
At x = 1.9, positive.
f’(x) = 2(1.9) – 4 = 3.8 – 4 = -0.2 < 0 • Hence f(2) = 1 is a relative
At x = 2.1 minimum.
f’(x) = 2(2.1) – 4 = 4.2 – 4 = 0.2 > 0
Ex 2: f(x) = x3 – 12x2 + 36x + 8
Solution:
The first derivative of f(x) is: f’(x) = 3x2 – 24x + 36 equating this to zero,
Þ 3x2 – 24x + 36 = 0 x1= 2 and x2 = 6 are the critical values.
• The signs of f’(x) by taking #s from the immediate left & right of x = 2 & x = 6
x = 1.9 and x = 2.1
At x = 1.9, f’(x) = 3(1.9)2 – 24(1.9) + 36 = 1.23
At x = 2.1, f’(x) = 3(2.1)2 – 24(2.1) + 36 = -1.17
• The sign of f’(x) changes from +ve to -ve, hence f(2) = 40 is a relative
maximum
At x = 5.9, f1(x) = 3(5.9)2 – 24(5.9) + 36 = -1.17
At x = 6.1, f1(x) = 3(6.1)2 – 24(6.1) + 36 =1.23
• Since f’(x) changes its sign from -ve to +ve , f(6) = 8 is a relative minimum.
Ex 3:
• Given f(x) = x3: Find the inflection point(s)
Answer:
• (Might as well find any local maximum and local minimums as well.)
• Start with getting the first derivative: f '(x) = 3x 2
• Now set the f "(x) = 0 and solve for x to find possible inflection points
6x = 0
x=0
• We can see that if there is an inflection point it must be at x = 0.
• But how do we know for sure if x = 0 is an inflection point?
• We have to make sure that the concavity actually changes.
• To do this pick a number on either side of x = 0 and check what the concavity is
at those locations.
• Let's use x = -1 and x = 1 to check.
• At x = -1, the second derivative gives: f "(-1) = -6 and the function is concave
down at x = -1.
• If we check x = 1 we get: f "(1) = 6, which means the function is concave up at
x = 1.
• Thus, we can see that the function has different concavities on either side of x
=0 and the inflection point is at x=0.
• Note the inflection point is not necessarily where the function crosses the x-
axis but is where the concavity actually changes.
• Let's now go back and find the local maximums and local minimums of this function.
• Start by finding the critical points.
f '(x) = 3x2
3x2 = 0
x=0
• We only have one critical point, x = 0. Is it a local max or a local min? Let's try using the second
derivative test.
f "(x) = 6x
f "(0) = 6(0)
f "(0) = 0.
• Well, that's unfortunate because that means the function is neither concave up nor concave down. We still
don't know if it is a local max or a local min. I guess we'll have to try another technique. Let's try the first
derivative test.
• Try using x=-1 and x=1 for numbers on either side of our critical point x=0. Plug them into the first
derivative.
f '(-1) = 3(-1)2
Since the derivative is positive in either side of
the critical point, the function is increasing on f '(-1) = 3.
both side of the critical point and there is no f '(1) = 3(1)2
local maximum or local minimum.
Class Work 1: Find all relative extrema of the function f(x) = -x3 – 6x2 – 9x – 2)
Answer: • Now check to see if the first derivative
• For a critical point to be local extrema, the function must go changes sign around these points. Since
from increasing, i.e., positive f′, to decreasing, i.e. negative f′, or you're dealing with two critical points,
vice versa, around that point. you're going to have to look at 3
intervals.
• So, start by determining the first derivative of f
• Select a value from each of these intervals
• f′=−3x2−12x−9 and note the sign of f′
• To determine the function's critical points, make f′=0 and solve • (−∞,−3)
for x
• f′(−4)=−3⋅(−4+1)⋅(−4+3)
• f′=0
• f′(−4)=−3⋅(−3)⋅(−1)=−9→negative
• f′=−3x2−12x−9=0
• (−3,−1)
• This is equivalent to
• f′(0)=−3⋅(−2+1)⋅(−2+3)
• −3(x2+4x+3) = 0, or x2+4x+3=0
• f′(0)=−3⋅(−1)⋅(+1)=3→positive
• x1,2=−4±√42−4⋅1⋅32={x1=−3x2=−1
• (−1,∞)
• Since no domain restrictions are given for your function, both
solutions will be critical points. • f′(0)=−3⋅(0+1)⋅(0+3)
• f′(0)=−3⋅1⋅3=−9→negative
• The f’(x) changes sign twice. • To get the actual points at which
• It goes from being negative to the function has the local
being positive around x=−3, which minimum and maximum,
means that this critical point is evaluate f at the critical points.
a local minimum. • f(−3)=−
• And it goes from being positive to (−3)3−6(−3)2−9(−3)−2
being negative around point x= −1, • f(3)=27−54−27−2=−2 and
which means that this critical point is
a local maximum. • f(−1)=−
(−1)3−6(−1)2−9(−1)−2
• This is equivalent to having a
f(−1)=1−6+9−2=2
function that goes
from decreasing to increasing (thin • Therefore, the function f has
k of a valley) around point x=−3, and (−3,−2)→ local minimum
from increasing to decreasing (thin (−1,2)→ local maximum
k of a hill) around point x=−1. • graph{-x3 – 6x2 – 9x – 2 [-10, 10, -5, 5]}
Class Work 2: Consider the function f(x) = 2x3 - 3x2 + 6. Find the
relative extrema?
Solution:
Step 1: Determine the derivative of f(x)
• f'(x) = 6x2 - 6x
Step 2: Equate the derivative to 0, i.e., f'(x) = 0 to find the
critical points.
• f'(x) = 0
• ⇒ 6x2 - 6x = 0
• ⇒ 6x(x - 1) = 0
• ⇒ x = 0, or x = 1
• Therefore, x = 0 and x = 1 are the critical points
• Now, to determine the points of relative extrema, we will consider points on the left and right sides
of these critical points.
Step 3: Find a point on the left side and right side of the critical points and check the value of the
derivative at these points.
• Consider x = -1 on the left side and x = 1/2 on the right side of the critical point x = 0 and check
the value of f'(x) at these points.
• f'(-1) = 6(-1)2 - 6(-1) = 6 + 6 = 12 > 0
• f'(1/2) = 6(1/2)2 - 6(1/2) = 6/4 - 6/2 = 3/2 - 3 = -3/2 < 0
• Since the value of f'(x) changes from positive to negative, therefore x = 0 is a point of relative
maxima.
• Similarly, consider x = 1/2 on the left side and x = 2 on the right side of the critical point x = 1 and
check the value of f'(x) at these points.
• f'(1/2) = 6(1/2)2 - 6(1/2) = 6/4 - 6/2 = 3/2 - 3 = -3/2 < 0
• f'(2) = 6(2)2 - 6(2) = 24 - 12 = 12 > 0
• Since the value of f'(x) changes from negative to positive, therefore x = 1 is a point of relative
minima.
• To determine the relative maximum and minimum values, we can find the values of f(0) and f(1),
respectively.
Class Work 3: : f(x) = (x3 – 1)4
Solution:
The critical values of the function
f’(x) = 4(x3 – 1)3 (3x2) = 0
(x3 – 1)3 = 0 or 3x2 = 0
x3 = 1 or x = 0
x = 1 or x = 0 are the critical values.
Take numbers to the immediate right and left of x = 1, ex. 0.8 and 1.1
f’(0.8) = 4( (0.8)3 – 1)3 (3 (0.8)2 ) = -0.8925<0
f’(1.1) = 4( (1.1)3 – 1)3 (3 (1.1)2 ) = 0.52656>0
• Therefore, since the sign of f’(x) changes from negative to positive, f(1) = 0 is a
relative minimum.
• The next thing to do is to check whether the other critical value x = 0
corresponds to the maximum or minimum or saddle point of the function.
• Take numbers from the immediate right and left of x = 0, say –0.1 and 0.1
• Since f’(x) does not change its sign, f(0) = 1 is neither a relative maximum
nor a relative minimum.
• It is a saddle point.
4.3.2. Second Derivative Test for Relative Extremum
• The 2nd derivative can be used to find the relative maxima or relative minima of a
function.
• This test is more convenient than the 1st derivative test, because it does not require
us to check the derivative sign to both the left and the right of x0.
• But if f’’(x0) = 0, the stationary value f(x0) can be either a relative maximum, or a
relative minimum, or even an inflection value.
Ex 4: Find the relative extremum of the function f(x) = 4x2 – x by using the
second derivative test.
Solution:
• First find the first derivative of the function and then the critical value
f’(x) = 8x – 1, x = 1/8 is the critical value
• Then find the second derivative
f’’(x) = 8 and check the sign of the second derivative at the critical value
f’’(1/8) = 8 > 0
• Therefore, f(x) = 4x2 – x and f(1/8) = 4 (1/8)2 –1/8 = -1/16 is the relative
minimum
Ex 5: y = g(x) = x3 – 3x2 + 2
Solution:
• First derivative of the function
g’(x) = 3x2 – 6x, equating this to zero, we get
3x2 – 6x = 0 x(3x – 6) = 0 x = 0 or x = 2 are critical values.
• Stationary values are g(0) = 2 and g(2) = -2
• To check whether these are the relative maximum or minimum values, find the
2nd derivative
g''(x) = 6x – 6
g'' (0) = 6(0) – 6 = -6 < 0, hence g(0) = 2 is a relative maximum
g'' (2) = 6(2) – 6 = 6 > 0, hence g(2) = -2 is a relative minimum
• Follow the next steps for finding a min/max value by using 2 nd derivative test.
1. Find the first derivative, f’(x) for the given function y = f(x)
2. Find the critical values of the function (values of x that make f’(x) = 0)
• From step 4:
Note that:
• Since the graph of the average cost function is U – shaped curve, the
relative minimum already found is also the absolute minimum.
Ex 2: Let the R(Q) and C(Q) be the revenue and cost functions respectively and
• At x = 3,
• At x = 36.5,
• Therefore, Q = 36.5 is the profit maximizing level of output.
b) The maximum profit can be found by directly substituting Q = 36.5 in to the
profit function
Note:
• This requires equating MR and MC and solving for Q (the profit maximizing level
of output).
, for
• Then find the 2nd derivative of the AC function
b). First find the AC and MC function of the TC function and equate them.
or