1a §2.1 Derivatives and Rates of Change 1b Example. Consider π¦ = π(π₯) = π₯ 2 ο‘0 … 2 … π₯-, 0 … 4 … π¦-, π(π₯)ο± Tangent Lines ο‘axes, curve Cο± Consider a smooth curve C. A line tangent to C at a point P both intersects C at P and has the same slope as C at P. ο‘add line π‘ο± The Tangent Line Problem Given point P on curve C, how do you find the tangent line? What is the equation of the line tangent to the curve at π₯ = 1? ο‘add π, lineο± Point-slope form for a straight line passing through π(1,1) π¦ − 1 = π(π₯ − 1) 2a 2b π(π₯)−π(1) What is the slope π? πππ = What is the slope of the secant passing through π(1,1) and π1 (2,4)? ο‘add π1 , ππ1 ο± this ratio is called a difference quotient πππ1 = = = Δπ¦ = = π₯ 2 −1 π₯−1 Δπ₯ π(2)−π(1) 2−1 = 4−1 2−1 =3 What is the slope of the secant passing through π(1,1) and π2 (1.5, π(1.5))? ο‘add π2 , ππ2 ο± πππ2 = π₯−1 = (π₯−1)(π₯+1) π₯−1 π₯ + 1, π₯ ≠ 1 ={ undefined, π₯ = 1 As long as π₯ ≠ 1, πππ = π₯ + 1 π₯ πππ π(1.5)−π(1) 2 3 1.5−1 1.5 2.5 1.1 2.1 1.01 2.01 2.25−1 1.5−1 1.25 0.5 = 2.5 The slope of the tangent line is the limit of the difference quotient as π₯ → 1. π = lim(π₯ + 1) = 2 π₯→1 What is the slope of the secant line passing through π(1,1) and π(π₯, π₯ 2 )? The equation of the tangent line is π¦ − 1 = 2(π₯ − 1) β 3a 3b Thus Example. Find an equation of the line tangent to the curve π(π₯) = √π₯ + 1 at π(3,2). 1 π = lim π₯→3 √π₯+1+2 = 1 2+2 = 1 4 Equation of tangent line Point slope form of the tangent line 1 π¦ − 2 = (π₯ − 3) β 4 π¦ − 2 = π(π₯ − 3) where π = lim The Velocity Problem π(π₯)−π(3) π₯−3 π₯→3 Drive to Spokane airport (~85 miles) simplify the difference quotient Start at noon π(π₯)−π(3) π₯−3 = √π₯+1−2 π₯−3 Drive slowly through Colfax multiply by 1 to rationalize the numerator = √π₯+1−2 √π₯+1+2 π₯−3 √π₯+1+2 Arrive 2pm Average velocity = (π₯+1)−4 = (π₯−3)( √π₯+1+2) = √π₯+1+2 distance traveled time elapsed = 85 miles 2 hours = 42.5 mph cancel factors of π₯ − 3 1 Have lunch at Harvester true if π₯ ≠ 3 The speedometer 5 miles north of Colfax reads 65 mph. This is the “instantaneous velocity.” 4a 4b Mathematical definition of instantaneous velocity? Galileo drops a ball off the leaning Tower of Pisa ο‘sketch ground, tower, coordinate π with origin at topο± What is the average velocity between π‘ = 1 and π‘ = 2? Average velocity = = = π (π‘) = 5π‘ 2 π meters, ο‘0 … 2 … π‘-, 0 … 5 … 20 … π -, curveο± π‘ seconds time elapsed π (2)−π (1) 2−1 5⋅22 −5⋅12 = 15 ball falls distance π at time π‘ after release. distance traveled 1 meters second What is the average velocity between π‘ = 1 and a variable π‘? Average velocity = = = = π (π‘)−π (1) π‘−1 5⋅π‘ 2 −5 π‘−1 5⋅(π‘ 2 −1) π‘−1 5(π‘−1)(π‘+1) π‘−1 5a 5b = 5(π‘ + 1) as long as π‘ ≠ 1. Table π‘ 2 1.1 1.001 average velocity (meters per sec.) 15 5 ⋅ (2.1) = 10.5 5 ⋅ (2.001) = 10.005 Derivatives Define the derivative of a function π at a number π, denoted π ′ (π) π ′ (π) = lim π(π₯)−π(π) [1] π₯−π π₯→π Define instantaneous velocity at π‘ = 1 as the limit of average velocities over shorter and shorter time intervals around π‘ = 1. From the example above π£(1) = π ′ (1) = Denote instantaneous velocity π£(π‘). lim π£(1) = lim π‘→1 π‘−1 . π (π‘)−π (1) Alternatively, introduce π‘−1 = lim 5(π‘ + 1) = 10 π‘→1 π‘→1 π (π‘)−π (1) meters second β =π₯−π π₯ =π+β and insert in equation [1] to get π ′ (π) = lim β→0 π(π+β)−π(π) β [2] 6a 6b π ′ (π₯) = lim (2π₯ + β) = 2π₯ β→0 §2.2 The Derivative as a Function Graph and compare π(π₯) and π ′ (π₯) ο‘−2 … 0 … 2 … π₯-, −4 … 0 … 4 … π¦-, π(π₯)ο± Replace the symbol π in [2] by π₯. Regard π₯ as a variable. π ′ (π₯) = lim π(π₯+β)−π(π₯) β β→0 Regard π′ as a new function. ο‘−2 … 0 … 2 … π₯-, −4 … 0 … 4 … π¦-, π′(π₯)ο± Example. Let π(π₯) = π₯ 2 . Find π ′ (π₯) Simplify the difference quotient π(π₯+β)−π(π₯) β = = = (π₯+β)2 −π₯ 2 β (π₯ 2 +2π₯β+β2 )−π₯ 2 β 2π₯β+β2 β = 2π₯ + β Then this step assumes β ≠ 0 ο‘add tangent segments at π₯ = −1, 0, 1 to graph of πο± 7a 7b ο‘add dots at π₯ = −1, 0 , 1 to graph of π′ο± β Example. Let π(π₯) = √π₯ + 1. Find π′ (π₯). ?? Transparency: match π and π′ Simplify the difference quotient π(π₯+β)−π(π₯) β √π₯+β+1−√π₯+1 β = rationalize numerator by multiplying by 1 √π₯+β+1−√π₯+1 √π₯+β+1+√π₯+1 β √π₯+β+1+√π₯+1 = multiply terms in numerator β(√π₯+β+1+√π₯+1) divide through by β (assumes β ≠ 0) 1 √π₯+β+1+√π₯+1 Then π′ (π₯) = lim 1 β→0 √π₯+β+1+√π₯+1 = original function: π¦ = π(π₯) derivative function: π ′ (π₯) = ππ¦ ππ₯ prime notation emphasizes idea of derivative as a new function (π₯+β+1)−(π₯+1) = = Notations for Derivative 1 2√π₯+1 Show transparency comparing π and π′ π ′ (π₯) the prime means differentiate with respect to function argument evaluate at no. π π ′ (π) 8a 8b Leibniz notation emphasizes idea of derivative as the limit of a ratio ο‘… π₯ … π₯ + β … , … , π, β = Δπ₯, π(π₯ + β) − π(π₯) = Δπ¦ο± Operator notation for derivative Sometimes we write π ′ (π₯) = π ππ₯ π or π ′ (π₯) = π·π view π ππ₯ and π· as operators: machines that convert the functions they operate on into other functions lim π(π₯+β)−π(π₯) β→0 β = lim evaluate at no. π ππ¦ | ππ₯ π Δπ¦ β→0 Δπ₯ = ππ¦ ππ₯ Differentiability π differentiable at π means π ′ (π) exists π differentiable on an open interval (π, π) means π is differentiable at every point in (π, π) 9a 9b conclude π ′ (0) does not exist Example (a function not differentiable at a point) π(π₯) = |π₯| Geometrical Idea Is π differentiable at π₯ = 0? ο‘axes, graph of |x|, no tangent line here (at origin)ο± if so π ′ (0) = lim π(0+β)−π(0) π β→0 = lim |0+β|−|0| β h→0 = lim |β| β→0 β does this limit exist? find the limit from the right lim |β| β→0+ β β = lim = 1 β→0 β find the limit from the left lim |β| β→0− β = lim −β β→0− β = −1 the right and left hand limit do not agree. To be differentiable at point, the graph must have a unique tangent line at that point. β 10a 10b Three ways that a function can fail to be differentiable (a) (c) at a vertical tangent ο‘… π … , …, function w/ a vertical tangent at πο± at any discontinuity ο‘… π … , …, function with dcty at πο± lim π(π₯) = ∞, π ′ (π) DNE π₯→π lim π(π+β)−π(π) β β→0 (b) DNE at any corner or kink ο‘… π … , …, function with a kink at πο± lim β→0 π(π+β)−π(π) β DNE 11a 11b Relationship between differentiability and continuity We have shown: if π is not continuous then π is not differentiable Let π΄ be the statement Higher Derivatives Consider π¦ = π(π₯) First derivative of π ππ¦ π is continuous at a no. π₯ Let π΅ be the statement π is differentiable at π₯ We have shown If (not π΄) then (not π΅) This is logically equivalent to If π΅ then π΄ ππ₯ = π ′ (π₯) Regarded as a function, π may itself be differentiable. Second derivative of π π2π¦ ππ₯ 2 = π ′′ (π₯) If π ′′ (π₯) is differentiable, form the third derivative π3π¦ ππ₯ 3 = π ′′′ (π₯) If π ′′′ (π₯) is differentiable, form the fourth derivative π4π¦ ππ₯ 4 = π (4) (π₯) Notation for the ππβ derivative, with π ≥ 4: If π is differentiable at π₯ then it is continuous at π₯ πππ¦ ππ₯ π = π (π) (π₯) 12a 12b Application of higher derivatives 2.3 Basic Differentiation Rules Let π (π‘) be the position of an object at time π‘. We first consider those rules that will enable us to differentiate polynomials. π ′ (π‘) = ππ ππ‘ = π£(π‘) is the velocity of the object Derivative of a Constant Function ο‘… π₯-,… 0 … π … π¦-, line π¦ = πο± π ′′ (π‘) = π£ ′ (π‘) = π(π‘) is the acceleration of the object slope of tangent line? First and second derivatives are the most important in applications π ππ₯ π=0 Derivative of π(π) = π ο‘0 … π₯-, 0 … π¦-, π¦ = π₯ο± Example. Mechanics momentum = mass ⋅ velocity force = mass ⋅ acceleration β slope of tangent line? π ππ₯ π₯=1 13a 13b Derivative of π(π) = ππ We have seen that The Power Rule. π′ (π₯) = 2π₯ Let π be a positive integer π ππ₯ π₯ π = ππ₯ π−1 Derivative of π(π) = ππ πΉ ′ (π₯) = lim Example. πΉ(π₯+β)−πΉ(π₯) β β→0 β = = = β (π₯ − π) ⋅ (π₯ 3 +3π₯ 2 β+3π₯β2 +β3 )−π₯ 3 (π₯ π−1 + π₯ π−2 π + π₯ π−3 π2 + β― + π₯ππ−2 + ππ−1 ) β 3π₯ 2 β+3π₯β2 +β3 = π₯ π + π₯ π−1 π + π₯ π−2 π2 + β― + π₯ππ−1 β = 3π₯ + 3π₯β + β 3 −π₯ π−1 π − π₯ π−2 π2 − β― − π₯ππ−1 − ππ assumes β ≠ 0 ________________________________________ thus πΉ π₯ 7 = 7π₯ 6 . β Preliminary fact: (π₯+β)3 −π₯ 3 2 ′ (π₯) ππ₯ Proof. simplify the difference quotient πΉ(π₯+β)−πΉ(π₯) π 2 = lim 3π₯ + 3π₯β + β β→0 = 3π₯ 2 2 π₯π − ππ in other words π₯ π −ππ π₯−π = π₯ π−1 + π₯ π−2 π + β― π₯ππ−2 + ππ−1 14a 14b π notice there are π terms on the right hand side ππ‘ Let π(π₯) = π₯ π π ′ (π) = lim π ππ₯ π₯ π −ππ π₯→π π₯−π = lim (π₯ ?? π−1 π₯→π +π₯ π−2 π + β― π₯π π−2 +π = ππ−1 + ππ−2 π + β― πππ−2 + ππ−1 π−1 ) ?? π‘ −2 = −2π‘ −3 −1 1 1 √π₯ = π₯ 2 recall √π₯ = π₯ 2 2 π 1 ππ‘ √π‘ π ππ’ = π’ √2 = β = πππ−1 Regard π as a variable. Replace π by π₯. π ′ (π₯) = ππ₯ π−1 β The Constant Multiple Rule Let π be a constant and π a differentiable function π ππ₯ ππ(π₯) = π π ππ₯ π(π₯) The Power Rule (general version) Let π be any real number. π ππ₯ π₯ π = ππ₯ π−1 a constant passes through the limit symbol Examples. ?? Examples. π ππ₯ π₯ −9 = −9π₯ −10 ?? π ππ‘ π ππ€ π ππ₯ 5π₯ 2 = 5 10 7 √π‘ = √5 π€ π = π ππ₯ π₯ 2 = 5 ⋅ 2π₯ = 10π₯ 15a 15b β β The Sum Rule The Difference Rule If π and π are both differentiable If π and π are both differentiable π ππ₯ [π(π₯) + π(π₯)] = π ππ₯ π(π₯) + π ππ₯ π(π₯) π ππ₯ [π(π₯) − π(π₯)] = π ππ₯ π(π₯) − π ππ₯ π(π₯) In words: “the derivative of a sum is the sum of the derivatives” In words: “the derivative of a difference is the difference of the derivatives” prime notation prime notation ′ ′ (π(π₯) + π(π₯)) = π ′ (π₯) + π′ (π₯) (π(π₯) − π(π₯)) = π ′ (π₯) − π′ (π₯) shorthand shorthand (π + π)′ = π ′ + π′ (π − π)′ = π ′ − π′ the sum rule applies to the sum of any number of functions Example. (π + π + β)′ = π ′ + π′ + β′ ?? Example π ππ₯ [π₯ 3 + 5π₯ 2 + π] = 3π₯ 2 + 10π₯ + 0 β π ππ₯ (π₯ 3 − 5π₯ 2 ) = 16a 16b ππ’ ππ‘ We can now differentiate any polynomial 2 −1 3 1 2 −1 3 2 3 1 = π‘ 3 + 2 ( π‘ 2 ) = π‘ 3 + 3π‘ 2 β Example. Let Example. Find an equation of the line tangent to the curve π(π₯) = 5π₯ 8 − 2π₯ 5 + 6 π¦ = 3π₯ 2 + then at the point (1,7) π′ (π₯) = =5 π ππ₯ π ππ₯ (5π₯ 8 ) − π₯8 − 2 π ππ₯ π ππ₯ (2π₯ 5 ) + π ππ₯ 6 π₯5 + 0 4 π₯ point slope form for straight line π¦ − π¦0 = π(π₯ − π₯0 ) = 5(8π₯ 7 ) − 2(5π₯ 4 ) + 0 where (π₯0 , π¦0 ) = (1,7) = 40π₯ 7 − 10π₯ 4 β what is π? ππ¦ We can differentiate other functions too. ππ₯ = 3(2π₯) + 4(−π₯ −2 ) = 6π₯ − 4π₯ −2 Example. Let 3 π’ = √π‘ 2 + 2√π‘ 3 Find ππ‘ π’ = π‘ + 2π‘ ππ¦ | ππ₯ π₯=1 =6−4=2 answer ππ’ 2 3 π= π¦ − 7 = 2(π₯ − 1) 3 2 β 17a 17b marginal cost = lim ΔπΆ Δπ₯→0 Δπ₯ ?? Example. A ball is thrown straight up from the ground at 20 meters/second. Its height is given by = πΆ ′ (π₯) Example. Jeans manufacture. Let πΆ(π₯) = cost of producing π₯ pairs of jeans. π¦ = 20 π‘ − 5 π‘ 2 = 2000 + 3π₯ + 0.01π₯ 2 (a) Find the velocity at time π‘. where $2000 (b) Find the velocity at π‘ = 1sec. capital costs (sewing machines) 3π₯ + 0.01π₯ 2 cost of labor, materials, rent Cost of producing 100 pairs of jeans (c) When is the ball at rest? πΆ(100) = 2000 + 300 + 0.01(100)2 (d) What is the average velocity between π‘ = 1 and π‘ = 2? β What is the cost of producing one additional pair of jeans? Economics – Marginal cost πΆ(π₯ + 1) = 2000 + 3(π₯ + 1) + 0.01(π₯ + 1)2 πΆ(π₯) = cost to produce π₯ widgets average rate of change of cost = 2400 πΆ(π₯2 )−πΆ(π₯1 ) π₯2 −π₯1 = ΔπΆ Δπ₯ πΆ(π₯) = 2000 + 3π₯ + 0.01π₯ 2 ___________________________________________ πΆ(π₯ + 1) − πΆ(π₯) = 3 + 0.01((π₯ + 1)2 − π₯ 2 ) 18a 18b = 3 + 0.01(2π₯ + 1) lim π₯→0 Cost of producing the 101ST pair cos(π₯)−1 π₯ =0 Recall the addition formula for cosine πΆ(101) − πΆ(100) = 3 + 0.01(201) cos(π + π) = cos(π) cos(π) − sin(π) sin(π) = $5.01 Now use the limit definition of derivative th Compare with the marginal cost at 100 pair πΆ ′ (π₯) = 3 + 0.02π₯ π ππ₯ cos(π₯) = lim cos(π₯+β)−cos(π₯) β β→0 addition formula for cosine πΆ ′ (100) = $5 = lim cos(π₯) cos(β)−sin(π₯) sin(β)−cos(π₯) β β→0 πΆ ′ (π₯) is often a very good approximation to the cost of producing one additional widget. β difference law for limits = lim cos(π₯) β→0 cos(β)−1 β − lim sin(π₯) sin(β) β→0 β constant multiple law of limits Derivatives of Sine and Cosine Recall the limits lim π₯→0 sin(π₯) π₯ =1 = cos(π₯) ⋅ lim β→0 cos(β)−1 β − sin(π₯) ⋅ lim β→0 sin(β) β recalling the limits above = cos(π₯) ⋅ 0 − sin(π₯) ⋅ 1 19a 19b = −sin(π₯) β The derivative of sin(π₯) may be found using a similar argument (see our text). §2.4 The Product and Quotient Rules In summary: Product Rule π sin(π₯) = cos(π₯) ππ₯ π cos(π₯) = −sin(π₯) ππ₯ If π and π are both differentiable π ππ₯ ππ₯ 1. π(π‘) = sin(π‘) + π cos(π‘) π ππ₯ π(π₯) + π(π₯) π ππ₯ π(π₯) or alternately (as I personally prefer) π ?? Differentiate the following [π(π₯)π(π₯)] = π(π₯) [π(π₯)π(π₯)] = [ π ππ₯ π(π₯)] π(π₯) + π(π₯) [ π ππ₯ π(π₯)] prime notation ′ (π(π₯)π(π₯)) = π ′ (π₯)π(π₯) + π(π₯)π′ (π₯) shorthand (ππ)′ = π ′ π + ππ′ 2. π(π¦) = π΄ π¦ 10 + π΅ cos(π¦) WARNING: (ππ)′ ≠ π′π′ The derivative of a product is not the product of derivatives 20a 20b This is a common mistake! Let π(π₯)π(π₯) = πΉ(π₯) then Example. By the power rule π ππ₯ π ππ₯ [π(π₯)π(π₯)] = π₯ 3 = 3π₯ 2 πΉ(π₯) = lim 2 and π = π₯ = lim πΉ(π₯+β)−πΉ(π₯) β π(π₯+β)π(π₯+β)−π(π₯)π(π₯) β β→0 then π ′ = 2π₯ and π′ = 1 ππ₯ ππ₯ β→0 Now let π = π₯ π π subtract and add the same term in the numerator 3 π₯ = (ππ)′ = π ′ π + ππ′ = lim π(π₯+β)π(π₯+β)−π(π₯+β)π(π₯)+π(π₯+β)π(π₯)−π(π₯)π(π₯) β β→0 algebra = 2π₯ ⋅ π₯ + π₯ 2 ⋅ 1 = 3π₯ 2 β π(π₯ + β) − π(π₯) β π(π₯ + β) − π(π₯) + π(π₯) ] β = lim [ π(π₯ + β) ⋅ β→0 sum and product laws for limits Proof of the Product Rule Suppose π and π are both differentiable functions. π(π₯ + β) − π(π₯) β→0 β = lim π(π₯ + β) ⋅ lim β→0 + lim π(π₯) ⋅ lim β→0 β→0 π(π₯+β)−π(π₯) β 21a 21b continuity of π and definition of derivative = π(π₯) ⋅ π′ (π₯) + π(π₯) ⋅ π ′ (π₯) β Then πΉ(π₯) = π₯ −1 sin(π₯) Product rule Extension to a Product of Three Functions πΉ ′ (π₯) = (π₯ −1 )′ sin(π₯) + π₯ −1 (sin(π₯))′ If π, π and β are all differentiable = (−π₯ −2 ) sin(π₯) + π₯ −1 cos(π₯) (π π β)′ = π ′ π β + π π′ β + π π β′ = Example. Let π(π₯) = π(π₯) = β(π₯) = π₯ then π ′ π ππ₯ = π′ = β′ = 1 π₯ 3 = π ′ π β + π π′ β + π π β′ =1⋅π₯⋅π₯+π₯⋅1⋅π₯+π₯⋅π₯⋅1 −sin(π₯) π₯2 β π₯ β If π and π are differentiable at a point π₯ where π′ (π₯) ≠ 0 then π ( π(π₯) )= π π π(π₯))π(π₯)−π(π₯) π(π₯) ππ₯ ππ₯ π(π₯)2 ( shorthand π ′ Example. Differentiate πΉ(π₯) = Law of exponents: cos(π₯) Quotient Rule ππ₯ π(π₯) = 3π₯ 2 + 1 π₯ = π₯ −1 sin(π₯) π₯ . (π) = π′ π−ππ′ π2 terms in numerator in same order as my product rule (but take difference) 22a 22b = (π₯−1)−(π₯+1) (π₯−1)2 −2 = (π₯−1)2 β Proof of quotient rule. π Let π =β Example. Find the equations of the tangent lines to the curve Then π = π β (π₯+1) By product rule πΊ(π₯) = π ′ = π′ β + π β′ that are parallel to the line Solve for β′ π₯ + 2π¦ = 2 . π β′ = π ′ − π′ β Solution. Parallel means same slope. Slope of line? β′ = = π′ −π′ β 2π¦ − 2 − π₯ π π′ π−π′ π π2 (π₯−1) 1 π¦ =1− π₯ β 2 slope is π = Example. Differentiate πΊ(π₯) = πΊ ′ (π₯) = π₯+1 . where does πΊ have slope −2 πΊ ′ = (π₯−1)2 = (π₯−1)2 where (π₯ + 1) is shorthand for 2 π₯−1 (π₯+1)′ (π₯−1)−(π₯+1)(π₯−1)′ ′ −1 π ππ₯ 1 (π₯ + 1) (π₯−1)2 = −1 2 1 4 −1 2 ? solve for π₯ 23a 23b (π₯ − 1)2 = 4 π₯ = −1 or π₯ = 3 form of equation for tangent line π¦ − π¦0 = π(π₯ − π₯0 ) Consider π₯0 = −1. π¦0 = πΊ(−1) = π¦= −1−1 =0 −1 π₯+1 2 Consider π₯0 = 3. π¦0 = πΊ(3) = π¦−2= β −1+1 3+1 3−1 =2 −1 (π₯ − 3) 2 ?? Class practice product and quotient rules