Skip to main content

Section 2.5 The Chain Rule (DF5)

Subsection 2.5.1 Activities

Note 2.5.1.

When we consider the consider the composition \(f \circ g\) of the function \(f\) with the function \(g\text{,}\) we mean the composite function \(f(g(x))\text{,}\) where the function \(g\) is applied first and then \(f\) is applied to the output of \(g\text{.}\) We also call \(f\) the outside function whilst \(g\) is the inside function.

Activity 2.5.2.

(a)
Consider the function \(f(x) = -x^2+5 \) and \(g(x)=2x-1\text{.}\) Which of the following is a formula for \(f(g(x))\text{?}\)
  1. \(\displaystyle -4x^2 +4x +4 \)
  2. \(\displaystyle 4x^2 -4x +5 \)
  3. \(\displaystyle -2x^2 +9 \)
  4. \(\displaystyle -2x^2 +4 \)
(b)
One of the options above is a formula for \(g(f(x))\text{.}\) Which one?

Activity 2.5.3.

(a)
Consider the composite function \(f(g(x))= \sqrt{e^x}\text{.}\) Which function is the outside function \(f(x)\) and which one is the inside function \(g(x)\text{?}\)
  1. \(\displaystyle f(x)=x^2 \, , \, g(x)=e^x \)
  2. \(\displaystyle f(x)=\sqrt{x} \, , \, g(x)=e^x \)
  3. \(\displaystyle f(x)=e^x \, , \, g(x)=\sqrt{x} \)
  4. \(\displaystyle f(x)=e^x \, , \, g(x)=x^2 \)
(b)
Using properties of exponents, we can rewrite the original function as \(\displaystyle e^{\frac{x}{2}}\text{.}\) Using this new expression, what is your new inside function and your new outside function?
(c)
Consider the function \(\displaystyle e^{\sqrt{x}}\text{.}\) In this case, what are the inside and outside functions?

Activity 2.5.4.

In this activity we will build the intuition for the chain rule using a real-world scenario and differential notation for derivatives. Consider the following scenario.
My neighborhood is being invaded! The squirrel population grows based on acorn availability, at a rate of 2 squirrels per bushel of acorns. Acorn availability grows at a rate of 100 bushels of acorns per week. How fast is the squirrel population growing per week?
(a)
The scenario gives you information regarding the rate of growth of \(s(a)\text{,}\) the squirrel population as a function of acorn availability (measured in bushels). What is the current value of \(\dfrac{ds}{da}\text{?}\)
  1. 2
  2. 100
  3. 200
  4. 50
(b)
The scenario gives you information regarding the rate of growth of \(a(t)\text{,}\) the acorn availability as a function of time (measured in weeks). What is the current value of \(\dfrac{da}{dt}\text{?}\)
  1. 2
  2. 100
  3. 200
  4. 50
(c)
Given all the information provided, what is your best guess for the value of \(\dfrac{ds}{dt}\text{,}\) the rate at which the squirrel population is growing per week?
  1. 2
  2. 100
  3. 200
  4. 50
(d)
Given your answers above, what is the relationship between \(\dfrac{ds}{da}, \dfrac{da}{dt}, \dfrac{ds}{dt}\text{?}\)

Warning 2.5.6.

It is important to consider the input of a function when taking the derivative! In fact, \(f'(g(x))\) and \(f'(x)\) are different functions... So computing \(\dfrac{dv}{dx} \) gives a different result than computing \(\dfrac{dv}{du} \text{.}\)

Activity 2.5.7.

(a)
Consider the function \(f(x) = -x^2+5 \) and \(g(x)=2x-1\text{.}\) Notice that \(f(g(x))= -4x^2 +4x +4 \text{.}\) Which of the following is the derivative function of the composite function \(f(g(x))\text{?}\)
  1. \(\displaystyle -8x +4 \)
  2. \(\displaystyle -4x \)
  3. \(\displaystyle -2x \)
  4. \(\displaystyle 2 \)
(b)
One of the options above is a formula for \(f'(x) \cdot g'(x) \text{.}\) Which one? Notice that this is not the same as the derivative of \(f(g(x))\text{!}\)

