Introducing Differentiation: Prerequisites
Introducing Differentiation: Prerequisites
Introducing Differentiation: Prerequisites
Introduction
11.1
Dierentiation is a technique which can be used for analysing the way in which functions change. In particular, it measures how rapidly a function is changing at any point. In engineering applications the function may, for example, represent the magnetic eld strength of a motor, the voltage across a capacitor, the temperature of a chemical mix, etc., and it is often important to know how quickly these quantities change. In this block we explain what is meant by the gradient of a curve and introduce dierentiation as a method for nding the gradient at any point.
Prerequisites
Before starting this Block you should . . .
x understand functional notation, e.g. y = f (x) y be able to calculate the gradient of a straight line
Learning Outcomes
Learning Style
After completing this Block you should be able To achieve what is expected of you . . . to . . . explain what is meant by the tangent to a curve explain what is meant by the gradient of a curve at a point calculate the derivative of a number of simple functions from rst principles allocate sucient studytime
briey revise the prerequisite material attempt every guided exercise and most of the other exercises
1. Drawing tangents
Look at the graph shown in Figure 1a. A and B are two points on the graph, and they have been joined by a straight line. The straight line segment AB is known as a chord. We have lengthened the chord on both sides so that it extends beyond both A and B .
y
B
B A 1 A 2 A
Figure 1a
Figure 1b
Figure 1c
In Figure 1b we have moved point B nearer to point A before drawing the extended chord. Imagine what would happen if we continue moving B nearer and nearer to A. You can do this for yourself by drawing additional points on the graph. Eventually, when B coincides with A, the extended chord is a straight line which just touches the curve at A. This line is now called the tangent to the curve at A, and is shown in Figure 1c. Because you already know (if you knew the position of two points on the line) how to nd the gradient of a straight line you could calculate the gradient of this tangent. We dene the gradient of the curve at A to be the gradient of the tangent there. If this gradient is large at a particular point, the rate at which the function is changing is large too. If the gradient is small, the rate at which the function is changing is small. This is illustrated in Figure 2. Because of this, the gradient at A is also known as the instantaneous rate of change of the curve at A. Recall from your knowledge of the straight line, that if the line slopes upwards as we look from left to right, the gradient of the line is positive, whereas if the line slopes downwards, the gradient is negative.
y y
Q P
x x
The gradient of the tangent at Q is large so the rate rate at which the function is changing is large.
The gradient of the tangent at P is small, so the rate at which the function is changing is small.
Figure 2.
Engineering Mathematics: Open Learning Unit Level 1 11.1: Dierentiation
By examining this gure we see the intimate connection between the gradient of the curve at a point and the gradient of the tangent to the curve.
Key Point The gradient of the curve at a point, P , is equal to tan where is the angle the tangent line at P makes with the positive x axis.
Now do this exercise Imagine tangents to the curve shown in Figure 3, at points A to E . State whether each tangent has positive, negative or zero gradient.
A C B
D E
x
Figure 3. Answer
In the following section we will see how to calculate the gradient of a curve precisely, by studying the graph of y = x2 .
y
y=x
2
15
B(4,16)
4 3 2 1
Figure 4 Inspect the graph carefully and make the following observations: (i) A is the point with coordinates (1, 1). (ii) B is the point with coordinates (4, 16). (iii) We can calculate the gradient of the line AB from the formula gradient = dierence between y coordinates dierence between x coordinates
15 16 1 = = 5. The gradient of AB is not the 41 3 same as the gradient of the graph at A but we can regard it as an approximation, or estimate of the gradient at A. Is it an over- or under- estimate ?
Now do this exercise Carry out the following now before reading the next section: imagine adding the point C to the graph in Figure 4 where C has coordinates (3, 9). Calculate the gradient of the line AC . Answer
We have carried this exercise further by introducing point D at (2, 4) as shown in Figure 5. The gradient of AD was found to be 3. We then added point E at (1.5, 2.25). The gradient of AE is 2.5. y y = x2
15
B(4,16)
10
Figure 5 Observe that each time we carry out this procedure, and move the second point closer to A, the gradient of the line drawn is getting closer and closer to the gradient of the tangent at A. If we continue, the value we eventually obtain is the gradient of the tangent at A and its value is 2 as we will see shortly. This is how we dene the gradient of the curve at A.
y
B(a+h, (a+h)2)
A(a,a2)
x
Figure 6 Generally, at a point whose coordinate is x the gradient is given by 2x. The function, 2x which gives the gradient of y = x2 is called the derivative of y with respect to x. It has other names too including the rate of change of y with respect to x. A special notation is used to represent the derivative. It is not a particularly user-friendly dy notation but it is important to get used to it anyway. We write the derivative as , pronounced dx dee y over dee x or even dee y , dee x. dy is not a fraction - so you cant do things like cancel the ds - just remember that it is the dx symbol or notation for the derivative. An alternative notation for the derivative is y .
More exercises for you to try 1. Carry out the procedure above for the function y = 3x2 : (i) Let A be the point (a, 3a2 ). (ii) Let B be the point (a + h, 3(a + h)2 ). (iii) Find the gradient of the line AB . (iv) Let h 0 to nd the gradient of the curve at A. 2. Carry out the procedure above for the function y = x3 : (i) Let A be the point (a, a3 ). (ii) Let B be the point (a + h, (a + h)3 ). (iii) Find the gradient of the line AB . (iv) Let h 0 to nd the gradient of the curve at A. Answer
y
(x+h, f(x+h)) B
y=f(x)
y=f(x)
(x, f(x))
Figure 7. As h 0 the chord AB becomes the tangent at A. Carefully make the following observations: (i) Point A has coordinates (x, f (x)). (ii) Point B has coordinates (x + h, f (x + h)). (iii) The straight line AB has gradient f (x + h) f (x) h (iv) If we let h 0 we can nd the gradient of the graph of y = f (x) at the arbitrary point A, provided we can evaluate the appropriate limit on h. The resulting limit is the df or f (x). derivative of f with respect to x and is written dx Denition Given y = f (x), its derivative is dened as df f (x + h) f (x) = dx h This is written in the limit as h tends to 0.
f (x + h) f (x) df = lim dx h0 h
df at A is equal to tan which is the tangent of the angle that the gradient line The value of dx makes with the positive x-axis.
More exercises for you to try df when dx 1 a) f (x) = 4x2 , b) f (x) = 2x3 , c) f (x) = 7x + 3, d) f (x) = . x (Harder: try e) f (x) = sin x and use the small angle formulae sin if is small and measured in radians). 1. Use the denition of the derivative to nd 2. Using your results from Q1 calculate the gradient of the following graphs at the given points: a) f (x) = 4x2 at x = 2, b) f (x) = 2x3 at x = 2, c) f (x) = 7x + 3 at x = 5, 1 d) f (x) = at x = 1/2. x x 3. Find the rate of change of the function y (x) = at x = 3 by considering the x+3 interval x = 3 to x = 3 + h. Answer
For this exercise it will be necessary for you to access the computer package DERIVE. DERIVE can be used to calculate limits or to obtain the derivative of a function directly. For example to calculate the limit considered on page 5: (a + h)2 a2 h as h tends to zero
we would key in Author:Expression ((a + h) 2 a 2)/h. DERIVE responds (a + h)2 a2 h You should then key in Calculus:Limit. Finally in the Limit dialog box choose variable h and then hit the Simplify button. DERIVE responds with 2a which is the required limit. To obtain a derivative directly proceed as follows. To nd the derivative of x3 + 2x2 you would key in Author:Expression x 3 + 2x 2. DERIVE responds x3 + 2 x2 Then hit the Calculus button. In the Calculus dialog box choose the Dierentiate option, the x-variable and nally Simplify. DERIVE responds with 3 x2 + 4 x Use DERIVE to obtain the limit of result. sin sin as 0. Plot the graph of to conrm your
Use DERIVE to obtain the derivatives of the functions in question 2 of the end-of-Block exercises above. Use the plot routines to draw the graphs of the functions involved and superimpose the corresponding tangent lines. In this respect you will nd it of use to know that the equation of the tangent line passing through the point (x0 , y0 ) on the curve is y y0 = tan x x0 or equivalently y = y0 + (x x0 ) tan
dy at (x0 , y0 ). dx
10
11
91 = 4. Would you agree that this is a better estimate of the gradient at A ? 31 Back to the theory
12
1. y = 3x2 ,
dy dy = 6x, 2. y = x3 , = 3x2 . dx dx
13
1. a) 8x, b) 6x2 , c) 7, d) 1/x2 , e) cos x. 2. a) 16, b) 24, c) 7, d) 4 3. 1/12 Back to the theory
14