<<

Differentiating and exponential functions

mc-TY-logexp-2009-1

This unit gives details of how logarithmic functions and exponential functions are differentiated from first principles.

In order to master the techniques explained here it is vital that you undertake plenty of practice exercises so that they become second nature.

After reading this text, and/or viewing the video tutorial on this topic, you should be able to:

• differentiate x from first principles

• differentiate ex

Contents 1. Introduction 2 2. Differentiation of a f(x) 2 3. Differentiation of f(x)=ln x 3 4. Differentiation of f(x) = ex 4

www.mathcentre.ac.uk 1 mathcentre 2009 1. Introduction In this unit we explain how to differentiate the functions ln x and ex from first principles. To understand what follows we need to use the result that the exponential constant e is defined 1 1 as the as t tends to zero of (1 + t) /t i.e. lim (1 + t) /t. t→0 1 To get a feel for why this is so, we have evaluated the expression (1 + t) /t for a number of decreasing values of t as shown in Table 1. Note that as t gets closer to zero, the value of the expression gets closer to the value of the exponential constant e≈ 2.718.... You should verify some of the values in the Table, and explore what happens as t reduces further.

1 t (1 + t) /t 1 (1+1)1/1 = 2 0.1 (1+0.1)1/0.1 = 2.594 0.01 (1+0.01)1/0.01 = 2.705 0.001 (1.001)1/0.001 = 2.717 0.0001 (1.0001)1/0.0001 = 2.718

We will also frequent use of the laws of indices and the laws of , should be revised if necessary.

2. Differentiation of a function f(x) δy Recall that to differentiate any function, f(x), from first principles we find the , , of the δx joining an arbitrary point, A, and a neighbouring point, B, on the of f(x). We then δy determine what happens to in the limit as δx tends to zero. (See Figure 1). δx f(x) y

f(x + δx) B

δy

f(x) A δx

x x + δx x δy Figure 1. is the slope of AB. δx The , f ′(x), is then given by

′ δy f(x + δx) − f(x) f (x) = lim = lim δx→0 δx δx→0 δx Use of this result has been explained some length in the first unit on differentiation from first principles.

www.mathcentre.ac.uk 2 c mathcentre 2009 3. Differentiation of f(x)=ln x Using the definition of the derivative in the case when f(x) = ln x we find

f(x + δx) − f(x) ln(x + δx) − ln x = δx δx

A We proceed by using the law of logarithms log A − log B = log to re- the right-hand side B as firstly 1 1 x + δx 1 δx (ln(x + δx) − ln x)= ln = ln 1+ δx δx  x  δx  x  δx In order to simplify what will follow we make a substitution: let t = , that is, δx = xt. (This x substitution is made because in the which follow it is the of δx to x which turns out to be important. We need not worry about x being zero because we are interested in differentiating ln x and the logarithm function is only defined for positive values of x.) Then f(x + δx) − f(x) 1 = ln(1 + t) δx xt 1 Further, using the law n log A = log An we can take the inside the logarithm to give t

f(x + δx) − f(x) 1 1 = ln(1 + t) t δx x Referring to the general case in Figure 1, this represents the slope of the line joining the two points on the graph of f(x). To find the derivative we need to let δx tend to zero. Because we δx substituted t = we need to let t tend to zero. x We have ′ 1 1 f (x) = lim ln(1 + t) t t→0 x In this limiting process it is t which tends to zero, and we can regard x as a fixed number. So, it can be taken outside the limit to give:

′ 1 1 f (x)= lim ln(1 + t) t x t→0 But we know that 1 lim (1 + t) t = e t→0 and so 1 1 f ′(x)= lne = x x since lne=1. 1 We have shown, from first principles, that the derivative of ln x is equal to . x

www.mathcentre.ac.uk 3 c mathcentre 2009 Key Point 1 if f(x) = ln x then f ′(x)= x

Exercise

1. Show from first principles, using exactly the same technique, that if f(x) = log10 x then 1 f ′(x)= . x ln10 ′ 1 2. Show from first principles that if f(x) = log x then f (x)= . a x ln a

4. Differentiation of f(x) = ex To differentiate y = ex we will rewrite this expression in its alternative form using logarithms: ln y = x Then differentiating both sides with respect to x, d (ln y)=1 dx dy The idea is now to find . dx d d dy Recall that (ln y)= (ln y) × . (This result is obtained using a technique known as the dx dy dx . You should refer to the unit on the chain rule if necessary). d 1 Now we know, from Section 3, that (ln y)= and so dy y 1 dy =1 y dx Rearranging, dy = y dx But y = ex and so we have the important and well-known result that dy = ex dx

Key Point if f(x) = ex then f ′(x) = ex

www.mathcentre.ac.uk 4 c mathcentre 2009 The (and multiples of it) is the only function which is equal to its derivative. Exercise 1. Show from first principles, using exactly the same technique, that if f(x)= ax then f ′(x)= ax ln a.

www.mathcentre.ac.uk 5 c mathcentre 2009