The Chain Rule

Check out my new book on sequences and series!

You can read it on your Kindle, iPad, or Android device.


Click to see Calculus Sequences and Series: Problems and Solutions

The chain rule is one of those tricky topics that you have to practice a lot to get right.  Basically it says that to take the derivative of a composite function f(g(x)), you take the derivate of f, take the derivative of g, and then multiply them in a special way: f'(g(x))g'(x).  It’s easiest to see with some examples.

What if we’re asked to find y' if y(x) = (2x-1)^5.  We might try multiplying 2x-1 times itself five times, but that’s tedious and boring.  Instead, let’s think of y(x) as the composition of the functions f(x) = x^5 and g(x) = 2x-1, so that y(x)=f(g(x)).  (Check to make sure you understand this last equation!)

If we write y like that, then the chain rule tells us that y'(x) = f'(g(x))g'(x).  So we have to find f' and g'.  But both of these are easy!  We know that the derivative of x^5 is 5x^4, and the derivative of 2x-1 is 2.  So, y'(x) = 5g(x)^4cdot 2 = 10(2x-1)^4.  Cool!

For a harder one, how about finding the derivative of \sin(\sin x).  Here we have the composition of two functions f(x)=\sin x and g(x)=\sin x.  The functions are the same!  Weird.  In any case, the derivative of \sin x is \cos x, so the derivative of f(g(x)) is \cos(\sin x) \cos x.

With practice, you can find the derivatives of complicated functions without naming f and g.  The way to do this is to differentiate the outer function, and then multiply by the derivative of the next inner function.