Holt.Blue
Back To Class Notes Menu
The Chain Rule

By now, we can find derivatives of lots of functions! This is awesome!

However, what if this function walked up to you and said: "differentiate me": $$f(x)=(x^2+x+1)^{10}$$ What would you do?

Today we learn the Chain Rule which will enable us to find this derivative with the greatest of ease.































The Chain Rule

The chain rule helps us differentiate functions which are compositions with other functions.

For example, the function $h(x)=(x^2+x+1)^{10}$ is the composition of the functions $f(x)=x^{10}$ and $g(x)=x^2+x+1.$

This is because $$h(x)=(x^2+x+1)^{10}=f(x^2+x+1)=f(g(x))=(f \circ g)(x).$$ Notice there's an "outside function," $x^{10}$, and an "inside function," $x^2+x+1.$

Once we can identify "outside" and "inside" functions, we can differentiate their composition with the Chain Rule.





























The Chain Rule

Let $f$ and $g$ be functions. For all $x$ in the domain of $g$ for which $g$ is differentiable at $x$ and $f$ is differentiable at $g(x),$ the derivative of the composite function $h(x)=(f\circ g)(x) =f(g(x))$ is given by $$h'(x)=f'(g(x)) \cdot g'(x).$$ We may also write $$\frac{d}{dx}[f(g(x))]=f'(g(x)) \cdot g'(x).$$ The outside function is $f$ and the inside function is $g.$































Example

$$\frac{d}{dx}(x^2+x+1)^{10}$$

The "outside function" is $x^{10}$, and the "inside function" is $x^2+x+1.$





























Example

If $\displaystyle f(x)=\sqrt{x^3+ \frac{1}{x}},$ find $f'(x)$ and $f'(2).$

The "outside function" is _________, and the "inside function" is ____________.





























Example

$$\frac{d}{dx}\frac{2}{3\sqrt{x^2+1}}$$

The "outside function" is _________, and the "inside function" is ____________.





























Example: Chain Rule + Product Rule

$$\frac{d}{dx}\left[(2x+1)^5\sqrt{x^2+1}\right]$$

The "outside function" is _________, and the "inside function" is ____________.





























The Chain Rule Redux

We can also write the chain rule in Leibniz notation. This is a fancy way to say $\frac{dy}{dx}$ notation which is sometimes called differential notation.

Let $y$ be a function of $u,$ and let $u$ be a function of $x,$ then $$\frac{dy}{dx}=\frac{dy}{du} \cdot \frac{du}{dx}$$

































Example

$$\frac{d}{dx}(x^2+x+1)^{10}$$

Here we can say $y=u^{10}$ (outside function) and $u=x^2+x+1$ (inside function). Then $$ \begin{array}{ll} &\displaystyle \frac{dy}{dx}\\ =&\displaystyle \frac{dy}{du} \cdot \frac{du}{dx}\\ =&10u^9 \cdot (2x+1) \\ = &10(x^2+x+1)^9(2x+1)\\ = &10(2x+1)(x^2+x+1)^9.\\ \end{array} $$





























Example

Use the information in the following table to find $h'(a)$ at the given value for $a.$

$$h(x) = g \left( 2 + f ( x^2 )\right) \,\,\, \mbox{ at } \,\,\, a = 1$$