Skip to main content

Section 2.5 The Chain Rule

We have covered almost all of the derivative rules that deal with combinations of two (or more) functions. The operations of addition, subtraction, multiplication (including by a constant) and division led to the Sum/Difference Rule, the Constant Multiple Rule, the Power Rule 2.4.15, the Product Rule and the Quotient Rule. To complete the list of differentiation rules, we look at the last way two (or more) functions can be combined: the process of composition (i.e. one function “inside” another).

One example of a composition of functions is \(f(x) = \cos(x^2)\text{.}\) We currently do not know how to compute this derivative. If forced to guess, one might guess \(\fp(x) = -\sin(2x)\text{,}\) where we recognize \(-\sin(x)\) as the derivative of \(\cos(x)\) and \(2x\) as the derivative of \(x^2\text{.}\) However, this is not the case; \(\fp(x)\neq -\sin(2x)\text{.}\) One way to see this is to examine the graph of \(y=\cos\mathopen{}\left(x^2\right)\mathclose{}\) in Figure 2.5.1 and its tangent line at \(x=\pi/2\text{.}\) Clearly the slope of the tangent line there is nonzero, but \(-2\sin(2\cdot\pi/2)=0\text{.}\) So it can't be correct to say that \(y'=-\sin(2x)\text{.}\)

Figure 2.5.1. A graph of \(y=\cos(x^2)\) and a tangent line at \(\pi/2\)

In Example 2.5.7 we'll see the correct way to compute the derivative of \(\sin\mathopen{}\left(x^2\right)\mathclose{}\text{,}\) which employs the new rule this section introduces, the Chain Rule.

Before we define this new rule, recall the notation for composition of functions. We write \((f \circ g)(x)\) or \(f(g(x))\text{,}\) read as “\(f\) of \(g\) of \(x\text{,}\)” to denote composing \(f\) with \(g\text{.}\) In shorthand, we simply write \(f \circ g\) or \(f(g)\) and read it as “\(f\) of \(g\text{.}\)” Before giving the corresponding differentiation rule, we note that the rule extends to multiple compositions like \(f(g(h(x)))\) or \(f(g(h(j(x))))\text{,}\) etc.

To motivate the rule, let's look at three derivatives we can already compute.

Example 2.5.2. Exploring similar derivatives.

