MIT OpenCourseWare http://ocw.mit.edu 18.01 Single Variable Calculus Fall 2006 For information about citingthese materials or our Terms of Use, visit: http://ocw.mit.edu/terms. Lecture 4 Sept. 14, 2006 18.01 Fall 2006 Lecture 4 ChainRule, and Higher Derivatives Chain Rule We’ve got general procedures for differentiating expressions with addition, subtraction, and multiplication. What about composition? Example 1. ๐ฆ = ๐(๐ฅ) = ๐ ๐๐๐ฅ, ๐ฅ = ๐(๐ก) = ๐ก 2 . So, ๐ฆ = ๐(๐(๐ก)) = sinโก(๐ก 2 ). To find ๐๐ฆ , ๐๐ก write ๐ก0 = ๐ก0 ๐ฅ0 = ๐(๐ก0 ) ๐ฅ0 = ๐(๐ฅ0 ) ๐ก = ๐ก0 + โ๐ก ๐ฅ = ๐ฅ0 + โ๐ฅ ๐ฆ = ๐ฆ0 + โ๐ฆ Δ๐ฆ Δ๐ฆ Δ๐ฅ = โ Δ๐ก Δ๐ฅ Δ๐ก As โ๐ก → 0, โ๐ฅ → 0 too, because of continuity. So we get: ๐๐ฆ ๐๐ฆ ๐๐ฅ = โก ← ๐๐ก๐โก๐๐ก๐๐ข๐งโก๐๐ฎ๐ฅ๐! ๐๐ก ๐๐ฅ ๐๐ก ๐๐ฅ ๐๐ฆ In the example, ๐๐ก = 2๐กโกandโก ๐๐ฅ = cos ๐ฅ. So, ๐ (sin(๐ก 2 )) ๐๐ก ๐๐ฆ ๐๐ฅ ๐๐ฅ ๐๐ก = ( )( ) = (cos ๐ฅ)(2๐ก) = (2๐ก)(cos(๐ก 2 )) Another notation for the chain rule ๐ ๐(๐(๐ก)) ๐๐ก Example 1. (continued) = ๐ ′ (๐(๐ก))๐′(๐ก) ๐ ( or ๐๐ฅ ๐(๐(๐ฅ)) = ๐ ′ (๐(๐ฅ))๐′(๐ฅ) ) Composition of functions . ๐ฆ = ๐ ๐๐๐ฅโกandโก๐(๐ฅ) = ๐ฅ 2 (๐โกโกโ๐)(๐ฅ) = ๐(๐(๐ฅ)) = sinโก(๐ฅ 2 ) (๐โกโกโ๐ )(๐ฅ) = ๐(๐(๐ฅ)) = โก๐ ๐๐2 (๐ฅ) Note: ๐โกโกโ๐โก ≠ ๐โกโกโ๐.โกโกโกโกโกโกโกNot Commutative! 1 Lecture 4 Sept. 14, 2006 18.01 Fall 2006 Figure 1: Composition of functions: (f โg)(x)=f(g(x)) Example 2. ๐ ๐ ๐๐จ๐ฌ (๐) ๐ ๐ =? 1 Let ๐ข = ๐ฅ ๐๐ฆ ๐๐ฆ ๐๐ข โกโก = โกโก ๐๐ฅ ๐๐ข ๐๐ฅ Example 3. ๐ โก(๐ฅ −๐ ) ๐๐ฅ ๐๐ฆ โก= ๐๐ข − sin โก(๐ข) ; ๐๐ฆ ๐๐ฅ sinโก(๐ข) ๐ฅ2 = ๐๐ฆ ๐๐ฅ −1 = (− sin ๐ข)โก( ๐ฅ 2 ) = =? 1 ๐ 1 There are two ways to proceed. ๐ฅ −๐ = (๐ฅ) , orโก๐ฅ −๐ = ๐ฅ ๐ 1. 2. ๐ โก(๐ฅ −๐ ) ๐๐ฅ ๐ โก(๐ฅ −๐ ) ๐๐ฅ ๐ 1 ๐ 1 ๐−1 −1 ( ๐ฅ 2 ) = −๐๐ฅ −(๐−1) ๐ฅ −2 = −๐๐ฅ −๐−1 −1 ๐๐ฅ ๐−1 โ (๐ฅ 2๐ ) = −๐๐ฅ −๐−1 โก(Thinkโกofโก๐ฅ ๐ โกasโก๐ข) = ๐๐ฅ (๐ฅ) = ๐ (๐ฅ) ๐ 1 = ๐๐ฅ (๐ฅ ๐ ) = 2 =− 1 ๐ฅ ๐ฅ2 1 ๐ฅ2 sin( ) Lecture 4 Sept. 14, 2006 18.01 Fall 2006 Higher Derivatives Higher derivatives are derivatives of derivatives. For instance, if ๐ = ๐′, then โ = ๐′ is the second derivative of f. We write โ = (๐ ′ )′ = ๐ ′′ . Notations ๐′(๐ฅ) ๐ท๐ ๐๐ ๐๐ฅ ๐′′(๐ฅ) ๐ท2๐ ๐2 ๐ ๐๐ฅ 2 ๐′′′(๐ฅ) ๐ท3๐ ๐ (๐) (๐ฅ) ๐ท๐ ๐ ๐3 ๐ ๐๐ฅ 3 ๐๐ ๐ ๐๐ฅ ๐ Higher derivatives are pretty straightforward โ just keep taking the derivative! Example. ๐ท ๐ ๐ฅ ๐ =? Start small and look for a pattern. ๐ท๐ฅโกโกโกโกโก = 1 ๐ท 2 ๐ฅ 2 = ๐ท(2๐ฅ) = 2โก(= 1 โ 2) ๐ท 3 ๐ฅ 3 = ๐ท 2 (3๐ฅ 2 ) = ๐ท(6๐ฅ) = 6โก(= 1 โ 2 โ 3) ๐ท 4 ๐ฅ 4 = ๐ท 3 (4๐ฅ 3 ) = ๐ท 2 (12๐ฅ 2 ) = ๐ท(24๐ฅ) = 24โก(= 1 โ 2 โ 3 โ 4) ๐ท ๐ ๐ฅ ๐ = ๐! โก ← โกweโกguess, basedโกonโกtheโกpatternโกwe’reโกseeingโกhere. The notation n! is called “n factorial” and defined by ๐! = ๐(๐ − 1) โฏ 2 โ 1 Proof by Induction: We’ve already checked the base case (n = 1). Induction step: Suppose we know ๐ท ๐ ๐ฅ ๐ = ๐! (๐๐กโ โกcase).โกShow it holds for the (๐ + 1)๐ ๐ก case. ๐ท ๐+1 ๐ฅ ๐+1 = ๐ท ๐ (๐ท๐ฅ ๐+1 ) = ๐ท ๐ ((๐ + 1)๐ฅ ๐ ) = (๐ + 1)๐ท ๐ ๐ฅ ๐ = (๐ + 1)(๐!) ๐ท ๐+1 ๐ฅ ๐+1 = (๐ + 1)! Proved! 3