In this chapter, we begin our study of differential calculus. This is concerned with how one quantity changes in relation to another quantity. the derivative is a measure of how fast does a function change in response to changes in independent variable; for example, the derivative of the position of a moving object with respect to time is the object's velocity. Definition of INFINITESIMAL 1: taking on values arbitrarily close to but greater than zero 2: immeasurably or incalculably small <an infinitesimal difference> Now concentrate and observe: Let’s assume that we know function ๐ = ๐ฆ ๐ฅ at any ๐ฅ → graph. Let’s find the slope of the line joining position P(x = a) and some T . ๐ ๐ + โ๐ฅ − ๐(๐) ๐ ๐๐๐๐ = โ๐ฅ T ๐(๐ฅ) f (x+Δx) - f(x) P x ๐ ๐ + โ๐ฅ Let us consider Δ x intervals that are getting smaller and smaller. Df = f (x+Δx) - f(x) ๐ ๐๐๐๐ ๐๐ ๐กโ๐ ๐ก๐๐๐๐๐๐ก ๐๐๐๐ ๐๐ก ๐ = Q f (x) R ๐ ๐ + โ๐ฅ − ๐(๐) lim โ๐ฅ→0 โ๐ฅ S Dx T f (x+Δx) - f(x) P Dx ๐ ALTHOUGH, both, Δ f and Δ x are becoming infinitesimally small approaching zero, their ratio is approaching definite value – slope of tangent line at P Slopesx of straight lines connecting point P and other points on the path are approaching the slope of the line tangent at P. Explain yourself and me what you saw “The derivative of f with respect to x is …” Definition: The derivative of a function ๐ at a fixed number ๐ is ๐′ ๐ ๐ + โ๐ฅ − ๐(๐) ๐ = lim โ๐ฅ→0 โ๐ฅ provided that this limit exists. Very often you are going to find that definition in following form: ๐′ ๐ ๐ + โ − ๐(๐) ๐ = lim โ→0 โ Graphical interpretation of mathematical definition of derivative at point ๐ is the slope of the tangent line to the function ๐ at point ๐ . Till now, we considered the derivative of a function ๐ at a fixed number ๐ . Now, we change our point of view and let the number ๐ vary. Let’s assume that ๐ can take any value of ๐ฅ on an open interval ๐ผ Definition: Let y = ๐(๐ฅ) be a function. The derivative of ๐ is the function ๐ ′ ๐ฅ whose value at x is the limit ๐′ ๐ ๐ฅ + โ − ๐(๐ฅ) ๐ฅ = lim โ→0 โ provided this limit exists. If this limit exists for each x in an open interval I, then we say that f is differentiable on I. The derivative is the instantaneous rate of change of a function with respect its variable. This is equivalent to finding the slope of the tangent line to the function at a point. There are many ways to write the derivative of f ๏ข๏จ x๏ฉ “f prime x” y๏ข “y prime” dy dx df dx d f ๏จ x๏ฉ dx y ๏ฝ f ๏จ x๏ฉ or “the derivative of f with respect to x” “d y d x” or “the derivative of y with respect to x” “d f d x” or “the derivative of f with respect to x” “d dx of f of x” or “the derivative of f of x with respect to x” dy Dy ๏ฝ lim dx Dx ๏ฎ0 Dx Rates of change • This means that: – When the derivative is large (and therefore the curve is steep, as at the point P in the figure), the y-values change rapidly. – When the derivative is small, the curve is relatively flat and the yvalues change slowly. y ๏ฝ f ๏จ x๏ฉ 4 3 2 1 ๐ฅ y ๏ฝ f ๏ข๏จ x๏ฉ 0 3 1 2 3 4 5 6 7 8 9 2 The derivative is defined at the end points of a function on a closed interval. 1 The derivative is the slope of the original function. ๐ฅ 0 -1 -2 1 2 3 4 5 6 7 8 9 6 5 y ๏ฝ x2 ๏ญ 3 4 3 2 1 -3 -2 -1 0 -1 1 x 2 3 y๏ข ๏ฝ lim ๏จ x ๏ซ h๏ฉ 2 ๏จ ๏ญ 3 ๏ญ x2 ๏ญ 3 h ๏ฎ0 h -2 -3 x 2 ๏ซ 2 xh ๏ซ h 2 ๏ญ x 2 y๏ข ๏ฝ lim h ๏ฎ0 h 6 5 4 3 2 1 -3 -2 -1 0 -1 -2 -3 -4 -5 -6 1 2 3 x ๐ฆ′ = lim 2๐ฅ + โ โ→0 y๏ข ๏ฝ 2 x 0 ๏ฉ Differentiability A function is differentiable if it has a derivative everywhere in its domain. To be differentiable, a function must be continuous and smooth. Functions on closed intervals must have one-sided derivatives defined at the end points. Derivatives will fail to exist at: f ๏จ x๏ฉ ๏ฝ x f ๏จ x๏ฉ ๏ฝ x 2 3 cusp corner f ๏จ x๏ฉ ๏ฝ x 3 ๏ฌ๏ญ1, x ๏ผ 0 f ๏จ x๏ฉ ๏ฝ ๏ญ ๏ฎ 1, x ๏ณ 0 vertical tangent A function has derivative at a point, if the left derivative is equal to the right derivative at that point. The left slope must be equal to the right slope. discontinuity Find an equation of the tangent line to the hyperbola ๐ฆ = 3 at the point (3, 1). ๐ฅ The slope of the tangent at (3, 1) is: ๐= ๐ 3+โ −๐(3) lim โ โ→0 = lim โ→0 3 −1 3+โ โ −โ โ→0 โ(3+โ) = lim = lim โ→0 1 3 −1 3+โ Eq. of the tangent at the point (3, 1) is ๐ฆ − 1 = − (๐ฅ − 3) x + 3y – 6 = 0 The hyperbola and its tangent are shown in the figure How do you find normal at (3,1) ? =− 1 3 Equation of the tangent line to a function ๐ฆ = ๐(๐ฅ) at the point ๐, ๐(๐) ๐ฆ − ๐ ๐ = ๐ ′ ๐ (๐ฅ − ๐) Equation of the normal line to a function ๐ฆ = ๐(๐ฅ) at the point ๐, ๐(๐) 1 ๐ฆ−๐ ๐ =− ′ (๐ฅ − ๐) ๐ ๐ ๐ป๐๐ค ๐ก๐ ๐๐๐๐ ๐๐๐๐โ ๐ ′ ๐ฅ ๐๐๐๐ค๐๐๐ ๐๐๐๐โ ๐(๐ฅ) 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 the figure and estimate its slope to be about 3/2, so ๐′(5) ≈ 1.5. This allows us to plot the point P’(5, 1.5) on the graph of f’ directly beneath P. Repeating this procedure at several points, we get the graph shown in this figure. Tangents at x = A, B, and C are horizontal. So, the derivative is 0 there and the graph of f’ crosses the x-axis at those points. Between A and B, the tangents have positive slope. So, f’(x) is positive there. Between B and C, and the tangents have negative slope. So, f’(x) is negative there. example: ๐ ๐ฅ = ๐ฅ 3 − ๐ฅ. Find ๐ ′ ๐ฅ . Sketch both graphs. ๏ฉ ๏จ x ๏ซ h ๏ฉ3 ๏ญ ๏จ x ๏ซ h ๏ฉ ๏น ๏ญ ๏ฉ x 3 ๏ญ x ๏น ๏ป f ( x ๏ซ h) ๏ญ f ( x ) ๏ป ๏ซ f '( x) ๏ฝ lim ๏ฝ lim ๏ซ h ๏ฎ0 h ๏ฎ0 h h x3 ๏ซ 3x 2 h ๏ซ 3xh 2 ๏ซ h3 ๏ญ x ๏ญ h ๏ญ x3 ๏ซ x ๏ฝ lim h ๏ฎ0 h ๏ฝ 3x 2 ๏ญ 1 Notice that ๐’(๐ฅ) = 0 when f has horizontal tangents and ๐’(๐ฅ) is positive when the tangents have positive slope. THE DERIVATIVE AS A FUNCTION Example 2 b • We use a graphing device to graph f • and f’ in the figure. – Notice that f’(x) = 0 when f has horizontal tangents and f’(x) is positive when the tangents have positive slope. – So, these graphs serve as a check on our work in part (a). Two theorems: 1. Differentiability Implies Continuity If f is differentiable at x = c, then f is continuous at x = c. Since a function must be continuous to have a derivative, if it has a derivative then it is continuous. lim f ' ( x) ๏ฝ lim๏ซ f ' ( x) ๏ lim๏ญ f ( x) ๏ฝ lim๏ซ f ( x) ๏ฝ f (c) x ๏ฎc ๏ญ x ๏ฎc x ๏ฎc x ๏ฎc The converse: "If a function is continuous at c, then it is differentiable at c," - is not true. This happens in cases where the function "curves sharply." ๐ฃ๐๐ ๐ข๐๐๐๐ฆ: ๐๐๐๐ก ๐๐๐๐๐ก ๐๐ ๐กโ๐ ๐ ๐๐๐๐ ≠ ๐๐๐โ๐ก ๐๐๐๐๐ก ๐๐ ๐กโ๐ ๐ ๐๐๐๐ Differentiability implies continuity, continuity doesn’t imply differentiability. Intermediate Value Theorem for Continuous Functions If ๐(๐ฅ) is continuous on ๐, ๐ and ๐ is any number between ๐(๐) and ๐(๐), then there is at least one number ๐ such that ๐ ๐ = ๐. ๐ ๐1 = ๐ ๐ ๐2 = ๐ ๐ ๐3 = ๐ example: Prove that function ๐ ๐ฅ = ๐ฅ2 cos(2๐ฅ) + 1 has a root/zero between 2 and 2.5. ๐ 2 ≈ −1.614574 ๐(2.5) ≈ 2.7728887 ๐ is continuous on [2, 2.5], ๐(2) < 0 and ๐(2.5) > 0, so ๐ must have a zero between 2 and 2.5. Intermediate Value Theorem for Derivatives Let ๐ be differentiable on [๐, ๐] and suppose that k is a number between ๐′(๐) and ๐′(๐) . Then there exists a point ๐ ∈ (๐, ๐) such that ๐′(๐) = ๐ . You can find it in this form too: If ๐ and ๐ are any two points in an interval on which ๐ is differentiable, then ๐′ takes on every value between ๐′(๐) and ๐′(๐). Between ๐ and ๐, ๐′ must take on every value between ½ and 3. ๐′ is continuous function on ๐, ๐ If it were always necessary to compute derivatives directly from the definition, ๐ ๐ฅ+โ −๐(๐ฅ) โ โ→0 ๐ ′ ๐ฅ = lim calculus BC would be even worse nightmare, there would be no Ipad and the life as we know it ……. Computations would be tedious, and the evaluation of some limits would require ingenuity. Fortunately, several rules have been developed for finding derivatives without having to use the definition directly. These formulas greatly simplify the task of differentiation. First let us see what are we avoiding: Let’s start with the simplest of all functions — the constant function f(x) = c. ๐ ๐ฅ =๐ ๐ ′ ๐ฅ = lim โ→0 ๐ ๐ฅ + โ − ๐(๐ฅ) ๐−๐ = lim = lim 0 โ→0 โ→0 โ โ ๐′ ๐ฅ = 0 The graph of this function is the horizontal line y = c, which has slope 0. In Leibniz notation ๐ ๐ =0 ๐๐ฅ The derivative of a constant is zero examples: y ๏ฝ 3 y๏ข ๏ฝ 0 ๐ ๐ฅ = ๐ฅ๐, ๐ ๐๐ ๐๐๐ ๐๐ก๐๐ฃ๐ ๐๐๐ก๐๐๐๐ x ๏ซ h๏ฉ ๏ญ x ๏จ d 2 x ๏ฝ lim ๏ฝ lim h ๏ฎ0 h ๏ฎ0 dx h 2 2 2 2 2 x ๏ซ 2 xh ๏ซ h ๏ญ x ๏จ ๏ฉ h 1 1 x ๏ซ h ๏ฉ ๏ญ x3 ๏จ d 3 x ๏ฝ lim h ๏ฎ0 dx h 3 1 1 3 2 2 3 x ๏ซ 3 x h ๏ซ 3 xh ๏ซ h ๏ญ x ๏จ ๏ฉ 1 2 3 ๏ฝ lim h ๏ฎ0 d 4 x ๏ฝ lim h ๏ฎ0 dx h 1 ๏ฝ 3x 2 2 3 3 We observe a pattern: 2 2 h 2 3 4 5 1 1 3 6 1 4 10 10 1 5 1 (Pascal’s Triangle) 4 x ๏ซ 4 x h ๏ซ 6 x h ๏ซ 4 xh ๏ซ h ๏ญ x ๏จ ๏ฉ 4 ๏ฝ 2x 3 4 ๏ฝ 4x 3 2x 3x 2 4x 3 5x 4 6x 5 … ๏ฎ We observe a pattern: 2x 3x 2 4x 3 5x 4 6x 5 … ๐ ๐ ๐ฅ = ๐ ๐ฅ ๐−1 ๐๐ฅ examples: power rule f ๏จ x๏ฉ ๏ฝ x y ๏ฝ x8 4 f ๏ข ๏จ x ๏ฉ ๏ฝ 4x 3 y๏ข ๏ฝ 8 x 7 ๏ฎ ๐๐๐๐ ๐ก๐๐๐ก ๐๐ข๐๐ก๐๐๐๐ ๐๐ข๐๐: ๐ ๐ฅ = ๐๐(๐ฅ) ๐ ๐ฅ+โ −๐(๐ฅ) โ โ→0 ๐′ ๐ฅ = lim ๐๐ ๐ฅ+โ −๐๐(๐ฅ) โ โ→0 = lim ๐ ๐ฅ+โ −๐(๐ฅ) โ โ→0 = ๐ lim ๐ ′ ๐ฅ = ๐ ๐′(๐ฅ) ๐ ๐ ๐ ๐(๐ฅ) = ๐ ๐(๐ฅ) ๐๐ฅ ๐๐ฅ examples: d 7 x 5 ๏ฝ 7 ๏ 5 x 4 ๏ฝ 35 x 4 dx limit has no effect on a constant coefficient; the constant could be factored to the outside. ๏ฎ ๐ ๐ข๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐๐ ๐๐ข๐๐ ๐ ๐ฅ +๐ ๐ฅ ′ ๐ ๐ฅ + โ + ๐ ๐ฅ + โ − ๐ ๐ฅ − ๐(๐ฅ) = lim โ→0 โ ๐ ๐ฅ + โ − ๐(๐ฅ ๐ ๐ฅ + โ − ๐(๐ฅ) = lim + โ→0 โ โ ๐ ๐ฅ + โ − ๐(๐ฅ) ๐ ๐ฅ + โ − ๐(๐ฅ) = lim + lim โ→0 โ→0 โ โ d d d f ( x ) ๏ซ g ( x ) ๏ฝ f ( x ) ๏ซ g ( x) ๏ ๏ dx dx dx limit of the sum = sum of the limits provided they are both differentiable each term is treated separately examples: y ๏ฝ x 4 ๏ซ 12 x y ๏ฝ x4 ๏ญ 2x2 ๏ซ 2 y๏ข ๏ฝ 4 x3 ๏ซ 12 dy ๏ฝ 4 x3 ๏ญ 4 x dx example: Example: Find the horizontal tangents of: y ๏ฝ x4 ๏ญ 2x2 ๏ซ 2 Horizontal tangents occur when slope = zero. y ๏ฝ 2, y ๏ฝ 1, y ๏ฝ 1 (The function is even, so we only get two horizontal tangents.) ๐๐๐๐๐ข๐๐ก ๐๐ข๐๐ d d d ๏ f ( x) g ( x) ๏ ๏ฝ f ( x) ๏ g ( x) ๏ ๏ซ g ( x) ๏ f ( x) ๏ dx dx dx 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, provided they are both differentiable. Example: Find derivative if Later, though, we will meet functions, such as y = x2 sinx, for which the product rule is the only possible method. Q๐ข๐๐ก๐๐๐๐ก ๐ ๐ข๐๐ Q๐ข๐๐ก๐๐๐๐ก ๐ ๐ข๐๐ d ๏ฉ f ( x) ๏น ๏ฝ ๏ช ๏บ dx ๏ซ g ( x) ๏ป g ( x) d d f ( x ) ๏ญ f ( x ) ๏ ๏ ๏ g ( x)๏ dx dx ๏ฉ๏ซ g ( x) 2 ๏น๏ป 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, provided they are both differentiable. The theorems of this section show that: Any polynomial is differentiable on −∞, +∞ . Any rational function is differentiable on its domain. Furthermore, the Quotient Rule and the other differentiation formulas enable us to compute the derivative of any rational function—as the next example illustrates. Example: 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: It is possible to differentiate the function using the Quotient Rule. However, it is much easier to perform the division first and write the function as before differentiating. ๏ฎ ๐บ๐๐๐๐๐๐ ๐๐๐ค๐๐ ๐น๐ข๐๐๐ก๐๐๐๐ The Quotient Rule can be used to extend the Power Rule to the case where the exponent is a negative integer. If n is a positive integer, then d ๏ญn ( x ) ๏ฝ ๏ญ nx ๏ญ n ๏ญ1 dx Example: ๐๐๐ค๐๐ ๐ ๐ข๐๐ So far, we know that the Power Rule holds if the exponent n is a positive or negative integer. If n = 0, then x0 = 1, which we know has a derivative of 0. Thus, the Power Rule holds for any integer n. What if the exponent is a fraction? In fact, it can be shown by using Chain Rule (obviously proof later) that it also holds for any real number n. If n is any real number, then d n n ๏ญ1 ( x ) ๏ฝ nx dx Example: Let Then y๏ฝ 1 3 x2 dy d ๏ญ2 / 3 ๏ฝ (x ) dx dx ๏ฝ ๏ญ 23 x ๏ญ (2 / 3) ๏ญ1 ๏ฝ ๏ญ 23 x ๏ญ5/ 3 Example: Find equations of the tangent line and normal line to the curve ๐ฅ y= 1 + ๐ฅ2 at the point (1, ½). slope of the tangent line at (1, ½) : tangent line at (1, ½): 1 1 3 ๐ฆ−1=− ๐ฅ−1 →๐ฆ =− ๐ฅ+ 4 4 4 normal line at (1, ½): ๐ฆ− 1 7 = 4 ๐ฅ − 1 → ๐ฆ = 4๐ฅ − 2 2 In your mind: ๐ฅ ′ = 1 ′ ๐ฅ2 1 −1 1 = ๐ฅ 2= 2 2 ๐ฅ Example: At what points on the hyperbola xy = 12 is the tangent line parallel to the line 3x + y = 0? Since xy = 12 can be written as y = 12/x, we have: ๐๐ฆ = 12 ๐ฅ −1 ๐๐ฅ ′ =− 12 ๐ฅ2 Let the x-coordinate of one of the points in question be ๐. 12 Slope of the tangent line at that point is − 2 , and that has to be equal to ๐ the slope of line 3x + y = 0 the required points are: (2, 6) and (-2, -6) ๐ท๐๐๐๐๐๐๐๐ก๐๐๐ก๐๐๐ ๐น๐๐๐๐ข๐๐๐ Here’s a summary of the differentiation formulas we have learned so far. d ๏จc๏ฉ ๏ฝ 0 dx d n n ๏ญ1 x ๏ฝ nx ๏จ ๏ฉ dx ๏จ cf ๏ฉ ' ๏ฝ cf ' ๏จ f ๏ซ g ๏ฉ ' ๏ฝ f '๏ซ g ' ๏จ fg ๏ฉ ' ๏ฝ fg '๏ซ gf ' ' ๏จ f ๏ญ g ๏ฉ ' ๏ฝ f '๏ญ g ' ๏ฆ f ๏ถ gf '๏ญ fg ' ๏ง ๏ท๏ฝ 2 g g ๏จ ๏ธ Higher Order Derivatives: y๏ข ๏ฝ dy dx is the first derivative of y with respect to x. dy๏ข d dy d 2 y y๏ข๏ข ๏ฝ ๏ฝ ๏ฝ 2 dx dx dx dx dy๏ข๏ข y๏ข๏ข๏ข ๏ฝ dx y ๏จ 4๏ฉ is the second derivative. (y double prime) is the third derivative. d ๏ฝ y๏ข๏ข๏ข is the fourth derivative. dx We will learn later what these higher order derivatives are used for. p