In my decade of teaching IB Maths, I have seen a consistent pattern: students master individual differentiation rules, but when presented with a mix of functions, they often pause. The question that hangs in the air, unspoken but visible on their faces, is "Which rule do I use here?" It is a common point of confusion, and frankly, a completely understandable one.
Differentiation is fundamental to both IB Maths Analysis and Approaches (AA) and Applications and Interpretation (AI), at both Standard Level (SL) and Higher Level (HL). Whether you are exploring rates of change, optimisation problems, or curve sketching, you will encounter the need to differentiate complex functions. Today, I want to demystify the process of identifying when to apply the chain rule, the product rule, and the quotient rule. My goal is to give you a clear framework to approach any differentiation problem with confidence.
The Foundation: Understanding Basic Derivatives
Before we dive into the specific rules, let us quickly recap the basics. Differentiation is about finding the rate of change of a function. You have already learned how to differentiate simple power functions like $x^n$, trigonometric functions like $\sin(x)$ and $\cos(x)$, exponential functions like $e^x$, and logarithmic functions like $\ln(x)$. These are your building blocks.
For example, you know that if $f(x) = x^3$, then $f'(x) = 3x^2$. If $g(x) = \sin(x)$, then $g'(x) = \cos(x)$. These are straightforward. The complexity arises when functions are combined in specific ways: one function inside another, two functions multiplied together, or one function divided by another. That is when our three rules come into play.
The Chain Rule: For Functions Within Functions
The chain rule is your go-to rule when you have a composite function. Think of it as peeling an onion: you differentiate the "outer" function first, then multiply by the derivative of the "inner" function. In my classroom, I often describe it as differentiating from the outside in.
When to use it:
- When you see a function of a function, e.g., $\sin(x^2)$, $e^{2x+1}$, $(3x-5)^4$.
- If you can express your function as $y = f(g(x))$, then the chain rule applies.
The Formula:
If $y = f(g(x))$, then $\frac{dy}{dx} = f'(g(x)) \cdot g'(x)$.
Alternatively, if you let $u = g(x)$, then $y = f(u)$, and $\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$. This is how I usually teach it, as it breaks down the problem into smaller, more manageable steps.
Examples:
-
Let $y = (2x+1)^5$.
Here, the outer function is $(\text{something})^5$ and the inner function is $2x+1$.
Let $u = 2x+1$. Then $y = u^5$.
$\frac{dy}{du} = 5u^4$.
$\frac{du}{dx} = 2$.
Using the chain rule: $\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = (5u^4) \cdot (2) = 10u^4$.
Substitute $u$ back: $\frac{dy}{dx} = 10(2x+1)^4$.
-
Let $y = e^{\sin(x)}$.
Outer function: $e^{\text{something}}$. Inner function: $\sin(x)$.
Let $u = \sin(x)$. Then $y = e^u$.
$\frac{dy}{du} = e^u$.
$\frac{du}{dx} = \cos(x)$.
$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = e^u \cdot \cos(x)$.
Substitute $u$ back: $\frac{dy}{dx} = e^{\sin(x)} \cos(x)$.
Common Mistakes:
- Forgetting to multiply by the derivative of the inner function. Students often differentiate just the outer function and stop.
- Confusing it with the product rule (which we will cover next).
The Product Rule: For Functions Multiplied Together
The product rule is essential when you are differentiating a function that is clearly the result of two other distinct functions being multiplied together. I tell my students to look for the "times" sign, explicit or implied.
When to use it:
- When you have $y = u(x)v(x)$, where $u(x)$ and $v(x)$ are both functions of $x$.
- Examples: $x^2 \sin(x)$, $e^x \ln(x)$, $(x+1)(2x-3)^2$.
The Formula:
If $y = u v$, then $\frac{dy}{dx} = u'v + uv'$.
In words: "derivative of the first times the second, plus the first times the derivative of the second." The order of addition does not matter, but keeping track of which function is $u$ and which is $v$ is important.
Examples:
-
Let $y = x^2 \sin(x)$.
Let $u = x^2$ and $v = \sin(x)$.
Then $u' = 2x$ and $v' = \cos(x)$.
$\frac{dy}{dx} = u'v + uv' = (2x)(\sin(x)) + (x^2)(\cos(x))$.
$\frac{dy}{dx} = 2x\sin(x) + x^2\cos(x)$.
-
Let $y = e^x (3x-1)$.
Let $u = e^x$ and $v = 3x-1$.
Then $u' = e^x$ and $v' = 3$.
$\frac{dy}{dx} = u'v + uv' = (e^x)(3x-1) + (e^x)(3)$.
$\frac{dy}{dx} = e^x(3x-1+3) = e^x(3x+2)$.
Common Mistakes:
- Differentiating each part separately and multiplying the results, i.e., $(uv)' \ne u'v'$. This is the most frequent error I see.
- Forgetting one of the terms in the sum.
The Quotient Rule: For Functions Divided
The quotient rule is specifically for functions that are in the form of a fraction, where both the numerator and the denominator are functions of $x$. This rule often feels a bit more complex due to the subtraction and the squared denominator, but with practice, it becomes second nature.
When to use it:
- When you have $y = \frac{u(x)}{v(x)}$, where $u(x)$ and $v(x)$ are both functions of $x$.
- Examples: $\frac{\cos(x)}{x}$, $\frac{e^x}{x^2+1}$, $\frac{\ln(x)}{x^3}$.
The Formula:
If $y = \frac{u}{v}$, then $\frac{dy}{dx} = \frac{u'v - uv'}{v^2}$.
In words: "derivative of the top times the bottom, minus the top times the derivative of the bottom, all over the bottom squared." The order of subtraction in the numerator is critical here.
Examples:
-
Let $y = \frac{\sin(x)}{x}$.
Let $u = \sin(x)$ and $v = x$.
Then $u' = \cos(x)$ and $v' = 1$.
$\frac{dy}{dx} = \frac{u'v - uv'}{v^2} = \frac{(\cos(x))(x) - (\sin(x))(1)}{x^2}$.
$\frac{dy}{dx} = \frac{x\cos(x) - \sin(x)}{x^2}$.
-
Let $y = \frac{e^x}{x^2+1}$.
Let $u = e^x$ and $v = x^2+1$.
Then $u' = e^x$ and $v' = 2x$.
$\frac{dy}{dx} = \frac{u'v - uv'}{v^2} = \frac{(e^x)(x^2+1) - (e^x)(2x)}{(x^2+1)^2}$.
Factor out $e^x$ from the numerator: $\frac{dy}{dx} = \frac{e^x(x^2+1-2x)}{(x^2+1)^2} = \frac{e^x(x-1)^2}{(x^2+1)^2}$.
Common Mistakes:
- Incorrect order of subtraction in the numerator: $uv' - u'v$ instead of $u'v - uv'$. This will give you the wrong sign.
- Forgetting to square the denominator.
- Trying to apply the quotient rule when the denominator is just a constant (e.g., $\frac{x^2+1}{3}$). In such cases, treat it as $\frac{1}{3}(x^2+1)$ and differentiate using the constant multiple rule.
Putting It All Together: Identifying Which Rule to Use
Now for the big question: how do you know which rule to use? It boils down to function structure. My advice to my students is to always look at the 'big picture' first, then zoom in. You often need to use multiple rules in a single problem, and identifying the outermost structure is key.
"Is it a function inside another function? Are two functions multiplying? Or are they dividing?" This is the internal dialogue you should have when approaching any differentiation problem beyond the basics.
A Decision Tree for Differentiation:
- Is it a fraction with a function in the numerator AND denominator?
If yes, start with the Quotient Rule. As you find the derivatives of the numerator ($u'$) and denominator ($v'$), you might need other rules for those parts.
Example: $y = \frac{\sin(2x)}{e^x}$. You need the quotient rule first. For $u' = \frac{d}{dx}(\sin(2x))$, you will need the chain rule. For $v' = \frac{d}{dx}(e^x)$, it is a basic derivative.
- Are two functions multiplying each other?
If yes, use the Product Rule. Again, when finding $u'$ and $v'$, you might need the chain rule or other basic derivatives.
Example: $y = x^3 \cos(5x)$. You need the product rule first. For $u' = \frac{d}{dx}(x^3)$, it is basic. For $v' = \frac{d}{dx}(\cos(5x))$, you will need the chain rule.
- Is it a function "nested" inside another function (not a product or quotient of independent functions)?
If yes, apply the Chain Rule. This is often the case when you have powers of functions, exponentials of functions, or trig functions of functions.
Example: $y = (\ln(x^2+1))^3$. You need the chain rule multiple times here. Outermost: $(\text{something})^3$. Next: $\ln(\text{something})$. Innermost: $x^2+1$. This is where the iterative nature of the chain rule really shines.
- If none of the above, are there just sums or differences of basic functions?
If yes, differentiate term by term using your basic rules.
Example: $y = 3x^4 - 2\cos(x) + e^x$. This is simply $12x^3 + 2\sin(x) + e^x$.
Sometimes, a function might look like a quotient but can be rewritten as a product, making the product rule easier. For instance, $\frac{\ln(x)}{x}$ can be written as $\ln(x) \cdot x^{-1}$. Differentiating this with the product rule is often less error-prone than the quotient rule, especially for students who struggle with the quotient rule's specific order of subtraction. Similarly, $(2x+1)^5$ could be expanded and then differentiated term by term, but the chain rule is far more efficient.
My advice is always to simplify the function first if possible. Then, identify the primary operation. Is it multiplication? Division? Or is it a function of a function? Break it down. For more complex problems involving nested functions within products or quotients, you will often find yourself applying the chain rule within a product or quotient rule calculation. Practice with a range of problems from your study notes is the only way to solidify this intuition. Consider using flashcards to commit these formulas to memory, particularly the precise form of the quotient rule.
Conclusion
Mastering the chain, product, and quotient rules is a significant step in your IB Maths journey. These rules are not just formulas to memorise; they are tools for understanding how functions change. The key is to correctly identify the structure of the function you are differentiating. Practice is paramount. Work through examples, pay attention to detail, and do not be afraid to break down complex problems into smaller, manageable parts.
With consistent effort, you will develop the intuition to recognise when to apply each rule automatically. This skill will serve you well not only in your IB exams but also in any future studies involving calculus. Keep practicing, keep questioning, and you will build confidence in your differentiation abilities.
Want to actually drill this?
Every IB Maths topic on this page has a full practice engine at ibmathrevision.com — with AI grading trained on real IB mark schemes.
Get access →