Академический Документы
Профессиональный Документы
Культура Документы
Chapter 2 DIFFERENTIATION
2.1 The Tangent and Velocity Problems.
Rates of Change
For a function y(x),
2.2 The Derivative. Higher-Order Derivatives
dy
what
2.3 is the
Rules meaning of
of Differentiation. ?
dx
2.4 Rates of Change in the Natural and Social
Sciences
2.5 Implicit Differentiation
2.6 Differentiation of Inverse Functions
2.7 Linear Approximations. Differentials.
1
2.1
The Tangent and Velocity Problems.
Rates of Change
A major application of Calculus is determining how one
quantity varies with another.
For example, someone might want to know
How profit varies with amount spent on advertising
How the population of a colony of bacteria changes with time
How the energy loss of an electronic device changes with
applied current
We need to learn more about rates of change.
2
Revision: Straight Lines, Slopes and Rates of Change
A straight line has equation y mx c where m is the
slope (or gradient) of the line:
Dy y2 y1
m
Dx x2 x1
Dy y2 y1
m
Dx x2 x1
f ( x2 ) f ( x1 )
x2 x1
(blue line in figure)
John leaves Ho Chi Minh city and drives north for 4 hours.
Every half-hour he notes how far he has travelled.
Time, t (hrs) 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0
Distance, s (km) 0 30 62 98 140 180 224 256 298
Find his average speed (a) in the first half hour, (b) in the last
hour, (c) over the whole journey.
Ds s2 s1 30 0 (km)
(a) average speed vav 60 (km/hr)
Dt t2 t1 0.5 0 (hrs)
(b) vav
298 224
74 (km/hr)
43
298 0
(c) vav 74.5 (km/hr)
40 7
Curves and Instantaneous Rates of Change
9
We see
Dy f ( x) f (a)
mPQ
Dx xa
So
f ( x) f ( a )
m lim mPQ lim
Q P xa xa
DEFINITION
The tangent line to the curve y = f(x) at the point P(a, f(a))
is the line through P with slope
f ( x) f ( a )
m lim
provided that this limit exists.
xa xa
11
Example 3 Find the equation of the tangent line to the
curve y = x2 at the point P(1, 1).
The tangent line has slope 2 and passes through (1, 1),
so it has equation y 1 2( x 1)
y 2x 1 12
Average and Instantaneous Velocity Summary
On time interval t0 to t,
the average velocity is
Ds s(t ) s(t0 )
vav
Dt t t0
= slope of secant line
t0 t
13
Example 4: Average and Instantaneous Velocity
The graph below shows the displacement, s, of a moving
object as a function of time, t.
(a) Find the average velocity over the time period [0, 6].
14
2.1 Derivatives: Definition
Finding any instantaneous rate of change, i.e. the
slope of a tangent line, involves finding a limit of the
form f ( x) f (a )
lim
x a xa
Such limits are also often written in the equivalent
form: f ( a h) f ( a ) (where x = a + h).
lim
h0 h
This type of limit has a special name and notation:
The derivative of a function f at a number a, denoted by
f '(a), is: f ( a h) f ( a )
f '(a) lim if this limit exists.
h 0 h
Or equivalently, f ( x) f (a )
f '(a) lim
x a xa
15
Remember!
Derivative = slope of tangent = instantaneous rate of change
17
Example 7
t D(t)
Let D(t) be the US national debt (in
1980 930.2
billions of dollars) at time t (in years).
The table gives data from 1980 to 2000. 1985 1945.9
(a) What is the meaning of D(1990)? 1990 3233.3
What are its units? 1995 4974.0
(b) Estimate the value of D(1990). 2000 5674.2
18
D(t ) D(1990)
D '(1990) lim is the slope of the graph
t 1990 t 1990 of D(t) at t = 1990.
So we could estimate its value by plotting the graph and
estimating the slope at t = 1990.
Or we can say
D(t ) D(1990) D(t ) D(1990)
D '(1990) lim near t = 1990
t 1990 t 1990 t 1990
We have
2.2
The Derivative
Higher Order Derivatives
20
The Derivative as a Function
In the previous section we defined the derivative
of a function f at a fixed number a:
f ( a h) f ( a )
f '(a) lim
h 0 h
If we replace a by a variable x, we obtain:
f ( x h) f ( x )
f '( x) lim
h 0 h
f is a new function - called the derivative of f.
f can be interpreted geometrically as the slope of
the tangent line to the graph of f at the point (x, f(x)).
The domain of f is the set {x | f(x) exists} and may
be smaller than the domain of f.
21
Example 9
11 11
xx xx 22 xx
22
Example 10
23
Example 11
We particularly
notice that the
slope is zero at
three points:
A, B and C.
24
Using the information
gained, we can
sketch f(x):
25
Other Notations
For a function y = f(x), common notations for the derivative are:
dy df d
f '( x) y ' f ( x) Df ( x) Dx f ( x)
dx dx dx
The process of finding a derivative is called differentiation.
The symbols D and d/dx are called differentiation operators.
dy
The Leibnitz notation is perhaps the most common.
dx
Note dy is not a normal ratio but a symbol for a derivative.
dx
In this notation, the definition of the derivative takes a
very natural form: dy Dy
lim
dx Dx 0 Dx
Also dy dy
f (a)
dx x a dx x a 26
Differentiability
Definition
A function f is differentiable at a if f(a) exists.
A function f is differentiable on an interval (a, b) if it is
differentiable at every number in the interval.
Example 12
Show that the function f = |x| is not differentiable at x = 0.
27
Differentiability & Continuity
Theorem:
If f is differentiable at a then f is continuous at a.
Proof
f ( x) f ( a )
If f is differentiable at a then f '(a) lim exists.
h0 xa
We want to prove that f is continuous at a, i.e. lim f ( x) f (a) .
x a
f ( x) f (a )
For x a, f ( x) f (a ) ( x a )
( x a)
Taking limits of both sides, and using the product law for limits:
f ( x) f (a )
lim f ( x) f (a) lim ( x a) lim 0 f (a) 0
xa xa xa ( x a)
29
Higher Order Derivatives
If f is a differentiable function, then f ' is also a function.
So, f ' may have a derivative of its own, (f ')'.
This is called the second derivative of f and denoted f ".
In Leibniz notation, d dy d 2 y
2
dx dx dx
30
Higher Order Derivatives, cont.
32
2.3
Rules of Differentiation
Derivatives can be found using the definition
f ( x h) f ( x )
f '( x) lim
h 0 h
but this can be time-consuming and difficult.
In this section we will learn:
some rules which make finding derivatives much easier
how to differentiate constants, power functions,
polynomials, and exponential functions
33
2.3
Rules of Differentiation
Constant functions
Power functions, the Power Rule
New from Old - Constant multiple, Sum, Difference
- Product Rule, Quotient Rule
Trigonometric Functions
Chain Rule
Exponential functions
34
2.3 The Constant Function
lim( x n 1 x n 2 a xa n 2 a n 1 )
x a
a n 1 a n 2 a aa n 2 a n 1
n 1
na
n1
Hence, f ( x) nx , as stated.
37
Example 14
b) If y = x1000, find y.
dy
c) If y = t4, find .
dt
d) Find d r 3
dr
38
2.3 The Power Rule
d n n 1
In fact, the formula ( x ) nx is valid for all values
dx
of n: positive and negative, integer and non-integer.
(For proof, see textbooks.)
Example 15
d 1
Show that the power rule gives the result ( x) ,
dx 2 x
as found in Example 9.
39
Example 16
Find the derivatives of
(a) f ( x) x / 2
1
(b) g ( x)
x3
1
(c) x
t t
40
2.3 New Derivatives from Old
lim
f ( x h) g ( x h) f ( x ) g ( x )
h 0 h
f ( x h) f ( x ) g ( x h) g ( x )
lim
h 0
h h
f ( x h) f ( x ) g ( x h) g ( x )
lim lim f
(Law'( x )
1) g ( x)
h 0 h h 0 h
42
2.3 New Derivatives from Old
The Sum Rule can be extended to any number of functions.
E.g., using it twice we get: ( f g h) ' ( f g ) h '
( f g ) ' h '
f ' g ' h '
By writing f - g as f + (-1)g and using both rules, we get
the DIFFERENCE RULE: d d d
f ( x) g ( x) f ( x) g ( x)
dx dx dx
Using these rules together with the power rule we can
differentiate any polynomial.
E.g. d d 7 d 4 d
(2 x 5 x 8 x) 2 ( x ) 5 ( x ) 8 ( x)
7 4
dx dx dx dx
2(7 x6 ) 5(4 x3 ) 8(1) 14 x6 20 x3 8
43
Example 17
Find the points on the curve y = x4 6x2 + 4 where the
tangent line is horizontal.
44
Example 18
Find the points on the hyperbola xy = 12 where the
tangent is parallel to the line 3x + y = 0.
45
Example 19
The equation of motion of a particle is s = 2t3 5t2 + 3t + 4,
where s is measured in centimeters and t in seconds.
Find the acceleration after 2 seconds.
46
2.3 Product Rule
Or more concisely, ( fg ) f .g f .g
d df dg
N.B.: ( fg ) !!
dx dx dx
47
2.3 Product Rule
If f (t ) t (a bt ), find f (t).
49
Example 20
(a) If h(x) = xg(x) and it is known that g(3) = 5 and g(3) =
2, find h(3).
(b)
50
2.3 Quotient Rule
Or more concisely, d f g f f g
dx g g2
51
2.3 Quotient Rule
Proof. Let F(x) = f(x)/g(x).
f ( x h) f ( x )
Then F ( x h) F ( x ) g ( x h) g ( x )
F ( x) lim lim
h0 h h0 h
f ( x h) g ( x ) f ( x ) g ( x h )
lim
h0 h g ( x h) g ( x )
f ( x h) f ( x ) g ( x h) g ( x )
g ( x) f ( x)
h h
lim
h0 g ( x h) g ( x )
52
(Proof cont.)
f ( x h) f ( x ) g ( x h) g ( x )
lim g ( x) lim lim f ( x) lim
h0 h0 h h0 h0 h
F ( x)
lim g ( x h) lim g ( x) lim g ( x h) lim g ( x)
h0 h0 h0 h0
g ( x) f ( x) f ( x) g ( x)
[ g ( x)]2
x
(b) y
x 1
54
2.3 Derivatives of Trigonometric Functions
By considering the graph f(x) = sin x, sketch f (x).
55
d d sin x
Derivative of tangent (tan x)
dx dx cos x
By quotient rule, d d
d d sin x cos x dx (sin x) sin x dx (cos x)
tan x
dx dx cos x cos 2 x
cos x cos x sin x( sin x)
cos 2 x
cos 2 x sin 2 x 1
2
2
sec 2
x
cos x cos x
d
(tan x )
Derivatives of sec x, cosec x and cot x can similarlysec 2
x be found.
dx
d d
(sin x) cos x (csc x) csc x cot x
dx dx Note
d d x must be in
(cos x) sin x (sec x) sec x tan x
dx dx RADIANS!!
d d
(tan x) sec x
2
(cot x) csc 2 x
dx dx 56
Application
Trigonometric functions are useful for modelling many
real-life phenomena, especially vibrations and waves.
Example 24
An object hung on a vertical spring is stretched
4 cm below its rest position and released at
time t = 0. It performs simple harmonic motion
with time period 2 seconds.
Let s(t) be the displacement downwards
relative the rest position (in cm) at time t.
Then s = f(t) = 4 cos t
Find the velocity and acceleration of the object at time t.
57
2.3 The Chain Rule of Differentiation
58
2.3 The Chain Rule
If g is differentiable at x and f is differentiable at g(x), then
the composite function F = f g (defined by F(x) = f (g(x))
is differentiable at x and F is given by the product:
F'(x) = f '(g(x)) g'(x)
60
Example 25
Differentiate F ( x) x 2 1
61
Note
The chain rule states that if F = g f , i.e. F(x) = g (f(x)),
then F'(x) = g'(f(x)) f '(x)
62
Example 26
Differentiate (a) y = sin(3x2), (b) y = 3 sin2 x
63
Example 27 Differentiate
(a) y = (x3 1)100
1
(b) f ( x) .
3
x2 x 1
(c) y x tan
2
64
2.3 Exponential Functions
(a h 1)
What is lim ? 2h 1 3h 1
h0 h h h h
Investigating numerically, 0.1 0.7177 1.1612
it seems this limit exists 0.01 0.6956 1.1047
and is a number whose 0.001 0.6934 1.0992
value depends on a. 0.0001 0.6932 1.0987
65
2.3 Definition of e
Mathematicians have defined the exponential constant,
e, to be the number such that this limit equals 1.
eh 1
e is the number such that lim 1
h 0 h
66
2.3 Derivative of ex
That is, d x
(e ) e x
dx
I.e.
The function is its own derivative
The slope of the tangent to the
curve at any point is equal to the
y-coordinate of the point.
67
Combining with chain rule, we have d f ( x)
e f ( x) e f ( x )
dx
Example 28
Differentiate
(a) y = e3x
(b) y = exp(x2 + 1)
(c) y = xe-a/x
68
2.3 Derivative of ax
Using the derivative of ex and the chain rule, we can find
the derivatives of exponential functions with other bases.
We know that e ln a = a
So we can write d (a x ) d (eln a ) x e(ln a ) x d (ln a) x
dx dx dx
(eln a ) x (ln a)
a x ln a
d x
(a ) a x ln a
dx
69
2.4
Rates of Change in the Natural
and Social Sciences
In Section 2.1 we saw that a derivative represents a
rate of change. Now we know how to find derivatives,
we can apply this to solve practical problems involving
rates of change. We will take examples from biology,
economics and other fields.
70
Revision: Derivatives & Rates of Change
Suppose x and y are any quantities such that y = f(x).
If x changes from x1 to x2, the change in x is Dx x2 x1
The corresponding change in y is Dy f ( x2 ) f ( x1 )
y x dy/dx
72
2.4 Biology: Population
Let n = f(t) be the number of individuals in an animal
or plant population at time t.
Then dn/dt is the (instantaneous) rate of change of the
population, I.e. the population growth (or decay) rate.
Strictly speaking, this is not quite accurate.
n can only take integer
values, so n = f(t) will be a
step function, discontinuous
whenever a birth or death
occurs, so not differentiable.
But for a large population,
we can approximate the
graph by a smooth curve.
73
Example 29
A population of bacteria is growing in a homogeneous nutrient
medium. It is observed that the population doubles every hour.
(a) Find an expression for the population, n, as a function of t,
assuming the initial population is n0.
(b) If n0 = 100, find dn and explain its meaning.
dt t 5
74
2.4 Business & Economics
75
2.4 Business & Economics
79
Example 31
Find (a) d sin y
dx
(b) d x 2 e3y
dx
(c) d x 2e3y
dx
(d) d sin 2 x
dt
80
2.5 Implicit Differentiation
We use this idea to find derivatives of implicit functions.
METHOD: Differentiate both sides of the equation w.r.t. x
Rearrange to get an expression for dy/dx.
Example 32
Given x2 + y2 = 25, find dy/dx
Differentiate both sides: d 2 d
( x y ) (25)
2
dx dx
d 2 d 2
So (x ) ( y ) 0
dx dx
dy
Using the chain rule gives 2x 2 y 0
dx
dy x
This rearranges to:
dx y
81
Example 32
82
Example 33
The curve x3 + y3 = 6xy is called the folium of Descartes.
Find the equation of the tangent to the curve at (3, 3).
83
After finding dy/dx, higher derivatives can be found by
applying the same method again.
Example 34
Find y" if x4 + y4 = 16.
x3
Differentiating once gives: 4x3 + 4y3y' = 0 so y ' 3
y
Then d x3 y 3 (d / dx)( x3 ) x3 (d / dx)( y 3 )
y '' 3
dx y ( y 3 )2
3 2 x
3
x 3
3x y 3x y 3
2 3
3x 2 y y 3 3x xy
3 3 3 22 3 2
x (33 y y ')
y y '' y
y ''
6
y y 6
y6
3( x 2 4
y x 6
) 3 x 2
( y 4
x 4
3( x 2 y 4 x 6 ) 3x 2 ( y 4 x4 ) 3x72 (16) x 2 7
7
7
y '' y 7 48 7y
y y y y
84
2.6
Differentiation of
Inverse Functions
Remember from chapter 1 that
1
x f ( y ) y f ( x)
To have an inverse, a function must be one-to-one.
The graph of f -1 is the reflection of f in the line y = x.
If f is continuous then f -1 is continuous.
Now we will look at differentiating inverse functions
85
2.6 Derivatives of Inverse Functions: THEOREM
Method 1
Since f(2) = 4, we have f -1(4) = 2.
Also, f(x) = 2x.
So f ' 4
1 1 1 1
f ' f
1
4 f ' 2 4
Method 2
The inverse function is f 1( x) x
Differentiating gives ( f 1)( x) 1 2 x
Which again gives: 1
(f )(4) 1 (2 2) 1 4
87
2.6 Inverse Functions
88
2.6 Inverse Trigonometric Functions
Example 36
Find the derivative of f(x) = sin-1x
dy 1 1 1
(for |x| < 1)
dx cos y 1 sin 2 y 1 x2
89
Derivatives of other inverse trigonometric function can
be found in a similar way. The results are:
d 1 x 1 d 1 1
(sin ) (csc x)
dx a a2 x2 dx x x2 1
d 1 x 1 d 1 1
(cos ) (sec x)
dx a a2 x2 dx x x2 1
d 1 x a d 1 1
(tan ) 2 (cot x)
dx a a x2 dx 1 x2
90
The Natural Logarithmic Function
d
What is (ln x) ?
dx
Let y = ln x, then ey = x.
dy
Differentiate w.r.t. x: ey
1
dx
So dy 1 1
y I.e. d 1
dx e x (ln x)
dx x
Proof
Consider f(x) = ln |x|
ln x if x 0
We have f ( x)
ln( x) if x 0
1
So x if x 0
f f((xx))
1 (1) 1 if x 0
x x
Thus, f (x) = 1/x for all x 0. 92
Example 37 Find the derivatives of the given functions.
(a) y ln | sin x |
(b) y e ln x, x 0
2x
xa
(c) y ln , where a is a constant, x a
xa
93
2.6 General Logarithmic Functions
Method
1. Take natural logarithms of both sides
of an equation y = f(x) and use the Laws
of Logarithms to simplify.
2. Differentiate implicitly with respect to x.
3. Solve the resulting equation for y.
95
Example 38
x3/4 x 2 1
Differentiate y
(3x 2)5
96
Example 39
Differentiate yx x
97
2.7 Linear Approximations &
Differentials
2.6 Linear Approximations
Let L(x) be the tangent to the
curve y = f(x) at (a, f(a)).
We know L(x) = f(a) + f (a)(x a)
Near x = a, we have f(x) L(x).
Also,
99
Example 40
Find the linearization of f ( x) x 3 at a = 1 and use
it to approximate the numbers 3.98 and 4.05
Are these approximations overestimates or underestimates?
100
2.6 Errors
Note
When is close to zero we have the linear approximations
sin and cos 1
These approximations are frequently used, especially in
physics. They are good approximations for small angles.102
2.6 Differentials
The ideas behind linear approximations can also be
presented in terms of differentials.
If y = f(x) then the differential dx is an independent
variable: it can take any value.
The differential dy is then defined by dy f ( x) dx
Graphically we see that letting
dx Dx,
the corresponding change in the
function is Dy,
the corresponding change in the
tangent line is dy f ( x) dx.
Example 42
A circle is measured to have radius 5.0 0.1 cm.
Find the area of the circle and the approximate error in
the area.
104