Roberto s Notes on Differential Calculus Chapter 4: Basic differentiation rules Section 4. The chain rule

Similar documents
Integration by substitution

A summary of factoring methods

Horizontal asymptotes

Basic methods to solve equations

Logarithmic differentiation

Horizontal asymptotes

AP Calculus AB Summer Assignment

AP Calculus AB Summer Assignment

Antiderivatives and indefinite integrals

Roberto s Notes on Integral Calculus Chapter 3: Basics of differential equations Section 3. Separable ODE s

Integration by inverse substitution

Terminology and notation

Hyperbolic functions

6.2 Properties of Logarithms

Differential calculus. Background mathematics review

Roberto s Notes on Differential Calculus Chapter 1: Limits and continuity Section 7. Discontinuities. is the tool to use,

Trigonometric integrals by basic methods

AP Calculus BC Summer Assignment 2018

ACCUPLACER MATH 0310

Page 1. These are all fairly simple functions in that wherever the variable appears it is by itself. What about functions like the following, ( ) ( )

Algebraic Functions, Equations and Inequalities

192 Calculus and Structures

Definition of geometric vectors

DIFFERENTIATION RULES

NOTATION: We have a special symbol to use when we wish to find the anti-derivative of a function, called an Integral Symbol,

The Chain Rule. This is a generalization of the (general) power rule which we have already met in the form: then f (x) = r [g(x)] r 1 g (x).

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 4. Matrix products

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

4.8 Partial Fraction Decomposition

Example 1: What do you know about the graph of the function

In economics, the amount of a good x demanded is a function of the price of that good. In other words,

1 Exponential Functions Limit Derivative Integral... 5

Notes 3.2: Properties of Limits

CALCULUS I. Integrals. Paul Dawkins

Fox Lane High School Department of Mathematics

Troy High School AP Calculus Summer Packet

SOLVING QUADRATIC EQUATIONS USING GRAPHING TOOLS

We all learn new things in different ways. In. Properties of Logarithms. Group Exercise. Critical Thinking Exercises

Basic properties of limits

MATH 250 TOPIC 11 LIMITS. A. Basic Idea of a Limit and Limit Laws. Answers to Exercises and Problems

AB Calculus 2013 Summer Assignment. Theme 1: Linear Functions

Table of Contents. Unit 3: Rational and Radical Relationships. Answer Key...AK-1. Introduction... v

VII. Techniques of Integration

Math Review and Lessons in Calculus

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

Summer Review Packet for Students Entering AP Calculus BC. Complex Fractions

4.3 Division of Polynomials

Algebra/Trigonometry Review Notes

Math 123 Summary of Important Algebra & Trigonometry Concepts Chapter 1 & Appendix D, Stewart, Calculus Early Transcendentals

explicit expression, recursive, composition of functions, arithmetic sequence, geometric sequence, domain, range

Core Connections Algebra 2 Checkpoint Materials

Roberto s Notes on Linear Algebra Chapter 1: Geometric vectors Section 8. The dot product

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2

Inverse Relations. 5 are inverses because their input and output are switched. For instance: f x x. x 5. f 4

Chapter 2 Overview: Anti-Derivatives. As noted in the introduction, Calculus is essentially comprised of four operations.

In this unit we will study exponents, mathematical operations on polynomials, and factoring.

Fundamentals of Algebra, Geometry, and Trigonometry. (Self-Study Course)

Solving Equations. Lesson Fifteen. Aims. Context. The aim of this lesson is to enable you to: solve linear equations

Implicit Differentiation Applying Implicit Differentiation Applying Implicit Differentiation Page [1 of 5]

2017 AP Calculus AB Summer Assignment

Define a rational expression: a quotient of two polynomials. ..( 3 10) (3 2) Rational expressions have the same properties as rational numbers:

8.3 Zero, Negative, and Fractional Exponents

Core Connections Algebra 2 Checkpoint Materials

6.1 Antiderivatives and Slope Fields Calculus

Using matrices to represent linear systems

Exponential and Logarithmic Functions

Roberto s Notes on Linear Algebra Chapter 11: Vector spaces Section 1. Vector space axioms