Find the derivatives of \(F_1(x) = (1-x)^2\text{,}\) \(F_2(x) = (1-x)^3\text{,}\) and \(F_3(x) = (1-x)^4\text{.}\) (We'll see later why we are using subscripts for different functions and an uppercase \(F\text{.}\))

Solution.

In order to use the rules we already have, we must first expand each function as

\begin{align*} F_1(x)\amp = 1 - 2x + x^2\\ F_2(x)\amp = 1 - 3x + 3x^2 - x^3\\ F_3(x)\amp = 1 - 4x + 6x^2 - 4x^3 + x^4 \end{align*}

It is not hard to see that:

\begin{align*} F_1'(x)\amp = -2 + 2x\\ F_2'(x)\amp = -3 + 6x - 3x^2\\ F_3'(x)\amp = -4 + 12x - 12x^2 + 4x^3 \end{align*}

An interesting fact is that these can be rewritten as:

\begin{align*} F_1'(x)\amp = -2(1-x)\\ F_2'(x)\amp = -3(1-x)^2\\ F_3'(x)\amp = -4(1-x)^3 \end{align*}

A pattern might jump out at you. Recognize that each of these functions is a composition, letting \(g(x) = 1-x\text{:}\)

\begin{align*} F_1(x)\amp = f_1(g(x)),\amp\amp \text{ where } f_1(x) = x^2,\\ F_2(x)\amp = f_2(g(x)),\amp\amp \text{ where } f_2(x) = x^3,\\ F_3(x)\amp = f_3(g(x)),\amp\amp \text{ where } f_3(x) = x^4 \end{align*}

.

We'll come back to this example after giving the formal statements of the Chain Rule; for now, we are just illustrating a pattern.

Here is the Chain Rule in words:

The derivative of the outside function, evaluated at the inside function, multiplied by the derivative of the inside function.

To help understand the Chain Rule, we return to Example 2.5.2.

Example 2.5.4. Using the Chain Rule.

Use the Chain Rule to find the derivatives of the following functions, as given in Example 2.5.2.

Solution.

Example 2.5.2 ended with the recognition that each of the given functions was actually a composition of functions. To avoid confusion, we ignore most of the subscripts here.

\(F_1(x) = (1-x)^2\)

We found that

\begin{equation*} y=(1-x)^2 = f(g(x))\text{,} \end{equation*}

where \(f(x) = x^2\) and \(g(x) = 1-x\text{.}\) To find \(y'\text{,}\) we apply the Chain Rule. We need to note that \(\fp(x)=2x\) and \(g'(x)=-1\text{.}\)

Part of the Chain Rule uses \(\fp(g(x))\text{.}\) This means substitute \(g(x)\) for \(x\) in the equation for \(\fp(x)\text{.}\) That is, \(\fp(x) = 2(1-x)\text{.}\) Finishing out the Chain Rule we have

\begin{align*} y' \amp = \fp(g(x))\cdot g'(x)\\ \amp = 2(1-x)\cdot (-1)\\ \amp = -2(1-x)\\ \amp = 2x-2 \end{align*}

.

\(F_2(x) = (1-x)^3\)

Let \(y = (1-x)^3 = f(g(x))\text{,}\) where \(f(x) = x^3\) and \(g(x) = (1-x)\text{.}\) We have \(\fp(x) = 3x^2\text{,}\) so \(\fp(g(x)) = 3(1-x)^2\text{.}\) The Chain Rule then states

\begin{align*} y' \amp = \fp(g(x))\cdot g'(x)\\ \amp = 3(1-x)^2\cdot (-1)\\ \amp = -3(1-x)^2 \end{align*}

.

\(F_3(x) = (1-x)^4\)

Finally, when \(y = (1-x)^4\text{,}\) we have \(f(x)= x^4\) and \(g(x) = (1-x)\text{.}\) Thus \(\fp(x) = 4x^3\) and \(\fp(g(x)) = 4(1-x)^3\text{.}\) Thus

\begin{align*} y' \amp = \fp(g(x))\cdot g'(x)\\ \amp = 4(1-x)^3\cdot (-1)\\ \amp = -4(1-x)^3. \end{align*}

Example 2.5.4 demonstrated a particular pattern: when \(f(x)=x^n\text{,}\) then \(y' =n\cdot (g(x))^{n-1}\cdot g'(x)\text{.}\) This is called the Generalized Power Rule.

This allows us to quickly find the derivative of functions like \(y = (3x^2-5x+7+\sin(x) )^{20}\text{.}\) While it may look intimidating, the Generalized Power Rule states that

\begin{equation*} y' = 20(3x^2-5x+7+\sin(x) )^{19}\cdot (6x-5+\cos(x) ). \end{equation*}

Treat the derivative-taking process step-by-step. In the example just given, first multiply by \(20\text{,}\) then rewrite the inside of the parentheses, raising it all to the \(19\)th power. Then think about the derivative of the expression inside the parentheses, and multiply by that.

We now consider more examples that employ the Chain Rule.

Example 2.5.6. Using the Chain Rule.

Find the derivatives of the following functions:

  1. \(\displaystyle y = \sin(2x)\)

  2. \(\displaystyle y= \ln(4x^3-2x^2)\)

  3. \(\displaystyle y = e^{-x^2}\)

Solution.
  1. Consider \(y = \sin(2x)\text{.}\) Recognize that this is a composition of functions, where \(f(x) = \sin(x)\) and \(g(x) = 2x\text{.}\) Thus

    \begin{align*} y' \amp = \fp(g(x))\cdot g'(x) \\ \amp = \cos(2x)\cdot \lzoo{x}{2x} \\ \amp = \cos(2x)\cdot 2 \\ \amp = 2\cos(2x) \end{align*}

    .

  2. Recognize that \(y = \ln\mathopen{}\left(4x^3-2x^2\right)\mathclose{}\) is the composition of \(f(x) = \ln(x)\) and \(g(x) = 4x^3-2x^2\text{.}\) Also, recall that

    \begin{equation*} \lzoo{x}{\ln(x)} = \frac{1}{x}. \end{equation*}

    This leads us to:

    \begin{align*} y' \amp = \frac{1}{4x^3-2x^2} \cdot \lzoo{x}{4x^3-2x^2}\\ \amp = \frac{1}{4x^3-2x^2} \cdot \left(12x^2-4x\right)\\ \amp = \frac{12x^2-4x}{4x^3-2x^2}\\ \amp = \frac{4x(3x-1)}{2x(2x^2-x)}\\ \amp = \frac{2(3x-1)}{2x^2-x} \end{align*}

    . Note that \(\ln\mathopen{}\left(4x^3-2x^2\right)\mathclose{}=\ln\mathopen{}\left(4x^2(x-1/2)\right)\mathclose{}\) was only defined for \(x\gt1/2\text{,}\) so the result of \(y'=\frac{2(3x-1)}{2x^2-x}\) is only valid for \(x\gt1/2\) as well.

  3. Recognize that \(y = e^{-x^2}\) is the composition of \(f(x) = e^x\) and \(g(x) = -x^2\text{.}\) Remembering that \(\fp(x) = e^x\text{,}\) we have

    \begin{align*} y' \amp = e^{-x^2}\cdot \lzoo{x}{-x^2} \\ \amp = e^{-x^2}\cdot (-2x)\\ \amp = -2xe^{-x^2} \end{align*}

    .

Example 2.5.7. Using the Chain Rule to find a tangent line.

Let \(f(x) = \cos(x^2)\text{.}\) Find the equation of the line tangent to the graph of \(f\) at \(x=1\text{.}\)

Solution.

The tangent line goes through the point \((1,f(1)) \approx (1,0.54)\) with slope \(\fp(1)\text{.}\) To find \(\fp\text{,}\) we need the Chain Rule.

\(\fp(x) = -\sin(x^2) \cdot(2x) = -2x\sin(x^2)\text{.}\) Evaluated at \(x=1\text{,}\) we have \(\fp(1) = -2\sin(1) \approx -1.68\text{.}\) Thus the equation of the tangent line is

\begin{equation*} y \approx -1.68(x-1)+0.54. \end{equation*}

The tangent line is sketched along with \(f\) in Figure 2.5.8.

Figure 2.5.8. \(f(x) = \cos(x^2)\) sketched along with its tangent line at \(x=1\text{.}\)

The Chain Rule is used often in taking derivatives. Because of this, one can become familiar with the basic process and learn patterns that facilitate finding derivatives quickly. For instance,

\begin{equation*} \lzoo{x}{\ln(\text{anything})} = \frac{1}{\text{anything}}\cdot\lzoo{x}{\text{anything}} = \frac{\lzoo{x}{\text{anything}}}{\text{anything}}. \end{equation*}

A concrete example of this is

\begin{equation*} \lzoo{x}{\ln(3x^{15}-\cos(x) +e^x)} = \frac{45x^{14}+\sin(x) +e^x}{3x^{15}-\cos(x) +e^x}. \end{equation*}

While the derivative may look intimidating at first, look for the pattern. The denominator is the same as what was inside the natural log function; the numerator is simply its derivative.

This pattern recognition process can be applied to lots of functions. In general, instead of writing “anything”, we use \(u\) as a generic function of \(x\text{.}\) We then say

\begin{equation*} \lzoo{x}{\ln(u)} = \frac{u'}{u}. \end{equation*}

The following is a short list of how the Chain Rule can be quickly applied to familiar functions.

  1. \(\ds\lzoo{x}{u^n} = n\cdot u^{n-1}\cdot u'\text{.}\)

  2. \(\ds\lzoo{x}{e^u} = e^u \cdot u'\text{.}\)

  3. \(\ds\lzoo{x}{\sin(u)} = \cos(u) \cdot u'\text{.}\)

  4. \(\ds\lzoo{x}{\cos(u)} = -\sin(u)\cdot u'\text{.}\)

  5. \(\ds\lzoo{x}{\tan(u)} = \sec^2(u) \cdot u'\text{.}\)

Of course, the Chain Rule can be applied in conjunction with any of the other rules we have already learned. We practice this next.

Example 2.5.9. Using the Product, Quotient and Chain Rules.

Find the derivatives of the following functions.

  1. \(\displaystyle f(x) = x^5 \sin(2x^3)\)

  2. \(\displaystyle f(x) = \dfrac{5x^3}{e^{-x^2}}\)

Solution.
  1. We must use the Product Rule and Chain Rule. Do not think that you must be able to “see” the whole answer immediately; rather, just proceed step-by-step.

    \begin{align*} \fp(x) \amp = x^5 \cdot \lzoo{x}{\sin\mathopen{}\left(2x^3\right)\mathclose{}} + \sin\mathopen{}\left(2x^3\right)\mathclose{}\cdot \lzoo{x}{x^5}\\ \amp = x^5\left(\cos\mathopen{}\left(2x^3\right)\mathclose{}\cdot \lzoo{x}{2x^3} \right) + 5x^4\left(\sin\mathopen{}\left(2x^3\right)\mathclose{} \right)\\ \amp = x^5\big(6x^2\cos\left(2x^3\right) \big) + 5x^4\big(\sin\left(2x^3\right) \big)\\ \amp = 6x^7\cos\mathopen{}\left(2x^3\right)\mathclose{}+5x^4\sin\mathopen{}\left(2x^3\right)\mathclose{} \end{align*}

    .

  2. We must employ the Quotient Rule along with the Chain Rule. Again, proceed step-by-step.

    \begin{align*} \fp(x) \amp= \frac{e^{-x^2}\cdot \lzoo{x}{5x^3} - 5x^3\cdot \lzoo{x}{e^{-x^2}}}{\left(e^{-x^2}\right)^2} \\ \amp= \frac{e^{-x^2}\cdot 15x^2 - 5x^3\cdot e^{-x^2}\cdot \lzoo{x}{-x^2}}{\left(e^{-x^2}\right)^2} \\ \amp= \frac{e^{-x^2}\left(15x^2\right) - 5x^3\left((-2x)e^{-x^2}\right)}{\left(e^{-x^2}\right)^2} \\ \amp =\frac{e^{-x^2}\left(10x^4+15x^2\right)}{e^{-2x^2}}\\ \amp = e^{x^2}\left(10x^4+15x^2\right) \end{align*}

    .

A key to correctly working these problems is to break the problem down into smaller, more manageable pieces. For instance, when using the Product Rule and Chain Rule together, just consider the first part of the Product Rule at first: \(f(x)g'(x)\text{.}\) Just rewrite \(f(x)\text{,}\) then find \(g'(x)\text{.}\) Then move on to the \(\fp(x)g(x)\) part. Don't attempt to figure out both parts at once.

Likewise, using the Quotient Rule, approach the numerator in two steps and handle the denominator after completing that. Only simplify afterward.

We can also employ the Chain Rule itself several times, as shown in the next example.

Example 2.5.10. Using the Chain Rule multiple times.

Find the derivative of \(y = \tan^5(6x^3-7x)\text{.}\)

Solution.

Recognize that we have the \(g(x)=\tan\mathopen{}\left(6x^3-7x\right)\mathclose{}\) function “inside” the \(f(x)=x^5\) function; that is, we have \(y = \left(\tan\mathopen{}\left(6x^3-7x\right)\mathclose{}\right)^5\text{.}\) We begin using the Generalized Power Rule; in this first step, we do not fully compute the derivative. Rather, we are approaching this step-by-step.

\begin{equation*} y' = 5\left(\tan\mathopen{}\left(6x^3-7x\right)\mathclose{}\right)^4\cdot g'(x). \end{equation*}

We now find \(g'(x)\text{.}\) We again need the Chain Rule;

\begin{align*} g'(x) \amp = \sec^2\mathopen{}\left(6x^3-7x\right)\mathclose{}\cdot \lzoo{x}{6x^3-7x}.\\ \amp = \sec^2\mathopen{}\left(6x^3-7x\right)\mathclose{}\cdot\left(18x^2-7\right). \end{align*}

Combine this with what we found above to give

\begin{align*} y' \amp = 5\left(\tan\mathopen{}\left(6x^3-7x\right)\mathclose{}\right)^4\cdot\sec^2\mathopen{}\left(6x^3-7x\right)\mathclose{}\cdot\left(18x^2-7\right)\\ \amp = \left(90x^2-35\right)\sec^2\mathopen{}\left(6x^3-7x\right)\mathclose{}\tan^4\mathopen{}\left(6x^3-7x\right)\mathclose{}. \end{align*}

This function is frankly a ridiculous function, possessing no real practical value. It is very difficult to graph, as the tangent function has many vertical asymptotes and \(6x^3-7x\) grows so very fast. The important thing to learn from this is that the derivative can be found. In fact, it is not “hard”; one must take several simple steps and be careful to keep track of how to apply each of these steps.

It is a traditional mathematical exercise to find the derivatives of arbitrarily complicated functions just to demonstrate that it can be done. Just break everything down into smaller pieces.

Example 2.5.11. Using the Product, Quotient and Chain Rules.

Find the derivative of \(f(x) = \frac{x\cos(x^{-2})-\sin^2(e^{4x})}{\ln(x^2+5x^4)}\text{.}\)

Solution.

This function likely has no practical use outside of demonstrating derivative skills. The answer is given below without simplification. It employs the Quotient Rule, the Product Rule, and the Chain Rule three times.

\begin{align*} \amp\fp(x)\\ \amp=\Bigg(\ln\mathopen{}\left(x^2+5x^4\right)\mathclose{}\cdot\bigg[\Big(x\cdot\left(-\sin\mathopen{}\left(x^{-2}\right)\mathclose{}\right)\cdot\left(-2x^{-3}\right)\\ \amp\qquad{}+1\cdot \cos\mathopen{}\left(x^{-2}\right)\Big)-2\sin\mathopen{}\left(e^{4x}\right)\mathclose{}\cdot\cos\mathopen{}\left(e^{4x}\right)\mathclose{}\cdot\left(4e^{4x}\right)\bigg]\\ \amp\qquad\qquad\qquad{}-\left(x\cos\mathopen{}\left(x^{-2}\right)\mathclose{}-\sin^2\mathopen{}\left(e^{4x}\right)\mathclose{}\right)\cdot\frac{2x+20x^3}{x^2+5x^4}\Bigg)\\ \amp\phantom{{}={}}\left/\left(\ln\mathopen{}\left(x^2+5x^4\right)\mathclose{}\right)^2\right.. \end{align*}

The reader is highly encouraged to look at each term and recognize why it is there. (I.e., the Quotient Rule is used; in the numerator, identify the “LOdHI” term, etc.) This example demonstrates that derivatives can be computed systematically, no matter how arbitrarily complicated the function is.

The Chain Rule also has theoretic value. That is, it can be used to find the derivatives of functions that we have not yet learned as we do in the following example.

Example 2.5.12. The Chain Rule and exponential functions.

Use the Chain Rule to find the derivative of \(y= a^x\) where \(a>0\text{,}\) \(a\neq 1\) is constant.

Solution.

We only know how to find the derivative of one exponential function: \(y = e^x\text{;}\) this problem is asking us to find the derivative of functions such as \(y = 2^x\text{.}\)

This can be accomplished by rewriting \(a^x\) in terms of \(e\text{.}\) Recalling that \(e^x\) and \(\ln(x)\) are inverse functions, we can write \(a = e^{\ln(a)}\)

\begin{equation*} y = a^x = \left(e^{\ln(a)}\right)^x. \end{equation*}

By the power-to-power property of exponents, we can write this as

\begin{equation*} y = a^x = e^{x (\ln(a) )}. \end{equation*}

The function is now the composition \(y=f(g(x))\text{,}\) with \(f(x) = e^x\) and \(g(x) = x(\ln(a) )\text{.}\) Since \(\fp(x) = e^x\) and \(g'(x) = \ln(a)\text{,}\) the Chain Rule gives

\begin{equation*} y' = e^{x (\ln(a) )} \cdot \ln(a) . \end{equation*}

Recall that the \(e^{x(\ln(a) )}\) term on the right hand side is just \(a^x\text{,}\) our original function. Thus, the derivative contains the original function itself. We have

\begin{equation*} y' = y \cdot \ln(a) = a^x\cdot \ln(a) . \end{equation*}

The Chain Rule, coupled with the derivative rule of \(e^x\text{,}\) allows us to find the derivatives of all exponential functions.

The previous example produced a result worthy of special note.

Subsection 2.5.1 Alternate Chain Rule Notation

It is instructive to understand what the Chain Rule “looks like” using “\(\lz{y}{x}\)” notation instead of \(y'\) notation. Suppose that \(y=f(u)\) is a function of \(u\text{,}\) where \(u=g(x)\) is a function of \(x\text{,}\) as stated in Theorem 2.5.3. Then, through the composition \(f \circ g\text{,}\) we can think of \(y\) as a function of \(x\text{,}\) as \(y=f(g(x))\text{.}\) Thus the derivative of \(y\) with respect to \(x\) makes sense; we can talk about \(\lz{y}{x}\text{.}\) This leads to an interesting progression of notation:

\begin{align*} y' \amp = \fp(g(x))\cdot g'(x)\\ \lz{y}{x} \amp = y'(u) \cdot u'(x)\amp\amp \text{ since } y=f(u) \text{ and }u=g(x)\\ \lz{y}{x} \amp = \lz{y}{u} \cdot \lz{u}{x}\amp\amp \text{(using “fractional notation” for the derivative)} \end{align*}

Here the “fractional” aspect of the derivative notation stands out. On the right hand side, it seems as though the “\(du\)” terms cancel out, leaving

\begin{equation*} \frac{dy}{dx} = \frac{dy}{dx}. \end{equation*}

It is important to realize that we are not canceling these terms; the derivative notation of \(\lz{y}{x}\) is one symbol. It is equally important to realize that this notation was chosen precisely because of this behavior. It makes applying the Chain Rule easy with multiple variables. For instance,

\begin{equation*} \lz{y}{t} = \lz{y}{\bigcirc} \cdot \lz{\bigcirc}{\triangle} \cdot \lz{\triangle}{t}. \end{equation*}

where \(\bigcirc\) and \(\triangle\) are any variables you'd like to use.

One of the most common ways of “visualizing” the Chain Rule is to consider a set of gears, as shown in Figure 2.5.14. The gears have \(36\text{,}\) \(18\text{,}\) and \(6\) teeth, respectively. That means for every revolution of the \(x\) gear, the \(u\) gear revolves twice. That is, the rate at which the \(u\) gear makes a revolution is twice as fast as the rate at which the \(x\) gear makes a revolution.

Using the terminology of calculus, the rate of \(u\)-change, with respect to \(x\text{,}\) is \(\lz{u}{x} = 2\text{.}\)

Likewise, every revolution of \(u\) causes \(3\) revolutions of \(y\text{:}\) \(\lz{y}{u} = 3\text{.}\) How does \(y\) change with respect to \(x\text{?}\) For each revolution of \(x\text{,}\) \(y\) revolves \(6\) times; that is,

\begin{equation*} \frac{dy}{dx} = \frac{dy}{du}\cdot \frac{du}{dx} = 2\cdot 3 = 6. \end{equation*}

We can then extend the Chain Rule with more variables by adding more gears to the picture.

Figure 2.5.14. A series of gears to demonstrate the Chain Rule. Note how \(\lz{y}{x} = \lz{y}{u}\cdot\lz{u}{x}\)

It is difficult to overstate the importance of the Chain Rule. So often the functions that we deal with are compositions of two or more functions, requiring us to use this rule to compute derivatives. It is often used in practice when actual functions are unknown. Rather, through measurement, we can calculate \(\lz{y}{u}\) and \(\lz{u}{x}\text{.}\) With our knowledge of the Chain Rule, finding \(\lz{y}{x}\) is straightforward.

In Section 2.6, we use the Chain Rule to justify another differentiation technique. There are many curves that we can draw in the plane that fail the “vertical line test.” For instance, consider \(x^2+y^2=1\text{,}\) which describes the unit circle. We may still be interested in finding slopes of tangent lines to the circle at various points. Section 2.6 shows how we can find \(\lz{y}{x}\) without first “solving for \(y\text{.}\)” While we can in this instance, in many other instances solving for \(y\) is impossible. In these situations, implicit differentiation is indispensable.

Exercises 2.5.2 Exercises

1.

T/F: The Chain Rule describes how to evaluate the derivative of a composition of functions.

2.

T/F: The Generalized Power Rule states that \(\displaystyle \frac{d}{dx}\Big ( g(x)^n\Big ) = n\big (g(x)\big )^{n-1}\text{.}\)

3.

T/F: \(\displaystyle \frac{d}{dx}\big (\ln (x^2)\big ) = \frac{1}{x^2}\text{.}\)

4.

T/F: \(\displaystyle \frac{d}{dx}\big (3^x\big ) \approx 1.1\cdot 3^x\text{.}\)

5.

T/F: \(\displaystyle \frac{dx}{dy} = \frac{dx}{dt}\cdot \frac{dt}{dy}\)

6.

\(f(x) = \big (\ln x + x^2\big )^3\)

Answer.

\(f\,^{\prime }(x) = 3\big (\ln x+x^2\big )2(\frac{1}{x}+2x)\)

Exercise Group.

In Exercises 7–36, compute the derivative of the given function.

7.

\(f(x) = (4x^3-x)^{10}\)

Answer.

\(f\,^{\prime }(x) = 10(4x^3-x)^9\cdot (12x^2-1) = (120x^2-10)(4x^3-x)^9\)

8.

\(f(t) = (3t-2)^{5}\)

Answer.

\(f\,^{\prime }(t) = 15(3t-2)^4\)

9.

\(g(\theta ) = (\sin \theta +\cos \theta )^3\)

Answer.

\(g^{\prime }(\theta ) = 3(\sin \theta +\cos \theta )^2(\cos \theta -\sin \theta )\)

10.

\(h(t) = e^{3t^2+t-1}\)

Answer.

\(h^{\prime }(t) = (6t+1)e^{3t^2+t-1}\)

11.

\(f(x) = \big (\ln x + x^2\big )^3\)

Answer.

\(f\,^{\prime }(x) = 3\big (\ln x+x^2\big )2(\frac{1}{x}+2x)\)

12.

\(f(x) = 2^{x^3+3x}\)

Answer.

\(f\,^{\prime }(x) = (\ln 2)(2^{x^3+3x})(3x^2+3)\)

13.

\(f(x) = \big (x+\frac{1}{x}\big )^4\)

Answer.

\(f\,^{\prime }(x) = 4\big (x+\frac{1}{x}\big )^3\big (1-\frac{1}{x^2}\big )\)

14.

\(f(x) = \cos (3x)\)

Answer.

\(f\,^{\prime }(x) = -3\sin (3x)\)

15.

\(g(x) = \tan (5x)\)

Answer.

\(g^{\prime }(x) = 5\sec ^2(5x)\)

16.

\(h(\theta ) = \tan \big (\theta ^2+4\theta \big )\)

Answer.

\(h\,^{\prime }(\theta ) = \sec ^2\big (\theta ^2+4\theta \big )(2\theta +4)\)

17.

\(g(t) = \sin \left(t^5+\frac{1}{t}\right)\)

Answer.

\(g\,^{\prime }(t) = \cos \left(t^5+\frac{1}{t}\right)\left(5t^4-\frac{1}{t^3}\right)\)

18.

\(h(t) = \sin ^4(2t)\)

Answer.

\(h^{\prime }(t) = 8\sin ^3(2t)\cos (2t)\)

19.

\(p(t) = \cos ^3(t^2+3t+1)\)

Answer.

\(p^{\prime }(t) = -3\cos ^2(t^2+3t+1)\sin (t^2+3t+1)(2t+3)\)

20.

\(f(x) = \ln (\cos x)\)

Answer.

\(f\,^{\prime }(x) = -\tan x\)

21.

\(f(x) = \ln (x^2)\)

Answer.

\(f\,^{\prime }(x) = 2/x\)

22.

\(f(x) = 2\ln (x)\)

Answer.

\(f\,^{\prime }(x) = 2/x\)

23.

\(g(r) = 4^r\)

Answer.

\(g^{\prime }(r) = \ln 4\cdot 4^r\)

24.

\(g(t) = 5^{\cos t}\)

Answer.

\(g^{\prime }(t) = -\ln 5\cdot 5^{\cos t}\sin t\)

25.

\(g(t) = 15^2\)

Answer.

\(g^{\prime }(t) = 0\)

26.

\(\displaystyle m(w) = \frac{3^w}{2^w}\)

Answer.

\(m^{\prime }(w) = \ln (3/2) (3/2)^w\)

27.

\(\displaystyle h(t) = \frac{2^t+3}{3^t+2}\)

Answer.

\(f\,^{\prime }(x) = \frac{(3^t+2)\big ((\ln 2) 2^t\big )-(2^t+3)\big ((\ln 3)3^t\big )}{(3^t+2)^2}\)

28.

\(\displaystyle m(w) = \frac{3^w+1}{2^w}\)

Answer.

\(m^{\prime }(w) = \frac{2^w\big (\ln 3\cdot 3^w-\ln 2\cdot (3^w+1)\big )}{2^{2w}}\)

29.

\(\displaystyle f(x) = \frac{3^{x^2}+x}{2^{x^2}}\)

Answer.

\(f\,^{\prime }(x) = \frac{2^{x^2}(\ln 3\cdot 3^{x^2}2x+1) - (3^{x^2}+x)(\ln 2\cdot 2^{x^2}2x)}{2^{2x^2}}\)

30.

\(f(x) = x^2\sin (5x)\)

Answer.

\(f\,^{\prime }(x) = 5x^2\cos (5x) + 2x\sin (5x)\)

31.

\(f(x) = (x^2+x)^5(3x^4+2x)^3\)

Answer.

\(f\,^{\prime }(x) = 5(x^2+x)^4(2x+1)(3x^4+2x)^3+3(x^2+x)^5(3x^4+2x)^2(12x^3+2)\)

32.

\(g(t) = \cos (t^2+3t)\sin (5t-7)\)

Answer.

\(g^{\prime }(t) = 5\cos (t^2+3t)\cos (5t-7)- (2t+3)\sin (t^2+3t)\sin (5t-7)\)

33.

\(f(x) = \sin (3x+4)\cos (5-2x)\)

Answer.

\(f\,^{\prime }(x) = 3\cos (3x+4)\cos (5-2x)+2\sin (3x+4)\sin (5-2x)\)

34.

\(g(t) = \cos (\frac{1}{t})e^{5t^2}\)

Answer.

\(g^{\prime }(t) = 10t\cos (\frac{1}{t})e^{5t^2}+\frac{1}{t^2}\sin (\frac{1}{t})e^{5t^2}\)

35.

\(\displaystyle f(x) = \frac{\sin \big (4x+1\big )}{(5x-9)^3}\)

Answer.

\(f\,^{\prime }(x) = \frac{4(5x-9)^3\cos (4x+1)-15\sin (4x+1)(5x-9)^2}{(5x-9)^6}\)

36.

\(\displaystyle f(x) = \frac{(4x+1)^2}{\tan (5x)}\)

Answer.

\(f\,^{\prime }(x) = \frac{8\tan (5x)(4x+1)-5(4x+1)^2\sec ^2(5x)}{\tan ^2(5x)}\)

Exercise Group.

In Exercises 37–40, find the equations of tangent and normal lines to the graph of the function at the given point. Note: the functions here are the same as in Exercises through .

37.

\(f(x) = (4x^3-x)^{10}\) at \(x=0\)

Answer.

Tangent line: \(y=0\)

Normal line: \(x=0\)

38.

\(f(t) = (3t-2)^5\) at \(t=1\)

Answer.

Tangent line: \(y=15(t-1)+1\)

Normal line: \(y=-1/15(t-1)+1\)

39.

\(g(\theta ) = (\sin \theta +\cos \theta )^3\) at \(\theta = \pi /2\)

Answer.

Tangent line: \(y=-3(\theta - \pi /2)+1\)

Normal line: \(y=1/3(\theta - \pi /2)+1\)

40.

\(h(t) = e^{3t^2+t-1}\) at \(t=-1\)

Answer.

Tangent line: \(y=-5e(t+1)+e\)

Normal line: \(y=1/(5e)(t+1)+e\)

41.

Compute \(\displaystyle \frac{d}{dx}\big (\ln (kx)\big ) \) two ways:

  1. Using the Chain Rule, and

  2. by first using the logarithm rule \(\ln (ab) = \ln a + \ln b\text{,}\) then taking the derivative.

Answer.

In both cases the derivative is the same: \(1/x\text{.}\)

42.

Compute \(\displaystyle \frac{d}{dx}\big (\ln (x^k)\big ) \) two ways:

  1. Using the Chain Rule, and

  2. by first using the logarithm rule \(\ln (a^p) = p\ln a\text{,}\) then taking the derivative.

Answer.

In both cases the derivative is the same: \(k/x\text{.}\)

Exercise Group.

In Exercises 43–48, find the equations of the tangent and normal lines to the graph of the function at the given point.

43.

\(f(x)=x^3-x\) at \(x=1\)

Answer.

Tangent line: \(y = 2(x-1)\)

Normal line: \(y=-1/2(x-1)\)

44.

\(f(t)=e^t+3\) at \(t=0\)

Answer.

Tangent line: \(y = t+4\)

Normal line: \(y=-t+4\)

45.

\(g(x)=\ln x\) at \(x=1\)

Answer.

Tangent line: \(y = x-1\)

Normal line: \(y=-x+1\)

46.

\(f(x)=4\sin x\) at \(x=\pi /2\)

Answer.

Tangent line: \(y = 4\)

Normal line: \(x=\pi /2\)

47.

\(f(x)=-2\cos x\) at \(x=\pi /4\)

Answer.

Tangent line: \(y = \sqrt{2}(x-\frac{\pi }{4})-\sqrt{2}\)

Normal line: \(y = \frac{-1}{\sqrt{2}}(x-\frac{\pi }{4})-\sqrt{2}\)

48.

\(f(x)=2x+3\) at \(x=5\)

Answer.

Tangent line: \(y = 2x+3\)

Normal line: \(y=-1/2(x-5)+13\)

49.

The “wind chill factor” is a measurement of how cold it “feels” during cold, windy weather. Let \(W(w)\) be the wind chill factor, in degrees Fahrenheit, when it is \(25^\circ \)F outside with a wind of \(w\) mph.

  1. What are the units of \(W\hspace{0.75pt}^{\prime }(w)\text{?}\)

  2. What would you expect the sign of \(W\hspace{0.75pt}^{\prime }(10)\) to be?

Answer.
  1. \(^\circ \) F/mph

  2. The sign would be negative; when the wind is blowing at 10 mph, any increase in wind speed will make it feel colder, i.e., a lower number on the Fahrenheit scale.

50.

Find the derivatives of the following functions.

  1. \(\displaystyle f(x) = x^2e^x\cot x\)

  2. \(\displaystyle g(x) = 2^x3^x4^x\)

Answer.
  1. \(\displaystyle 2xe^x\cot x + x^2e^x\cot x - x^2e^x\csc ^2 x\)

  2. \(\displaystyle \ln (48)48^x\)