We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Studienführer > Calculus Volume 1

The Chain Rule

Learning Objectives

  • State the chain rule for the composition of two functions.
  • Apply the chain rule together with the power rule.
  • Apply the chain rule and the product/quotient rules correctly in combination when both are necessary.
  • Recognize the chain rule for a composition of three or more functions.
  • Describe the proof of the chain rule.

We have seen the techniques for differentiating basic functions [latex]\left({x}^{n},\text{sin}\phantom{\rule{0.1em}{0ex}}x,\text{cos}\phantom{\rule{0.1em}{0ex}}x,\text{etc}.\right)[/latex] as well as sums, differences, products, quotients, and constant multiples of these functions. However, these techniques do not allow us to differentiate compositions of functions, such as [latex]h\left(x\right)=\text{sin}\left({x}^{3}\right)[/latex] or [latex]k\left(x\right)=\sqrt{3{x}^{2}+1}.[/latex] In this section, we study the rule for finding the derivative of the composition of two or more functions.

Deriving the Chain Rule

When we have a function that is a composition of two or more functions, we could use all of the techniques we have already learned to differentiate it. However, using all of those techniques to break down a function into simpler parts that we are able to differentiate can get cumbersome. Instead, we use the chain rule, which states that the derivative of a composite function is the derivative of the outer function evaluated at the inner function times the derivative of the inner function.

To put this rule into context, let’s take a look at an example: [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right).[/latex] We can think of the derivative of this function with respect to x as the rate of change of [latex]\text{sin}\left({x}^{3}\right)[/latex] relative to the change in [latex]x.[/latex] Consequently, we want to know how [latex]\text{sin}\left({x}^{3}\right)[/latex] changes as [latex]x[/latex] changes. We can think of this event as a chain reaction: As [latex]x[/latex] changes, [latex]{x}^{3}[/latex] changes, which leads to a change in [latex]\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right).[/latex] This chain reaction gives us hints as to what is involved in computing the derivative of [latex]\phantom{\rule{0.2em}{0ex}}\text{sin}\left({x}^{3}\right).[/latex] First of all, a change in [latex]x[/latex] forcing a change in [latex]{x}^{3}[/latex] suggests that somehow the derivative of [latex]{x}^{3}[/latex] is involved. In addition, the change in [latex]{x}^{3}[/latex] forcing a change in [latex]\text{sin}\left({x}^{3}\right)[/latex] suggests that the derivative of [latex]\text{sin}\left(u\right)[/latex] with respect to [latex]u,[/latex] where [latex]u={x}^{3},[/latex] is also part of the final derivative.

We can take a more formal look at the derivative of [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)[/latex] by setting up the limit that would give us the derivative at a specific value [latex]a[/latex] in the domain of [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right).[/latex]

[latex]{h}^{\prime }\left(a\right)=\underset{x\to a}{\text{lim}}\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)-\text{sin}\left({a}^{3}\right)}{x-a}.[/latex]

This expression does not seem particularly helpful; however, we can modify it by multiplying and dividing by the expression [latex]{x}^{3}-{a}^{3}[/latex] to obtain

[latex]{h}^{\prime }\left(a\right)=\underset{x\to a}{\text{lim}}\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)-\text{sin}\left({a}^{3}\right)}{{x}^{3}-{a}^{3}}·\frac{{x}^{3}-{a}^{3}}{x-a}.[/latex]

From the definition of the derivative, we can see that the second factor is the derivative of [latex]{x}^{3}[/latex] at [latex]x=a.[/latex] That is,

[latex]\underset{x\to a}{\text{lim}}\frac{{x}^{3}-{a}^{3}}{x-a}=\frac{d}{dx}\left({x}^{3}\right)=3{a}^{2}.[/latex]

However, it might be a little more challenging to recognize that the first term is also a derivative. We can see this by letting [latex]u={x}^{3}[/latex] and observing that as [latex]x\to a,u\to {a}^{3}\text{:}[/latex]

[latex]\begin{array}{cc}\hfill \underset{x\to a}{\text{lim}}\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)-\text{sin}\phantom{\rule{0.1em}{0ex}}\left({a}^{3}\right)}{{x}^{3}-{a}^{3}}& =\underset{u\to {a}^{3}}{\text{lim}}\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}u-\text{sin}\phantom{\rule{0.1em}{0ex}}\left({a}^{3}\right)}{u-{a}^{3}}\hfill \\ & =\frac{d}{du}{\left(\text{sin}\phantom{\rule{0.1em}{0ex}}u\right)}_{u={a}^{3}}\hfill \\ & =\text{cos}\phantom{\rule{0.1em}{0ex}}\left({a}^{3}\right).\hfill \end{array}[/latex]

Thus, [latex]{h}^{\prime }\left(a\right)=\text{cos}\left({a}^{3}\right)·3{a}^{2}.[/latex]

In other words, if [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right),[/latex] then [latex]{h}^{\prime }\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)·3{x}^{2}.[/latex] Thus, if we think of [latex]h\left(x\right)=\text{sin}\left({x}^{3}\right)[/latex] as the composition [latex]\left(f\circ g\right)\left(x\right)=f\left(g\left(x\right)\right)[/latex] where [latex]f\left(x\right)=[/latex] sin [latex]x[/latex] and [latex]g\left(x\right)={x}^{3},[/latex] then the derivative of [latex]h\left(x\right)=\text{sin}\left({x}^{3}\right)[/latex] is the product of the derivative of [latex]g\left(x\right)={x}^{3}[/latex] and the derivative of the function [latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] evaluated at the function [latex]g\left(x\right)={x}^{3}.[/latex] At this point, we anticipate that for [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right),[/latex] it is quite likely that [latex]{h}^{\prime }\left(x\right)=\text{cos}\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex] As we determined above, this is the case for [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right).[/latex]

Now that we have derived a special case of the chain rule, we state the general case and then apply it in a general form to other composite functions. An informal proof is provided at the end of the section.

Rule: The Chain Rule

