Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Series (mathematics) wikipedia , lookup
Multiple integral wikipedia , lookup
Automatic differentiation wikipedia , lookup
Distribution (mathematics) wikipedia , lookup
Partial differential equation wikipedia , lookup
Lie derivative wikipedia , lookup
Sobolev space wikipedia , lookup
Matrix calculus wikipedia , lookup
Fundamental theorem of calculus wikipedia , lookup
Function of several real variables wikipedia , lookup
3 Derivatives TMA1101 Calculus For lecture session TC102 only Faculty of Computing and Informatics 3 Lecturer information Chin Wen Cheong FCI BR4012 Email: [email protected] Phone: 03-83125249 Website: http://pesona.mmu.edu.my/~wcchin Faculty of Computing and Informatics 2 3 References • Calculus by James Stewart • or any texts with the title of CALCULUS Faculty of Computing and Informatics 3 3.1 Derivatives and Rates of Change Derivatives and Rates of Change The problem of finding the tangent line to a curve and the problem of finding the velocity of an object both involve finding the same type of limit. This special type of limit is called a derivative and we will see that it can be interpreted as a rate of change in any of the sciences or engineering. 5 Tangents 6 Tangents If mPQ approaches a number m, then we define the tangent t to be the line through P with slope m. (This amounts to saying that the tangent line is the limiting position of the secant line PQ as Q approaches P. See Figure 1.) Figure 1 7 Tangents 8 Example Find an equation of the tangent line to the parabola y = x2 at the point P(1, 1). Solution: Here we have a = 1 and f(x) = x2, so the slope is 9 Example cont’d Using the point-slope form of the equation of a line, we find that an equation of the tangent line at (1, 1) is y–1 =2 (x – 1) or y = 2x – 1 10 Tangents We sometimes refer to the slope of the tangent line to a curve at a point as the slope of the curve at the point. The idea is that if we zoom in far enough toward the point, the curve looks almost like a straight line. Figure 2 illustrates this procedure for the curve y = x2 in Example 1. Zooming in toward the point (1, 1) on the parabola y = x2 Figure 2 11 Tangents If h = x – a, then x = a + h and so the slope of the secant line PQ is 12 Derivatives 13 Derivatives 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, as we saw in finding tangent lines, is 14 Example Using the definition of derivative to find the derivative of the function f(x) = x2 – 8x + 9 at the number a. 15 Example f(x) = x2 – 8x + 9 Solution: 16 Life is full of disappointment 17 3.2 The Derivative as a Function 18 The Derivative as a Function We have considered the derivative of a function f at a fixed number a: Here we change our point of view and let the number a vary. If we replace a in Equation 1 by a variable x, we obtain 19 Example 1 – Derivative of a Function given by a Graph The graph of a function f is given in Figure 1. Use it to sketch the graph of the derivative f ′. Figure 1 20 Example 1 – Solution We can estimate the value of the derivative at any value of x by drawing the tangent at the point (x, f(x)) and estimating its slope. For instance, for x = 5 we draw the tangent at P in Figure 2(a) and estimate its slope to be about , so f ′(5) ≈ 1.5. Figure 2(a) 21 Other Notations 22 Other Notations If we use the traditional notation y = f(x) to indicate that the independent variable is x and the dependent variable is y, then some common alternative notations for the derivative are as follows: The symbols D and d/dx are called differentiation operators because they indicate the operation of differentiation, which is the process of calculating a derivative. 23 Other Notations The symbol dy/dx, which was introduced by Leibniz, should not be regarded as a ratio (for the time being); it is simply a synonym for f ′(x). Nonetheless, it is a very useful and suggestive notation, especially when used in conjunction with increment notation. We can rewrite the definition of derivative in Leibniz notation in the form 24 Other Notations If we want to indicate the value of a derivative dy/dx in Leibniz notation at a specific number a, we use the notation which is a synonym for f ′(a). 25 Example Where is the function f(x) = |x| differentiable? Solution: If x > 0, then |x| = x and we can choose h small enough that x + h > 0 and hence |x + h| = x + h. Therefore, for x > 0, we have and so f is differentiable for any x > 0. 26 Example – Solution cont’d Similarly, for x < 0 we have |x| = –x and h can be chosen small enough that x + h < 0 and so |x + h| = –(x + h). Therefore, for x < 0, and so f is differentiable for any x < 0. 27 Example – Solution cont’d For x = 0 we have to investigate Let’s compute the left and right limits separately: and 28 Example – Solution cont’d Since these limits are different, f ′(0) does not exist. Thus f is differentiable at all x except 0. A formula for f ′ is given by and its graph is shown in Figure . 29 Example – Solution cont’d The fact that f ′(0) does not exist is reflected geometrically in the fact that the curve y = |x | does not have a tangent line at (0, 0). [See Figure 5(a).] Figure 5(a) 30 Other Notations Both continuity and differentiability are desirable properties for a function to have. The following theorem shows how these properties are related. The converse of Theorem 4 is false; that is, there are functions that are continuous but not differentiable. Example: f(x) = |x| 31 How Can a Function Fail to Be Differentiable? 32 How Can a Function Fail to Be Differentiable? We saw that the function y = |x| is not differentiable at 0 and Figure 5(a) shows that its graph changes direction abruptly when x = 0. In general, if the graph of a function f has a “corner” or “kink” in it, then the graph of f has no tangent at this point and f is not differentiable there. [In trying to compute f ′(a), we find that the left and right limits are different.] Figure 5(a) 33 How Can a Function Fail to Be Differentiable? Theorem 4 gives another way for a function not to have a derivative. It says that if f is not continuous at a, then f is not differentiable at a. So at any discontinuity (for instance, a jump discontinuity) f fails to be differentiable. A third possibility is that the curve has a vertical tangent line when x = a; that is, f is continuous at a and 34 How Can a Function Fail to Be Differentiable? This means that the tangent lines become steeper and steeper as x a. Figure 6 shows one way that this can happen; Figure 7(c) shows another. Figure 6 Figure 7(c) 35 How Can a Function Fail to Be Differentiable? Figure 7 illustrates the three possibilities that we have discussed. Three ways for f not to be differentiable at a Figure 7 36 Higher Derivatives 37 Higher Derivatives If f is a differentiable function, then its derivative f ′ is also a function, so f ′ may have a derivative of its own, denoted by (f ′)′ = f ′′. This new function f ′′ 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 38 Example If f(x) = x3 – x, find and interpret f ′′(x). Solution: The first derivative of f(x) = x3 – x is f ′(x) = 3x2 – 1. So the second derivative is 39 Example – Solution cont’d The graphs of f, f′, and f′′ are shown in Figure 10. Figure 10 40 Higher Derivatives 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: a(t) = v′(t) = s′′(t) or, in Leibniz notation, 41 Higher Derivatives The third derivative f ′′′ is the derivative of the second derivative: f ′′′ = (f ′′)′. So f′′′(x) can be interpreted as the slope of the curve y = f ′′(x) or as the rate of change of f ′′(x). If y = f(x), then alternative notations for the third derivative are 42 Higher Derivatives The process can be continued. The fourth derivative f ′′′′ is usually denoted by f (4). In general, the nth derivative of f is denoted by f (n) and is obtained from f by differentiating n times. If y = f(x), we write 43 3.3 Differentiation Formulas 44 Differentiation Formulas Let’s start with the simplest of all functions, the constant function f(x) = c. The graph of this function is the horizontal line y = c, which has slope 0, so we must have f(x) = 0. The graph of f(x) = c is the line y = c, so f(x) = 0. Figure 1 45 Differentiation Formulas A formal proof, from the definition of a derivative, is also easy: In Leibniz notation, we write this rule as follows. 46 (b)Power Functions 47 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. The graph of f(x) = x is the line y = x, so f (x) = 1. Figure 2 48 Power Functions So We have already investigated the cases n = 2 and n = 3. In fact, we found that (x2) = 2x (x3) = 3x2 (xn) = ?x? 49 Power Functions For n = 4 we find the derivative of f(x) = x4 as follows: 50 Power Functions Thus (x4) = 4x3 Comparing the equations in , , and , we see a pattern emerging. It seems to be a reasonable guess that, when n is a positive integer, (ddx)(xn) = nx n–1. This turns out to be true. We prove it in two ways; the second proof uses the Binomial Theorem. 51 Example 1 (a) If f(x) = x6, then f(x) = 6x5. (b) If y = x1000, then y = 1000x999. (c) If y = t 4, then (d) = 4t 3. (r3) = 3r2 52 New Derivatives from Old 53 New Derivatives from Old When new functions are formed from old functions by addition, subtraction, or multiplication by a constant, their derivatives can be calculated in terms of derivatives of the old functions. In particular, the following formula says that the derivative of a constant times a function is the constant times the derivative of the function. 54 Example 2 (a) (3x4) = 3 (x4) = 3(4x3) = 12x3 (b) (–x) = [(–1)x] = (–1) (x) = –1(1) = –1 55 New Derivatives from Old The next rule tells us that the derivative of a sum of functions is the sum of the derivatives. The Sum Rule can be extended to the sum of any number of functions. For instance, using this theorem twice, we get (f + g + h) = [(f + g) + h] = (f + g) + h = f + g + h 56 New Derivatives from Old By writing f – g as f + (–1)g and applying the Sum Rule and the Constant Multiple Rule, we get the following formula. The Constant Multiple Rule, the Sum Rule, and the Difference Rule can be combined with the Power Rule to differentiate any polynomial, as the following examples demonstrate. 57 Example 3 (x8 + 12x5 – 4x4 + 10x3 – 6x + 5) = (x8) + 12 (x5) – 4 (x4) + 10 (x3) – 6 (x) + (5) = 8x7 + 12(5x4) – 4(4x3) + 10(3x2) – 6(1) + 0 = 8x7 + 60x4 – 16x3 + 30x2 – 6 58 New Derivatives from Old Let f(x) = x and g(x) = x2. Then the Power Rule gives f(x) = 1 and g(x) = 2x. But (fg)(x) = x3, so (fg)(x) = 3x2. Thus (fg) fg. 59 New Derivatives from Old The correct formula was discovered by Leibniz and is called the Product Rule. 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. 60 Example 6 Find F(x) if F(x) = (6x3)(7x4). Solution: By the Product Rule, we have F(x) = = (6x3)(28x3) + (7x4)(18x2) = 168x6 + 126x6 = 294x6 61 New Derivatives from Old 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. 62 Example 8 Let . Then 63 New Derivatives from Old 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 F(x) = using the Quotient Rule. 64 New Derivatives from Old It is much easier to perform the division first and write the function as F(x) = 3x + 2x –12 before differentiating. 65 General Power Functions 66 General Power Functions The Quotient Rule can be used to extend the Power Rule to the case where the exponent is a negative integer. 67 Example 9 (a) If y = , then = –x –2 = (b) 68 General Power Functions 69 Example 11 Differentiate the function f(t) = (a + bt). Solution 1: Using the Product Rule, we have 70 Example 11 – Solution 2 cont’d If we first use the laws of exponents to rewrite f(t), then we can proceed directly without using the Product Rule. 71 General Power Functions The differentiation rules enable us to find tangent lines without having to resort to the definition of a derivative. They also enable us to find normal lines. The normal line to a curve C at point P is the line through P that is perpendicular to the tangent line at P. 72 Example 12 Find equations of the tangent line and normal line to the curve y = (1 + x2) at the point (1, ). Solution: According to the Quotient Rule, we have 73 Example 12 – Solution cont’d So the slope of the tangent line at (1, ) is We use the point-slope form to write an equation of the tangent line at (1, ): y– = – (x – 1) or y= 74 Example 12 – Solution cont’d The slope of the normal line at (1, ) is the negative reciprocal of , namely 4, so an equation is y– = 4(x – 1) or y = 4x – The curve and its tangent and normal lines are graphed in Figure 5. Figure 5 75 General Power Functions summary Table of Differentiation Formulas 76 77 3.4 Derivatives of Trigonometric Functions 78 Derivatives of Trigonometric Functions So we have proved the formula for the derivative of the sine function: 79 Example 1 Differentiate y = x2 sin x. Solution: Using the Product Rule and Formula 4, we have 80 Derivatives of Trigonometric Functions Using the same methods as in the proof of Formula 4, one can prove that The tangent function can also be differentiated by using the definition of a derivative, but it is easier to use the Quotient Rule together with Formulas 4 and 5: 81 Derivatives of Trigonometric Functions 82 Derivatives of Trigonometric Functions The derivatives of the remaining trigonometric functions, csc, sec, and cot, can also be found easily using the Quotient Rule. 83 Derivatives of Trigonometric Functions We collect all the differentiation formulas for trigonometric functions in the following table. Remember that they are valid only when x is measured in radians. 84 3.5 The Chain Rule 85 The Chain Rule Observe that F is a composite function. In fact, if we let y = f (u) = and let u = g(x) = x2 + 1, then we can write y = F (x) = f (g(x)), that is, F = f g. 86 The Chain Rule 87 The Chain Rule The Chain Rule can be written either in the prime notation (f g)(x) = f(g(x)) g(x) or, if y = f(u) and u = g(x), in Leibniz notation: Equation 3 is easy to remember because if dy/du and du/dx were quotients, then we could cancel du. Remember, however, that du has not been defined and du/dx should not be thought of as an actual quotient. 88 Example 1: using composition Find F'(x) if F(x) = . Solution 1: (Using Equation 2): We have expressed F as F(x) = (f g)(x) = f(g(x)) where f(u) = and g(x) = x2 + 1. Since and g(x) = 2x we have F(x) = f(g(x)) g(x) 89 Example 1 – find u (Using Equation 3): If we let u = x2 + 1 and y = cont’d , then 90 The Chain Rule When using Formula 3 we should bear in mind that dy/dx refers to the derivative of y when y is considered as a function of x (called the derivative of y with respect to x), whereas dy/du refers to the derivative of y when considered as a function of u (the derivative of y with respect to u). For instance, in Example 1, y can be considered as a function of x (y = ) and also as a function of u (y = ). Note that whereas 91 The Chain Rule In general, if y = sin u, where u is a differentiable function of x, then, by the Chain Rule, Thus In a similar fashion, all of the formulas for differentiating trigonometric functions can be combined with the Chain Rule. 92 The Chain Rule Let’s make explicit the special case of the Chain Rule where the outer function f is a power function. If y = [g(x)]n, then we can write y = f(u) = un where u = g(x). By using the Chain Rule and then the Power Rule, we get 93 Example 3 Differentiate y = (x3 – 1)100. Solution: Taking u = g(x) = x3 – 1 and n = 100 in = , we have (x3 – 1)100 = 100(x3 – 1)99 (x3 – 1) = 100(x3 – 1)99 3x2 = 300x2(x3 – 1)99 94 Example 4 95 Example 5 96 Example 6 97 3.6 Implicit Differentiation 98 Implicit Differentiation The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable—for example, y= or y = x sin x or, in general, y = f(x). Some functions, however, are defined implicitly by a relation between x and y such as x2 + y2 = 25 or x3 + y3 = 6xy 99 Implicit Differentiation In some cases it is possible to solve such an equation for y as an explicit function (or several functions) of x. For instance, if we solve Equation 1 for y, we get y= , so two of the functions determined by the implicit Equation 1 are f(x) = and g(x) = . The graphs of f and g are the upper and lower semicircles of the circle x2 + y2 = 25. (See Figure 1.) Figure 1 100 Implicit Differentiation It’s not easy to solve Equation 2 for y explicitly as a function of x by hand. (A computer algebra system has no trouble, but the expressions it obtains are very complicated.) Nonetheless, (2) is the equation of a curve called the folium of Descartes shown in Figure 2 and it implicitly defines y as several functions of x. The folium of Descartes Figure 2 101 Implicit Differentiation The graphs of three such functions are shown in Figure 3. Graphs of three functions defined by the folium of Descartes Figure 3 When we say that f is a function defined implicitly by Equation 2, we mean that the equation x3 + [f(x)]3 = 6xf(x) is true for all values of x in the domain of f. 102 Implicit Differentiation Fortunately, we don’t need to solve an equation for y in terms of x in order to find the derivative of y. Instead we can use the method of implicit differentiation. This consists of differentiating both sides of the equation with respect to x and then solving the resulting equation for y'. In the examples and exercises of this section it is always assumed that the given equation determines y implicitly as a differentiable function of x so that the method of implicit differentiation can be applied. 103 Example 1 (a) If x2 + y2 = 25, find . (b) Find an equation of the tangent to the circle x2 + y2 = 25 at the point (3, 4). Solution 1: (a) Differentiate both sides of the equation x2 + y2 = 25: 104 Example 1 – Solution cont’d Remembering that y is a function of x and using the Chain Rule, we have Thus Now we solve this equation for dy/dx: 105 Example 1 – Solution cont’d (b) At the point (3, 4) we have x = 3 and y = 4, so An equation of the tangent to the circle at (3, 4) is therefore y–4= (x – 3) or 3x + 4y = 25 Solution 2: (b) Solving the equation x2 + y2 = 25, we get y = . The point (3, 4) lies on the upper semicircle y = and so we consider the function f(x) = . 106 Example 1 – Solution cont’d Differentiating f using the Chain Rule, we have So and, as in Solution 1, an equation of the tangent is 3x + 4y = 25. 107 Example 2 108 Example 3 109 110