Worksheet 3 .8 Introduction To Differentiation: Section 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Worksheet 3.

8 Introduction to Differentiation

Section 1 Definition of Differentiation

Differentiation is a process of looking at the way a function changes from one point to another.
Given any function we may need to find out what it looks like when graphed. Differentiation
tells us about the slope (or rise over run, or gradient, depending on the tendencies of your
favourite teacher). As an introduction to differentiation we will first look at how the derivative
of a function is found and see the connection between the derivative and the slope of the
function.

f(x+h)
f(x+h) - f(x)
f(x)
h

x x+h

Given the function f (x), we are interested in finding an approximation of the slope of the
function at a particular value of x. If we take two points on the graph of the function which are
very close to each other and calculate the slope of the line joining them we will be approximating
the slope of f (x) between the two points. Our x-values are x and x + h, where h is some small
number. The y-values corresponding to x and x + h are f (x) and f (x + h). The slope m of
the line between the two points is given by
y2 y 1
m=
x2 x 1
where (x1 , y1 ) and (x2 , y2 ) are the two points. In our case, we have the two points (x, f (x))
and (x + h, f (x + h)). So the slope of the line joining them is given by

f (x + h) f (x)
m =
x+hx
f (x + h) f (x)
=
h

1
Example 1 : Let f (x) = x3 . Find the slope of the line joining (x, f (x)) and
(x + h, f (x + h)). From our definitions,

f (x + h) f (x)
m =
h
(x + h)3 x3
=
h
x3 + 3x2 h + 3xh2 + h3 x3
=
h
= 3x2 + 3xh + h2

Example 2 : Let f (x) = 2x + 5. Find the slope of the line joining the points
(1, f (1)) and (1.01, f (1.01)).

f (1.01) f (1)
m =
1.01 1
7.02 7
=
0.01
0.02
=
0.01
= 2

as expected since the gradient of y = 2x + 5 is 2.

Example 3 : Let f (x) = x2 . Find the slope of the line joining (x, f (x)) and
(x + h, f (x + h)) if h = 0.1 and x = 1.

f (x + h) f (x)
m =
h
f (1 + 0.1) f (1)
=
0.1
f (1.1) f (1)
=
0.1
(1.1)2 (1)2
=
0.1
0.21
=
0.1
= 2.1

The smaller that h gets to zero, the closer x and x + h get to each other, and consequently the
better m approximates the slope of the function at the point (x, f (x)). So we look at what

2
happens when we take the limit as h 0 in the slope formula and we call this the derivative
f 0 (x). So
f (x + h) f (x)
f 0 (x) = lim
h0 h
Notice that f 0 (x) is the derivative only if the limit exists. If the limit does not exist at particular
x-values then we say that the function is not differentiable at those x-values.

Example 4 : Find the derivative of f (x) = x2 + 3.


f (x + h) f (x)
f 0 (x) = lim
h0 h
(x + h)2 + 3 (x2 + 3)
= lim
h0 h
x2 + 2xh + h2 + 3 x2 3
= lim
h0 h
2
2xh + h
= lim
h0 h
= lim (2x + h)
h0
= 2x

Note: There are other notations for the derivative of a function in x. The most common are
df dy
f 0 (x) and dx . If y = f (x), we also use y 0 = f 0 (x) or dx to refer to the derivative.

Example 5 : Find the derivative of the function f (x) = 2x + 5 at x = 1.


f (x + h) = 2(x + h) + 5
f (x + h) f (x)
f 0 (x) = lim
h0 h
f (1 + h) f (1)
f 0 (1) = lim
h0 h
2(1 + h) + 5 7
= lim
h0 h
2h
= lim
h0 h
= lim 2
h0
= 2

Example 6 : Find the derivative of y = |x| at x = 0.


f (x + h) f (x)
f 0 (x) = lim
h0 h

3
|0 + h| |0|
f 0 (0) = lim
h0 h
|h|
= lim
h0 h

Recall that 
h when h 0
|h| =
h when h < 0
The absolute-value sign prevents us from simply canceling. Lets look at what |h|h
equals. h could be very small and negative, in which case f 0 (0) = 1. Or it could
be very small and positive, in which case f 0 (0) = 1. That is