Let [latex]f[/latex] and [latex]g[/latex] be functions. For all x in the domain of [latex]g[/latex] for which [latex]g[/latex] is differentiable at x and [latex]f[/latex] is differentiable at [latex]g\left(x\right),[/latex] the derivative of the composite function

[latex]h\left(x\right)=\left(f\circ g\right)\left(x\right)=f\left(g\left(x\right)\right)[/latex]

is given by

[latex]{h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex]

Alternatively, if [latex]y[/latex] is a function of [latex]u,[/latex] and [latex]u[/latex] is a function of [latex]x,[/latex] then

[latex]\frac{dy}{dx}=\frac{dy}{du}·\frac{du}{dx}.[/latex]

Watch an animation of the chain rule.

Problem-Solving Strategy: Applying the Chain Rule
  1. To differentiate [latex]h\left(x\right)=f\left(g\left(x\right)\right),[/latex] begin by identifying [latex]f\left(x\right)[/latex] and [latex]g\left(x\right).[/latex]
  2. Find [latex]f\prime \left(x\right)[/latex] and evaluate it at [latex]g\left(x\right)[/latex] to obtain [latex]{f}^{\prime }\left(g\left(x\right)\right).[/latex]
  3. Find [latex]{g}^{\prime }\left(x\right).[/latex]
  4. Write [latex]{h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(x\right)\right)·{g}^{\prime }\left(x\right).[/latex]

Note: When applying the chain rule to the composition of two or more functions, keep in mind that we work our way from the outside function in. It is also useful to remember that the derivative of the composition of two functions can be thought of as having two parts; the derivative of the composition of three functions has three parts; and so on. Also, remember that we never evaluate a derivative at a derivative.

The Chain and Power Rules Combined

We can now apply the chain rule to composite functions, but note that we often need to use it with other rules. For example, to find derivatives of functions of the form [latex]h\left(x\right)={\left(g\left(x\right)\right)}^{n},[/latex] we need to use the chain rule combined with the power rule. To do so, we can think of [latex]h\left(x\right)={\left(g\left(x\right)\right)}^{n}[/latex] as [latex]f\left(g\left(x\right)\right)[/latex] where [latex]f\left(x\right)={x}^{n}.[/latex] Then [latex]{f}^{\prime }\left(x\right)=n{x}^{n-1}.[/latex] Thus, [latex]{f}^{\prime }\left(g\left(x\right)\right)=n{\left(g\left(x\right)\right)}^{n-1}.[/latex] This leads us to the derivative of a power function using the chain rule,

[latex]{h}^{\prime }\left(x\right)=n{\left(g\left(x\right)\right)}^{n-1}{g}^{\prime }\left(x\right)[/latex]
Rule: Power Rule for Composition of Functions

For all values of x for which the derivative is defined, if

[latex]h\left(x\right)={\left(g\left(x\right)\right)}^{n}.[/latex]

Then

[latex]{h}^{\prime }\left(x\right)=n{\left(g\left(x\right)\right)}^{n-1}{g}^{\prime }\left(x\right).[/latex]
Using the Chain and Power Rules

Find the derivative of [latex]h\left(x\right)=\frac{1}{{\left(3{x}^{2}+1\right)}^{2}}.[/latex]

First, rewrite [latex]h\left(x\right)=\frac{1}{{\left(3{x}^{2}+1\right)}^{2}}={\left(3{x}^{2}+1\right)}^{-2}.[/latex]

Applying the power rule with [latex]g\left(x\right)=3{x}^{2}+1,[/latex] we have

[latex]{h}^{\prime }\left(x\right)=-2{\left(3{x}^{2}+1\right)}^{-3}\left(6x\right).[/latex]

Rewriting back to the original form gives us

[latex]{h}^{\prime }\left(x\right)=\frac{-12x}{{\left(3{x}^{2}+1\right)}^{3}}.[/latex]

Find the derivative of [latex]h\left(x\right)={\left(2{x}^{3}+2x-1\right)}^{4}.[/latex]

[latex]{h}^{\prime }\left(x\right)=4{\left(2{x}^{3}+2x-1\right)}^{3}\left(6x+2\right)=8\left(3x+1\right){\left(2{x}^{3}+2x-1\right)}^{3}[/latex]

Hint

Use [link] with [latex]g\left(x\right)=2{x}^{3}+2x-1[/latex]

Using the Chain and Power Rules with a Trigonometric Function

Find the derivative of [latex]h\left(x\right)={\text{sin}}^{3}x.[/latex]

First recall that [latex]{\text{sin}}^{3}x={\left(\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)}^{3},[/latex] so we can rewrite [latex]h\left(x\right)={\text{sin}}^{3}x[/latex] as [latex]h\left(x\right)={\left(\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)}^{3}.[/latex]

Applying the power rule with [latex]g\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x,[/latex] we obtain

[latex]{h}^{\prime }\left(x\right)=3{\left(\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)}^{2}\text{cos}\phantom{\rule{0.1em}{0ex}}x=3\phantom{\rule{0.1em}{0ex}}{\text{sin}}^{2}x\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}x.[/latex]
Finding the Equation of a Tangent Line

Find the equation of a line tangent to the graph of [latex]h\left(x\right)=\frac{1}{{\left(3x-5\right)}^{2}}[/latex] at [latex]x=2.[/latex]

Because we are finding an equation of a line, we need a point. The x-coordinate of the point is 2. To find the y-coordinate, substitute 2 into [latex]h\left(x\right).[/latex] Since [latex]h\left(2\right)=\frac{1}{{\left(3\left(2\right)-5\right)}^{2}}=1,[/latex] the point is [latex]\left(2,1\right).[/latex]

For the slope, we need [latex]{h}^{\prime }\left(2\right).[/latex] To find [latex]{h}^{\prime }\left(x\right),[/latex] first we rewrite [latex]h\left(x\right)={\left(3x-5\right)}^{-2}[/latex] and apply the power rule to obtain

[latex]{h}^{\prime }\left(x\right)=-2{\left(3x-5\right)}^{-3}\left(3\right)=-6{\left(3x-5\right)}^{-3}.[/latex]

