Chain Rule

Suppose we want to find the derivatives of the following functions:

f ( x ) = x 2 1

f ( x ) = 2 x 3 + x

f ( x ) = e 2 x 3 3 x 2 1

f ( x ) = ln (⁡ 3 x 2 3 )⁡

How can we find the derivative of these functions with respect to x ? Unfortunately, none of the rules we learned in this topic will help us find the derivatives. These functions can be written as g ( h ( x ) ) . For example, with the first one, we can say g ( x ) = x and replace the x of the g function with h ( x ) = x 2 1 . Can you identify the two functions that compose each of the other functions?

g ( x ) = x , h ( x ) = x 2 1
g ( x ) = 2 x , h ( x ) = x 3 + x
g ( x ) = e x , h ( x ) = 2 x 3 3 x 2 1
g ( x ) = ln x , h ( x ) = 3 x 2 3

This illustrates the last rule of derivatives—the chain rule. If h ( x ) is differentiable at x and g ( x ) is differentiable at h ( x ) , then f ( x ) = g ( h ( x ) ) is differentiable at x , and the derivative of f ( x ) can be found by

f ( x ) = h ( x ) g ( h ( x ) )

Let’s use the original four equations to find the derivative of each of the others as practice. First,

f ( x ) = x 2 1

can be decomposed as follows:

g ( x ) = x , h ( x ) = x 2 1

Let’s find the derivative of the functions g and h first.

g ( x ) = 1 2 x , h ( x ) = 2 x

Therefore, the derivative of the function f ( x ) is

f ( x ) = h ( x ) g ( h ( x ) ) = 2 x 1 2 x 2 1 = x x 2 1

Given the above result, the general formula to find the derivative of a function f ( x ) that is some constant nth power of a function g ( x ) , expressed as f ( x ) = [ g ( x ) ] n , is

f ( x ) = n g ( x ) [ g ( x ) ] n 1

Suppose we want to find the derivative of

f ( x ) = ( x 3 2 x 2 x ) 3

The derivative of the function is

f ( x ) = n g ( x ) [ g ( x ) ] n 1 = 3 ( 3 x 2 4 x 1 ) ( x 3 2 x 2 x ) 2

Next, instead of looking at the second function, let’s skip to the third function.

f ( x ) = e 2 x 3 3 x 2 1

This function is composed of the following two functions:

g ( x ) = e x h ( x ) = 2 x 3 3 x 2 1

The derivatives of these two functions are

g ( x ) = e x h ( x ) = 6 x 2 6 x

Therefore, the derivative of f with the chain rule is

f ( x ) = h ( x ) g ( h ( x ) ) = ( 6 x 2 6 x ) e 2 x 3 3 x 2 1

Given this result, we can get a general formula of the derivative of a function f that is the constant e to the g ( x ) power as follows:

f ( x ) = g ( x ) e g ( x )

Let’s look at the second example now. For this, we have to remember many rules and equations.

f ( x ) = 2 x 3 + x

As we found earlier, the composition of the function f is

g ( x ) = 2 x
h ( x ) = x 3 + x

Before we tackle this, we need to rewrite g ( x ) as follows:

g ( x ) = 2 x = e x ln 2 ( Recall e ln a = a )

So the derivative of g needs the chain rule as well. Let

m ( x ) = e x n ( x ) = x ln 2

The derivatives of the functions m and n are

m ( x ) = e x n ( x ) = ln 2

So the derivatives of the function g and h are

g ( x ) = n ( x ) m ( n ( x ) ) = ln 2 e x ln 2 = 2 x ln 2 h ( x ) = 3 x 2 + 1

Therefore, the derivative of f is

f ( x ) = h ( x ) g ( h ( x ) ) = ( 3 x 2 + 1 ) 2 x 3 + x ln 2

So, the general formula of the derivative of the function f such that constant a to the power of a function g ( x ) ( f ( x = a g ( x ) ) is

f ( x ) = g ( x ) a g ( x ) ln a

Here is a practice problem. What is the derivative of f ( x ) = 10 x 2 3 ? First, we can identify g ( x ) and g ( x ) .

g ( x ) = x 2 3 g ( x ) = 2 x

Therefore, the derivative of f is

f ( x ) = g ( x ) a g ( x ) ln a = 2 x 10 x 2 3 ln 10

Here is the last one:

f ( x ) = ln ( 3 x 2 3 )

As we found earlier, the components of f are

g ( x ) = ln x h ( x ) = 3 x 2 3

The derivatives of the functions g and h are

g ( x ) = 1 x h ( x ) = 6 x

Therefore, the derivative is

f ( x ) = h ( x ) g ( h ( x ) ) = 6 x 1 3 x 2 3 = 2 x x 2 1

Let’s practice. Suppose that we want to find the derivative of the following function:

f ( x ) = ln (⁡ x 4 3 x 2 + 2 x 1 )⁡

Since

g ( x ) = x 4 3 x 2 + 2 x 1 g ( x ) = 4 x 3 6 x + 2

then the derivative of f is

f ( x ) = g ( x ) g ( x ) = 4 x 3 6 x + 2 x 4 3 x 2 + 2 x 1

Want to try our built-in assessments?


Use the Request Full Access button to gain access to this assessment.