if h < 0, then f 0 (0) = 1


if h > 0, then f 0 (0) = 1

So the limit does not exist as h 0 since we get a different value for the limit
depending upon whether or not we are close to zero on the negative side or the
positive side. Therefore the derivative of f (x) = |x| does not exist at x = 0.

Look at the graph of y = x .


6
y
k
Q 3

Q 
 Q -
? x
The pointed part at x = 0 shows a rapid and abrupt change of slope. Functions that have
sharp points on their graphs do not have derivatives at these points, although they may have
a derivative everywhere else. The function f (x) = |x| is not differentiable at x = 0, although
it is continuous there.

Exercises:

1. Using the method outlined above, find f 0 (x) for each of the following functions. That is,
use
f (x + h) f (x)
f 0 (x) = lim
h0 h
(a) f (x) = x2 + 2
(b) f (x) = 3x 5
(c) f (x) = 3 x2
(d) f (x) = 4x + 5
(e) f (x) = 2 x

4
Section 2 Polynomial Differentiation

Having looked at the general way of finding the derivative of a function, we can now look
at those functions for which we already have derivatives and give some simple rules. From
these we will be able to determine the derivatives of similar functions. Notice that if we take
f (x) = c, where c is a constant, we get
f (x + h) f (x)
f 0 (x) = lim
h0 h
cc
= lim
h0 h
0
= lim
h0 h
= 0
The last line is true as h0 = 0 for any h except h = 0 and limits are about what happens
as h gets closer and closer to zero, without actually reaching zero. So for f (x) = c we have
f 0 (x) = 0. This is logical since a line such as y = 2 which is parallel to the x-axis has a slope
of zero.

Now consider f (x) = ax. Then


f (x + h) f (x)
f 0 (x) = lim
h0 h
ax + ah ax
= lim
h0 h
ah
= lim
h0 h
= a
So if f (x) = ax we get f 0 (x) = a for any x. Thinking back to worksheet 2.10 where we looked
at the function y = mx + b, we found that m, the coefficient of x, is the slope of the line. So
it makes sense that the derivative of f (x) = ax is a.

Now consider f (x) = bx2 . Then


f (x + h) f (x)
f 0 (x) = lim
h0 h
b(x + h)2 bx2
= lim
h0 h
2bxh + bh2
= lim
h0 h
= lim (2bx + bh)
h0
= 2bx

5
So if f (x) = bx2 we get f 0 (x) = 2bx for any x. We could carry on for higher powers of x and
notice the pattern that if

f (x) = cxn
then f 0 (x) = ncxn1
Furthermore, if we have a sum of functions, it can be shown that the derivative of the sum
is the sum of the derivatives. This means that if f (x) is a sum of terms that each look like
cxn (in other words, a polynomial) you can use the above rule for each term to determine the
derivative of the function.

Example 1 : Let g(x) = x2 + 3x + 2. Then


g 0 (x) = 2x + 3 + 0
= 2x + 3

Example 2 : Find the derivative of f (x) = 5x3 + 3x2 + 22 .

f 0 (x) = 5 3x2 + 3 2x1 + 0


= 15x2 + 6x

Example 3 : Find the derivative of h(x) = 1 + 1


x
= 1 + x1 .

h0 (x) = 0 + 1 x2
1
= 2
x

Example 4 : Given f (x) = 6x2 4x + 1, find f 0 (2).


First find f 0 (x), then find f 0 (2).
f 0 (x) = 12x 4
f 0 (2) = 12 2 4
= 20

Example 5 : Given f (x) = x3 2x2 + 5, find f 0 (1).


First find f 0 (x), then find f 0 (1).
f 0 (x) = 3x2 4x
f 0 (1) = 3(1)2 4(1)
= 7

6
Exercises:

1. Find the derivative of each of the following functions

(a) x2 (f) 3x2 x + 2


(b) 3x2 + 4x (g) x5 + 4x3 7x
4
(c) x3 6x (h) x
x2
(d) 6x2 2x + 3 (i) 4x5 + 6x3
1
(e) x
+ 4x (j) x7 + 4x5

