7 THE CHAIN RULEThe derivative of a function of a function The derivative of a function of a function f (x) = x^{5} and g(x) = x^{2}+ 1. If we now let g(x) be the argument of f, then f will be a function of g. f (g(x)) = (x^{2}+ 1)^{5}. What is the derivative of f (g(x)) ? First, note that
That is: The derivative of f with respect to its argument (which in this case is x) is equal to 5 times the 4th power of the argument. This means that if g -- or any variable -- is the argument of f, the same form applies:
In other words, we can really take the derivative of a function of an argument only with respect to that argument. Therefore, since g = x^{2}+ 1,
Next, the derivative of g is 2x. What is called the chain rule states the following:
"If f is a function of g and g is a function of x, then the derivative of f with respect to x Therefore according to the chain rule, the derivative of (x^{2}+ 1)^{5} is 5(x^{2}+ 1)^{4}· 2x. Note: In (x^{2}+ 1)^{5}, x^{2}+ 1 is "inside" the 5th power, which is "outside." We take the derivative from outside to inside. When we take the outside derivative, we do not change what is inside. We then multiply by the derivative of what is inside. To decide which function is outside, decide which you would have to evaluate last. To evaluate (x^{2}+ 1)^{5}, you would first have to evaluate x^{2}+ 1. Then you would take its 5th power. The 5th power therefore is outside. That is why we take that derivative first. When we write f(g(x)), f is outside g. We take the derivative of f with respect to g first.
Solution. This has the form f (g(x)). What function is f, that is, what is outside, and what is g, which is inside? g is x^{4} − 2 because that is inside the square root function, which is f. The derivative of the square root is given in the Example of Lesson 6. For any argument g of the square root function, Here, g is x^{4} − 2. Therefore, since the derivative of x^{4} − 2 is 4x^{3},
Example 2. What is the derivative of y = sin^{3}x ? Solution. This is the 3rd power of sin x. To decide which function is outside, how would you evaluate that? You would first evaluate sin x, and then take its 3rd power. sin x is inside the 3rd power, which is outside. Now, the derivative of the 3rd power -- of g^{3} -- is 3g^{2}. Therefore, accepting for the moment that the derivative of sin x is cos x (Lesson 12), the derivative of sin^{3}x -- from outside to inside -- is 3 sin^{2}x· cos x.
whose derivative is −x^{−2} ; (Problem 4, Lesson 4). We have, then,
Therefore, its derivative is −(x^{3} + 1)^{−2}· 3x^{2} Example 4. Assume that y is a function of x. y = y(x). Apply the chain rule to
y, which we are assuming to be a function of x, is inside the function y^{2}. The derivative of y^{2}with respect to y is 2y. As for the derivative of
Problem 1. Calculate the derivative of (x^{2}−3x + 5)^{9}. To see the answer, pass your mouse over the colored area. 9(x^{2}−3x + 5)^{8}(2x − 3) Problem 2. Calculate the derivative of (x^{4} − 3x^{2}+ 4)^{2/3}. 2/3(x^{4} − 3x^{2}+ 4)^{−1/3}(4x^{3} − 6x) Problem 3. Calculate the derivative of sin^{5}x. 5 sin^{4}x cos x Problem 4. Calculate the derivative of sin x^{5}. The inside function is x^{5} -- you would evaluate that last. The outside function is sin x. (This is the sine of x^{5}.) Therefore, the derivative is cos x^{5}· 5x^{4}. Problem 5. Calculate the derivative of sin (1 + 2). cos (1 + 2)x^{−1/2}. Problem 6. Calculate the derivative of ¼(sin x)^{−3/4} cos x. Example 5. More than two functions. The chain rule can be extended to more than two functions. For example, let
The outside function is the square root. Inside that is (1 + a 2nd power). And inside that is sin x. The derivative therefore is
(Compare Example 3.)
Problem 9. Assume that y is a function of x, and apply the chain rule to express each derivative with respect to x.
Proof of the chain rule To prove the chain rule let us go back to basics. Let f be a function of g, which in turn is a function of x, so that we have f(g(x)). Then when the value of g changes by an amount Δg, the value of f will change by an amount Δf. We will have the ratio
Again, since g is a function of x, then when x changes by an amount Δx, g will change by an amount Δg. We will have the ratio
But the change in x affects f because it depends on g. We will have
Let us now take the limit as Δx approaches 0. Then the change in g(x) -- Δg -- will also approach 0. Therefore, since the limit of a product is equal to the product of the limits (Lesson 2), and by definition of the derivative:
This is the chain rule. Next Lesson: The quotient rule Please make a donation to keep TheMathPage online. Copyright © 2021 Lawrence Spector Questions or comments? E-mail: [email protected] |