By substituting, we have [latex]{h}^{\prime }\left(2\right)=-6{\left(3\left(2\right)-5\right)}^{-3}=-6.[/latex] Therefore, the line has equation [latex]y-1=-6\left(x-2\right).[/latex] Rewriting, the equation of the line is [latex]y=-6x+13.[/latex]

Find the equation of the line tangent to the graph of [latex]f\left(x\right)={\left({x}^{2}-2\right)}^{3}[/latex] at [latex]x=-2.[/latex]

[latex]y=-48x-88[/latex]

Hint

Use the preceding example as a guide.

Combining the Chain Rule with Other Rules

Now that we can combine the chain rule and the power rule, we examine how to combine the chain rule with the other rules we have learned. In particular, we can use it with the formulas for the derivatives of trigonometric functions or with the product rule.

Using the Chain Rule on a General Cosine Function

Find the derivative of [latex]h\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right).[/latex]

Think of [latex]h\left(x\right)=\text{cos}\left(g\left(x\right)\right)[/latex] as [latex]f\left(g\left(x\right)\right)[/latex] where [latex]f\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x.[/latex] Since [latex]{f}^{\prime }\left(x\right)=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}x.[/latex] we have [latex]{f}^{\prime }\left(g\left(x\right)\right)=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right).[/latex] Then we do the following calculation.

[latex]\begin{array}{ccccc}\hfill {h}^{\prime }\left(x\right)& ={f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right)\hfill & & & \text{Apply the chain rule.}\hfill \\ & =\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right){g}^{\prime }\left(x\right)\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}{f}^{\prime }\left(g\left(x\right)\right)=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right).\hfill \end{array}[/latex]

Thus, the derivative of [latex]h\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)[/latex] is given by [latex]{h}^{\prime }\left(x\right)=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex]

In the following example we apply the rule that we have just derived.

Using the Chain Rule on a Cosine Function

Find the derivative of [latex]h\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(5{x}^{2}\right).[/latex]

Let [latex]g\left(x\right)=5{x}^{2}.[/latex] Then [latex]{g}^{\prime }\left(x\right)=10x.[/latex] Using the result from the previous example,

[latex]\begin{array}{cc}\hfill {h}^{\prime }\left(x\right)& =\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(5{x}^{2}\right)·10x\hfill \\ & =-10x\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(5{x}^{2}\right).\hfill \end{array}[/latex]
Using the Chain Rule on Another Trigonometric Function

Find the derivative of [latex]h\left(x\right)=\text{sec}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{5}+2x\right).[/latex]

Apply the chain rule to [latex]h\left(x\right)=\text{sec}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)[/latex] to obtain

[latex]{h}^{\prime }\left(x\right)=\text{sec}\left(g\left(x\right)\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex]

In this problem, [latex]g\left(x\right)=4{x}^{5}+2x,[/latex] so we have [latex]{g}^{\prime }\left(x\right)=20{x}^{4}+2.[/latex] Therefore, we obtain

[latex]\begin{array}{cc}\hfill {h}^{\prime }\left(x\right)& =\text{sec}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{5}+2x\right)\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{5}+2x\right)\left(20{x}^{4}+2\right)\hfill \\ & =\left(20{x}^{4}+2\right)\text{sec}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{5}+2x\right)\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{5}+2x\right).\hfill \end{array}[/latex]

Find the derivative of [latex]h\left(x\right)=\text{sin}\left(7x+2\right).[/latex]

[latex]{h}^{\prime }\left(x\right)=7\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7x+2\right)[/latex]

Hint

Apply the chain rule to [latex]h\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}g\left(x\right)[/latex] first and then use [latex]g\left(x\right)=7x+2.[/latex]

At this point we provide a list of derivative formulas that may be obtained by applying the chain rule in conjunction with the formulas for derivatives of trigonometric functions. Their derivations are similar to those used in [link] and [link]. For convenience, formulas are also given in Leibniz’s notation, which some students find easier to remember. (We discuss the chain rule using Leibniz’s notation at the end of this section.) It is not absolutely necessary to memorize these as separate formulas as they are all applications of the chain rule to previously learned formulas.

Using the Chain Rule with Trigonometric Functions

For all values of [latex]x[/latex] for which the derivative is defined,

[latex]\begin{array}{cccc}\frac{d}{dx}\left(\text{sin}\left(g\left(x\right)\right)\phantom{\rule{0.2em}{0ex}}=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.2em}{0ex}}=\text{cos}\phantom{\rule{0.1em}{0ex}}u\frac{du}{dx}\hfill \\ \frac{d}{dx}\left(\text{cos}\left(g\left(x\right)\right)\phantom{\rule{0.1em}{0ex}}=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.1em}{0ex}}=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}u\frac{du}{dx}\hfill \\ \frac{d}{dx}\left(\text{tan}\left(g\left(x\right)\right)\phantom{\rule{0.22em}{0ex}}={\text{sec}}^{2}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.2em}{0ex}}={\text{sec}}^{2}u\frac{du}{dx}\hfill \\ \frac{d}{dx}\left(\text{cot}\left(g\left(x\right)\right)\phantom{\rule{0.25em}{0ex}}=\text{−}{\text{csc}}^{2}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{cot}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.25em}{0ex}}=\text{−}{\text{csc}}^{2}u\frac{du}{dx}\hfill \\ \frac{d}{dx}\left(\text{sec}\left(g\left(x\right)\right)\phantom{\rule{0.25em}{0ex}}=\text{sec}\left(g\left(x\right)\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{sec}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.25em}{0ex}}=\text{sec}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}u\frac{du}{dx}\hfill \\ \frac{d}{dx}\left(\text{csc}\left(g\left(x\right)\right)\phantom{\rule{0.25em}{0ex}}=\text{−}\text{csc}\left(g\left(x\right)\right)\text{cot}\phantom{\rule{0.1em}{0ex}}\left(g\left(x\right)\right)g\prime \left(x\right)\hfill & & & \frac{d}{dx}\phantom{\rule{0.1em}{0ex}}\text{csc}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.25em}{0ex}}=\text{−}\text{csc}\phantom{\rule{0.1em}{0ex}}u\phantom{\rule{0.1em}{0ex}}\text{cot}\phantom{\rule{0.1em}{0ex}}u\frac{du}{dx}.\hfill \end{array}[/latex]
Combining the Chain Rule with the Product Rule