2. (a) If f (x) = 2x3 4x, find f 0 (3).


(b) If f (x) = 7x2 2, find f 0 (4).
(c) If f (x) = 5 3x2 , find f 0 (1).
(d) If f (x) = 6x + 7, find f 0 (12).
(e) If f (x) = 4x3 2x2 + 4x, find f 0 (5).

Section 3 Stationary points

Recall that differentiation tells us about the slope of a function at any point on the graph
where the function is defined. If f 0 (5) = 3 then, for the function f , we know that the slope of
the function at x = 5 is 3. If we know the equation of a function, then we could evaluate the
slope at various x-values. There are particular points on a graph which are of special interest.
These are called stationary points. At a stationary point, the gradient of the function is zero.
The stationary points are of interest to us because they help us to draw the graph of a function.
There are three different types of stationary points:

1. Minimum points

2. Maximum points

3. Horizontal points of inflection

All types of stationary points have the property that the derivative is zero.

7
Minimum points occur when the graph reaches a local minimum, and has a shape like this:

I 

The gradient changes from negative to zero to positive. We call this concave up, because the
cup opens upwards. A maximum occurs when the graph looks like this:

We call this concave down. The gradient changes from positive to zero to negative.

The third type of stationary point, a horizontal point of inflection, occurs when the concavity
changes from up to down or from down to up. They look like:

6 6
+ -

0 0

+ -
? ?

The slope of a horizontal point of inflection momentarily goes to zero where the curve changes
concavity. On either side of the point of inflection, the gradient has the same sign, i.e. if the
gradient is negative on one side of the point of inflection, then it is negative on the other side.
Conversely, for a stationary point that is either a minimum or a maximum, the gradient is
negative on one side of the point and positive on the other.

Using this information, we can determine what types of stationary points occur on a graph.

Example 1 : Find the slope of the function f (x) = x3 + 3 at x = 1 and x = 0.

f 0 (x) = 3x2 + 0
= 3x2

The slope of the function f at x = 1 is the value of the derivative at x = 1. So


f 0 (1) = 3(1)2 = 3. The slope of the function f (x) = x3 + 3 at x = 1 is 3.
The slope at x = 0 is found in the same way. f 0 (0) = 3(0)2 = 0. The slope at
x = 0 is 0 so there must be a stationary point at x = 0.

8
Example 2 : Find all the stationary points of g(x) = x2 + 2x + 2.
We have g 0 (x) = 2x + 2. Stationary points occur when g 0 = 0. So we must find all
x for which this is true, i.e. we need to solve the equation

2x + 2 = 0

The only solution for this is x = 1, so x = 1 is the x-value of the stationary


point. To find the other coordinate, we put x = 1 in the original function:

g(1) = (1)2 + 2(1) + 2 = 1

The only stationary point is (1, 1). To see what kind of stationary point it is we
need to see what the slope is on either side of the stationary point. Now, 1 + h
is on the right side of 1 for h small and positive, and on the left side of 1 for h
small and negative. The slope at 1 + h is

g 0 (1 + h) = 2(1 + h) + 2
= 2 + 2h + 2
= 2h

This is positive for h positive, and negative for h negative. This means that the
stationary point is a local minimum.

Example 3 : Find the stationary points of the function f (x) = x3 + 3x2 + 5.


We calculate f 0 (x) and find all the x-values that satisfy f 0 (x) = 0.

f 0 (x) = 3x2 + 6x = 3x(x + 2) = 0

This equation has the solutions x = 0 and x = 2. And f (0) = 5, f (2) = 9. So


there are two stationary points: (0, 5) and (2, 9).

Remember that the derivative at any value of x gives you the slope of the function at that
value of x.

Example 4 : Given f (x) = 3x2 + 2x + 1, find f 0 (3).


First find f 0 (x), then find f 0 (3).

f 0 (x) = 6x + 2
f 0 (1) = 6(3) + 2)
= 16

