LECTURE 4 CHAIN RULE, AND HIGHER DERIVATIVES CHAIN RULE 1 MIT OpenCourseWare http://ocw.mit.edu 18.01 Single Variable Calculus Fall 2006 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 2 We’ve got general procedures for diο¬erentiating expressions with addition, subtraction, and multiplication. What about composition? Example 1. y = f(x) = sin x, x = g(t) = t ππ¦ So, y = f(g(t)) = sin(t2). To ο¬nd, , write: ππ‘ π‘ = π‘0 π‘ = π‘0 + βπ‘ π₯ = π₯0 π₯ = π₯0 + βπ₯ π¦ = π(π₯0 ) π¦ = π¦0 + βπ¦ 3 Δπ¦ Δπ¦ Δπ₯ = . Δπ‘ Δπ₯ Δπ‘ As Δt → 0, Δx → 0 too, because of continuity. So we get: ππ¦ ππ‘ = ππ¦ ππ₯ ππ₯ . ππ‘ ← The Chain Rule! 4 ο In the ππ₯ ππ‘ ππ¦ example, = 2π‘, and = ππ₯ π ππ¦ ππ₯ 2 So, (sin(π‘ )) = . ππ‘ ππ₯ ππ‘ cos π₯. = (cos π₯)(2π‘) = (2π‘) cos(π₯ 2 ) 5 ANOTHER NOTATION FOR THE CHAIN RULE π π ππ‘ π π‘ ′ = π π π‘ π′(π‘) (or ππ¦ π ππ₯ π π₯ = π ′ π π₯ π′ π₯ ) 6 EXAMPLE 1. (CONTINUED) Composition of functions π(π₯) = sin π₯ and π π₯ = π₯2 π ° π π₯ = π π π₯ = sin π₯ 2 π ° π π₯ = π π π₯ = sin2 (π₯) Note: π ° π ≠ π ° π. Not Commutative! 7 COMPOSITION OF FUNCTIONS: π ° G(X) = F(G(X)) 8 EXAMPLE 2. Let u = π 1 COS ππ₯ π₯ =? 1 π₯ ππ¦ ππ¦ ππ’ = ππ₯ ππ’ ππ₯ ππ¦ ππ’ 1 = −π ππ π’ ; = − 2 ππ’ ππ₯ π₯ 1 π ππ ππ¦ π ππ (π’) −1 π₯ = = (−π ππ π’) = 2 2 ππ₯ π₯ π₯ π₯2 9 EXAMPLE 3. π . ππ₯ π₯ −π = ? There are two ways to proceed. π₯ −π = π₯ −π = 1 π₯π π ο ππ₯ π₯ −π = −ππ₯ − π−1 π₯ π ο ππ₯ −π π₯ −ππ₯ − = π−1 π 1 π ππ₯ π₯ −2 1 π−1 −1 =π π₯ π₯2 −π−1 1 π , π₯ or = = −ππ₯ π 1 ππ₯ π₯ π π−1 = ππ₯ (Think of π₯ π as u) −1 π₯ 2π = 10 HIGHER DERIVATIVES Higher derivatives are derivatives of derivatives. For instance, if π = π′, then β = π′ is the second derivative of f. We write β = π ′ ′ = π′′. 11 Notations Higher derivatives are pretty straightforward —just keep taking the derivative! π′ π₯ π·π ππ ππ₯ π′′(π₯) π·2 π π2 π ππ₯ 2 π′′′(π₯) π·3 π π3 π ππ₯ 3 π π (π₯) π·π π ππ π ππ₯ π 12 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) 13 The notation n! is called “n factorial” and deο¬ned by n! = n(n − 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 ) = π·π (π + 14 Thank You! 15