Find the derivative of [latex]h\left(x\right)={\left(2x+1\right)}^{5}{\left(3x-2\right)}^{7}.[/latex]

First apply the product rule, then apply the chain rule to each term of the product.

[latex]\begin{array}{ccccc}\hfill {h}^{\prime }\left(x\right)& =\frac{d}{dx}\left({\left(2x+1\right)}^{5}\right)·{\left(3x-2\right)}^{7}+\frac{d}{dx}\left({\left(3x-2\right)}^{7}\right)·{\left(2x+1\right)}^{5}\hfill & & & \text{Apply the product rule.}\hfill \\ & =5{\left(2x+1\right)}^{4}·2·{\left(3x-2\right)}^{7}+7{\left(3x-2\right)}^{6}·3·{\left(2x+1\right)}^{5}\hfill & & & \text{Apply the chain rule.}\hfill \\ & =10{\left(2x+1\right)}^{4}{\left(3x-2\right)}^{7}+21{\left(3x-2\right)}^{6}{\left(2x+1\right)}^{5}\hfill & & & \text{Simplify.}\hfill \\ & ={\left(2x+1\right)}^{4}{\left(3x-2\right)}^{6}\left(10\left(3x-7\right)+21\left(2x+1\right)\right)\hfill & & & \text{Factor out}\phantom{\rule{0.2em}{0ex}}{\left(2x+1\right)}^{4}{\left(3x-2\right)}^{6}.\hfill \\ & ={\left(2x+1\right)}^{4}{\left(3x-2\right)}^{6}\left(72x-49\right)\hfill & & & \text{Simplify.}\hfill \end{array}[/latex]

Find the derivative of [latex]h\left(x\right)=\frac{x}{{\left(2x+3\right)}^{3}}.[/latex]

[latex]{h}^{\prime }\left(x\right)=\frac{3-4x}{{\left(2x+3\right)}^{4}}[/latex]

Hint

Start out by applying the quotient rule. Remember to use the chain rule to differentiate the denominator.

Composites of Three or More Functions

We can now combine the chain rule with other rules for differentiating functions, but when we are differentiating the composition of three or more functions, we need to apply the chain rule more than once. If we look at this situation in general terms, we can generate a formula, but we do not need to remember it, as we can simply apply the chain rule multiple times.

In general terms, first we let

[latex]k\left(x\right)=h\left(f\left(g\left(x\right)\right)\right).[/latex]

Then, applying the chain rule once we obtain

[latex]{k}^{\prime }\left(x\right)=\frac{d}{dx}\left(h\left(f\left(g\left(x\right)\right)\right)=h\prime \left(f\left(g\left(x\right)\right)\right)·\frac{d}{dx}f\left(\left(g\left(x\right)\right)\right).[/latex]

Applying the chain rule again, we obtain

[latex]{k}^{\prime }\left(x\right)={h}^{\prime }\left(f\left(g\left(x\right)\right){f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right)\right).[/latex]
Rule: Chain Rule for a Composition of Three Functions

For all values of x for which the function is differentiable, if

[latex]k\left(x\right)=h\left(f\left(g\left(x\right)\right)\right),[/latex]

then

[latex]{k}^{\prime }\left(x\right)={h}^{\prime }\left(f\left(g\left(x\right)\right)\right){f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex]

In other words, we are applying the chain rule twice.

Notice that the derivative of the composition of three functions has three parts. (Similarly, the derivative of the composition of four functions has four parts, and so on.) Also, remember, we can always work from the outside in, taking one derivative at a time.

Differentiating a Composite of Three Functions

Find the derivative of [latex]k\left(x\right)={\text{cos}}^{4}\left({7x}^{2}+1\right).[/latex]

First, rewrite [latex]k\left(x\right)[/latex] as

[latex]k\left(x\right)={\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)}^{4}.[/latex]

Then apply the chain rule several times.

[latex]\begin{array}{ccccc}\hfill {k}^{\prime }\left(x\right)& =4{\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)}^{3}\left(\frac{d}{dx}\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)\hfill & & & \text{Apply the chain rule.}\hfill \\ & =4{\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)}^{3}\left(\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)\left(\frac{d}{dx}\left(7{x}^{2}+1\right)\right)\hfill & & & \text{Apply the chain rule.}\hfill \\ & =4{\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)}^{3}\left(\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right)\right)\left(14x\right)\hfill & & & \text{Apply the chain rule.}\hfill \\ & =-56x\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(7{x}^{2}+1\right){\text{cos}}^{3}\left(7{x}^{2}+1\right)\hfill & & & \text{Simplify.}\hfill \end{array}[/latex]

Find the derivative of [latex]h\left(x\right)={\text{sin}}^{6}\left({x}^{3}\right).[/latex]

[latex]{h}^{\prime }\left(x\right)=18{x}^{2}{\text{sin}}^{5}\left({x}^{3}\right)\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)[/latex]

Hint

Rewrite [latex]h\left(x\right)={\text{sin}}^{6}\left({x}^{3}\right)={\left(\text{sin}\left({x}^{3}\right)\right)}^{6}[/latex] and use [link] as a guide.

Using the Chain Rule in a Velocity Problem