Activity 2.5.8.

Consider the composite function \(\displaystyle h(x) =\sqrt{e^x} = e^{\frac{x}{2}}\text{.}\) For each of the two expressions, find the derivative using the chain rule. Which of the following expressions are equal to \(h'(x)\text{?}\) Select all!
  1. \(\displaystyle \displaystyle \frac{1}{2} \left( e^x \right)^{\frac{-1}{2}} \cdot e^x \)
  2. \(\displaystyle \displaystyle \frac{1}{2} \left( e^x \right)^{\frac{3}{2}} \cdot e^x \)
  3. \(\displaystyle \displaystyle \frac{1}{2} e^{\frac{-x}{2}} \)
  4. \(\displaystyle \displaystyle e^{\frac{x}{2}} \cdot \frac{1}{2} \)
  5. \(\displaystyle \displaystyle \frac{1}{2} \sqrt{e^x} \)
  6. \(\displaystyle \displaystyle\sqrt{e^x} \cdot e^x \)

Activity 2.5.9.

Below you are given the graphs of two functions: \(a(x)\) and \(b(x)\text{.}\) Use the graphs to compute vaules of composite functions and of their derivatives, when possible (there are points where the derivative of these functions is not defined!). Notice that to compute the derivative at a point, you first want to find the derivative as a function of \(x\) and then plug in the input you want to study.
Figure 47. The graphs of \(a(x)\) and \(b(x)\)
(a)
Notice that the derivative of \(a \circ b\) is given by \(a'(b(x)) \cdot b'(x)\text{,}\) so the derivative of \(a \circ b\) at \(x= 4\) is given by the quantity \(a'(b(4)) \cdot b'(4) = a'(-2) \cdot b'(4)\text{,}\) because \(b(4)=-2\text{.}\) Using the graphs to compute slopes, what is the derivative of \(a \circ b\) at \(x= 4\text{?}\)
  1. \(\displaystyle 0 \)
  2. \(\displaystyle -1 \)
  3. \(\displaystyle 1 \)
  4. \(\) -2
  5. \(\) 2
  6. The derivative does not exist at this point.
(b)
Which of the following values is the derivative of \(a \circ b\) at \(x=2 \text{?}\)
  1. \(\displaystyle 0 \)
  2. \(\displaystyle -1 \)
  3. \(\displaystyle 1 \)
  4. \(\) -2
  5. \(\) 2
  6. The derivative does not exist at this point.
(c)
Which of the following values is the derivative of \(b \circ a\) (different order!) at \(x=-2 \text{?}\)
  1. \(\displaystyle 0 \)
  2. \(\displaystyle -1 \)
  3. \(\displaystyle 1 \)
  4. \(\) -2
  5. \(\) 2
  6. The derivative does not exist at this point.

Activity 2.5.10.

In this activity you will study the derivative of \(\cos^n(x)\) for different powers \(n\text{.}\)
(a)
Consider the function \(\cos^2(x) = \left( \cos(x) \right)^2\text{.}\) Combining power and chain rule, what do you get if you differentiate \(\cos^2(x)\text{?}\)
  1. \(\displaystyle -\cos^2(x)\sin(x) \)
  2. \(\displaystyle -\cos^2(x)\sin(x) \)
  3. \(\displaystyle 2\cos(x)\sin(x) \)
  4. \(\displaystyle - 2\cos(x)\sin(x) \)
(b)
Consider the function \(\cos^3(x)\text{.}\) Find its derivative.
(c)
Consider the function \(\cos^n(x)\text{,}\) for \(n\) any number. Find the general formula for its derivative.

Activity 2.5.11.

In this activity you will study the derivative of \(b^{\cos(x)}\) for different bases \(b\text{.}\)
(a)
Consider the function \(e^{\cos(x)} \text{.}\) Combining exponential and chain rule, what do you get if you differentiate \(e^{\cos(x)}\text{?}\)
  1. \(\displaystyle e^{\cos(x)} \)
  2. \(\displaystyle - e^{\cos(x)} \sin(x)\)
  3. \(\displaystyle e^{-\sin(x)} \)
  4. \(\displaystyle e^{\cos(x)}\sin(x) \)
(b)
Consider the function \(2^{\cos(x)}\text{.}\) Find its derivative.
(c)
Consider the function \(b^{\cos(x)}\text{,}\) for \(b\) any positive number. Find the general formula for its derivative.

Remark 2.5.12.

Remember that exponential and power functions obey very different differentiation rules. This behavior continues when we consider composite function. The composite power function \(f(x)^3\) has derivative
\begin{equation*} 3 [f(x)]^2 \cdot f'(x) \end{equation*}
but the composite exponential function \(3^{f(x)}\) has derivative
\begin{equation*} \ln(3) \, 3^{f(x)} \cdot f'(x) \end{equation*}

Activity 2.5.13.

Demonstrate and explain how to find the derivative of the following functions. Be sure to explicitly denote which derivative rules (chain, product, quotient, sum/difference, etc.) you are using in your work.
  1. \begin{equation*} f(x)= -{\left(4 \, x - 3 \, e^{x} + 4\right)}^{3} \end{equation*}
  2. \begin{equation*} k(w)= 9 \, \cos\left(w^{\frac{7}{5}}\right) \end{equation*}
  3. \begin{equation*} h(y)= -3 \, \sin\left(-5 \, y^{2} + 2 \, y - 5\right) \end{equation*}
  4. \begin{equation*} g(t)= 9 \, \cos\left(t\right)^{\frac{7}{5}} \end{equation*}
Answer.
  1. \begin{equation*} f' (x)= 3 \, {\left(4 \, x - 3 \, e^{x} + 4\right)}^{2} {\left(3 \, e^{x} - 4\right)} \end{equation*}
  2. \begin{equation*} k' (w)= -\frac{63}{5} \, w^{\frac{2}{5}} \sin\left(w^{\frac{7}{5}}\right) \end{equation*}
  3. \begin{equation*} h' (y)= 6 \, {\left(5 \, y - 1\right)} \cos\left(-5 \, y^{2} + 2 \, y - 5\right) \end{equation*}
  4. \begin{equation*} g' (t)= -\frac{63}{5} \, \cos\left(t\right)^{\frac{2}{5}} \sin\left(t\right) \end{equation*}

Activity 2.5.14.

Notice that
\begin{equation*} \displaystyle\left(\frac{f(x)}{g(x)}\right) = \left( f(x)\cdot g(x)^{-1}\right) \end{equation*}
Use this observation, the chain rule, the product rule, and the power rule (plus some fraction algebra) to deduce the quotient rule in a new way!

Activity 2.5.15.

Remember my neighborhood squirrel invasion? The squirrel population grows based on acorn availability, at a rate of 2 squirrels per bushel of acorns. Acorn availability grows at a rate of 100 bushels of acorns per week. Considering this information as pertaining to the moment \(t=0\text{,}\) you are given the following possible model for the squirrel:
\begin{equation*} s(a(t))= 2a(t)+10 = 2\left(50\sin(2t)+60\right)+10. \end{equation*}
(a)
Check that the model satisfies the data \(\dfrac{ds}{da}=2\) and \(\dfrac{da}{dt}\big|_{t=0} = 100 \)
(b)
Find the derivative function \(\dfrac{ds}{dt}\) and check that \(\dfrac{ds}{dt}|_{t=0} = 200\text{.}\)
(c)
According to this model, what is the maximum and minimum squirrel population? What is the fastest rate of increase and decrease of the squirrel population? When will these extremal scenarions occur?

Activity 2.5.16.

Suppose that a fish population at \(t\) months is approximated by
\begin{equation*} P(t) = 100 \cdot 4^{0.05 t} \end{equation*}
(a)
Find \(P(10)\) and use units to explain what this value tells us about the population.
(b)
Find \(P'(10)\) and use units to explain what this value tells us about the population. (If you want to avoid using a calculator, you can use the approximation \(\ln(4) = 1.4\text{.}\))

Subsection 2.5.2 Videos

Figure 48. Video for DF5

Subsection 2.5.3 Exercises