The Chain Rule (College Board AP® Calculus BC): Revision Note

Jamie Wood

Written by: Jamie Wood

Reviewed by: Dan Finlay

Updated on

Derivatives of composite functions

How do I differentiate composite functions?

  • Composite functions, of the form f(g(x)) can be differentiated using the chain rule

  • The chain rule states that, if y=f(u) and u=g(x) (i.e. y is a function of u, and u is a function of x), then

    • dydx=dydu·dudx

  • Or in function notation, if h(x)=f(g(x))

    • h'(x)=f'(g(x))·g'(x)

  • It is called the chain rule as this idea can be extended in a longer 'chain'

    • E.g. dydx=dydu·dudt·dtdr·drdx

  • The terms are not really fractions (they are derivatives), but we can treat them in a similar way in this context

    • You should be able to spot how the terms on the right cancel to get dydx

Examiner Tips and Tricks

The proof of the formula for the chain rule is beyond the scope of this course.

How do I use the chain rule?

  • This is easiest to demonstrate through an example

  • Using the chain rule in the form dydx=dydu×dudx to differentiate y=(2x3+4x)6

  • Substitute the "inside" function for u

    • u=2x3+4x

    • So now y=u6

  • Differentiate u with respect to x

    • dudx=6x2+4

  • Differentiate y with respect to u

    • dydu=6u5

  • Apply the chain rule which states dydx=dydu×dudx

    • dydx=6u5·(6x2+4)

  • Substitute for u using the same substitution that was made at the start

    • dydx=6(2x3+4x)5(6x2+4)

  • After plenty of practice you may be able to skip several of these steps

    • E.g. To differentiate y=(2x3+4x)6,

      • Use the power as a coefficient, and reduce the power by 1 (as you would for powers of x)

      • Then multiply by the derivative of the inside function

      • dydx=6(2x3+4x)5(6x2+4)

Examiner Tips and Tricks

Be careful if you try to do the steps in your head. A common error that is frequently reported by chief readers is for students to forget to differentiate the inner functions.

For example, some students incorrectly differentiate sin(x2) as cos(x2). Here they have forgotten to multiply by the derivative of x2.

  • You might be given a table of values for two functions and their derivatives at a point

  • These questions test whether you fully understand the formula for the chain rule

Worked Example

 x

2

3

5

 f(x)

3

-5

1

 f'(x)

-1

7

-3

 g(x)

5

2

-4

 g'(x)

4

3

0

The functions  f and  g are differentiable. The table shown gives values of the functions and their first derivatives at x=2.

Let  h be the function defined by  h(x)=f(g(x)). Find  h'(2). Show the work that leads to your answer.

Answer:

Apply the chain rule to the function  h

 h'(x)=f'(g(x))·g'(x)

Substitute x=2

 h'(2)=f'(g(2))·g'(2)

Use the values in the table to substitute x=2 into g(x) and g'(x)

 h'(2)=f'(5)·4

Use the values in the table to substitute x=5 into  f'(x)

 h'(2)=(3)·4

 h'(2)=12

Worked Example

Find the derivatives of the following functions.

(a) f(x)=sin(3x4+5x)

(b) g(x)=etan x

Answer:

(a)

Substitute the inside function for u

u=3x4+5x

y=sin u

Differentiate u with respect to x and differentiate y with respect to u

dudx=12x3+5

dydu=cos u

Apply the chain rule which states dydx=dydu·dudx

dydx=cos u·(12x3+5)

Substitute for u using the same substitution that was made at the start

dydx=cos(3x4+5x)·(12x3+5)

f'(x)=(12x3+5)cos(3x4+5x)

(b)

Substitute the inside function for u (note here that tanx is 'inside' the exponential function)

u=tan x

y=eu

Differentiate u with respect to x and differentiate y with respect to u

dudx=sec2 x

dydu=eu

Apply the chain rule which states dydx=dydu·dudx

dydx=eu·sec2 x

Substitute for u using the same substitution that was made at the start

dydx=etan x·sec2 x

g'(x)=etan x sec2 x

How might chain rule questions be made more difficult?

  • The chain rule may be combined with other skills in more complex problems

    • When applying the quotient rule or product rule, one or both of the expressions may require the chain rule

    • Alternatively, when applying the chain rule, you may need to use the product or quotient rule

  • You may also encounter a function within a function within another function

    • E.g. sin (e3x2+2) or ln (sin(2x3+3x))

    • In this scenario you would have to apply the chain rule twice

    • This is the same as making two substitutions, for u and v, and using dydx=dydu·dudv·dvdx

Worked Example

Find the derivatives of the following functions.

(a) f(x)=cos x·e4x3+3x2+2

(b) g(x)=sin ((3x4+5x2)5)

Answer:

(a)

Applying the product rule

Let u=cos x and v=e4x3+3x2+2

Differentiate u

u'=sin x

To differentiate v, use the chain rule
It is a good idea to use a different letter for the substitution if you have already used u

Let w=4x3+3x2+2, so v=ew

dwdx=12x2+6x and dvdw=ew

dvdx=dvdw·dwdxdvdx=ew·(12x2+6x)v'=(12x2+6x)e4x3+3x2+2

This might be a chain rule application that you do not need to work out formally
The exponential term is simply multiplied by the derivative of the power

Apply the product rule, u'v+uv'

f'(x)=sin x·e4x3+3x2+2 + cos x·(12x2+6x)e4x3+3x2+2

This could be factored

f'(x)=e4x3+3x2+2((12x2+6x)cos x  sin x)

(b)

Make a substitution for the function inside the sin function

u=(3x4+5x2)5 so y=sin u

The function u requires the chain rule to be differentiate it
This might be a chain rule application that you do not need to work out formally, but we will show the full working for this example

Make another substitution, with a different letter, for the function inside u

v=3x4+5x2 so u=v5

Find the derivatives of the expressions which no longer require the chain rule

dydu=cos u

dudv=5v4

dvdx=12x3+10x

Find an expression for dydx involving these three derivatives

dydx=dydu·dudv·dvdx

Fill in the derivatives

dydx=cos u·5v4·(12x3+10x)

Substitute in u and v

dydx=cos((3x4+5x2)5)·5(3x4+5x2)4·(12x3+10x)

g'(x)=5(3x4+5x2)4(12x3+10x)cos((3x4+5x2)5)

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Jamie Wood

Author: Jamie Wood

Expertise: Curriculum Expert

Jamie graduated in 2014 from the University of Bristol with a degree in Electronic and Communications Engineering. He has worked as a teacher for 8 years, in secondary schools and in further education; teaching GCSE and A Level. He is passionate about helping students fulfil their potential through easy-to-use resources and high-quality questions and solutions.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.