MAT115_Week_5
MAT115_Week_5
In our previous explorations, we established a rigorous definition of limits and developed techniques
for their computation. Building upon this foundation, we now revisit the foundational problems of
determining tangent lines to curves and calculating instantaneous velocities. These seemingly disparate
problems share a common mathematical core, which leads us to the definition of a powerful concept
known as the derivative.
f (x) − f (a)
mP Q =
x−a
Now, here’s the key idea: we want to see what happens to the secant line as Q gets closer and closer to
P . In other words, we let x approach a. If the slope of the secant line, mP Q , approaches a specific value,
let’s call it m, then this value m represents the slope of the tangent line at point P .
We define the tangent line l at P as the line that passes through P with slope m. This means the tangent
line is the limiting position of the secant line P Q as Q approaches P .
1
y
Tangent Line
Q(x, f (x))
In the graph above, the maroon curve represents y = f (x) = x2 . The gold line is the tangent line at
point P (1, 1), and the dashed line is a secant line connecting P and another point Q. As Q approaches
P , the secant line’s slope approaches the slope of the tangent line.
There is another expression for the slope of a tangent line that is sometimes easier to use. If h = x − a,
then x = a + h and so the slope of the secant line P Q is
f (a + h) − f (a)
mP Q =
h
Notice that as x approaches a, h approaches 0 (because h = x − a) and so the expression for the slope of
the tangent line becomes
f (a + h) − f (a)
m = lim
h→0 h
Example 1.1 Determine the equation of the tangent line to the parabola
y = x2 at P (1, 1)
(1 + h)2 − 12 1 + 2h + h2 − 1
m = lim = lim
h→0 h h→0 h
2h + h2
= lim = lim (2 + h) = 2
h→0 h h→0
y − 1 = 2(x − 1) =⇒ y = 2x − 1
2
Example 1.2 Find an equation of the tangent line to the hyperbola y = 3
x at the point
(3, 1).
f (3 + h) − f (3)
m = lim
h→0 h
3 3−(3+h)
3+h − 1
= lim = lim 3+h
h→0 h h→0 h
−h 1 1
= lim = lim − =−
h→0 h(3 + h) h→0 3+h 3
Therefore, an equation of the tangent at the point (3, 1) is:
1
y − 1 = − (x − 3)
3
which simplifies to:
x + 3y − 6 = 0
Therefore, the equation of the tangent line is y = − 13 x + 2.
(3, 1)
The graph above shows the hyperbola y = x3 in maroon and the tangent line y = − 13 x + 2 in gold.
The point of tangency (3, 1) is also marked.
f (a + h) − f (a)
lim
h→0 h
arise whenever we calculate a rate of change in any of the sciences or engineering, such as a rate of
reaction in chemistry or a marginal cost in economics. Since this type of limit occurs so widely, it is given
a special name and notation.
Definition 1.1
f (a + h) − f (a)
f 0 (a) = lim
h→0 h
if this limit exists.
Thus, the derivative is essentially the instantaneous rate of change of the function at a specific point.
3
If we write x = a + h, then we have h = x − a and h approaches 0 if and only if x approaches a. Therefore
an equivalent way of stating the definition of the derivative is:
f (x) − f (a)
f 0 (a) = lim
x→a x−a
Example 1.3 Use Definition 4 to find the derivative of the function f (x) = x2 − 8x + 9
at the numbers
(a) 2
(b) a
(a)
f (2 + h) − f (2)
f 0 (2) = lim
h→0 h
2
(2 + h) − 8(2 + h) + 9 − (−3)
= lim
h→0 h
4 + 4h + h2 − 16 − 8h + 9 + 3
= lim
h→0 h
h2 − 4h h(h − 4)
= lim = lim = lim (h − 4) = −4
h→0 h h→0 h h→0
(b)
f (a + h) − f (a)
f 0 (a) = lim
h→0 h
[(a + h)2 − 8(a + h) + 9] − [a2 − 8a + 9]
= lim
h→0 h
a2 + 2ah + h2 − 8a − 8h + 9 − a2 + 8a − 9
= lim
h→0 h
2ah + h2 − 8h
= lim = lim (2a + h − 8) = 2a − 8
h→0 h h→0
As a check on our work in part (a), notice that if we let a = 2, then f 0 (2) = 2(2) − 8 = −4.
4
√
Example 1.4 Consider the function f (x) = 1 + 3x. Determine the equation of the
tangent line at (1, 2). Sketch the graph of f together with this tangent line.
p p
1 + 3(1 + h) − 1 + 3(1)
m = lim
h→0 h
√ √ √ √ √ √
4 + 3h − 4 4 + 3h − 4 4 + 3h + 4
= lim = lim ·√ √
h→0 h h→0 h 4 + 3h + 4
(4 + 3h) − 4 3 3 3
= lim √ √ = lim √ =√ =
h→0 h( 4 + h + 4) h→0 4 + h + 2 4+0+2 4
Using the point-slope form of the equation of a line, y − y1 = m(x − x1 ), where m is the slope and
(x1 , y1 ) is the point (1, 2):
3
y − 2 = (x − 1)
4
Simplifying, we get:
3 5
y = x+
4 4
y
Tangent Line
√
(1, 2) f (x) = 1 + 3x
2
x
1
f (a + h) − f (a)
f 0 (a) = lim
h→0 h
Now, let’s broaden our perspective. Instead of considering the derivative at a single point, we’ll examine
how the derivative changes as the point varies. To do this, we replace the fixed value a with a variable x
in the preceding equation, resulting in:
f (x + h) − f (x)
f 0 (x) = lim
h→0 h
This new expression, f 0 (x), defines a function in its own right. For any value of x where this limit exists,
we assign the value f 0 (x). Consequently, we can view f 0 as a new function, aptly named the derivative
function of f , defined by the limit above.
Recall that the value of f 0 at x, denoted f 0 (x), has a significant geometric interpretation: it represents
the slope of the tangent line to the graph of f at the point (x, f (x)). In essence, f 0 (x) provides the
instantaneous rate of change of f at any given x.
The term “derivative” is used because f 0 is “derived” from f through the limiting process defined in
the equation. The domain of f 0 is the set of all x values for which the limit defining f 0 (x) exists. It’s
important to note that the domain of f 0 may be smaller than the domain of the original function f , as
there might be points where the limit defining the derivative does not exist.
5
Example 1.5 If f (x) = 1−4x ,
x
determine a formula for f 0 (x).
f (x + h) − f (x)
f 0 (x) = lim
h→0 h
1 x+h x
= lim −
h→0 h 1 − 4x − 4h 1 − 4x
1 (x + h)(1 − 4x) − x(1 − 4x − 4h)
= lim ·
h→0 h (1 − 4x − 4h)(1 − 4x)
1 h(1 − 4x) + 4xh
= lim ·
h→0 h (1 − 4x − 4h)(1 − 4x)
1 h
= lim ·
h→0 h (1 − 4x − 4h)(1 − 4x)
1
= lim
h→0 (1 − 4x − 4h)(1 − 4x)
1
=
(1 − 4x)2
6
Example 1.6
(a) To compute the derivative f 0 (x) using the limit definition, we treat x as a constant and let
h be the variable that approaches zero.
f (x + h) − f (x)
f 0 (x) = lim
h→0 h
[(x + h)3 − (x + h)] − [x3 − x]
= lim
h→0 h
x3 + 3x2 h + 3xh2 + h3 − x − h − x3 + x
= lim
h→0 h
3x2 h + 3xh2 + h3 − h
= lim
h→0 h
= lim (3x + 3xh + h2 − 1)
2
h→0
2
= 3x − 1
(b) To illustrate the relationship between f (x) and f 0 (x), we will plot both functions on the
same graph.
f (x) = x3 − x
f 0 (x) = 3x2 − 1
Observe that:
– When f (x) has horizontal tangents (at its local extrema), f 0 (x) = 0.
– When f (x) is increasing, f 0 (x) is positive.
– When f (x) is decreasing, f 0 (x) is negative.
This comparison of the graphs of f (x) and f 0 (x) visually confirms the correctness of our
calculated derivative.
7
√
Example 1.7 If f (x) = x, find the derivative of f . State the domain of f 0 .
√ √
f (x + h) − f (x) x+h− x
f 0 (x) = lim = lim
h→0 h h→0 h
√ √ √ √
x+h− x x+h+ x
= lim ·√ √ (Rationalize the numerator.)
h→0 h x+h+ x
(x + h) − x h
= lim √ √ = lim √ √
h→0 h( x + h + x) h→0 h( x + h + x)
1 1 1
= lim √ √ =√ √ = √
h→0 x+h+ x x+ x 2 x
We see that f 0 (x) exists if x > 0, so the domain of f 0 is (0, ∞). This is slightly smaller than the
domain of f , which is [0, ∞).
f (x + h) − f (x)
f 0 (x) = lim
h→0 h
1−(x+h) 1−x
2+(x+h) − 2+x
= lim
h→0 h
(1 − x − h)(2 + x) − (1 − x)(2 + x + h)
= lim
h→0 h(2 + x + h)(2 + x)
(2 − x − 2h − x2 − xh) − (2 − x + h − x2 − xh)
= lim
h→0 h(2 + x + h)(2 + x)
−3h
= lim
h→0 h(2 + x + h)(2 + x)
−3 3
= lim =−
h→0 (2 + x + h)(2 + x) (2 + x)2
• Leibniz notation: dy
dx or dx ,
df
which emphasizes the derivative as the rate of change of y with
respect to x.
• Lagrange notation: f 0 (x), which is compact and widely used in calculus.
• Newton notation: ẏ (used in physics and mechanics, especially for derivatives with respect to
time).
• Euler notation: Df (x), where D is the differentiation operator.
• Higher derivatives:
When we want to specify the value of the derivative at a particular point x = a, we use the following
notation:
dy
dx x=a
The vertical bar |x=a indicates that the derivative is being evaluated at x = a. This notation is commonly
used when determining the slope of a tangent line to a curve at a specific point.
8
Consider the function:
f (x) = x3 − 4x
Its derivative is:
dy
= 3x2 − 4
dx
To find the value of the derivative at x = 2, we write:
dy
= 3(2)2 − 4 = 12 − 4 = 8.
dx x=2
Thus, at x = 2, the derivative of f (x) is 8, meaning the slope of the tangent line to the curve at x = 2 is
8.
Definition 1.2
0 f (x) − f (1)
f− (1) = lim
x→1− x−1
(2 − x) − 1
= lim− = −1
x→1 x−1
0 f (x) − f (1)
f+ (1) = lim+
x→1 x−1
(2x − 1) − 1
= lim+ =2
x→1 x−1
Since f−
0 0
(1) 6= f+ (1), f is not differentiable at x = 1.
For f from the previous example, what are f 0 (0) and f 0 (2)?
9
Example 1.10 Where is the function f (x) = |x| differentiable?
We want to determine where the function f (x) = |x| is differentiable. To do this, we need to
examine the limit definition of the derivative at various points. First, recall that the absolute
value function f (x) = |x| can be defined piecewise as:
if x ≥ 0
(
x,
f (x) = |x| =
−x, if x < 0
This means that for positive values of x, f (x) is simply x, and for negative values of x, f (x) is
−x.
If x > 0, then f (x) = x. Let’s examine the derivative using the limit definition:
f (x + h) − f (x) (x + h) − x h
f 0 (x) = lim = lim = lim = lim 1 = 1
h→0 h h→0 h h→0 h h→0
Since the limit exists and equals 1, f (x) is differentiable for all x > 0, and f 0 (x) = 1 in this region.
Since the limit exists and equals -1, f (x) is differentiable for all x < 0, and f 0 (x) = −1 in this
region.
Now, we need to check differentiability at x = 0. For this, we need to consider the left-
hand and right-hand limits separately.
Right-hand limit (from the positive side):
f (0 + h) − f (0) |h| − 0 h
lim+ = lim+ = lim+ = lim+ 1 = 1
h→0 h h→0 h h→0 h h→0
f (0 + h) − f (0) |h| − 0 −h
lim = lim = lim = lim −1 = −1
h→0− h h→0− h h→0− h h→0−
Since the left-hand limit (-1) and the right-hand limit (1) are not equal, the limit
f (0 + h) − f (0)
lim
h→0 h
does not exist. Therefore, f (x) = |x| is not differentiable at x = 0.
if x > 0
(
1,
f 0 (x) =
−1, if x < 0
Note that f 0 (0) is undefined.
10
Example 1.11 Consider the function
(
2 − x2 , x ≤ 1
f (x) =
ax + b, x > 1
We have
0 f (x) − f (1) 2 − x2 − 1
f− (1) = lim− = lim−
x→1 x−1 x→1 x−1
(1 + x)(1 − x)
= lim− = lim− (−x − 1) = −1 − 1 = −2
x→1 x−1 x→1
0 f (x) − f (1) ax + b − 1
f+ (1) = lim+ = lim+
x→1 x−1 x→1 x−1
The second limit can only exist if a(1) + b − 1 = 0, that is, when
b=1−a
So
0 ax + (1 − a) − 1 a(x − 1)
f+ (1) = lim = lim =a
x→1+ x−1 x→1+ x − 1
Since f−
0
(1) = −2, we must have a = −2. Thus
b = 1 − (−2) = 3
Thus, the only solution is (a, b) = (−2, 3)
(
2 − x2 , x≤1
f (x) =
−2x + 3, x > 1
y
4
(0, 2) 3
2 (1, 1)
1
x
−3 −2 −1 1 2 3
√ f (x)
(− 2, 0) −1 (1.5, 0)
−2
11
Theorem 1.1
If f is differentiable at a, then f is continuous at a.
Proof:
We are given that f is differentiable at a. By definition, this means that the following limit exists:
f (x) − f (a)
f 0 (a) = lim
x−ax→a
We want to show that f is continuous at a. By definition, this means we need to show that:
To do this, let’s consider the expression f (x) − f (a). We can rewrite this as:
f (x) − f (a)
f (x) − f (a) = · (x − a)
x−a
Now, let’s take the limit as x approaches a:
f (x) − f (a)
lim [f (x) − f (a)] = lim · (x − a)
x→a x→a x−a
Using the limit laws, we can separate the limit of the product into the product of the limits:
f (x) − f (a)
lim [f (x) − f (a)] = lim · lim (x − a)
x→a x→a x−a x→a
We know that:
Therefore:
12
Sharp Corners or Cusps
A function fails to be differentiable at points where its graph has sharp corners or cusps. At such points,
the left-hand and right-hand limits of the derivative do not coincide. This means that the slope of the
tangent line is not uniquely defined.
Corner x
The function f (x) = |x| is a classic example. It is continuous at x = 0 but not differentiable there, due
to the sharp corner.
Vertical Tangents
A function fails to be differentiable at points where it has a vertical tangent. At these points, the slope
of the tangent line becomes infinite, and the derivative does not exist.
Vertical Tangent
x
The function f (x) = x1/3 has a vertical tangent at x = 0, hence it is not differentiable there.
Discontinuities
A function must be continuous at a point to be differentiable at that point. Therefore, any discontinuity,
such as a jump discontinuity or a removable discontinuity, will cause the function to be non-differentiable.
y
Jump
1
−1
(
−1, x < 0
The function f (x) = has a jump discontinuity at x = 0, so it is not differentiable there.
1, x≥0
In summary, differentiability is a stronger condition than continuity. A function can fail to be differentiable
at a point due to sharp corners, vertical tangents, or discontinuities.
13
Higher Derivatives
If f is a differentiable function, then its derivative f 0 is also a function, so f 0 may have a derivative of its
own, denoted by (f 0 )0 = f 00 . This new function f 00 is called the second derivative of f because it is the
derivative of the derivative of f . Using Leibniz notation, we write the second derivative of y = f (x) as:
d2 y
d dy
= 2
dx dx dx
We found that the first derivative is f 0 (x) = 3x2 − 1. So the second derivative is:
f 0 (x + h) − f 0 (x)
f 00 (x) = (f 0 )0 (x) = lim
h→0 h
[3(x + h)2 − 1] − [3x2 − 1]
= lim
h→0 h
3x2 + 6xh + 3h2 − 1 − 3x2 + 1
= lim
h→0 h
= lim (6x + 3h) = 6x
h→0
In general, we can interpret a second derivative as a rate of change of a rate of change. The most familiar
example of this is acceleration, which we define as follows.
If s = s(t) is the position function of an object that moves in a straight line, we know that its first
derivative represents the velocity v(t) of the object as a function of time:
ds
v(t) = s0 (t) =
dt
The instantaneous rate of change of velocity with respect to time is called the acceleration a(t) of the
object. Thus the acceleration function is the derivative of the velocity function and is therefore the second
derivative of the position function:
dv d2 s
a= = 2
dt dt
Acceleration is the change in velocity you feel when speeding up or slowing down in a car.
The third derivative f 000 is the derivative of the second derivative: f 000 = (f 00 )0 . So f 000 (x) 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 d2 y d3 y
y 000 = f 000 (x) = 2
= 3
dx dx dx
We can also interpret the third derivative physically in the case where the function is the position function
s = s(t) of an object that moves along a straight line. Because s000 = (s00 )0 = a0 , the third derivative of
the position function is the derivative of the acceleration function and is called the jerk:
da d3 s
j==
dt dt3
Thus the jerk j is the rate of change of acceleration. It is aptly named because a large jerk means a
sudden change in acceleration, which causes an abrupt movement.
14
Example 1.13 If f (x) = x3 − x, find f 000 (x) and f (4) (x).
We found that f 00 (x) = 6x. The graph of the second derivative has equation y = 6x and so it is a
straight line with slope 6. Since the derivative f 000 (x) is the slope of f 00 (x), we have:
f 000 (x) = 6
for all values of x. So f 000 (x) is a constant function and its graph is a horizontal line. Therefore,
for all values of x:
f (4) (x) = 0
f (x + h) − f (x) c−c
f 0 (x) = lim = lim = lim 0 = 0
h→0 h h→0 h h→0
d
(c) = 0
dx
Power Functions
We next look at the functions f (x) = xn , where n is a positive integer. If n = 1, the graph of f (x) = x
is the line y = x, which has slope 1. So:
d
(x) = 1
dx
We have also seen that:
d 2 d 3
(x ) = 2x (x ) = 3x2
dx dx
For n = 4 we find the derivative of f (x) = x4 as follows:
f (x + h) − f (x) (x + h)4 − x4
f 0 (x) = lim = lim
h→0 h h→0 h
x + 4x h + 6x h + 4xh + h4 − x4
4 3 2 2 3
= lim
h→0 h
4x3 h + 6x2 h2 + 4xh3 + h4
= lim
h→0 h
= lim (4x3 + 6x2 h + 4xh2 + h3 ) = 4x3
h→0
Thus:
d 4
(x ) = 4x3
dx
Comparing these equations, we see a pattern emerging. It seems to be a reasonable guess that, when n
is a positive integer, dx
d
(xn ) = nxn−1 . This turns out to be true.
15
Theorem 1.2 The Power Rule
If n is a positive integer, then:
d n
(x ) = nxn−1
dx
Proof:
The formula:
f (x) − f (a) xn − an
f 0 (a) = lim = lim
x→a x−a x→a x − a
Some examples:
• If f (x) = x6 , then f 0 (x) = 6x5 .
• If y = x1000 , then y 0 = 1000x999 .
• If y = t4 , then dy
dt = 4t3 .
• d 3
dr (r ) = 3r2 .
What about power functions with negative integer exponents? We can verify from the definition of a
derivative that:
d 1 1
=− 2
dx x x
We can rewrite this equation as:
d −1
(x ) = (−1)x−2
dx
and so the Power Rule is true when n = −1. In fact, we will show that it holds for all negative integers.
What if the exponent is a fraction? For instance:
d √ 1
( x) = √
dx 2 x
which can be written as:
d 1/2 1
(x ) = x−1/2
dx 2
This shows that the Power Rule is true even when the exponent is 12 . In fact, we will (at a later stage)
show it is true for all real exponents n.
16
Example 1.14 Differentiate:
(a) f (x) = x12
√
(b) y = x2
3
d −2 2
f 0 (x) = (x ) = −2x−2−1 = −2x−3 = − 3
dx x
(b)
dy d √ d 2/3 2 2
(x ) = x(2/3)−1 = x−1/3
3
= ( x2 ) =
dx dx dx 3 3
Note that the tangent line to a curve at a point represents the best linear approximation of the curve
at that point. It ”touches” the curve at that point and has the same instantaneous slope as the curve
there. The normal line is a line that is perpendicular to the tangent line at the point of tangency. In
many applications, the normal line is important for describing directions that are orthogonal (perpen-
dicular) to the curve’s direction. For instance, in physics, it can represent the direction of a force acting
perpendicularly on a surface.
17
√
Example 1.15 Find equations of the tangent line and normal line to the curve y = x x
at the point (1, 1). Illustrate by graphing the curve and these lines.
√
Consider the curve y = x x = x3/2 at the point (1, 1).
The derivative of y with respect to x is:
dy 3
= x1/2
dx 2
At x = 1, the slope of the tangent line is:
3 1/2 3
m= (1) =
2 2
The equation of the tangent line is:
3
y−1= (x − 1)
2
3 1
y = x−
2 2
The slope of the normal line is the negative reciprocal of the tangent’s slope:
2
mnormal = −
3
The equation of the normal line is:
2
y − 1 = − (x − 1)
3
2 5
y =− x+
3 3
y √
y=x x
Tangent Line
Normal Line
x
1
18
Proof:
Let g(x) = cf (x). Then:
For example
d 4 d
3x = 3 x4 = 3(4)x3 = 12x3
dx dx
The next rule tells us that the derivative of a sum (or difference) of functions is the sum (or difference)
of the derivatives.
Proof:
F (x + h) − F (x)
F 0 (x) = lim
h→0 h
[f (x + h) + g(x + h)] − [f (x) + g(x)]
= lim
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 (by a Limit Law)
h→0 h h→0 h
= f 0 (x) + g 0 (x)
To prove the Difference Rule, we write f − g as f + (−1)g and apply the Sum Rule and the Constant
Multiple Rule.
The Sum Rule can be extended to the sum of any number of functions. For instance, using this theorem
twice, we get:
19
Example 1.16
d 8
(x + 12x5 − 4x4 + 10x3 − 6x + 5)
dx
d 8
(x + 12x5 − 4x4 + 10x3 − 6x + 5)
dx
d 8 d d d d d
= (x ) + 12 (x5 ) − 4 (x4 ) + 10 (x3 ) − 6 (x) + (5)
dx dx dx dx dx dx
7 4 3 2
= 8x + 12(5x ) − 4(4x ) + 10(3x ) − 6(1) + 0
= 8x7 + 60x4 − 16x3 + 30x2 − 6
Example 1.17 Find the points on the curve y = x4 − 6x2 + 4 where the tangent line
is horizontal.
Horizontal tangents occur where the derivative is zero. We have:
dy d 4 d d
= (x ) − 6 (x2 ) + (4)
dx dx dx dx
= 4x3 − 12x + 0 = 4x(x2 − 3)
√
Thus dx
dy
= 0 if x = 0 or x2 − 3 = 0, that is, x = ± 3. So the given curve has horizontal tangents
√ √ √ √
when x = 0, 3, and − 3. The corresponding points are (0, 4), ( 3, −5), and (− 3, −5).
Exponential Functions
Let’s try to compute the derivative of the exponential function f (x) = bx using the definition of a
derivative:
f (x + h) − f (x) bx+h − bx
f 0 (x) = lim = lim
h→0 h h→0 h
bx bh − bx bx (bh − 1)
= lim = lim
h→0 h h→0 h
The factor b doesn’t depend on h, so we can take it in front of the limit:
x
bh − 1
f 0 (x) = bx lim
h→0 h
Notice that the limit is the value of the derivative of f at 0, that is:
bh − 1
lim = f 0 (0)
h→0 h
Therefore we have shown that if the exponential function f (x) = bx is differentiable at 0, then it is
differentiable everywhere and:
f 0 (x) = f 0 (0)bx
This equation says that the rate of change of any exponential function is proportional to the function
itself. (The slope is proportional to the height.)
We will see that e lies between 2.7 and 2.8. Later we will be able to show that, correct to five decimal
places:
e ≈ 2.71828
Numerical evidence for the existence of f (0) is given in the table below for the cases b = 2 and b = 3.
0
20
2h −1 3h −1
h h h
0.1 0.71773 1.16123
0.01 0.69556 1.10467
0.001 0.69339 1.09922
0.0001 0.69317 1.09867
0.00001 0.69315 1.09862
eh − 1
e is the number such that lim =1
h→0 h
Geometrically, this means that of all possible exponential functions y = bx , the function f (x) = ex is the
one whose tangent line at (0, 1) has a slope f 0 (0) that is exactly 1.
If we put b = e and, therefore, f 0 (0) = 1, it becomes the following important differentiation formula.
d x
(e ) = ex
dx
Thus the exponential function f (x) = ex has the property that it is its own derivative. The geometrical
significance of this fact is that the slope of a tangent line to the curve y = ex at a point (x, ex ) is equal
to the y-coordinate of the point.
y
8 y = ex
4
(1, e)
2
(0, 1)
(−1, e−1 )
x
−2 −1.5 −1 −0.5 0.5 1 1.5 2
21
Comparison of Exponential Functions:
y
10 y = ex
y = 2x
y = 3x
8
x
−2 −1.5 −1 −0.5 0.5 1 1.5 2
x
−2 −1.5 −1 −0.5 0.5 1 1.5 2
−2
−4
Notice that f has a horizontal tangent when x = 0; this corresponds to the fact that f 0 (0) = 0.
Notice also that, for x > 0, f 0 (x) is positive and f is increasing. When x < 0, f 0 (x) is negative
and f is decreasing.
22
Example 1.19 At what point on the curve y = ex is the tangent line parallel to the
line y = 2x?
Since y = ex , we have y 0 = ex . Let the x-coordinate of the point in question be a. Then the slope
of the tangent line at that point is ea . This tangent line will be parallel to the line y = 2x if it
has the same slope, that is, 2. Equating slopes, we get:
ea = 2 a = ln 2
Therefore the required point is (a, e ) = (ln 2, 2).
a
d dv du
(uv) = u +v
dx dx dx
This is the Product Rule. It tells us that the derivative of a product of two functions is the first function
times the derivative of the second, plus the second function times the derivative of the first.
23
∆v u∆v ∆u∆v
v∆u
v uv
u ∆u
In words, the Product Rule says that the derivative of a product of two functions is the first function times
the derivative of the second function plus the second function times the derivative of the first function.
Example 1.20
d
f 0 (x) = (xex )
dx
d d
= x (ex ) + ex (x)
dx dx
= xex + ex · 1 = (x + 1)ex
d
f 00 (x) = [(x + 1)ex ]
dx
d d
= (x + 1) (ex ) + ex (x + 1)
dx dx
= (x + 1)ex + ex · 1 = (x + 2)ex
24
√
Example 1.21 Differentiate the function f (t) = t(a + bt).
Example 2 shows that it is sometimes easier to simplify a product of functions before differentiating than
to use the Product Rule. In Example 1, however, the Product Rule is the only possible method.
√
Example 1.22 If f (x) = xg(x), where g(4) = 2 and g 0 (4) = 3, find f 0 (4).
Note that
y = x5 + 4 − x−1 12x1/2 + 3x−2 − x−1/3
Thus
dy
= 5x4 + 0 + x−2 12x1/2 + 3x−2 − x−1/3
dx
1
+ x5 + 4 − x−1 6x−1/2 − 6x−3 + x−4/3
3
√
1 3 1
= 5x4 + 2 12 x + 2 − √
x x 3
x
1 6 6 1
+ x5 + 4 − √ − 3 + 4/3
x x x 3x
25
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. If x, u, and v change by amounts ∆x, ∆u, and ∆v,
then the corresponding change in the quotient u/v is:
u u + ∆u u (u + ∆u)v − u(v + ∆v)
∆ = − =
v v + ∆v v v(v + ∆v)
so:
d u ∆(u/v) v ∆u − u ∆x
∆v
= lim = lim ∆x
dx v ∆x→0 ∆x ∆x→0 v(v + ∆v)
As ∆x → 0, ∆v → 0 also, because v = g(x) is differentiable and therefore continuous. Thus, using the
Limit Laws, we get:
d u v lim∆x→0 ∆u
∆x − u lim∆x→0
∆v
∆x v du dv
dx − u dx
= =
dx v v lim∆x→0 (v + ∆v) v2
Theorem 1.8 The Quotient Rule
In words, the Quotient Rule says that the derivative of a quotient is the denominator times the derivative
of the numerator minus the numerator times the derivative of the denominator, all divided by the square
of the denominator.
d d
(x3 + 6) dx (x2 + x − 2) − (x2 + x − 2) dx (x3 + 6)
y0 =
(x3 + 6)2
(x + 6)(2x + 1) − (x2 + x − 2)(3x2 )
3
=
(x3 + 6)2
(2x + x + 12x + 6) − (3x4 + 3x3 − 6x2 )
4 3
=
(x3 + 6)2
4 3 2
−x − 2x + 6x + 12x + 6
=
(x3 + 6)2
26
Example 1.25 Consider the function
x
y=
1−x
(a) Determine dy
dx
(c) Determine d2 y
dx2
(a) dy
dx = 1·(1−x)−x(−1)
(1−x)2 = 1
(1−x)2
(b) Gradient: m = 1
(1−2)2 =1
Equation: y = 1 · (x − 2) + (−2) = x − 4
(c) d2 y
dx2 = d dy
dx dx = d 1
dx (1−x)2 = d 1
dx 1−2x+x2
dy
=0
dx x=1
This means that the tangent line at (1, 12 e) is horizontal and its equation is y = 12 e.
Note: Don’t use the Quotient Rule every time you see a quotient. Sometimes it’s easier to rewrite a
quotient first to put it in a form that is simpler for the purpose of differentiation. For instance, although
it is possible to differentiate the function:
√
3x2 + 2 x
F (x) =
x
using the Quotient Rule, it is much easier to perform the division first and write the function as:
F (x) = 3x + 2x−1/2
before differentiating.
27
Table of Differentiation Formulas:
d d n
(c) = 0 (x ) = nxn−1
dx dx
(cf )0 = cf 0 (f + g)0 = f 0 + g 0
0
f gf 0 − f g 0
(f g)0 = f g 0 + gf 0 =
g g2
Example 1.27 Compute the following limit (if it exists) using the concept of the
derivative
x33 + 1
lim
x→−1 x + 1
Example 1.28 Determine the equations of all tangent lines to the curve
x−1
y=
x+1
that are parallel to the line x − 2y = 2.
Note that
1
x − 2y = 2 ⇐⇒ y= x−1
2
So the tangent lines must have a gradient of 12 .
dy 1 · (x + 1) − (x − 1) · 1 2 1
= 2
= 2
= ⇐⇒ (x + 1)2 = 4
dx (x + 1) (x + 1) 2
⇐⇒ x + 1 = ±2 ⇐⇒ x = 1 or x = −3
So the only points where there are such tangent lines are
1−1 −3 − 1
1, = (1, 0) and −3, = (−3, 2)
1+1 −3 + 1
Thus, the tangent lines are
1 1 1
y= (x − 1) + 0 =⇒ y= x−
2 2 2
1 1 7
y = (x + 3) + 2 =⇒ y = x+
2 2 2
28
Example 1.29
√
(a) Differentiate the function f (t) = t(a + bt), where a, b ∈ R
√
(b) Determine the derivative of F (x) = 3x2 +2 x
x
(c) Given g(3) = 5 and g 0 (3) = 2, determine h0 (3), where h(x) = xg(x)
a −1/2 3b 1/2 2a 3b √
=⇒ f 0 (t) = t + t =√ + t
2 2 t 2
1
=⇒ F 0 (x) = 3 − 1x−3/2 = 3 − √
x3
(c) h0 (x) = 1 · g(x) + xg 0 (x)
29