Review: Properties of Exponents (Allow students to come up with these on their own.) m n m n. a a a. n n n m. a a a. a b a

Function Operations and Composition of Functions. Unit 1 Lesson 6

dx dx x sec tan d 1 4 tan 2 2 csc d 2 ln 2 x 2 5x 6 C 2 ln 2 ln x ln x 3 x 2 C Now, suppose you had observed that x 3

3.1 Graphs of Polynomials

Polynomial Functions of Higher Degree

Chapter 1 Polynomials. This chapter is about polynomials, which include linear and quadratic expressions. When you have completed it, you should

Introduction. So, why did I even bother to write this?

CHAPTER 2 DIFFERENTIATION 2.1 FIRST ORDER DIFFERENTIATION. What is Differentiation?

1 Rational Exponents and Radicals

Part II) Practice Problems

Multi-Step Equations and Inequalities

HANDOUT SELF TEST SEPTEMBER 2010 FACULTY EEMCS DELFT UNIVERSITY OF TECHNOLOGY

The derivative function

The Chain Rule. The Chain Rule. dy dy du dx du dx. For y = f (u) and u = g (x)

The Product and Quotient Rules

School Year

Topic Subtopics Essential Knowledge (EK)

Dr. Relja Vulanovic Professor of Mathematics Kent State University at Stark c 2008

6.6 Substitution with All Basic Forms

Number of solutions of a system

Summer Packet Honors PreCalculus

Performing well in calculus is impossible without a solid algebra foundation. Many calculus

MEI Core 2. Sequences and series. Section 1: Definitions and Notation

3.2 Logarithmic Functions and Their Graphs

Conceptual Explanations: Radicals

Solving and Graphing a Linear Inequality of a Single Variable

A BRIEF REVIEW OF ALGEBRA AND TRIGONOMETRY

Do we have any graphs that behave in this manner that we have already studied?

West Essex Regional School District. AP Calculus AB. Summer Packet

THE DISTRIBUTIVE LAW. Note: To avoid mistakes, include arrows above or below the terms that are being multiplied.

The Fundamental Theorem of Calculus Part 3

11.4. Differentiating ProductsandQuotients. Introduction. Prerequisites. Learning Outcomes

Transcription:

Roberto s Notes on Differential Calculus Chapter 4: Basic differentiation rules Section 4 The chain rule What you need to know already: The concept and definition of derivative, basic differentiation rules. What you can learn here: How to differentiate a composite function by using the chain rule. The differentiation rules we have seen so far can be used only to differentiate very simple functions or combinations of them that involve only the arithmetic operation of addition, subtraction, multiplication and division. But there is another way to combine functions that is common and important, yet cannot be handled by such basic rules, namely composition. For your convenience, here is a reminder of what composing functions entails. f ; g Eample: If we compose these two functions we obtain: f g f Knot on your finger Given two functions y f ( ) and y g( ) composition, y f g( ), their, is obtained by applying first the function g to the original input, and then applying the function f to the output g of the first one. In symbols: f g( ) f g : g( ) f g( ) g f Eample: f e ; g If we compose these two functions we obtain: ( ) f g f e One property of the composition is very important to remember and will play an important role when we start using the chain rule. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page

Technical fact In general, the composition of two functions is NOT commutative, meaning that in general: f g g f f ; g Eample: If we compose these two functions in the other order, we obtain: 6 g f g Clearly, this is not the same function as f g If we let y f ( ); u g( ) Leibniz notation, we can see that: d f d, so that g ( ) y f g( ) f ( u) and use df u d The last epression is a strange derivative, since it has different variables in the top and bottom, but remember that u is itself a function of, so we are still computing the correct item. Notice that this is NOT a fraction, but the limit of a fraction. Yet, if it were a fraction we could multiply and divide it by du, thus getting: d df u df u du df u dg f g( ) d d du d du d But this last epression makes sense as a product of derivatives, each having the same variable in the top and bottom. This all sounds reasonable, but a bit sloppy, since we are treating a derivative as if it were a fraction. It turns out, however, that all needed details are valid and it can be proved formally that this formula is correct. Therefore it gives us the correct rule. f e ; g Eample: If we compose these two functions in the other order, we obtain: ( ) g f g e e e Again we can see that this is not the same as ( ) f g e. How can we differentiate a composite function? Notice that none of the rules we have seen so far applies here. Now, just like for the product rule, there are some methods that are enticing in their simplicity, but are wrong: beware of them. Since I have seen several such methods and I do not want to place wrong ideas in your head, I will only show you the correct method, which turns out to also be quite simple. To see what this method is, we use Leibniz notation and a basic substitution. Technical fact: the chain rule If y f ( ) and y g( ) are differentiable functions, the derivative of their composition y f g( ) is given by the product: y f g( ) g( ) df g( ) dg( ) d g( ) d In this formula, the first derivative is computed by considering g as a single variable. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page

