**The chain rule** is one of the most useful tools in differential calculus. Equipped with your knowledge of specific derivatives, and the power, product and quotient rules, the chain rule will allow you to find the derivative of any function.

The chain rule is a bit tricky to learn at first, but once you get the hang of it, it's really easy to apply, even to the most stubborn of functions. Knowing it will also allow you to forget about memorizing the quotient rule because any denominator **h(x)** can be expressed as a multiple,** [h(x)] ^{-1}**.

Each of the functions in the box on the right is a composition of functions, **g(h(x))**. For example, in the first, **h(x) = x ^{2} - 4** and the outer function is

To derive the chain rule, consider a function **y(t)** that is actually a composition of functions, **y(x)** and **x(t)**. It might be something like **y(t) = cos(3t ^{2})**, where

,

where the **Δx** terms cancel to give the overall change in **y** with respect to **t**. We can use the same cancellation in terms of differentials, but a word about that is in order:

While Leibniz, who invented the **df/dx** notation, never intended it to be used as such, we can safely consider **df/dx** to be simply a ratio of differentials, making the analogous cancellation possible:

Thus the derivative of a composition of functions can be expanded as a product of derivatives, the first the derivative of the outer function with respect to the full inner function (e.g. by treating it like a single "placeholder" variable), the second just the derivative of the inner function with respect to its independent variable.

It's best to learn the chain rule by working through examples. In the first two examples below, we'll substitute a "dummy variable" for the inner function, but you'll find that in no time you wont need to do that.

The outer function is **f(x) = sin(x)** and the inner function is **g(x) = x ^{2}**. Let's let

**f'(a) = cos(a)**.

Then we differentiate the inner function, **g'(x) = 2x**, and multiply it by **f(a)'**:

**f' = 2x·cos(a)**

I didn't write a variable behind **f'** above because at the moment I've got a weird hybrid function of **x** and **a**. The last step is to re-substitute **x ^{2}** for

**f'(x) = 2x·cos(x ^{2})**.

The outer function is **f(x) = x ^{3}** and the inner function is

**f'(a) = 3a ^{2}**.

Then we differentiate the inner function, **g'(x) = x ^{2}- 5 **with respect to

**f' = 2x·3a ^{2}**

The last step is to re-substitute (**x ^{2} - 5**) for

**f'(x) = 6x·(x ^{2} - 5)^{2}**.

Now we'll do without substitution of the placeholder variable and use the chain rule directly. The first step is to take the derivative of the whole outer function, treating the inner function (**x ^{2} + x**) as a single unit.

**½(x ^{2} + x)^{-1/2}** ← not finished, just pausing!

Then multiply by the derivative of the inner function, **2x + 1**

**f'(x) = (2x + 1) ^{1}/_{2}(x^{2} + x)^{-1/2}**

The outer function is **x ^{-1}** and the inner is

There are a bunch of video examples of chain rule derivatives here.

Find the derivatives of these compound functions. You can download solutions below (try not to peek until you've tried them).

Here are a few examples of taking derivatives of simpler compound functions:

**f(x) = cos(x**,^{3})**g(x) = tan(1/x)**, and**h(x) = e**^{3x-1}

Minutes of your life: 3:22

These are just a little bit more difficult. Notice that it's called the chain rule because we can use it to find derivatives of a function of a function of a function of ..., like **f(g(h(x))) = tan(ln(x ^{2}))**, where

Minutes of your life: 3:22

If you can find derivatives of functions like these, you'll have mastered the chain rule.

Minutes of your life: 3:22

**xaktly.com** by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.