Differentiation
Differentiation
Differentiation
Chapter 2
University of Namibia
Faculty of Engineering & IT
Department of Mechanical Engineering
Chain rule
Implicit differentiation
Related rates
Optimization
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Tangents
4
Tangents
If a curve C has equation y = f(x) and we want to find the
tangent line to C at the point P(a, f(a)), then we consider a
nearby point Q(x, f(x)), where x a, and compute the slope
of the secant line PQ:
5
Tangents
If mPQ approaches a number m, then we define the tangent
t to be the line through P with slope m. (This amounts to
saying that the tangent line is the limiting position of the
secant line PQ as Q approaches P. See Figure 1.)
Figure 1
6
Tangents
7
Example 1
Find an equation of the tangent line to the parabola y = x2
at the point P(1, 1).
Solution:
Here we have a = 1 and f(x) = x2, so the slope is
8
Example 1 – Solution cont’d
=1+1
=2
y – 1 = 2(x – 1) or y = 2x – 1
9
Tangents
We sometimes refer to the slope of the tangent line to a
curve at a point as the slope of the curve at the point.
10
Tangents
Figure 2 illustrates this procedure for the curve y = x2 in
Example 1.
11
Tangents
The more we zoom in, the more the parabola looks like a
line.
12
Tangents
If h = x – a, then x = a + h and so the slope of the secant
line PQ is
Figure 3 13
Tangents
Notice that as x approaches a, h approaches 0 (because
h = x – a) and so the expression for the slope of the
tangent line in Definition 1 becomes
14
Derivatives
25
Derivatives
We have seen that the same type of limit arises in finding
the slope of a tangent line (Equation 2) or the velocity of an
object (Equation 3). think of instateneous
27
Example 4
Find the derivative of the function f(x) = x2 – 8x + 9 at the
number a.
Solution:
From Definition 4 we have
28
Example 4 – Solution cont’d
29
Derivatives
We defined the tangent line to the curve y = f(x) at the point
P(a, f(a)) to be the line that passes through P and has
slope m given by Equation 1 or 2.
30
Derivatives
If we use the point-slope form of the equation of a line, we
can write an equation of the tangent line to the curve
y = f(x) at the point (a, f(a)):
y – f(a) = f(a)(x – a)
31
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Derivatives of Polynomials and Exponential Functions
3
Derivatives of Polynomials and Exponential Functions
4
Power Functions
5
Power Functions
We next look at the functions f(x) = xn, where n is a positive
integer.
7
Power Functions
For n = 4 we find the derivative of f(x) = x4 as follows:
8
Power Functions
Thus
9
Example 1
(a) If f(x) = x6, then f(x) = 6x5.
(c) If y = t 4, then = 4t 3.
(d) = 3r 2
10
Power Functions
11
New Derivatives from Old
12
New Derivatives from Old
When new functions are formed from old functions by
addition, subtraction, or multiplication by a constant, their
derivatives can be calculated in terms of derivatives of the
old functions.
13
Example 4
14
New Derivatives from Old
The next rule tells us that the derivative of a sum of
functions is the sum of the derivatives.
15
New Derivatives from Old
By writing f – g as f + (–1)g and applying the Sum Rule and
the Constant Multiple Rule, we get the following formula.
17
Exponential Functions
Let’s try to compute the derivative of the exponential
function f(x) = bx using the definition of a derivative:
18
Exponential Functions
Notice that the limit is the value of the derivative of f at 0,
that is,
for b = 2,
for b = 3,
20
Exponential Functions
In fact, it can be proved that these limits exist and, correct
to six decimal places, the values are
22
Exponential Functions
Geometrically, this means that of all the possible
exponential functions y = bx, the function f(x) = ex is the one
whose tangent line at (0, 1) has a slope f(0) that is
exactly 1. (See Figures 6 and 7.)
Figure 6 Figure 7
23
Exponential Functions
If we put b = e and, therefore, f(0) = 1 in Equation 4, it
becomes the following important differentiation formula.
Solution:
Using the Difference Rule, we have
25
Example 8 – Solution cont’d
26
Example 8 – Solution cont’d
27
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
The Product Rule
3
The Product Rule
By analogy with the Sum and Difference Rules, one might
be tempted to guess, that the derivative of a product is the
product of the derivatives.
Let f(x) = x and g(x) = x2. Then the Power Rule gives
f(x) = 1 and g(x) = 2x.
4
The Product Rule
The correct formula was discovered by Leibniz and is
called the Product Rule.
Before stating the Product Rule, let’s see how we might
discover it.
We start by assuming that u = f(x) and v = g(x) are both
positive differentiable functions. Then we can interpret the
product uv as an area of a rectangle (see Figure 1).
7
The Product Rule
8
The Product Rule
So we have proved Equation 2, known as the Product
Rule, for all differentiable functions u and v.
9
Example 1
(a) If f(x) = xex, find f(x).
(b) Find the nth derivative, f (n)(x).
Solution:
(a) By the Product Rule, we have
10
Example 1 – Solution cont’d
11
Example 1 – Solution cont’d
f (n)(x) = (x + n)ex
12
The Quotient Rule
13
The Quotient Rule
We find a rule for differentiating the quotient of two
differentiable functions u = f(x) and v = g(x) in much the
same way that we found the Product Rule.
14
The Quotient Rule
So
15
The Quotient Rule
16
Example 4
Let Then
17
The Quotient Rule
18
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Derivatives of Trigonometric Functions
In particular, it is important to remember that when we talk
about the function f defined for all real numbers x by
f(x) = sin x
3
Derivatives of Trigonometric Functions
If we sketch the graph of the function f(x) = sin x and use
the interpretation of f(x) as the slope of the tangent to the
sine curve in order to sketch the graph of f, then it looks as
if the graph of f may be the same as the cosine curve.
(See Figure 1).
Figure 1
4
Derivatives of Trigonometric Functions
Let’s try to confirm our guess that if f(x) = sin x, then
f(x) = cos x. From the definition of a derivative, we have
5
Derivatives of Trigonometric Functions
and
7
Derivatives of Trigonometric Functions
We now use a geometric argument to prove Equation 2.
Assume first that lies between 0 and /2. Figure 2(a)
shows a sector of a circle with center O, central angle ,
and radius 1.
Figure 2(a)
8
Derivatives of Trigonometric Functions
From the diagram we see that
9
Derivatives of Trigonometric Functions
Thus
= arc AB < |AE| + |EB|
< |AE| + |ED|
= |AD| = |OA| tan
= tan
Therefore we have
so
10
Derivatives of Trigonometric Functions
We know that lim 0 1 = 1 and lim 0 cos = 1, so by the
Squeeze Theorem, we have
(by Equation 2)
12
Derivatives of Trigonometric Functions
13
Derivatives of Trigonometric Functions
So we have proved the formula for the derivative of the
sine function:
14
Example 1
Differentiate y = x2 sin x.
Solution:
Using the Product Rule and Formula 4, we have
15
Derivatives of Trigonometric Functions
Using the same methods as in the proof of Formula 4, one
can prove that
16
Derivatives of Trigonometric Functions
17
Derivatives of Trigonometric Functions
18
Derivatives of Trigonometric Functions
We collect all the differentiation formulas for trigonometric
functions in the following table. Remember that they are
valid only when x is measured in radians.
19
Derivatives of Trigonometric Functions
Trigonometric functions are often used in modeling
real-world phenomena. In particular, vibrations, waves,
elastic motions, and other quantities that vary in a periodic
manner can be described using trigonometric functions. In
the next example we discuss an instance of simple
harmonic motion.
20
Example 3
An object at the end of a vertical spring is stretched 4 cm
beyond its rest position and released at time t = 0. (See
Figure 5 and note that the downward direction is positive.)
Its position at time t is
s = f(t) = 4 cos t
21
Example 3 – Solution
The velocity and acceleration are
22
Example 3 – Solution cont’d
23
Example 3 – Solution cont’d
Figure 6
24
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
The Chain Rule
Suppose you are asked to differentiate the function
4
The Chain Rule
5
The Chain Rule
The Chain Rule can be written either in the prime notation
Solution 1:
(Using Equation 2): We have expressed F as
F(x) = (f g)(x) = f(g(x)) where f(u) = and g(x) = x2 + 1.
Since
and g(x) = 2x
7
Example 1 – Solution 2 cont’d
8
The Chain Rule
When using Formula 3 we should bear in mind that dy/dx
refers to the derivative of y when y is considered as a
function of x (called the derivative of y with respect to x),
whereas dy/du refers to the derivative of y when
considered as a function of u (the derivative of y with
respect to u). For instance, in Example 1, y can be
considered as a function of x (y = ) and also as a
function of u (y = ).
Note that
whereas
9
The Chain Rule
In general, if y = sin u, where u is a differentiable function of
x, then, by the Chain Rule,
Thus
10
The Chain Rule
Let’s make explicit the special case of the Chain Rule
where the outer function f is a power function.
11
Example 3
Differentiate y = (x3 – 1)100.
Solution:
Taking u = g(x) = x3 – 1 and n = 100 in (4), we have
= (x3 – 1)100
= 300x2(x3 – 1)99
12
The Chain Rule
We can use the Chain Rule to differentiate an exponential
function with any base b > 0. Recall that a = bln b. So
bx = (eln b)x = e(ln b)x
and the Chain Rule gives
(bx) = (e(ln b)x) = e(ln b)x (ln b)x
= e(ln b)x ln b = bx ln b
because ln b is a constant. So we have the formula
13
The Chain Rule
In particular, if b = 2, we get
(2x) = 2x ln 2
(2x) (0.69)2x
The reason for the name “Chain Rule” becomes clear when
we make a longer chain by adding another link.
14
The Chain Rule
Suppose that y = f(u), u = g(x), and x = h(t), where f, g, and
h are differentiable functions.
15
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Implicit Differentiation
The functions that we have met so far can be described by
expressing one variable explicitly in terms of another
variable—for example,
y= or y = x sin x
or, in general, y = f(x).
4
Implicit Differentiation
The graphs of f and g are the upper and lower semicircles
of the circle x2 + y2 = 25. (See Figure 1.)
Figure 1
5
Implicit Differentiation
It’s not easy to solve Equation 2 for y explicitly as a function
of x by hand. (A computer algebra system has no trouble,
but the expressions it obtains are very complicated.)
Figure 3
Solution 1:
(a) Differentiate both sides of the equation x2 + y2 = 25:
9
Example 1 – Solution cont’d
Thus
10
Example 1 – Solution cont’d
Solution 2:
(b) Solving the equation x2 + y2 = 25 for y, we get
y= . The point (3, 4) lies on the upper
semicircle y = and so we consider the function
f(x) = .
11
Example 1 – Solution cont’d
So
12
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Derivatives of Inverse Trigonometric Functions
Now so
14
Derivatives of Inverse Trigonometric Functions
Therefore
15
Derivatives of Inverse Trigonometric Functions
16
Example 5
Differentiate
(a)
Solution:
(a)
17
Example 5 – Solution cont’d
(b)
18
Derivatives of Inverse Trigonometric Functions
19
Derivatives of Logarithmic Functions
In this section we use implicit differentiation to find the
derivatives of the logarithmic functions y = logb x and, in
particular, the natural logarithmic function y = ln x. [It can
be proved that logarithmic functions are differentiable; this
is certainly plausible from their graphs (see Figure 12 in
Section 1.5).]
Figure 12
3
Derivatives of Logarithmic Functions
or
4
Example 2
Find ln(sin x).
Solution:
Using (3), we have
5
Logarithmic Differentiation
6
Logarithmic Differentiation
The calculation of derivatives of complicated functions
involving products, quotients, or powers can often be
simplified by taking logarithms.
7
Example 7
Differentiate
Solution:
We take logarithms of both sides of the equation and use
the Laws of Logarithms to simplify:
ln y = ln x + ln(x2 + 1) – 5 ln(3x + 2)
8
Example 7 – Solution cont’d
9
Logarithmic Differentiation
10
The Number e as a Limit
11
The Number e as a Limit
If f(x) = ln x, then f (x) = 1/x. Thus f (1) = 1. We now use
this fact to express the number e as a limit.
12
The Number e as a Limit
Because f (1) = 1, we have
13
The Number e as a Limit
Formula 5 is illustrated by the graph of the function
y = (1 + x)1/x in Figure 4 and a table of values for small
values of x. This illustrates the fact that, correct to seven
decimal places,
e 2.7182818
Figure 4
14
The Number e as a Limit
If we put n = 1/x in Formula 5, then n as x 0+ and
so an alternative expression for e is
15
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Guidelines for Sketching a Curve
The following checklist is intended as a guide to sketching
a curve y = f(x) by hand. Not every item is relevant to every
function. (For instance, a given curve might not have an
asymptote or possess symmetry.)
4
Guidelines for Sketching a Curve
B. Intercepts The y-intercept is f(0) and this tells us where
the curve intersects the y-axis. To find the x-intercepts, we
set y = 0 and solve for x. (You can omit this step if the
equation is difficult to solve.)
C. Symmetry
(i) If f(–x) = f(x) for all x in D, that is, the equation of the
curve is unchanged when x is replaced by –x, then f is an
even function and the curve is symmetric about the y-axis.
5
Guidelines for Sketching a Curve
This means that our work is cut in half. If we know what the
curve looks like for x 0, then we need only reflect about
the y-axis to obtain the complete curve [see Figure 3(a)].
Figure 3(a)
[Rotate 180 about the origin; see Figure 3(b).] flip it 180 degrees
9
Guidelines for Sketching a Curve
(ii) Vertical Asymptotes. The line x = a is a vertical
asymptote if at least one of the following statements is true:
10
Guidelines for Sketching a Curve
Furthermore, in sketching the curve it is very useful to know
exactly which of the statements in (1) is true.
13
Guidelines for Sketching a Curve
Then make the curve pass through these points, rising and
falling according to E, with concavity according to G, and
approaching the asymptotes.
14
Example 1
A. The domain is
{x | x2 – 1 0} = {x | x 1}
D.
16
Example 1 cont’d
Preliminary sketch
Figure 5 17
Example 1 cont’d
E.
Since f(x) > 0 when x < 0 (x –1) and f(x) < 0 when
x > 0 (x 1), f is increasing on ( , –1) and (–1, 0) and
decreasing on (0, 1) and (1, ).
18
Example 1 cont’d
G.
and f(x) < 0 |x| < 1. Thus the curve is concave upward
on the intervals ( , –1) and (1, ) and concave
downward on (–1, 1). It has no point of inflection since
1 and –1 are not in the domain of f.
19
Example 1 cont’d
Finished sketch of y =
Figure 6
20
Slant Asymptotes
21
Slant Asymptotes
Some curves have asymptotes that are oblique, that is,
neither horizontal nor vertical. If
23
Example 6
Sketch the graph of
neverr zero
A. The domain is =( , ).
25
Example 6 cont’d
E.
G.
Figure 13
28
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Related Rates
If we are pumping air into a balloon, both the volume and
the radius of the balloon are increasing and their rates of
increase are related to each other.
5
Example 1 – Solution cont’d
Unknown: when r = 25 cm
V = r3
6
Example 1 – Solution cont’d
7
Example 1 – Solution cont’d
8
Table of Contents
Definition of the derivative
Chain rule
Implicit differentiation
Related rates
Optimization
Optimization Problems
In solving such practical problems the greatest challenge is
often to convert the word problem into a mathematical
optimization problem by setting up the function that is to be
maximized or minimized.
3
Optimization Problems
Steps In Solving Optimization Problems
1. Understand the Problem The first step is to read the
problem carefully until it is clearly understood. Ask
yourself: What is the unknown? What are the given
quantities? What are the given conditions?
6
Example 1
A farmer has 2400 ft of fencing and wants to fence off a
rectangular field that borders a straight river. He needs no
fence along the river. What are the dimensions of the field
that has the largest area?
7
Example 1 – Solution
In order to get a feeling for what is happening in this
problem, let’s experiment with some special cases.
Figure 1 (not to scale) shows three possible ways of laying
out the 2400 ft of fencing.
Figure 1
8
Example 1 – Solution cont’d
Figure 2
9
Example 1 – Solution cont’d
Note that the largest x can be is 1200 (this uses all the
fence for the depth and none for the width) and x can’t be
negative, so the function that we wish to maximize is
A(x) = 2400x – 2x2 0 x 1200
12
Optimization Problems
13
The End of Chapter 2