**Calculus and Chain Rule**

We have found how to take derivatives of functions that are added, subtracted, multiplied, and divided. Next, we will cover how to work with a function that is put inside another simply by composition.

For example, it would be difficult to multiply out *f*(*x*) = (*x*^{3} + 10*x* + 4)^{5} just to take the derivative. Instead, notice that *f*(*x*) looks like *g*(*x*) = *x*^{3} + 10*x* + 4 put inside *h*(*x*) = *x*^{5}. Therefore, in terms of composition, *f*(*x*) = *h* *g*(*x*) = *h*(*g*(*x*)).

The trick to differentiating composed functions is to take the derivative of the outermost layer first, while leaving the inner part alone, then multiplying by the derivative of the inside.

The Chain Rule can be stated as follows:

If this is confusing, try stating the Chain Rule in this way:

The usual key to figuring out what is inside and what is outside is to watch the parentheses. Imagine that the parentheses form the layers of an onion, and that you must peel (differentiate) the outermost layers before reaching the inside.

*The Chain Rule*

* or *

**Example 1**

Differentiate *f*(*x*) = (*x*^{3} + 10*x* + 4)^{5}.

**Solution 1**

Here, *f*(*x*) = (something)^{5} where the something = *x*^{3} + 10*x* + 4. Because , the Chain Rule states the following:

*f* '(*x*) = 5(something)^{4} · (something)

*f* '(*x*) = 5(*x*^{3} + 10*x* + 4)^{4} · (*x* ^{3} + 10*x* + 4)

*f* '(*x*) = 5(*x*^{3} + 10*x* + 4)^{4} · (3*x*^{2} + 10)

**Example 2**

Differentiate *g*(*x*) = sin(8*x*^{4} + 3*x*^{2} – 2*x* + 1).

**Solution 2**

Here, the function is essentially sin(something) where the "something" = 8*x*^{4} + 3*x*^{2} – 2*x* + 1. The derivative of sine is cosine, so:

*g*'(*x*) = cos(something) · (something)

*g*'(*x*) = cos(8*x*^{4} + 3*x*^{2} – 2*x* + 1) · (8*x*^{4} + 3*x*^{2} – 2*x* + 1)

*g*'(*x*) = cos(8*x*^{4} + 3*x*^{2} – 2*x* + 1) · (32*x*^{3}+6*x* – 2)

**Example 3**

Differentiate *y* = cos^{3}(*x*).

**Solution 3**

This is tricky because of the laziness of mathematicians who like to skimp on parentheses. It might look like the "outside" function is cos(something), but it is actually *y* = cos^{3}(*x*) = (cos( *x*))^{3} . Thus, this function is really (something)^{3}.

= 3(something)^{2} · (something)

= 3(cos(*x*))^{2} · (cos(*x*))

= 3(cos(*x*))^{2} · (–sin(*x*))

= –3cos^{2}(*x*)sin(*x*)

**Example 4**

Differentiate *y* = cos(*x*^{3}).

** Solution 4**

In this example, our function is cos(something). Because (cos(*x*)) = –sin(*x*), the Chain Rule states that

= –sin(something) · (something)

= –sin(*x*)^{3} · (*x*^{3})

= –sin(*x*)^{3} · 3*x*^{2}

And because there was an (*x*^{3}) in the original function, an (*x*^{3}) must appear in the derivative.

**Something" Hint**

**Something" Hint**

*It is important that the "something" in the parentheses appear somewhere in the derivative, just as it does in the original function. If it doesn't appear, then a mistake has been made.*

**Example 5**

Differentiate *h*(*x*) = *e*^{5x}.

**Solution 5**

*h*(*x*) = *e*^{(something)}

so:

*h'*(*x*) = *e*^{(something)} · (something)

*h*'(*x*) = *e*^{5x} · (5*x*) = *e*^{5x} · 5 = 5*e*^{5x}

This rule is called the Chain Rule because it works in long succession when there are many layers to the function. It helps to write out the function using lots of parentheses, and then work patiently to take the derivative of each outermost layer.

**Example 6**

Differentiate *f*(*x*) = sin^{7}(*e*^{5x}).

**Solution 6**

With all of its parentheses, this function is *f*(*x*) = (sin(*e*^{(5x)}))^{7}. The outermost layer is "something to the seventh power," the second layer is "the sine of something," the third layer is "*e* raised to the something," and the last layer is 5*x*. Thus:

*f* '(*x*) = 7(sin(*e*^{(5x)}))^{6} · (sin(*e*^{(5x)}))

*f* '(*x*) = 7(sin(*e*^{(5x)}))^{6} · cos(*e*^{(5x)}) · (*e*^{(5x)})

*f* '(*x*) = 7(sin(*e*^{(5x)}))^{6} · cos(*e*^{(5x)}) · *e*^{(5x)} · (5*x*)

*f* '(*x*) = 7(sin(*e*^{(5x)}))^{6} · cos(*e*^{(5x)}) · *e*^{(5x)} · 5

*f* '(*x*) = 35*e*^{(5x)}sin^{6}(*e*^{(5x)})cos(*e*^{(5x)})

**Example 7**

Differentiate *y* = ln(*x*^{3} + tan(3*x*^{2} + *x*)).

**Solution 7**

= · (*x*^{3} + tan(3*x*^{2} + *x*))

= · (3*x*^{2} + sec^{2}(3*x*^{2} + *x*) · Take img (3*x*^{2} + *x*))

= · (3*x*^{2} + sec^{2}(3*x*^{2} + *x*) · (6*x* + 1))

=

Notice once again that every part except the outermost layer (the natural logarithm) appears somewhere in the derivative.

Find practice problems and solutions for these concepts at Calculus and Chain Rule Practice Questions

### Ask a Question

Have questions about this article or topic? Ask### Related Questions

See More Questions### Popular Articles

- Kindergarten Sight Words List
- First Grade Sight Words List
- 10 Fun Activities for Children with Autism
- Signs Your Child Might Have Asperger's Syndrome
- Definitions of Social Studies
- A Teacher's Guide to Differentiating Instruction
- Curriculum Definition
- What Makes a School Effective?
- Theories of Learning
- Child Development Theories