An additional property of derivatives is the chain rule which addresses composition of functions. In addition to being useful for calculating derivatives it enables a variety of applications which will be presented in later sections.
Your goal by the end of this section is to be able to calculate a derivative requiring the chain rule.
Suppose for every shovel full of coal a steam engine produces 1000 psi, and for every 2000 psi the train travels one mile.
What is the rate of psi to coal?
What is the rate of miles to psi?
What is the rate of coal to miles?
Write a function that outputs psi given number of shovels of coal.
Calculate the derivative of this function.
Write a function that outputs miles given psi.
Calculate the derivative of this function.
Write a function that outputs miles given number of shovels of coal using the previous two functions.
Calculate the derivative of this function.
Solution.
What is the rate of psi to coal? \(1000 \text{ psi}/1 \text{ shovel} \)
What is the rate of miles to psi? \(1 \text{ mile}/2000 \text{ psi} \)
What is the rate of coal to miles? \(\frac{1000 \text{ psi}}{1 \text{ shovel}} \cdot \frac{1 \text{ mile}}{2000 \text{ psi}} = \frac{1 \text{ mile}}{2 \text{ shovels}}. \)
Write a function that outputs psi given number of shovels of coal. \(\Psi(c \text{ shovels}) = \frac{1000 \text{ psi}}{1 \text{ shovel}} c \text{ shovels}. \)
Calculate the derivative of this function. \(\frac{d\Psi}{dc} = \frac{1000 \text{ psi}}{\text{shovel}}. \)
Write a function that outputs miles given psi. \(s(p \text{ psi}) = \frac{1 \text{ mile}}{2000 \text{ psi}} p \text{ psi}. \)
Calculate the derivative of this function. \(\frac{ds}{dp} = \frac{1 \text{ mile}}{2000 \text{ psi}}. \)
Write a function that outputs miles given number of shovels of coal using the previous two functions. \(s(\Psi(c \text{ shovels}))=\frac{1 \text{ mile}}{2000 \text{ psi}} \left( \frac{1000 \text{ psi}}{1 \text{ shovel}} c \text{ shovels} \right)\)
Calculate the derivative of this function. \(\frac{d s(\Psi)}{dc}=\frac{1}{2000} \cdot \frac{1000}{1}.\)
Subsection2.5.2Property and Example
Theorem2.5.2.Chain Rule.
If \(g\) is differentiable at \(x\) and \(f\) is differentiable at \(g(x)\) then \(h=f(g(x))\) is differentiable at \(x\) and
This is the same solution using a different notation that some people find easy to use. It is designed to help us do one step at a time without losing track of where we are.
Calculate the derivative of \(h(y)=\ln(\sin y + \cos y)\)
Solution.
\begin{align*}
h(y) = \amp \ln(\color{red}{\sin y + \cos y})\\
f(u) = \amp \ln(u). \\
\color{red}{g(y)} = \amp \color{red}{\sin y + \cos y}. \\
f^\prime(u) = \amp \frac{1}{u}. \\
\color{red}{g^\prime(y)} = \amp \color{red}{\cos y - \sin y}. \\
h^\prime(y) = \amp f^\prime({\color{red}{g(y)}})\color{red}{g^\prime(y)}\\
= \amp \frac{1}{\color{red}{\sin y + \cos y}}\color{red}{\cos y - \sin y} \\
= \amp \frac{\cos y - \sin y}{\sin y + \cos y}.
\end{align*}
Subsection2.5.3Implicit Differentiation
Sometimes we know an equation involving a function before we know what the function is. We can still calculate the derivative of this unknown function. This method (mostly a notation) is vital for Section 2.6
Example2.5.6.First Use of Implicit Differentiation.
Calculate \(f^\prime(x)\) given \(f(x)^2+x^2 = 2x+3.\) Notice that this does not provide a rule for the function. Rather it shows us a relationship involving the function.
The notation we used reminds us that \(f(x)\) is a function and thus we need to treat it differently. However, the notation is unnecessarily bulky. Here we replace it with \(y=f(x)\text{.}\) This notation is common in our application of implicit differentiation in this class and in future classes.