A particle moves along a coordinate axis. Its position at time t is given by [latex]s\left(t\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\left(2t\right)+\text{cos}\phantom{\rule{0.1em}{0ex}}\left(3t\right).[/latex] What is the velocity of the particle at time [latex]t=\frac{\pi }{6}?[/latex]

To find [latex]v\left(t\right),[/latex] the velocity of the particle at time [latex]t,[/latex] we must differentiate [latex]s\left(t\right).[/latex] Thus,

[latex]v\left(t\right)={s}^{\prime }\left(t\right)=2\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(2t\right)-3\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(3t\right).[/latex]

Substituting [latex]t=\frac{\pi }{6}[/latex] into [latex]v\left(t\right),[/latex] we obtain [latex]v\left(\frac{\pi }{6}\right)=-2.[/latex]

A particle moves along a coordinate axis. Its position at time [latex]t[/latex] is given by [latex]s\left(t\right)=\text{sin}\left(4t\right).[/latex] Find its acceleration at time [latex]t.[/latex]

[latex]a\left(t\right)=-16\phantom{\rule{0.1em}{0ex}}\text{sin}\left(4t\right)[/latex]

Hint

Acceleration is the second derivative of position.

Proof

At this point, we present a very informal proof of the chain rule. For simplicity’s sake we ignore certain issues: For example, we assume that [latex]g\left(x\right)\ne g\left(a\right)[/latex] for [latex]x\ne a[/latex] in some open interval containing [latex]a.[/latex] We begin by applying the limit definition of the derivative to the function [latex]h\left(x\right)[/latex] to obtain [latex]{h}^{\prime }\left(a\right)\text{:}[/latex]

[latex]{h}^{\prime }\left(a\right)=\underset{x\to a}{\text{lim}}\frac{f\left(g\left(x\right)\right)-f\left(g\left(a\right)\right)}{x-a}.[/latex]

Rewriting, we obtain

[latex]{h}^{\prime }\left(a\right)=\underset{x\to a}{\text{lim}}\frac{f\left(g\left(x\right)\right)-f\left(g\left(a\right)\right)}{g\left(x\right)-g\left(a\right)}·\frac{g\left(x\right)-g\left(a\right)}{x-a}.[/latex]

Although it is clear that

[latex]\underset{x\to a}{\text{lim}}\frac{g\left(x\right)-g\left(a\right)}{x-a}={g}^{\prime }\left(a\right),[/latex]

it is not obvious that

[latex]\underset{x\to a}{\text{lim}}\frac{f\left(g\left(x\right)\right)-f\left(g\left(a\right)\right)}{g\left(x\right)-g\left(a\right)}={f}^{\prime }\left(g\left(a\right)\right).[/latex]

To see that this is true, first recall that since g is differentiable at [latex]a,g[/latex] is also continuous at [latex]a.[/latex] Thus,

[latex]\underset{x\to a}{\text{lim}}g\left(x\right)=g\left(a\right).[/latex]

Next, make the substitution [latex]y=g\left(x\right)[/latex] and [latex]b=g\left(a\right)[/latex] and use change of variables in the limit to obtain

[latex]\underset{x\to a}{\text{lim}}\frac{f\left(g\left(x\right)\right)-f\left(g\left(a\right)\right)}{g\left(x\right)-g\left(a\right)}=\underset{y\to b}{\text{lim}}\frac{f\left(y\right)-f\left(b\right)}{y-b}={f}^{\prime }\left(b\right)={f}^{\prime }\left(g\left(a\right)\right).[/latex]

Finally,

[latex]{h}^{\prime }\left(a\right)=\underset{x\to a}{\text{lim}}\frac{f\left(g\left(x\right)\right)-f\left(g\left(a\right)\right)}{g\left(x\right)-g\left(a\right)}·\frac{g\left(x\right)-g\left(a\right)}{x-a}={f}^{\prime }\left(g\left(a\right)\right){g}^{\prime }\left(a\right).[/latex]

Using the Chain Rule with Functional Values

Let [latex]h\left(x\right)=f\left(g\left(x\right)\right).[/latex] If [latex]g\left(1\right)=4,{g}^{\prime }\left(1\right)=3,[/latex] and [latex]{f}^{\prime }\left(4\right)=7,[/latex] find [latex]{h}^{\prime }\left(1\right).[/latex]

Use the chain rule, then substitute.

[latex]\begin{array}{ccccc}\hfill {h}^{\prime }\left(1\right)& ={f}^{\prime }\left(g\left(1\right)\right){g}^{\prime }\left(1\right)\hfill & & & \text{Apply the chain rule.}\hfill \\ & ={f}^{\prime }\left(4\right)·3\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}g\left(1\right)=4\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{g}^{\prime }\left(1\right)=3.\hfill \\ & =7·3\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}f\prime \left(4\right)=7.\hfill \\ & =21\hfill & & & \text{Simplify.}\hfill \end{array}[/latex]

Given [latex]h\left(x\right)=f\left(g\left(x\right)\right).[/latex] If [latex]g\left(2\right)=-3,{g}^{\prime }\left(2\right)=4,[/latex] and [latex]{f}^{\prime }\left(-3\right)=7,[/latex] find [latex]{h}^{\prime }\left(2\right).[/latex]

[latex]28[/latex]

Hint

Follow [link].

The Chain Rule Using Leibniz’s Notation

As with other derivatives that we have seen, we can express the chain rule using Leibniz’s notation. This notation for the chain rule is used heavily in physics applications.

[latex]\text{For}\phantom{\rule{0.2em}{0ex}}h\left(x\right)=f\left(g\left(x\right)\right),[/latex] let [latex]u=g\left(x\right)[/latex] and [latex]y=h\left(x\right)=g\left(u\right).[/latex] Thus,

[latex]{h}^{\prime }\left(x\right)=\frac{dy}{dx},{f}^{\prime }\left(g\left(x\right)\right)={f}^{\prime }\left(u\right)=\frac{dy}{du}\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{g}^{\prime }\left(x\right)=\frac{du}{dx}.[/latex]

Consequently,

[latex]\frac{dy}{dx}={h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right)=\frac{dy}{du}·\frac{du}{dx}.[/latex]
Rule: Chain Rule Using Leibniz’s Notation

If [latex]y[/latex] is a function of [latex]u,[/latex] and [latex]u[/latex] is a function of [latex]x,[/latex] then

[latex]\frac{dy}{dx}=\frac{dy}{du}·\frac{du}{dx}.[/latex]
Taking a Derivative Using Leibniz’s Notation, Example 1

Find the derivative of [latex]y={\left(\frac{x}{3x+2}\right)}^{5}.[/latex]

