The Chain Rule (College Board AP® Calculus AB)

Revision Note

Jamie Wood

Expertise

Maths

Derivatives of composite functions

How do I differentiate composite functions?

  • Composite functions, of the form f open parentheses g open parentheses x close parentheses close parentheses can be differentiated using the chain rule

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

    • fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d x end fraction

  • Or in function notation, if h open parentheses x close parentheses equals f open parentheses g open parentheses x close parentheses close parentheses

    • h to the power of apostrophe open parentheses x close parentheses equals f to the power of apostrophe open parentheses g open parentheses x close parentheses close parentheses times g to the power of apostrophe open parentheses x close parentheses

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

    • E.g. fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d t end fraction cross times fraction numerator d t over denominator d r end fraction cross times fraction numerator d r over denominator d x end fraction

  • 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 fraction numerator d y over denominator d x end fraction

How do I use the chain rule?

  • This is easiest to demonstrate through an example

  • Using the chain rule in the form fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d x end fraction to differentiate y equals open parentheses 2 x cubed plus 4 x close parentheses to the power of 6

  • Substitute the "inside" function for u

    • u equals 2 x cubed plus 4 x

    • So now y equals u to the power of 6

  • Differentiate u with respect to x

    • fraction numerator d u over denominator d x end fraction equals 6 x squared plus 4

  • Differentiate y with respect to u

    • fraction numerator d y over denominator d u end fraction equals 6 u to the power of 5

  • Apply the chain rule which states fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d x end fraction

    • fraction numerator d y over denominator d x end fraction equals 6 u to the power of 5 cross times open parentheses 6 x squared plus 4 close parentheses

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

    • fraction numerator d y over denominator d x end fraction equals 6 open parentheses 2 x cubed plus 4 x close parentheses to the power of 5 open parentheses 6 x squared plus 4 close parentheses

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

    • E.g. To differentiate y equals open parentheses 2 x cubed plus 4 x close parentheses to the power of 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

      • fraction numerator d y over denominator d x end fraction equals 6 open parentheses 2 x cubed plus 4 x close parentheses to the power of 5 open parentheses 6 x squared plus 4 close parentheses

Worked Example

Differentiate the following functions.

(a) f open parentheses x close parentheses equals sin open parentheses 3 x to the power of 4 plus 5 x close parentheses

Answer:

Substitute the inside function for u

u equals 3 x to the power of 4 plus 5 x

y equals sin space u

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

fraction numerator d u over denominator d x end fraction equals 12 x cubed plus 5

fraction numerator d y over denominator d u end fraction equals cos space u

Apply the chain rule which states fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d x end fraction

fraction numerator d y over denominator d x end fraction equals cos space u times open parentheses 12 x cubed plus 5 close parentheses

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

fraction numerator d y over denominator d x end fraction equals cos open parentheses 3 x to the power of 4 plus 5 x close parentheses times open parentheses 12 x cubed plus 5 close parentheses

f to the power of apostrophe open parentheses x close parentheses equals open parentheses 12 x cubed plus 5 close parentheses cos open parentheses 3 x to the power of 4 plus 5 x close parentheses

(b) g open parentheses x close parentheses equals e to the power of tan space x end exponent

Answer:

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

u equals tan space x

y equals e to the power of u

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

fraction numerator d u over denominator d x end fraction equals sec squared space x

fraction numerator d y over denominator d u end fraction equals e to the power of u

Apply the chain rule which states fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d x end fraction

fraction numerator d y over denominator d x end fraction equals e to the power of u times sec squared space x

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

fraction numerator d y over denominator d x end fraction equals e to the power of tan space x end exponent times sec squared space x

f to the power of apostrophe open parentheses x close parentheses equals e to the power of tan space x end exponent space sec squared space 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 space open parentheses e to the power of 3 x squared plus 2 end exponent close parentheses or ln space open parentheses sin open parentheses 2 x cubed plus 3 x close parentheses close parentheses

    • 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 fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d v end fraction cross times fraction numerator d v over denominator d x end fraction

Worked Example

Differentiate the following functions.

(a) f open parentheses x close parentheses equals cos space x times e to the power of 4 x cubed plus 3 x squared plus 2 end exponent

Answer:

Applying the product rule

Let u equals cos space x and v equals e to the power of 4 x cubed plus 3 x squared plus 2 end exponent

Differentiate u

u to the power of apostrophe equals negative sin space 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 equals 4 x cubed plus 3 x squared plus 2, so v equals e to the power of w

fraction numerator d w over denominator d x end fraction equals 12 x squared plus 6 x and fraction numerator d v over denominator d w end fraction equals e to the power of w

table row cell fraction numerator d v over denominator d x end fraction end cell equals cell fraction numerator d v over denominator d w end fraction cross times fraction numerator d w over denominator d x end fraction end cell row cell fraction numerator d v over denominator d x end fraction end cell equals cell e to the power of w times open parentheses 12 x squared plus 6 x close parentheses end cell row cell v to the power of apostrophe end cell equals cell open parentheses 12 x squared plus 6 x close parentheses e to the power of 4 x cubed plus 3 x squared plus 2 end exponent end cell end table

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 apostrophe v plus u v apostrophe

f to the power of apostrophe open parentheses x close parentheses equals negative sin space x times e to the power of 4 x cubed plus 3 x squared plus 2 end exponent space plus space cos space x times open parentheses 12 x squared plus 6 x close parentheses e to the power of 4 x cubed plus 3 x squared plus 2 end exponent

This could be factorized

f to the power of apostrophe open parentheses x close parentheses equals e to the power of 4 x cubed plus 3 x squared plus 2 end exponent open parentheses open parentheses 12 x squared plus 6 x close parentheses cos space x space minus space sin space x close parentheses

(b) g open parentheses x close parentheses equals sin space open parentheses open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 5 close parentheses

Answer:

Make a substitution for the function inside the sin function

u equals open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 5 so y equals sin space 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 equals 3 x to the power of 4 plus 5 x squared so u equals v to the power of 5

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

fraction numerator d y over denominator d u end fraction equals cos space u

fraction numerator d u over denominator d v end fraction equals 5 v to the power of 4

fraction numerator d v over denominator d x end fraction equals 12 x cubed plus 10 x

Find an expression for fraction numerator d y over denominator d x end fraction involving these three derivatives

fraction numerator d y over denominator d x end fraction equals fraction numerator d y over denominator d u end fraction cross times fraction numerator d u over denominator d v end fraction cross times fraction numerator d v over denominator d x end fraction

Fill in the derivatives

fraction numerator d y over denominator d x end fraction equals cos space u times 5 v to the power of 4 times open parentheses 12 x cubed plus 10 x close parentheses

Substitute in u and v

fraction numerator d y over denominator d x end fraction equals cos open parentheses open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 5 close parentheses times 5 open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 4 times open parentheses 12 x cubed plus 10 x close parentheses

g to the power of apostrophe open parentheses x close parentheses equals 5 open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 4 open parentheses 12 x cubed plus 10 x close parentheses cos open parentheses open parentheses 3 x to the power of 4 plus 5 x squared close parentheses to the power of 5 close parentheses

You've read 0 of your 10 free revision notes

Unlock more, it's free!

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

the (exam) results speak for themselves:

Did this page help you?

Jamie Wood

Author: Jamie Wood

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.