9
Example 5 : Given f (x) = 4x2 5x + 7, find the value of x for which f 0 (x) = 11.
First find f 0 (x), then solve f 0 (x) = 11.

f 0 (x) = 8x 5
11 = 8x 5
x = 2

When x = 2 the slope of the function is 11.

Exercises:

1. Given f (x) = 2x2 + 6x 4

(a) find x for which f 0 (x) = 20


(b) find f 0 (2)

2. Find the stationary points for each of the following functions and state whether they are
a maximum, minimum, or a point of inflection.

(a) f (x) = x2 + 6x + 8
(b) f (x) = x2 2x + 15
(c) f (x) = x3 + 2

Section 4 Sketching Graphs

We can use information that we get from derivatives to help sketch graphs of functions. If
we can determine the x- and y-intercepts of a function together with the stationary points we
can determine roughly what the function looks like. The other bit of information we can find
useful is what happens to the function as x approaches positive or negative infinity.

Example 1 : Use the derivatives to help sketch f (x) = x3 + 3x2 + 5.


As determined in the previous section, f 0 (x) = 3x2 + 6x, and f has the two sta-
tionary points (0, 5) and (2, 9). Now we should determine the changes of slope
on either side of both these points. Look at the x-value 0 + h, which is to the right
of 0 if h is small and positive, and to the left of 0 if h is small and negative. We
have f 0 (0 + h) = f 0 (h) = 3(h)2 + 6(h) = 3h2 + 6h. This is positive if h is small and

10
positive, and negative if h is small and negative. The slope is positive to the right
and negative to the left. Then (0, 5) is a minimum turning point.
Repeating the process for x = 2, we get

f 0 (2 + h) = 3(2 + h)2 + 6(2 + h)


= 6h + 3h2
= 3h(h 2)

This is negative if h is small and positive, but positive if h is small and negative.
The slope is positive to the left of 2 , and negative to the right of 2. Then
(2, 9) is a local maximum.
In addition, as x , f (x) , and as x , f (x) .
So the graph looks like:
y
96

5

 -
? 2 x

Example 2 : Sketch the graph of f (x) = x3 + 3.


We first solve
f 0 (x) = 3x2 = 0
This has the solution x = 0. So the critical point is (0, 3). What happens either
side of x = 0?
f 0 (0 + h) = 3h2
This is positive for positive or negative h, so we have a horizontal point of inflection.
The slope to the left and right of x = 0 is positive. The graph looks like:
y
6

3

 -
?
x

11
Exercises:

1. Sketch the following graphs using the process outlined in section 4.

(a) f (x) = x2 + 4x + 3
(b) f (x) = x3 1
(c) f (x) = 2x3 3x2 36x + 18
(d) f (x) = x2 2x + 15
(e) f (x) = x2 2x 24

12
Exercises 3.8 Introduction to Differentiation

1. Using the definition


df (x) f (x + h) f (x)
f 0 (x) =
= lim
dx h0 h
evaluate the derivative of the functions given.

(a) f (x) = 2x + 3
(b) f (x) = x2 2x + 1
(c) f (x) = x3
d xn
2. Using the rule dx
= nxn1 , differentiate the following functions with respect to x.

(a) x2 + 6x + 83
(b) 7x3 5x2 + 9x

(c) x + 8x
(d) 3x2 + x1
(e) 1
x2
+ 1
x
+ 6x (Hint: rewrite 1
x2
as x2 .)

3. (a) Sketch the function f (x) = 2x3 3x2 12x, labelling the y-intercepts and the
stationary points.
(b) The air temperature T (degrees Celsius) as a function of height s (kilometres) above
sea level is measured by a scientist in a hot-air balloon. The function is given by
T = 20 3s. Find T 0 (s) and give an interpretation of your answer.

13
Answers 3.8

2. (a) 2x + 6 (d) 6x3 x2


(b) 21x2 10x + 9
(c) 21 x + 8 (e) x23 1
x2
+6

3. (a)
y
6

(1, 7)
 (0, 0) -
x

(2, 20)

?

(b) T 0 (s) = 3. The temperature is dropping 3 degrees for every km above sea level.

14

You might also like