First, let [latex]u=\frac{x}{3x+2}.[/latex] Thus, [latex]y={u}^{5}.[/latex] Next, find [latex]\frac{du}{dx}[/latex] and [latex]\frac{dy}{du}.[/latex] Using the quotient rule,

[latex]\frac{du}{dx}=\frac{2}{{\left(3x+2\right)}^{2}}[/latex]

and

[latex]\frac{dy}{du}=5{u}^{4}.[/latex]

Finally, we put it all together.

[latex]\begin{array}{ccccc}\hfill \frac{dy}{dx}& =\frac{dy}{du}·\frac{du}{dx}\hfill & & & \text{Apply the chain rule.}\hfill \\ & =5{u}^{4}·\frac{2}{{\left(3x+2\right)}^{2}}\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}\frac{dy}{du}=5{u}^{4}\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\frac{du}{dx}=\frac{2}{{\left(3x+2\right)}^{2}}.\hfill \\ & =5{\left(\frac{x}{3x+2}\right)}^{4}·\frac{2}{{\left(3x+2\right)}^{2}}\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}u=\frac{x}{3x+2}.\hfill \\ & =\frac{10{x}^{4}}{{\left(3x+2\right)}^{6}}\hfill & & & \text{Simplify.}\hfill \end{array}[/latex]

It is important to remember that, when using the Leibniz form of the chain rule, the final answer must be expressed entirely in terms of the original variable given in the problem.

Taking a Derivative Using Leibniz’s Notation, Example 2

Find the derivative of [latex]y=\text{tan}\phantom{\rule{0.1em}{0ex}}\left(4{x}^{2}-3x+1\right).[/latex]

First, let [latex]u=4{x}^{2}-3x+1.[/latex] Then [latex]y=\text{tan}\phantom{\rule{0.1em}{0ex}}u.[/latex] Next, find [latex]\frac{du}{dx}[/latex] and [latex]\frac{dy}{du}\text{:}[/latex]

[latex]\frac{du}{dx}=8x-3\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\frac{dy}{du}={\text{sec}}^{2}u.[/latex]

Finally, we put it all together.

[latex]\begin{array}{ccccc}\hfill \frac{dy}{dx}& =\frac{dy}{du}·\frac{du}{dx}\hfill & & & \text{Apply the chain rule.}\hfill \\ & ={\text{sec}}^{2}u·\left(8x-3\right)\hfill & & & \text{Use}\phantom{\rule{0.2em}{0ex}}\frac{du}{dx}=8x-3\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\frac{dy}{du}={\text{sec}}^{2}u.\hfill \\ & ={\text{sec}}^{2}\left(4{x}^{2}-3x+1\right)·\left(8x-3\right)\hfill & & & \text{Substitute}\phantom{\rule{0.2em}{0ex}}u=4{x}^{2}-3x+1.\hfill \end{array}[/latex]

Use Leibniz’s notation to find the derivative of [latex]y=\text{cos}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right).[/latex] Make sure that the final answer is expressed entirely in terms of the variable [latex]x.[/latex]

[latex]\frac{dy}{dx}=-3{x}^{2}\text{sin}\phantom{\rule{0.1em}{0ex}}\left({x}^{3}\right)[/latex]

Hint

Let [latex]u={x}^{3}.[/latex]

Key Concepts

  • The chain rule allows us to differentiate compositions of two or more functions. It states that for [latex]h\left(x\right)=f\left(g\left(x\right)\right),[/latex]

    [latex]{h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right).[/latex]

    In Leibniz’s notation this rule takes the form

    [latex]\frac{dy}{dx}=\frac{dy}{du}·\frac{du}{dx}.[/latex]
  • We can use the chain rule with other rules that we have learned, and we can derive formulas for some of them.
  • The chain rule combines with the power rule to form a new rule:

    [latex]\text{If}\phantom{\rule{0.2em}{0ex}}h\left(x\right)={\left(g\left(x\right)\right)}^{n},\text{then}\phantom{\rule{0.2em}{0ex}}{h}^{\prime }\left(x\right)=n{\left(g\left(x\right)\right)}^{n-1}{g}^{\prime }\left(x\right).[/latex]
  • When applied to the composition of three functions, the chain rule can be expressed as follows: If [latex]h\left(x\right)=f\left(g\left(k\left(x\right)\right)\right),[/latex] then [latex]{h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(k\left(x\right)\right){g}^{\prime }\left(k\left(x\right)\right){k}^{\prime }\left(x\right).[/latex]

Key Equations

  • The chain rule

    [latex]{h}^{\prime }\left(x\right)={f}^{\prime }\left(g\left(x\right)\right){g}^{\prime }\left(x\right)[/latex]
  • The power rule for functions

    [latex]{h}^{\prime }\left(x\right)=n{\left(g\left(x\right)\right)}^{n-1}{g}^{\prime }\left(x\right)[/latex]

For the following exercises, given [latex]y=f\left(u\right)[/latex] and [latex]u=g\left(x\right),[/latex] find [latex]\frac{dy}{dx}[/latex] by using Leibniz’s notation for the chain rule: [latex]\frac{dy}{dx}=\frac{dy}{du}\phantom{\rule{0.2em}{0ex}}\frac{du}{dx}.[/latex]

[latex]y=3u-6,u=2{x}^{2}[/latex]

[latex]y=6{u}^{3},u=7x-4[/latex]

[latex]18{u}^{2}·7=18{\left(7x-4\right)}^{2}·7[/latex]

[latex]y=\text{sin}\phantom{\rule{0.1em}{0ex}}u,u=5x-1[/latex]

[latex]y=\text{cos}\phantom{\rule{0.1em}{0ex}}u,u=\frac{\text{−}x}{8}[/latex]

[latex]\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}u·\frac{-1}{8}=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\frac{\text{−}x}{8}\right)·\frac{-1}{8}[/latex]

[latex]y=\text{tan}\phantom{\rule{0.1em}{0ex}}u,u=9x+2[/latex]

[latex]y=\sqrt{4u+3},u={x}^{2}-6x[/latex]

[latex]\frac{8x-24}{2\sqrt{4u+3}}=\frac{4x-12}{\sqrt{4{x}^{2}-24x+3}}[/latex]

