When do I use the chain rule and when do I use the product rule in differentiation?

These are two really useful rules for differentiating functions. We use the chain rule when differentiating a 'function of a function', like f(g(x)) in general. We use the product rule when differentiating two functions multiplied together, like f(x)g(x) in general.

Take an example, f(x) = sin(3x). This is an example of a what is properly called a 'composite' function; basically a 'function of a function'. The two functions in this example are as follows: function one takes x and multiplies it by 3; function two takes the sine of the answer given by function one. We have to use the chain rule to differentiate these types of functions.

To the contrary, if the function in question was, say, f(x) = xcos(x), then it's time to use the product rule. This is because we have two separate functions multiplied together: 'x' takes x and does nothing (a nice simple function); 'cos(x)' takes the cosine of x. But note they're separate functions: one doesn't rely on the answer to the other!

MO
Answered by Michael O. Maths tutor

166837 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

How do I find the maximum/minimum of a function?


When I try to integrate by parts, I end up in an infinite loop. Why is this, and how do you stop?


How/when should I use the product rule for differentiation?


How do I choose which term do I differentiate/integrate when I am integrating by parts


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning