Calculus I Chapter 2 (Printed Version)
Calculus I Chapter 2 (Printed Version)
Calculus I Chapter 2 (Printed Version)
Chapter 2: Derivatives
CALCULUS I - AY2023-24 1 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 2 / 66
Summary
CALCULUS I - AY2023-24 3 / 66
• Derivatives and rates of change
Definition
Let D ⊂ R and let f : D → R be a function. We define the tangent
(or tangent line) to the curve y = f (x) (or graph of f (x)) at the
point a to be the line going through the point (a, f (a)) with slope
f (x) − f (a)
m = lim (if the limit exists).
x→a x −a
If this limit does not exist then we say that the graph does not have
a tangent at that point.
CALCULUS I - AY2023-24 4 / 66
Instead of working with the position x of the second point (left figure),
we could equally well work with the displacement h from a to that point
(right figure). Then the slope of the tangent line becomes
f (a + h) − f (a)
m = lim .
h→0 h
CALCULUS I - AY2023-24 5 / 66
• Limit and the velocity of an object
Example
Suppose that a ball is dropped from the upper observation deck of the
“CN Tower” (Canadian National Tower, Toronto) 450 m above the
ground. Find the velocity of the ball after say 5 seconds.
CALCULUS I - AY2023-24 6 / 66
Definition
Suppose that a particle’s trajectory (in one dimension) is described by
a function s : R → R. The instantaneous velocity of the particle at time
t is defined by
s(t + τ ) − s(t)
lim .
τ →0 τ
CALCULUS I - AY2023-24 7 / 66
• Derivative of a function
f (a + h) − f (a)
Since this type of limit lim actually occurs widely and
h→0 h
arises whenever we calculate a rate of change in any of the sciences
or engineering, it is given a special name and notation.
CALCULUS I - AY2023-24 8 / 66
An equivalent way of stating the definition of the derivative, as we saw
in finding tangent lines, is
f (x) − f (a)
f 0 (a) = lim .
x→a x −a
We can now say that the tangent line to y = f (x) at (a, f (a)) is the line
through (a, f (a)) whose slope is equal to f 0 (a), the derivative of f at a.
CALCULUS I - AY2023-24 9 / 66
• The derivative as a function
Definition
The derivative of a function f (x) (w.r.t. the variable x) is defined by the
following rule:
f (x + h) − f (x)
f 0 (x) = lim , if this limit exists at x.
h→0 h
CALCULUS I - AY2023-24 10 / 66
Note. In general, the domain of f 0 (x), which is the set {x : f 0 (x) exists},
may be smaller than the domain of f .
dy df d
f 0 (x) = y 0 = = = f (x).
dx dx dx
d
Here the symbol are called differentiation operators because they
dx
indicate the operation of differentiation, which is the process of
calculating a derivative.
CALCULUS I - AY2023-24 11 / 66
dy
Note. The symbol , which was introduced by Leibniz, should not be
dx
regarded as a ratio (for the time being); it is simply a synonym for f 0 (x).
We can rewrite the definition of derivative in Leibniz notation in the
form
dy ∆y f (x2 ) − f (x1 )
= lim = lim .
dx ∆x→0 ∆x x2 →x1 x2 − x1
The notation
dy
dx x=a
0
is a synonym for f (a). The vertical bar means “evaluate at”.
CALCULUS I - AY2023-24 12 / 66
Gottfried Wilhelm (von) Leibniz (sometimes spelled Leibnitz), 1646 -
1716, was a prominent German mathematician and philosopher.
His ideas of differential and integral calculus (independently of
Isaac Newton’s developments) were most notable achievement.
He also refined the binary number system, which is the foundation
of all digital computers.
CALCULUS I - AY2023-24 13 / 66
• Differentiability
Definition
A function f (x) is differentiable at a point a if f 0 (a) exists. It is
differentiable on an open interval (finite or infinite) (a, b), or (a, ∞),
or (−∞, a), or (−∞, ∞), if it is differentiable at every point of the
interval.
It is differentiable on a closed interval [a, b] if it is differentiable on
the interior interval (a, b) and if the one-side limits at a
f (a + h) − f (a) f (a + h) − f (a)
lim+ , lim
h→0 h h→0− h
exist.
CALCULUS I - AY2023-24 14 / 66
Both continuity and differentiability are desirable properties for a
function to have. The following result shows how these properties are
related.
Theorem
If f (x) is differentiable at a, then f is continuous at a.
Note. The inverse implication of the theorem above is false. That is,
there are functions that are continuous but not differentiable.
Example
Determine the derivative of f (x) = |x|. State the domain of f 0
−1, if x < 0
Solution. We have f 0 (x) = is not differentiable at x = 0.
1, if x > 0
CALCULUS I - AY2023-24 15 / 66
Question. When does a function not have a derivative at a point?
CALCULUS I - AY2023-24 16 / 66
Possibility 2. f has a corner at a.
This means that
f (x + a) − f (a) f (x + a) − f (a)
lim and lim+
h→0− h h→0 h
both exist, but they are different.
CALCULUS I - AY2023-24 17 / 66
Possibility 3. f has a vertical tangent at a.
This means that
f (a + h) − f (a)
lim = ∞ or − ∞,
h→0 h
indicating that the tangent lines become steeper and steeper as x → a.
CALCULUS I - AY2023-24 18 / 66
Definition
The normal line to a curve C at a point P is the line through P that is
perpendicular to the tangent line at P.
The curve and its tangent and normal lines are graphed in the figure
below.
CALCULUS I - AY2023-24 19 / 66
• Higher derivatives
d 2y
d dy
= .
dx dx dx 2
CALCULUS I - AY2023-24 20 / 66
The third derivative f 000 is the derivative of the second derivative:
f 000 = (f 00 )0 . Likewise, it can be interpreted as the slope of the curve
y = f 00 (x) or as the rate of change of f 00 (x).
If y = f (x), then alternative notations for the third derivative are
d d 2y d 3y
000 000
y = f (x) = = .
dx dx 2 dx 3
d n−1 y d ny
(n) (n) d
y =f (x) = = .
dx dx n−1 dx n
CALCULUS I - AY2023-24 21 / 66
• Acceleration
ds
v (t) = s0 (t) = .
dt
CALCULUS I - AY2023-24 22 / 66
The instantaneous rate of change of velocity with respect to time is
called the acceleration a(t) of the object.
or in Leibniz notation
dv d 2s
a(t) = = 2.
dt dt
CALCULUS I - AY2023-24 23 / 66
• Speed
We already defined
ds
the velocity v (t) = s0 = (the rate of change of position w.r.t.
dt
time), and
the acceleration a(t) = v 0 (t) = s00 (t) (the change of velocity w.r.t.
time).
We now define also the speed which is the absolute value of velocity
|v (t)|.
CALCULUS I - AY2023-24 24 / 66
Exercise
The position of a particle is given by s = f (t) = t 3 − 6t 2 + 9t, where t is
measured in seconds and s in meters.
(1) Find the velocity at time t.
(2) When is the particle at rest?
(3) When is the particle moving forward (that is, in the positive
direction)?
(4) Draw a diagram to represent the motion of the particle.
(5) Find the total distance traveled by the particle during the first 5
sec.
(6) Find the acceleration at time t and after 4 sec.
(7) Graph the position, velocity, and acceleration functions.
(8) When is the particle speeding up? When is it slowing down?
CALCULUS I - AY2023-24 25 / 66
Answer.
(1) v (t) = 3t 2 − 12t + 9.
(2) t = 1, t = 3 (sec).
(3) t > 3 (sec), or t < 1 (sec).
(4)
(5) 28 (m).
(6) 12 (m/sec2 ).
CALCULUS I - AY2023-24 26 / 66
(7)
(8)
CALCULUS I - AY2023-24 27 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 28 / 66
We have the following differentiation formulas which allow us to
differentiate functions without having to take limits each time.
d d s
(c) = 0 (x ) = sx s−1
dx dx
0
f f 0 g − fg 0
(fg)0 = f 0g + fg 0 Product = Quotient
g g2
CALCULUS I - AY2023-24 29 / 66
Derivatives of trigonometric functions
The differentiation formulas for trigonometric functions are in the
following table. Remember that they are valid only when x is measured
in radians.
1 1
(tan x)0 = = sec2 x (cot x)0 = − = − csc2 x
cos2 x sin2 x
CALCULUS I - AY2023-24 30 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 31 / 66
There is a question: How to differentiate a composite function f ◦ g?
dy dy du
= · ,
dx du dx
dy
where is evaluated at u = g(x).
du
CALCULUS I - AY2023-24 32 / 66
To use the Chain Rule, we apply the so-called “outer-inner” principle:
First, find and differentiate the outer function.
Next, evaluate what you get at the point g(x).
Finally, multiply that by the derivative of the innner function,
evaluated at x.
CALCULUS I - AY2023-24 33 / 66
Example
Apply the chain rule to differentiate
x2 − 1
F (x) = sin .
x2 + 1
CALCULUS I - AY2023-24 34 / 66
Step 1. Differentiate the outer function f (x) = sin x:
f 0 (x) = cos x.
Let us make explicit the special case of the Chain Rule where the
outer function f is a power function.
dy dy du du
= · = su s−1 = s [g(x)]s−1 g 0 (x).
dx du dx dx
So we obtain the following result.
Theorem
If s is a real number and u = g(x) is differentiable, then
d s du d
(u ) = su s−1 ⇐⇒ [g(x)]s = s [g(x)]s−1 g 0 (x).
dx dx dx
CALCULUS I - AY2023-24 36 / 66
Example
Differentiate
(a) y = sin(x 2 )
(b) y = sin2 x.
Solution.
(a) For y = sin(x 2 ), we have the outer function is sin u, while the inner
function is x 2 . So the Chain Rule gives
dy dy du
= · = cos u · (2x) = 2x cos(x 2 ).
dx du dx
(b) For y = sin2 x = (sin x)2 , we have the outer function is u 2 , while
the inner function is sin x. So the Chain Rule gives
dy dy du
= · = 2u · cos x = 2 sin x cos x = sin 2x.
dx du dx
CALCULUS I - AY2023-24 37 / 66
The reason for the name Chain Rule becomes clear when we make a
longer chain by adding another link.
dy dy dx dy du dx
= · = · · .
dt dx dt du dx dt
It is similar for more functions.
CALCULUS I - AY2023-24 38 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 39 / 66
• Implicit functions
x 2 + y 2 = 25, y 2 − x = 0, x 3 + y 3 − 9xy = 0.
CALCULUS I - AY2023-24 40 / 66
CALCULUS I - AY2023-24 41 / 66
In some cases, it is possible to solve such an equation for y as an
explicit function (or even several functions) of x.
CALCULUS I - AY2023-24 42 / 66
• Implicit Differentiation
Implicit differentiation.
Differentiate both sides of the equation w.r.t x (considering y
as a differentiable function of x)
dy
Collect the terms with on one side of the equation and
dx
dy
solve for .
dx
CALCULUS I - AY2023-24 43 / 66
In the following example, it is (always) assumed that y is a
differentiable function of x.
Example
dy
(a) If x 2 + y 2 = 25, find .
dx
(b) Find an equation of the tangent to the circle x 2 + y 2 = 25 at the
point (3, 4)
Solution.
(a) - Differentiate both sides of the equation:
d 2 d d 2 d 2
(x + y 2 ) = (25) ⇐⇒ (x ) + (y ) = 0.
dx dx dx dx
Remembering that y is a function of x and using the Chain Rule, we
have
d 2 d 2 dy dy
(y ) = (y ) = 2y .
dx dy dx dx
CALCULUS I - AY2023-24 44 / 66
Thus
dy
2x + 2y = 0.
dx
dy
- Now we solve this equation for :
dx
dy x
=− .
dx y
3
y − 4 = − (x − 3) ⇐⇒ 3x + 4y = 25.
4
CALCULUS I - AY2023-24 45 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 46 / 66
• Related Rates
In the real life, there are many problems that ask for the rate at which
some variable changes when it is known how the rate of some other
related variables changes.
For example, if we pump air into a balloon, both the volume and the
radius of the balloon increase, and their rates of increase are highly
related to each other.
But it is much easier to measure the increasing rate of the volume than
the increasing rate of the radius.
CALCULUS I - AY2023-24 47 / 66
Thus the essential idea of related rate problem is to compute the rate
of change of one quantity, in terms of the rate of change of another
quantity (which may be more easily measured).
The procedure
First, find an equation of the two quantities
Next, use the Chain Rule (to differentiate both sides w.r.t. time) to
get the relation between their rates.
CALCULUS I - AY2023-24 48 / 66
Example (Mission Impossible)
CALCULUS I - AY2023-24 49 / 66
Example (Mission Impossible 7 (cont’d))
A police car, approaching the right-angled intersection from the North,
is chasing a speeding car (driven by Ethan Hunt) that has turned the
corner and is now moving straight East. When the police car is 0.6 km
North of the intersection and Ethan’s car is 0.8 km to the East, the
police officer determines with radar that the distance between two cars
is increasing at 30 km/h. Suppose the police car is moving at 100
km/h, what is the speed of Ethan’s car?
CALCULUS I - AY2023-24 50 / 66
CALCULUS I - AY2023-24 51 / 66
dy ds
The given info is x = 0.8 km, y = 0.6 km, = −100 km/h, = 30
dt dt
dx
km/h and the unknown is .
dt
dy
Note that < 0, because y is decreasing.
dt
We have
s2 = x 2 + y 2 ,
CALCULUS I - AY2023-24 52 / 66
dy ds
Substituting x = 0.8, y = 0.6, = −100, = 30 into this equation,
dt dt
we obtain
1 dx
30 = p 0.8 + 0.6(−100)
(0.8)2 + (0.6)2 dt
m
p
dx 30 (0.8)2 + (0.6)2 + 0.6(100)
= = 112.5
dt 0.8
Thus at the moment in the question, the speeding car’s speed is 112.5
km/h.
CALCULUS I - AY2023-24 53 / 66
Outline
1 Derivatives of Functions
2 Differentiation Rules
4 Implicit Differentiation
5 Related Rates
6 Linear Approximations
CALCULUS I - AY2023-24 54 / 66
• Linearization
Near the point of tangency, the curve always lies close to its tangent
line. In fact, by zooming in toward a point on the graph, we see that the
graph looks more and more like its tangent line.
CALCULUS I - AY2023-24 55 / 66
The idea is that it might be easy to calculate the value of function f (x)
at a point x = a, but difficult (or even impossible) to compute f (x) at
nearby points (x ≈ a).
CALCULUS I - AY2023-24 56 / 66
Definitions. Let f be a differentiable function at a point x = a.
The approximating function
is the linearization of f at a.
The approximation
f (x) ≈ L(x)
CALCULUS I - AY2023-24 57 / 66
Example
√
Find a linear approximation of function 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?
√
Solution. The derivative of f (x) = x + 3 is
1 1
f 0 (x) = √ =⇒ f (1) = 2 and f 0 (1) = .
2 x +3 4
CALCULUS I - AY2023-24 59 / 66
• Differentials
dy = f 0 (x) dx.
CALCULUS I - AY2023-24 60 / 66
Geometrically, if for a point P(x, f (x)) on the graph of f (x), we increase
the coordinate x by a small value ∆x, the change in x, then we arrive
at a new point Q(x + ∆x, f (x + ∆x)) on the graph.
CALCULUS I - AY2023-24 61 / 66
Since the differential
dy = f 0 (x) dx,
we see that dy represents the amount that the tangent line rises or falls
(the change in the linearization), when x changes by an amount dx.
On the other hand, ∆y represents the amount that the curve y = f (x)
rises or falls, when x changes by an amount dx = ∆x. That is,
∆y = f (x + ∆x) − f (x).
CALCULUS I - AY2023-24 62 / 66
Example
Compare the values of ∆y and dy if y = f (x) = x 3 + x 2 − 2x + 1 and x
changes
(a) from 2 to 2.05
(b) from 2 to 2.01.
f (2) = f (x) = 9,
Solution. (a) We have x=2 .
f (2.05) = f (x) = 9.717625.
x=2.05
Then ∆y = f (2.05) − f (2.0) = 0.717625.
On the other hand,
CALCULUS I - AY2023-24 63 / 66
(b) We have f (2.01) = f (x) = 9.140701, and hence
x=2.01
Comment. From the example, we can see that the differential dy can
be used as an approximation of ∆y . Clearly, compute dy is easier than
finding ∆y .
CALCULUS I - AY2023-24 64 / 66
Example
The radius of a sphere was measured and found to be 21 cm with a
possible error in measurement of at most 0.05 cm. What is the
maximum error in using this value of the radius to compute the volume
of the sphere?
Solution. Let r be the radius of the sphere. Then the volume V of the
4
sphere is V = πr 3 .
3
If the error of r (in the measured value) is denoted by dr = ∆r , then
the corresponding error in the calculated value of V is ∆V , which can
be approximated by the differential dV = V 0 dr = 4πr 2 dr .
When r = 21 and dr = 0.05, this becomes
CALCULUS I - AY2023-24 66 / 66