For each of the following exercises,

  1. decompose each function in the form [latex]y=f\left(u\right)[/latex] and [latex]u=g\left(x\right),[/latex] and
  2. find [latex]\frac{dy}{dx}[/latex] as a function of [latex]x.[/latex]

[latex]y={\left(3x-2\right)}^{6}[/latex]

[latex]y={\left(3{x}^{2}+1\right)}^{3}[/latex]

a. [latex]u=3{x}^{2}+1;[/latex] b. [latex]18x{\left(3{x}^{2}+1\right)}^{2}[/latex]

[latex]y={\text{sin}}^{5}\left(x\right)[/latex]

[latex]y={\left(\frac{x}{7}+\frac{7}{x}\right)}^{7}[/latex]

a. [latex]f\left(u\right)={u}^{7},u=\frac{x}{7}+\frac{7}{x};[/latex] b. [latex]7{\left(\frac{x}{7}+\frac{7}{x}\right)}^{6}·\left(\frac{1}{7}-\frac{7}{{x}^{2}}\right)[/latex]

[latex]y=\text{tan}\phantom{\rule{0.1em}{0ex}}\left(\text{sec}\phantom{\rule{0.1em}{0ex}}x\right)[/latex]

[latex]y=\text{csc}\phantom{\rule{0.1em}{0ex}}\left(\pi x+1\right)[/latex]

a. [latex]f\left(u\right)=\text{csc}\phantom{\rule{0.1em}{0ex}}u,u=\pi x+1;[/latex] b. [latex]\text{−}\pi \phantom{\rule{0.1em}{0ex}}\text{csc}\phantom{\rule{0.1em}{0ex}}\left(\pi x+1\right)·\text{cot}\phantom{\rule{0.1em}{0ex}}\left(\pi x+1\right)[/latex]

[latex]y={\text{cot}}^{2}x[/latex]

[latex]y=-6\phantom{\rule{0.1em}{0ex}}{\text{sin}}^{-3}x[/latex]

a. [latex]f\left(u\right)=-6{u}^{-3},u=\text{sin}\phantom{\rule{0.1em}{0ex}}x,[/latex] b. [latex]18\phantom{\rule{0.1em}{0ex}}{\text{sin}}^{-4}x·\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex]

For the following exercises, find [latex]\frac{dy}{dx}[/latex] for each function.

[latex]y={\left(3{x}^{2}+3x-1\right)}^{4}[/latex]

[latex]y={\left(5-2x\right)}^{-2}[/latex]

[latex]\frac{4}{{\left(5-2x\right)}^{3}}[/latex]

[latex]y={\text{cos}}^{3}\left(\pi x\right)[/latex]

[latex]y={\left(2{x}^{3}-{x}^{2}+6x+1\right)}^{3}[/latex]

[latex]6{\left(2{x}^{3}-{x}^{2}+6x+1\right)}^{2}\left(3{x}^{2}-x+3\right)[/latex]

[latex]y=\frac{1}{{\text{sin}}^{2}\left(x\right)}[/latex]

[latex]y={\left(\text{tan}\phantom{\rule{0.1em}{0ex}}x+\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)}^{-3}[/latex]

[latex]-3{\left(\text{tan}\phantom{\rule{0.1em}{0ex}}x+\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)}^{-4}·\left({\text{sec}}^{2}x+\text{cos}\phantom{\rule{0.1em}{0ex}}x\right)[/latex]

[latex]y={x}^{2}{\text{cos}}^{4}x[/latex]

[latex]y=\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\text{cos}\phantom{\rule{0.1em}{0ex}}7x\right)[/latex]

[latex]-7\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(\text{cos}\phantom{\rule{0.1em}{0ex}}7x\right)·\text{sin}\phantom{\rule{0.1em}{0ex}}7x[/latex]

[latex]y=\sqrt{6+\text{sec}\phantom{\rule{0.1em}{0ex}}\pi {x}^{2}}[/latex]

[latex]y={\text{cot}}^{3}\left(4x+1\right)[/latex]

[latex]-12\phantom{\rule{0.1em}{0ex}}{\text{cot}}^{2}\left(4x+1\right)·{\text{csc}}^{2}\left(4x+1\right)[/latex]

Let [latex]y={\left[f\left(x\right)\right]}^{3}[/latex] and suppose that [latex]{f}^{\prime }\left(1\right)=4[/latex] and [latex]\frac{dy}{dx}=10[/latex] for [latex]x=1.[/latex] Find [latex]f\left(1\right).[/latex]

Let [latex]y={\left(f\left(x\right)+5{x}^{2}\right)}^{4}[/latex] and suppose that [latex]f\left(-1\right)=-4[/latex] and [latex]\frac{dy}{dx}=3[/latex] when [latex]x=-1.[/latex] Find [latex]{f}^{\prime }\left(-1\right)[/latex]

[latex]10\frac{3}{4}[/latex]

Let [latex]y={\left(f\left(u\right)+3x\right)}^{2}[/latex] and [latex]u={x}^{3}-2x.[/latex] If [latex]f\left(4\right)=6[/latex] and [latex]\frac{dy}{dx}=18[/latex] when [latex]x=2,[/latex] find [latex]{f}^{\prime }\left(4\right).[/latex]

[T] Find the equation of the tangent line to [latex]y=\text{−}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\frac{x}{2}\right)[/latex] at the origin. Use a calculator to graph the function and the tangent line together.

[latex]y=\frac{-1}{2}x[/latex]

[T] Find the equation of the tangent line to [latex]y={\left(3x+\frac{1}{x}\right)}^{2}[/latex] at the point [latex]\left(1,16\right).[/latex] Use a calculator to graph the function and the tangent line together.

Find the [latex]x[/latex]-coordinates at which the tangent line to [latex]y={\left(x-\frac{6}{x}\right)}^{8}[/latex] is horizontal.

[latex]x=±\sqrt{6}[/latex]

[T] Find an equation of the line that is normal to [latex]g\left(\theta \right)={\text{sin}}^{2}\left(\pi \theta \right)[/latex] at the point [latex]\left(\frac{1}{4},\frac{1}{2}\right).[/latex] Use a calculator to graph the function and the normal line together.

