Chain Rule

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

f(x)=x21

f(x)=2x3+x

f(x)=e2x33x21

f(x)=ln(3x23)

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)=x21. Can you identify the two functions that compose each of the other functions?

g(x)=x,h(x)=x21
g(x)=2x,h(x)=x3+x
g(x)=ex,h(x)=2x33x21
g(x)=lnx,h(x)=3x23

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)=x21

can be decomposed as follows:

g(x)=x,h(x)=x21

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

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

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

f(x)=h(x)g(h(x))=2x12x21=xx21

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)=ng(x)[g(x)]n1

Suppose we want to find the derivative of

f(x)=(x32x2x)3

The derivative of the function is

f(x)=ng(x)[g(x)]n1=3(3x24x1)(x32x2x)2

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

f(x)=e2x33x21

This function is composed of the following two functions:

g(x)=exh(x)=2x33x21

The derivatives of these two functions are

g(x)=exh(x)=6x26x

Therefore, the derivative of f with the chain rule is

f(x)=h(x)g(h(x))=(6x26x)e2x33x21

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)eg(x)

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

f(x)=2x3+x

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

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

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

g(x)=2x=exln2(Recallelna=a)

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

m(x)=exn(x)=xln2

The derivatives of the functions m and n are

m(x)=exn(x)=ln2

So the derivatives of the function g and h are

g(x)=n(x)m(n(x))=ln2exln2=2xln2h(x)=3x2+1

Therefore, the derivative of f is

f(x)=h(x)g(h(x))=(3x2+1)2x3+xln2

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=ag(x)) is

f(x)=g(x)ag(x)lna

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

g(x)=x23g(x)=2x

Therefore, the derivative of f is

f(x)=g(x)ag(x)lna=2x10x23ln10

Here is the last one:

f(x)=ln(3x23)

As we found earlier, the components of f are

g(x)=lnxh(x)=3x23

The derivatives of the functions g and h are

g(x)=1xh(x)=6x

Therefore, the derivative is

f(x)=h(x)g(h(x))=6x13x23=2xx21

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

f(x)=ln(x43x2+2x1)

Since

g(x)=x43x2+2x1g(x)=4x36x+2

then the derivative of f is

f(x)=g(x)g(x)=4x36x+2x43x2+2x1

Want to try our built-in assessments?


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