Watch the video for a couple of chain rule examples, or read on below:

The following **chain rule examples** show you how to differentiate (find the derivative of) many functions that have an “inner function” and an “outer function.” For an example, take the function y = √ (x^{2} – 3). The inner function is the one *inside the parentheses*: x^{2} -3. The outer function is √(x).

The problem is recognizing those functions that you can differentiate using the rule. The solution? Take a look at the following examples of the chain rule, which illustrate the different ways inner functions and outer functions look. **If your derivative has an inner and an outer function, you can use the chain rule.**

## Chain Rule Examples: Contents

- General steps to using the chain rule.
- Exponential Functions
- Sin, Cosine or Tangent Functions.
- “e” Functions
- Multiplied Constants
- Number Raised to a Power
- Square Root Functions
- General Power Rule for Power Functions

The formal definition of the chain rule:

That isn’t much help, unless you’re already very familiar with it.

What’s needed is a simpler, more intuitive approach!

**Chain rule examples: General steps**.

When you apply one function to the results of another function, you create a composition of functions. For example, let’s say you had the functions:

- f (x) = x
^{2 – 3} - g (x) = x
^{2},

The composition g (f (x)), which is also written as (g ∘ f) (x), would be (x^{2-3})^{2}. This indicates that the function f(x), the inner function, must be calculated before the value of g(x), the outer function, can be found.

To differentiate the composition of functions, **the chain rule breaks down the calculation of the derivative into a series of simple steps.**

## Chain Rule Examples: General Steps

Step 1: **Identify the inner and outer functions**.

For an example, let the composite function be y = √(x^{4} – 37). The inner function is the one *inside the parentheses*: x^{4} -37. The outer function is √, which is also the same as the rational exponent ½.

Step 2:Differentiate the **outer function** first.

√ (x^{4} – 37) equals (x^{4} – 37) ^{1/2}, which when differentiated (outer function only!) equals ½(x^{4} – 37) ^{(1 – ½)} or ½(x^{4} – 37)^{(-½).}

Step 3: **Differentiate the inner function.
**The derivative of x

^{4}– 37 is 4x

^{(4-1)}– 0, which is also 4x

^{3}.

Step 4: Multiply Step 3 by the outer function’s derivative.

Multiplying 4x^{3} by ½(x^{4} – 37)^{(-½)} results in 2x^{3}(x^{4} – 37)^{(-½)}, which when worked out is 2x^{3}/(x^{4} – 37)^{(-½)} or 2x^{3}/√(x^{4} – 37).

That’s it!

## Chain rule examples: Exponential Functions