Eample: f g By using the chain rule, with u, we see that: d df du f g 6 d du d / y e This clearly shows that the inside function the one applied first in the composition is u g e, while the outside function used / second in the composition is y f u u. Wait a minute: if composition is not commutative, how did you figure out which function to use first? Ecellent point, since, as I mentioned earlier, this is very important in the application of the rule. Here is the key: I am confused: didn t you say that in the chain rule we use the outside function first, the one that is inside second? Yes, and that is a common reason for students being confused at the beginning. Let me clarify. Knot on your finger Knot on your finger Since composition is implemented by using brackets, a composite function can be recognized and decomposed as follows: Eample: Brackets are used to divide the first from the second function. When brackets are not present because other notation is used, they can be inserted appropriately. The function that is applied first is the one inside the brackets; the function that is applied second is the one outside the brackets. y e Although there are no brackets, we can see that this function has an inside and an outside portion. In fact, we can write it as: In a composite function the inside function is the one applied first to evaluate the function, but the outside function is the one differentiated first in the chain rule. That can become tricky! It can, but here is a different approach, much more visual and practical, that can help you understand both situations. I am confident that you are familiar with the Matryoshka dolls that originate in the Russian and Ukrainian culture; wooden dolls nested inside each other, as shown here. A composite function is structured like one of these dolls, with one function nested inside the other. This analogy etends to how the chain rule works. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page

But the Matryoshka can have several layers inside! So can a composite function. Knot on your finger Several functions can be composed successively, so as to generate a multi-layered composite function. Eample: f sin e By inserting brackets appropriately, we can see that this function is a composition of four layers: sin f e The first function used and the last differentiated is e have, since the previous layer is squared; then sin ; and finally. Net we. Notice that I am now eliminating the etra variable u and other ones we may need for multiple layers in order to keep the notation light. It is still there behind the scenes, in the proof of the rule, but we need not use it on a regular basis. You kept me waiting long enough: how does this doll analogy work? Strategy for applying the chain rule When applying the chain rule to a composite function. Write the function with enough brackets to see its layered structure analogous to a Matryoshka doll.. Differentiate the outermost layer, by using the appropriate rule, just as if you were opening the outermost layer of the doll. While doing this, consider the entire inside portion as a single variable and leave it as is, just as you would not touch any inside layers as you open the outside one in the doll.. Write down the derivative so obtained and leave it on the page, just as you would leave the outer layer of the doll on the table. 4. Move on to the net layer, just as you would move to the net layer of the doll, and repeat the same procedure. 5. Keep repeating the procedure until all layers have been differentiated and placed net to each other, connected by multiplication. Are you saying that applying the chain rule is like opening a Matryoshka doll? Eactly! So, why is it called chain rule? Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 4