For the following exercises, use the information in the following table to find [latex]{h}^{\prime }\left(a\right)[/latex] at the given value for [latex]a.[/latex]

[latex]x[/latex][latex]f\left(x\right)[/latex][latex]f\prime \left(x\right)[/latex][latex]g\left(x\right)[/latex][latex]g\prime \left(x\right)[/latex]
02502
11−230
2441−1
33−323

[latex]h\left(x\right)=f\left(g\left(x\right)\right);a=0[/latex]

10

[latex]h\left(x\right)=g\left(f\left(x\right)\right);a=0[/latex]

[latex]h\left(x\right)={\left({x}^{4}+g\left(x\right)\right)}^{-2};a=1[/latex]

[latex]-\frac{1}{8}[/latex]

[latex]h\left(x\right)={\left(\frac{f\left(x\right)}{g\left(x\right)}\right)}^{2};a=3[/latex]

[latex]h\left(x\right)=f\left(x+f\left(x\right)\right);a=1[/latex]

[latex]-4[/latex]

[latex]h\left(x\right)={\left(1+g\left(x\right)\right)}^{3};a=2[/latex]

[latex]h\left(x\right)=g\left(2+f\left({x}^{2}\right)\right);a=1[/latex]

[latex]-12[/latex]

[latex]h\left(x\right)=f\left(g\left(\text{sin}\phantom{\rule{0.1em}{0ex}}x\right)\right);a=0[/latex]

[T] The position function of a freight train is given by [latex]s\left(t\right)=100{\left(t+1\right)}^{-2},[/latex] with [latex]s[/latex] in meters and [latex]t[/latex] in seconds. At time [latex]t=6[/latex] s, find the train’s

  1. velocity and
  2. acceleration.
  3. Using a. and b. is the train speeding up or slowing down?

a. [latex]-\frac{200}{343}[/latex] m/s, b. [latex]\frac{600}{2401}[/latex] m/s2, c. The train is slowing down since velocity and acceleration have opposite signs.

[T] A mass hanging from a vertical spring is in simple harmonic motion as given by the following position function, where [latex]t[/latex] is measured in seconds and [latex]s[/latex] is in inches:

[latex]s\left(t\right)=-3\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(\pi t+\frac{\pi }{4}\right).[/latex]

  1. Determine the position of the spring at [latex]t=1.5[/latex] s.
  2. Find the velocity of the spring at [latex]t=1.5[/latex] s.

[T] The total cost to produce [latex]x[/latex] boxes of Thin Mint Girl Scout cookies is [latex]C[/latex] dollars, where [latex]C=0.0001{x}^{3}-0.02{x}^{2}+3x+300.[/latex] In [latex]t[/latex] weeks production is estimated to be [latex]x=1600+100t[/latex] boxes.

  1. Find the marginal cost [latex]{C}^{\prime }\left(x\right).[/latex]
  2. Use Leibniz’s notation for the chain rule, [latex]\frac{dC}{dt}=\frac{dC}{dx}·\frac{dx}{dt},[/latex] to find the rate with respect to time [latex]t[/latex] that the cost is changing.
  3. Use b. to determine how fast costs are increasing when [latex]t=2[/latex] weeks. Include units with the answer.

a. [latex]{C}^{\prime }\left(x\right)=0.0003{x}^{2}-0.04x+3[/latex] b. [latex]\frac{dC}{dt}=100·\left(0.0003{x}^{2}-0.04x+3\right)[/latex] c. Approximately 💲90,300 per week

[T] The formula for the area of a circle is [latex]A=\pi {r}^{2},[/latex] where [latex]r[/latex] is the radius of the circle. Suppose a circle is expanding, meaning that both the area [latex]A[/latex] and the radius [latex]r[/latex] (in inches) are expanding.

  1. Suppose [latex]r=2-\frac{100}{{\left(t+7\right)}^{2}}[/latex] where [latex]t[/latex] is time in seconds. Use the chain rule [latex]\frac{dA}{dt}=\frac{dA}{dr}·\frac{dr}{dt}[/latex] to find the rate at which the area is expanding.
  2. Use a. to find the rate at which the area is expanding at [latex]t=4[/latex] s.

[T] The formula for the volume of a sphere is [latex]S=\frac{4}{3}\pi {r}^{3},[/latex] where [latex]r[/latex] (in feet) is the radius of the sphere. Suppose a spherical snowball is melting in the sun.

  1. Suppose [latex]r=\frac{1}{{\left(t+1\right)}^{2}}-\frac{1}{12}[/latex] where [latex]t[/latex] is time in minutes. Use the chain rule [latex]\frac{dS}{dt}=\frac{dS}{dr}·\frac{dr}{dt}[/latex] to find the rate at which the snowball is melting.
  2. Use a. to find the rate at which the volume is changing at [latex]t=1[/latex] min.

a. [latex]\frac{dS}{dt}=-\frac{8\pi {r}^{2}}{{\left(t+1\right)}^{3}}[/latex] b. The volume is decreasing at a rate of [latex]-\frac{\pi }{36}[/latex] ft3/min.

[T] The daily temperature in degrees Fahrenheit of Phoenix in the summer can be modeled by the function [latex]T\left(x\right)=94-10\phantom{\rule{0.1em}{0ex}}\text{cos}\left[\frac{\pi }{12}\left(x-2\right)\right],[/latex] where [latex]x[/latex] is hours after midnight. Find the rate at which the temperature is changing at 4 p.m.

[T] The depth (in feet) of water at a dock changes with the rise and fall of tides. The depth is modeled by the function [latex]D\left(t\right)=5\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\frac{\pi }{6}t-\frac{7\pi }{6}\right)+8,[/latex] where [latex]t[/latex] is the number of hours after midnight. Find the rate at which the depth is changing at 6 a.m.

[latex]~2.3[/latex] ft/hr

Glossary

chain rule
the chain rule defines the derivative of a composite function as the derivative of the outer function evaluated at the inner function times the derivative of the inner function