Differentiating using the chain rule usually involves a little intuition. The more times you apply the chain rule to different problems, the easier it becomes to recognize how to apply the rule. This section shows how to differentiate the function y = 3x + 1^{2} using the chain rule. However, the technique can be applied to a wide variety of functions with any outer exponential function (like x^{32} or x^{99}.

Step 1: Differentiate the **outer function**. In this case, the outer function is x^{2}. Note: keep 3x + 1 in the equation. Just ignore it, for now. Note that I’m using D here to indicate taking the derivative.

D(3x + 1)^{2} = 2(3x + 1)^{2-1} = 2(3x + 1)

Step 2: Differentiate the **inner function**. In this example, the inner function is 3x + 1.

D(3x + 1) = 3.

Step 3: **Combine** your results from Step 1 2(3x+1) and Step 2 (3).

= 2(3x + 1) (3)

Step 4: **Simplify** your work, if possible. In this example, 2(3x +1) (3) can be simplified to 6(3x + 1).

That’s it!

Tip: This technique can also be applied to outer functions that are square roots. For example, to differentiate

√ X + 1

: (x + 1)^{½} is the outer function and x + 1 is the inner function.

## Sin, Cosine or Tangent Functions.

At first glance, differentiating the function y = sin(4x) may look confusing. Knowing where to start is half the battle. The chain rule in calculus is one way to simplify differentiation. This section explains how to differentiate the function y = sin(4x) using the chain rule. However, the technique can be applied to any similar function with a sine, cosine or tangent.

Step 1 Differentiate the **outer function**, using **the table of derivatives**. In this case, the outer function is the sine function. Note: keep 4x in the equation but ignore it, for now. The derivative of sin is cos, so:

D(sin(4x)) = cos(4x).

Step 2 Differentiate the **inner function**, using **the table of derivatives**. In this example, the inner function is 4x.

D(4x) = 4

Step 3. **Combine** your results from Step 1 (cos(4x)) and Step 2 (4).

= cos(4x)(4)

Step 4 **Simplify** your work, if possible. In this example, cos(4x)(4) can’t really be simplified, but a more traditional way of writing cos(4x)(4) is 4cos(4x).

That’s it!

## “e” Functions

The number e (Euler’s number), equivalent to about 2.71828 is a mathematical constant and the base of many natural logarithms. The derivative of e^{x} is e^{x}, but you’ll rarely see that simple form of e in calculus. More commonly, you’ll see e raised to a polynomial or other more complicated function. Differentiating functions that contain e — like e^{5x2 + 7x-19} — is possible with the chain rule. In order to use the chain rule you have to identify an outer function and an inner function.

Step 1 Differentiate the **outer function** first. In this example, the outer function is e^{x}. Note: keep 5x^{2} + 7x – 19 in the equation. Just ignore it, for now. The derivative of e^{x} is e^{x}, so:

D(e^{5x2 + 7x – 19}) = e^{5x2 + 7x – 19}.

Step 2 Differentiate the **inner function**, which is

5x^{2} + 7x – 19.

D(5x^{2} + 7x – 19) = (10x + 7)

Step 3. **Combine** the results from Step 1 (e^{5x2 + 7x – 19}) and Step 2 (10x + 7).

= e^{5x2 + 7x – 13}(10x + 7)

Step 4 **Rewrite the equation and simplify, if possible.** In this example, no simplification is necessary, but it’s more traditional to write the equation like this:

(10x + 7) e^{5x2 + 7x – 19}

That’s it!

Tip You can also use this rule to differentiate natural and common base 10 logarithms (D(ln x) = (1/x) and D(log x) = (1/x) log e.

## Multiplied Constants

**Multiplied constants** add another layer of complexity to differentiating with the **chain rule.** Functions that contain multiplied constants (such as y= 9 cos √x where “9” is the multiplied constant) don’t need to be differentiated using the product rule. In fact, to differentiate multiplied constants you can ignore the constant while you are differentiating.

**Sample problem:** Differentiate y = 7 tan √x using the chain rule.

Step 1

Differentiate the **outer function**, ignoring the constant. The outer function in this example is “tan.” (Note: Leave the inner function in the equation (√x) but ignore that too for the moment) The derivative of tan x is sec^{2}x, so:

D(tan √x) = sec^{2} √x

Step 2 Differentiate the **inner function**, which is

√x.

D(√x) = (1/2) X^{-½}

Step 3. **Combine** the results from Step 1 (sec^{2} √x) and Step 2 ((½) X^{ – ½}).

= (sec^{2}√x) ((½) X^{ – ½}).

Step 4

Add the constant you dropped back into the equation.

7 (sec^{2}√x) ((1/2) X^{ – ½}).

Step 5 **Rewrite the equation and simplify, if possible.**

7 (sec^{2}√x) ((½) X^{ – ½}) =

7 (sec^{2}√x) ((½) 1/X^{½}) =

7 (sec^{2}√x) / 2√x

That’s it!

## Number Raised to a Power

The chain rule can be used to differentiate many functions that have a number raised to a power. The key is to look for an inner function and an outer function.

Example problem: Differentiate y = 2^{cot x} using the chain rule.

Step 1 Differentiate the **outer function**. The outer function in this example is 2^{x}. Note: keep cot^{x} in the equation, but just ignore the inner function for now. The derivative of 2^{x} is 2^{x} ln 2, so:

D(2^{cot x}) = 2^{cot x} (ln 2)

Step 2 Differentiate the **inner function**, which is

cot x. The derivative of cot x is -csc^{2}, so:

D(cot 2)= (-csc^{2})

Step 3. **Combine** the results from Step 1 (2^{cot x}) (ln 2) and Step 2 ((-csc^{2})).

= (2^{cot x} (ln 2) (-csc^{2})x).

Step 4 **Rewrite the equation and simplify, if possible.** In this example, the negative sign is inside the second set of parentheses. It’s more traditional to rewrite it as:

-2^{cot x}(ln 2) (csc^{2} x)

That’s it!

## Square Root Functions

Another way of writing a square root is as an exponent of ½. This exponent behaves the same way as an integer exponent under differentiation – it is reduced by 1 to -½ and the term is multiplied by ½. Therefore sqrt(x) differentiates as follows:

d/dx sqrt(x) = d/dx x^{(1/2)} = (1/2) x^{(-½)}

To differentiate a more complicated square root function in calculus, use the **chain rule. **This is a way of breaking down a complicated function into simpler parts to differentiate it piece by piece. The results are then combined to give the final result as follows:

dF/dx = dF/dy * dy/dx

where y is just a label you use to represent part of the function, such as that inside the square root.

**Example problem**: Differentiate the square root function sqrt(x^{2} + 1).

Step 1: Write the function as (x^{2}+1)^{(½)}. **Label the function** inside the square root as y, i.e., y = x^{2}+1.

Step 2: Differentiate **y ^{(1/2)}** with respect to

**y**.

d/dy y

^{(½)}= (½) y

^{(-½)}

Step 3: Differentiate **y** with respect to** x**.

dy/dx = d/dx (x^{2 + 1}) = 2x

Step 4: **Multiply** the results of Step 2 and Step 3 according to the chain rule, and substitute for y in terms of x.

2x * (½) y^{(-½)} = x(x^{2 + 1})^{(-½)}

Step 5: **Simplify** your answer by writing it in terms of square roots. Remember that a function raised to an exponent of -1 is equivalent to 1 over the function, and that an exponent of ½ is the same as a square root function.

x(x^{2} + 1)^{(-½)} = x/sqrt(x^{2 + 1})

Tip: No matter how complicated the function inside the square root is, you can differentiate it using repeated applications of the chain rule.

## General Power Rule for Power Functions

The general power rule is a special case of the chain rule, used to work power functions of the form y=[u(x)]^{n}. The general power rule states that if y=[u(x)]^{n}], then dy/dx = n[u(x)]^{n – 1}u'(x). A simpler form of the rule states if y – u^{n}, then y = nu^{n – 1}*u’. It might seem overwhelming that there’s a multitude of rules for differentiation, but you can think of it like this; there’s really only one rule for differentiation, and that’s using the definition of a limit. Technically, you can figure out a derivative for any function using that definition. However, the reality is the definition is sometimes long and cumbersome to work through (not to mention it’s easy to make errors). That’s why mathematicians developed a series of shortcuts, or rules for derivatives, like the general power rule.

**Example question:** What is the derivative of y = √(x^{2} – 4x + 2)?

Step 1: **Rewrite the square root** to the power of ½:

y = (x^{2} – 4x + 2)^{½}

Step 2: **Figure out the derivative for the “inside” part of the function**, which is (x^{2} – 4x + 2). You can find the derivative of this function using the power rule:

f'(x^{2} – 4x + 2)= 2x – 4)

Step 3: **Rewrite the equation to the form of the general power rule** (in other words, write the general power rule out, substituting in your function in the right places). Include the derivative you figured out in Step 1:

f’ = ½ (x^{2} – 4x + 2)^{½ – 1}(2x – 4)

= f’ = ½ (x^{2}-4x + 2)^{ – ½}(2x – 4)

Step 4: (Optional)**Rewrite using algebra:**

(2x – 4) / 2√(x^{2} – 4x + 2)

*That’s it!*

**Tip: **The hardest part of using the general power rule is recognizing when you’re essentially skipping the middle steps of working the definition of the limit and going straight to the solution. Once you’ve performed a few of these differentiations, you’ll get to recognize those functions that use this particular rule.

## References

Larson & Edwards. Calculus.

------------------------------------------------------------------------------**Need help with a homework or test question? **With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. Your first 30 minutes with a Chegg tutor is free!