Because this Matryoshka analogy is not commonly known, while mathematician have consistently seen the rule as a chain of differentiations, done one after the other on the successive layers of a composite function. Eample: y e To differentiate this function, first we look at it clearly as a composite function by inserting brackets as we did before: / y e Now we start from the outermost doll I mean layer, which is a power, and use the power rule on it, leaving the inside untouched: / y e e Notice that we have only done the first step of the procedure, so we still need to differentiate the inside layer, which we do with the addition, eponential and power rules: / y e e And we are done! We can, if we want or need, rearrange this derivative as: e y e But this is not a required step to compute the derivative, only to work with it for later uses. Eample: f sin e We have seen that we can write this function as: sin f e So, we apply the Matryoshka procedure, starting from the outside and going gradually in: ) Power rule on the outside square: / sin sin f e e ) We now move to the net layer, which is the sine function. We have not seen how to compute its derivative yet, but you likely remember it from your high school days, or you can look it up on a reference source and identify it as the cosine function. Therefore: / sin cos f e e e ) Net we differentiate the other square, still with the power rule: sin cos f e e / e e 4) Finally we differentiate the last piece as we did before, thus concluding that: sin cos f e e e e No need to beautify this epression, unless we need to, but keep all the brackets in the right place and drop only the ones that are not really needed. Does it get any more complicated than that? It can, but we shall not deal with such mind-boggling eamples. It is sufficient for you to understand the procedure and be able to apply it to functions of this order of difficulty. I am going to conclude this section by showing you a simple and interesting theoretical application of the chain rule. We have seen how to compute the derivative of the natural eponential function, but that proof relied on the convenient choice of e as the base. What if we need to differentiate a different, non-natural eponential function? Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 5

With the chain rule, the task is easy, and the answer goes further in eplaining why in calculus we prefer to work with the natural eponential function. Eample: y If y a Technical fact: The general eponential rule, where a is a positive constant, then: y a ln a. We can rewrite this function as: y We can now apply the general eponential rule, since the base is just a constant: y ln ln Eample: y Proof ln a Since any positive number a can be written as a e, we can write: ln a ln a y a e e So, our function can be seen as a composite function and we can use the chain rule. First the natural eponential rule: ln a y e ln a Then the linear rule: ln a y e ln a a ln a This time we need to be careful, because the eponent is itself a function. However, the base is still constant, so we can start with the general eponential rule. By highlighting that: we get: y y ln ln In the Learning questions you will see more theoretical uses of the chain rule. The net section will then discuss a very useful and important method based on the chain rule. But it is now time to practice what you have seen. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 6

Summary The chain rule allows us to differentiate composite functions. Implementing the chain rule is analogous to opening a Matryoshka doll: one layer at a time, from the outside in, keeping the inside untouched at each step. Common errors to avoid Do NOT differentiate two layers at once as you apply the rule. Instead, take your time and do one layer at a time. Learning questions for Section D 4-4 Review questions:. Describe when and how to use the chain rule.. Eplain what are the similarities and differences between the chain rule and a Matryoshka doll. Memory questions:. For what type of functions is the chain rule used?. Which formula describes the chain rule?. What is the general eponential rule of differentiation? Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 7

Computation questions: For each of the functions presented in questions -4, use the chain and other appropriate rules to compute its derivatives.. 4 y 5. y e e f 8.. 7. y y 5 4e. y 9. y 5 5 5 4. 5. 6. y e y e e y 5 5 7. y 6 8. 9. 6 y y ( ) 5 0. y 5 7 5 5. y 4 6 4. y 5. y 6 6. y 4 7. y 0. y. f 4 5 e. f. f e 4. f 4 e 5 e e 5. Compute the derivative of the function f 9 at =4 by using two different sequences of differentiation rules. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 8

Theory questions:. What is the formula for the derivative of a function of the form y f also called the generalized power rule? ( ) n,. Which three rules are needed to differentiate the function y? Proof questions:. By using a countereample, show that the commonly used (by beginners) formula df g( ) d f g( ) is wrong.. Show that the natural eponential rule is a special case of the general eponential rule.. Use the chain rule to prove the quotient rule. Application questions:. Construct the equation of the line tangent to y e at the point,. Determine the values of a, b, c and d (if any) for which the curves f a b and g e c d have the same tangent line at 0, and determine the equation of such tangent line. s(t ), where. The position of a particle is described by the function distance is in meters and time in seconds. Find the velocity function and the velocity of the particle when t = seconds. 4. An object moves on the ais according to the function its position at t. by using differentials. t 5. Estimate Templated questions:. Construct a simple composite function involving functions whose derivative you know how to compute, and then differentiate it. Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 9

. When computing the derivative of a given function, by using differentiation rules, identify each and every rule you use, in the specific order in which you use it. If a rule is used more than once, identify each instance where it is used. What questions do you have for your instructor? Differential Calculus Chapter 4: Basic differentiation rules Section 4: The chain rule Page 0