Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
K12 LibreTexts

5.5: Chain Rule

( \newcommand{\kernel}{\mathrm{null}\,}\)

The Chain Rule enables us to differentiate a composite function f∘g. But why is there the need to have a special way to determine the derivative of a composite function? Intuitively, it is because the variation of the domain of f is now governed by the function g(x) rather than just by x, and g's rate of change with respect to x should somehow be taken into account. Before proceeding, see if you find effect of g by comparing the derivative of f(x)=x2 with the derivative of f(x)=(5x)2 where g(x)=5x.


The Chain Rule

We want to derive a rule for the derivative of a composite function of the form f∘g in terms of the derivatives of f and g. This rule would allow us to differentiate complicated functions in terms of known derivatives of simpler functions.

The rule that enables this is called the Chain Rule:

If g is a differentiable function at x, and f is differentiable at g(x), then the composition function f∘g=f(g(x)) is differentiable at x. The derivative of the composite function is:

(fg)(x)=f(g(x))g(x)

Or an equivalent statement:

If u=u(x) and f=f(u), then ddx[f(u)]=f(u)dudx

Or another equivalent statement:

If y is a function of u, and u is a function of x, then

dydx=dydududx

Apply the chain rule to find the derivative of f(x)=(2x34x2+5)2

Using the chain rule, let u=2x34x2+5. Then

ddx[(2x24x2+5)2]=ddx[u2]

=2ududx

=2(2x34x2+5)(6x28x)

The problem above is one of the most common types of composite functions. It is a power function of the type

y=[u(x)]n

The rule for differentiating such functions is special case of the Chain Rule called the General Power Rule:

If y=[u(x)]n, then dydx=n[u(x)]n1ddxu(x)


Examples

Example 1

Earlier, you were asked if you find the effect of g on the derivative by comparing the derivative of f(x)=x2 with the derivative of f(x)=(5x)2 where g(x)=5x. The derivative of f(x)=x2 is f′(x)=2x, and the derivative of f(x)=(5x)2 is f′(x)=2(5x)5=2x⋅25. The effect of g in the composite function is to modify the rate of change of f(x)=x2.

Example 2

What is the slope of the tangent line to the function y=x23x+2 that passes through point x=3?

We can write y=(x23x+2)12 This example illustrates the point that n can be any real number including fractions. Using the General Power Rule,

dydx=12(x23x+2)121(2x3)

=12(x23x+2)12(2x3)

=(2x3)2x23x+2

To find the slope of the tangent line, we simply substitute x=3 into the derivative:

dydx|x=3=2(3)32323(3)+2=322=324

Example 3

Find dydx for y=sin3x

The function can be written as y=[sinx]3. Thus

dydx=ddx[sinx]3

=3[sinx]2[cosx]

=3sinx2cosx

Example 4

Find dydx for y=[cos(πx2)]3

This example will show the application of the chain rule multiple times because there are several functions embedded within each other.

The function y can be written in the form

y=(u(w))3 where

u(w)=cos(w)

w(x)=πx2

Here are the steps for the solution:

dydx=ddx[u(w)3]

…Use u and w substitutions

=3u(w)2dudx

.…After using the General Power Rule

=3u(w)2(dudwdwdx)

…After using the Chain Rule for du/dx

=3u(w)2[sin(w)2πx]

…After evaluating dudw and dwdx

=3[cos(πx2)]2(sin(πx2)2πx)

…After substituting for u and w

=6πx[cos(πx2)]2sin(πx2)

.…After simplification.

Notice that we first used the General Power Rule and then used the Chain Rule, in the last step, we took the derivative of the argument.


Review

For #1-11, find f′(x).

  1. f(x)=(2x23x)39
  2. f(x)=(x35x2)3
  3. f(x)=13x26x+2
  4. f(x)=sin3x
  5. f(x)=sinx3
  6. f(x)=sin3x3
  7. f(x)=tan(4x5)
  8. f(x)=4xsin22x
  9. f(x)=sinxcos(3x2)
  10. f(x)=(5x+8)3(x3+7x)13
  11. f(x)=(x32x5)3
  12. Find dydx for y=5cos(3x21)
  13. Find the derivative of x3+x5+89
  14. Find the derivative of sin(sin(sin(x))).
  15. By definition, any function composed with its inverse is just the identity: f(f−1(x))=x. differentiate both sides of this equation and solve algebraically for the derivative of the inverse.

Review (Answers)

To see the Review answers, open this PDF file and look for section 3.8.


Vocabulary

Term Definition
chain rule The chain rule is the method for computing the derivative of a composite function. It states that for functions f(x) and g(x), (f∘g)′(x)=f′(g(x))g′(x).
composite function A composite function is a function h(x) formed by using the output of one function g(x) as the input of another function f(x). Composite functions are written in the form h(x)=f(g(x)) or h=f∘g.
derivative The derivative of a function is the slope of the line tangent to the function at a given point on the graph. Notations for derivative include f′(x), dy/dx, y′, df/dx and \frac{df(x)}{dx}.

Additional Resources

PLIX - Play, Learn, Interact, eXplore - Differentiation: Chain Rule

Video: Chain Rule Introduction

Practice: Chain Rule

Real World: Goodbye Waves


This page titled 5.5: Chain Rule is shared under a CK-12 license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform.

CK-12 Foundation
LICENSED UNDER
CK-12 Foundation is licensed under CK-12 Curriculum Materials License

Support Center

How can we help?