Section Navigation
Section Overview
This section masters the advanced toolkit of differentiation: the Chain, Product, and Quotient Rules. You will move beyond simple power functions to differentiate trigonometric, exponential, and logarithmic expressions, providing the mathematical engine for Paper 2 and Paper 3 modeling of periodic, growth, and decay phenomena.
Why This Matters for AIHL Exams
- Complex Functionality: Real-world AI HL models rarely use simple polynomials. You’ll need these rules to differentiate cost functions like $$\frac{e^x}{x}$$ or oscillation models like $$x\sin(x)$$.
- The “e” Advantage: Understanding why the derivative of $$e^x$$ is simply itself is a core conceptual requirement for modeling population growth and radioactive decay.
- Multi-Step Derivations: Paper 2 questions often require you to differentiate a complex quotient to find stationary points or optimize a rate of change.
High-Score Focus (Level 6–7 Insight)
- The “Inside” Function Oversight: In the Chain Rule, students frequently forget to multiply by the derivative of the inner function (e.g., differentiating $$\sin(2x)$$ as $$\cos(2x)$$ instead of $$2\cos(2x)$$). This is a fatal Level 5 error.
- Quotient Rule Order: The numerator of the Quotient Rule is $$v u’ – u v’$$. Reversing the order of subtraction results in a sign error that invalidates your subsequent optimization steps.
- Radians Only: All trigonometric calculus in the IB assumes $$x$$ is in radians. If you use degree mode on your GDC for these derivatives, your numerical answers will be incorrect.
By the End of This Section, You Should Be Able To:
Interpret the derivatives of $$\sin x$$, $$\cos x$$, and $$e^x$$ within physical models.
Suggested Study Path
|
Study MetricsCore: 50–70 mins Practice: 90–150 mins Exam Priority: ★★★★★ |
Â
Â
Chain Rule, Product/Quotient, and Beyond
Â
Differentiating Composites
Â
Consider the function \( y = (2x^2 – 5)^2 \). This function is differentiable for all real numbers \( x \in \mathbb{R} \).
Â
1. Expand the brackets to write \( y \) as a polynomial. Differentiate this resulting polynomial to find \( \displaystyle\frac{dy}{dx} \).
Â
2. Observe that \( y \) is a composite function. Let \( u(x) \) be the “inside” function, such that \( u(x) = 2x^2 – 5 \).
Â
- Write \( y \) as a function of \( u \).
- Find \( \displaystyle\frac{dy}{du} \) and \( \displaystyle\frac{du}{dx} \).
- Calculate the product \( \displaystyle\frac{dy}{du} \times \displaystyle\frac{du}{dx} \) in terms of \( x \).
Â
3. Compare your result from question 1 with your result from question 2c. What do you notice?
Â
Â
The Chain Rule
Â
The method used in the investigation above generalizes to all composite functions. When a function is “nested” inside another, we use the chain rule.
Â
Formula: The Chain Rule
Â
If \( y \) is a composite function where \( y = f(u) \) and \( u = g(x) \), then:
Â
$$ \frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} $$
Â
TOK: Invention or Discovery?
Â
If mathematics is a human creation, why do mathematical truths like the Chain Rule feel like objective facts rather than constructed rules?
Â
Does the fact that \( \displaystyle\frac{dy}{du} \times \displaystyle\frac{du}{dx} \) works (looking like fraction cancellation, though conceptually different) suggest an underlying logical structure to the universe that we simply uncover?
Â
Exam Tip
Treating the derivatives \( \displaystyle\frac{dy}{du} \) and \( \displaystyle\frac{du}{dx} \) like fractions is a useful memory aid. While they are not true fractions, this notation (Leibniz notation) helps visualize the “chain” connecting \( y \) to \( x \) via \( u \).
Â
Â
Worked Example
Â
Find the derivative of the following functions:
Â
a. \( y = \sqrt{3x^2 – 2} \)
b. \( f(x) = \displaystyle\frac{1}{2x+3} \)
Â
Solution
Â
a. Using the variable \( u \)
Â
Identify the inside function and call it \( u \).
Â
$$ u = 3x^2 – 2 \Rightarrow y = \sqrt{u} = u^{\frac{1}{2}} $$
Â
Differentiate \( y \) with respect to \( u \), and \( u \) with respect to \( x \).
Â
$$ \frac{dy}{du} = \frac{1}{2}u^{-\frac{1}{2}} \quad \text{and} \quad \frac{du}{dx} = 6x $$
Â
Apply the Chain Rule:
Â
$$ \frac{dy}{dx} = \frac{1}{2}u^{-\frac{1}{2}} \times 6x = \frac{3x}{\sqrt{3x^2 – 2}} $$
Â
b. Using function notation
Â
Identify the inner function \( u \) in the denominator.
Â
$$ u = 2x + 3, \quad f(u) = \frac{1}{u} = u^{-1} $$
Â
Find the derivatives:
Â
$$ \frac{du}{dx} = 2, \quad \frac{df}{du} = -u^{-2} = -\frac{1}{u^2} $$
Â
Combine using the chain rule:
Â
$$ f'(x) = \frac{df}{du} \times \frac{du}{dx} $$
Â
$$ f'(x) = -\frac{1}{u^2} \times 2 = -\frac{2}{(2x+3)^2} $$
Â
Â
The Product Rule
Â
When differentiating the product of two functions, \( uv \), we cannot simply differentiate them separately and multiply.
Â
For example, if \( y = 5x \times x^3 = 5x^4 \), we know \( \displaystyle\frac{dy}{dx} = 20x^3 \).
Â
However, \( \displaystyle\frac{d(5x)}{dx} \times \displaystyle\frac{d(x^3)}{dx} = 5 \times 3x^2 = 15x^2 \). This is clearly incorrect. We need a specific rule.
Â
Â
Formula: The Product Rule
Â
If \( y = uv \) where \( u \) and \( v \) are differentiable functions of \( x \), then:
Â
$$ \frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx} $$
Â
Â
Worked Example
Â
Use the product rule to find \( f'(x) \) if \( f(x) = (x^2 + 2x)(\frac{1}{x} + 3) \).
Â
Solution
Â
Define \( u(x) \) and \( v(x) \) and find their individual derivatives.
Â
$$ \text{Let } u(x) = x^2 + 2x \Rightarrow u'(x) = 2x + 2 $$
Â
$$ \text{Let } v(x) = \frac{1}{x} + 3 = x^{-1} + 3 \Rightarrow v'(x) = -x^{-2} = -\frac{1}{x^2} $$
Â
Apply the product rule formula: \( u v’ + v u’ \).
Â
$$ f'(x) = (x^2 + 2x)\left(-\frac{1}{x^2}\right) + \left(\frac{1}{x} + 3\right)(2x + 2) $$
Â
Expand and simplify:
Â
$$ f'(x) = \left(-1 – \frac{2}{x}\right) + \left(2 + \frac{2}{x} + 6x + 6\right) = 6x + 7 $$
Â
Â
Worked Example
Â
Find the derivative of \( y = (x^2 – 4)^2(x^3 – 1)^4 \).
Â
Solution
Â
This problem requires both the chain rule (to differentiate the individual parts) and the product rule (to combine them).
Â
First, find \( \displaystyle\frac{du}{dx} \) and \( \displaystyle\frac{dv}{dx} \) using the chain rule.
Â
$$ u = (x^2 – 4)^2 \Rightarrow \frac{du}{dx} = 2(x^2-4)(2x) = 4x(x^2-4) $$
Â
$$ v = (x^3 – 1)^4 \Rightarrow \frac{dv}{dx} = 4(x^3-1)^3(3x^2) = 12x^2(x^3-1)^3 $$
Â
Now, apply the product rule \( \displaystyle\frac{dy}{dx} = u\displaystyle\frac{dv}{dx} + v\displaystyle\frac{du}{dx} \).
Â
$$ \frac{dy}{dx} = (x^2-4)^2 [12x^2(x^3-1)^3] + (x^3-1)^4 [4x(x^2-4)] $$
Â
To simplify, factor out the common terms: \( 4x(x^2-4)(x^3-1)^3 \).
Â
$$ \frac{dy}{dx} = 4x(x^2-4)(x^3-1)^3 \left[ 3x(x^2-4) + (x^3-1) \right] $$
Â
$$ = 4x(x^2-4)(x^3-1)^3 (3x^3 – 12x + x^3 – 1) $$
Â
$$ = 4x(x^2-4)(x^3-1)^3 (4x^3 – 12x – 1) $$
Â
Â
The Quotient Rule
Â
Definition/Formula: The Quotient Rule
Â
If \( u \) and \( v \) are differentiable functions of \( x \) and if \( y = \displaystyle\frac{u}{v} \), then:
Â
$$ \frac{dy}{dx} = \frac{v \frac{du}{dx} – u \frac{dv}{dx}}{v^2} $$
Â
for \( v(x) \neq 0 \). This formula is provided in your formula booklet.
Â
TOK: Reasoning in Mathematics
Â
We often discover rules by observing patterns (inductive reasoning), but in mathematics, these rules must be proven to be universally true (deductive reasoning).
Â
What is the difference between inductive and deductive reasoning? Why is a proof required for a rule like the quotient rule to be accepted as mathematical fact?
Â
Worked Example
Â
Consider the function \( y = \displaystyle\frac{x^2 + 3}{x + 1} \) for \( x \neq -1 \).
a. Find \( \displaystyle\frac{dy}{dx} \).
b. Find the equation of the normal to the curve at the point \( (-2, -7) \).
Â
Solution
Â
Part a: Applying the Quotient Rule
Â
First, identify the numerator as \( u \) and the denominator as \( v \):
Â
$$ u = x^2 + 3 \quad \Rightarrow \quad \displaystyle\frac{du}{dx} = 2x $$
Â
$$ v = x + 1 \quad \Rightarrow \quad \displaystyle\frac{dv}{dx} = 1 $$
Â
Substitute these into the quotient rule formula:
Â
$$ \frac{dy}{dx} = \frac{(x+1)(2x) – (x^2+3)(1)}{(x+1)^2} $$
Â
Expand the numerator and simplify:
Â
$$ \frac{dy}{dx} = \frac{2x^2 + 2x – x^2 – 3}{(x+1)^2} $$
Â
$$ \frac{dy}{dx} = \frac{x^2 + 2x – 3}{(x+1)^2} $$
Â
Part b: Equation of the Normal
Â
To find the gradient of the tangent, substitute \( x = -2 \) into the derivative found in part a:
Â
$$ m_{\text{tangent}} = \frac{(-2)^2 + 2(-2) – 3}{(-2+1)^2} $$
Â
$$ m_{\text{tangent}} = \frac{4 – 4 – 3}{(-1)^2} = \frac{-3}{1} = -3 $$
Â
The gradient of the normal is the negative reciprocal of the tangent gradient:
Â
$$ m_{\text{normal}} = -\frac{1}{-3} = \frac{1}{3} $$
Â
Using the point-slope form \( y – y_1 = m(x – x_1) \) with the point \( (-2, -7) \):
Â
$$ y – (-7) = \frac{1}{3}(x – (-2)) $$
Â
$$ y + 7 = \frac{1}{3}x + \frac{2}{3} $$
Â
$$ y = \frac{1}{3}x – \frac{19}{3} $$
Â
Exam Tip
Â
It is important to select the most efficient technique.
Â
- Avoid rearranging a quotient into a product (e.g., \( y = (x^2+3)(x+1)^{-1} \)) unless you are confident manipulating negative indices. The quotient rule naturally provides a common denominator, which is often useful for later parts of a question (like finding stationary points).
Â
- However, if the numerator is a constant (e.g., \( y = \displaystyle\frac{2}{x^2+3} \)), you should use the Chain Rule by rewriting it as \( y = 2(x^2+3)^{-1} \), as this is faster than the quotient rule.
Â
Â
Derivatives of Trigonometric Functions
Â
Key Idea: Investigation
Â
If you graph the function \( y = \sin x \) and estimate the gradient of the tangent at various points, you will observe a pattern:
Â
- At \( x=0 \), the gradient is 1.
- At \( x=\frac{\pi}{2} \), the gradient is 0.
- At \( x=\pi \), the gradient is -1.
Â
If you plot these gradient values, they form the curve of \( y = \cos x \). This leads us to the standard derivatives for trigonometric functions.
Â
Definition/Formula: Trigonometric Derivatives
Â
For \( x \) in radians:
Â
- If \( f(x) = \sin x \), then \( f'(x) = \cos x \)
- If \( f(x) = \cos x \), then \( f'(x) = -\sin x \)
- If \( f(x) = \tan x \), then \( f'(x) = \displaystyle\frac{1}{\cos^2 x} \) (or \( \sec^2 x \))
Â
Note: When differentiating trigonometric functions, angles must always be in radians.
Â
TOK: Intuition vs Rigour
Â
Euler made significant advances in analysis using intuition before calculus was placed on a solid theoretical foundation by Cauchy and others. Some work was simply not possible until the rigorous definitions of limits were established.
Â
What does this suggest about the roles of intuition and imagination in mathematics compared to strict logical proof?
Â
Worked Example
Â
Use the chain rule to find the derivative of:
a. \( y = \sin(2x) \)
b. \( y = \cos(4t) \)
Â
Solution
Â
Part a
Â
Let \( u = 2x \), so \( y = \sin u \).
Â
Differentiating these parts:
Â
$$ \frac{du}{dx} = 2, \quad \frac{dy}{du} = \cos u $$
Â
Using the chain rule \( \frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} \):
Â
$$ \frac{dy}{dx} = (\cos 2x) \times 2 = 2\cos(2x) $$
Â
Part b
Â
Let \( u = 4t \), so \( y = \cos u \).
Â
Differentiating gives:
Â
$$ \frac{du}{dt} = 4, \quad \frac{dy}{du} = -\sin u $$
Using the chain rule:
Â
$$ \frac{dy}{dt} = (-\sin 4t) \times 4 = -4\sin(4t) $$
Â
Exam Tip
Â
These forms appear so frequently that it is useful to learn the general standard results:
Â
- \( \displaystyle\frac{d}{dx}(\sin(ax)) = a\cos(ax) \)
- \( \displaystyle\frac{d}{dx}(\cos(ax)) = -a\sin(ax) \)
Â
Worked Example
Â
Find the derivative of \( y = \displaystyle\frac{\cos x}{x^2} \).
Â
Solution
Â
Since this is a fraction involving functions of \( x \), we use the Quotient Rule.
Â
Identify \( u \) and \( v \):
Â
$$ u = \cos x \quad \Rightarrow \quad \frac{du}{dx} = -\sin x $$
Â
$$ v = x^2 \quad \Rightarrow \quad \frac{dv}{dx} = 2x $$
Â
Apply the formula \( \displaystyle\frac{dy}{dx} = \frac{v u’ – u v’}{v^2} \):
Â
$$ \frac{dy}{dx} = \frac{(x^2)(-\sin x) – (\cos x)(2x)}{(x^2)^2} $$
Â
Simplify the expression. We can factorize \( -x \) from the numerator:
Â
$$ \frac{dy}{dx} = \frac{-x^2\sin x – 2x\cos x}{x^4} $$
Â
$$ \frac{dy}{dx} = \frac{-x(x\sin x + 2\cos x)}{x^4} $$
Â
$$ \frac{dy}{dx} = -\frac{x\sin x + 2\cos x}{x^3} $$
Â
Â
Â
Exponential and Logarithmic Functions
Â
Key Idea: The Special Number e
Â
If you graph \( y = 2^x \) and \( y = 3^x \), you will find that the derivative of \( 2^x \) is slightly lower than the function itself, while the derivative of \( 3^x \) is slightly higher.
Â
There exists a unique number between 2 and 3, called \( e \) \( (\approx 2.718) \), where the function and its derivative are identical.
Â
Definition/Formula: Exp & Log Derivatives
Â
- If \( f(x) = e^x \), then \( f'(x) = e^x \)
- If \( f(x) = \ln x \), then \( f'(x) = \frac{1}{x} \)
Â
Using the chain rule, a common general form is \( \displaystyle\frac{d}{dx}(e^{ax}) = ae^{ax} \).
Â
Â
Worked Example
Â
Find the derivative of:
a. \( y = x \ln x \)
b. \( f(x) = \sin(\ln x) \)
Â
Solution
Â
Part a:
This is a product of two functions \( u = x \) and \( v = \ln x \).
Â
$$ \frac{du}{dx} = 1, \quad \frac{dv}{dx} = \frac{1}{x} $$
Â
Apply the Product Rule \( (uv’ + vu’) \):
Â
$$ \frac{dy}{dx} = x\left(\frac{1}{x}\right) + (\ln x)(1) = 1 + \ln x $$
Â
Part b:
This is a composite function requiring the Chain Rule.
Â
Let \( u = \ln x \), so \( f(u) = \sin u \).
Â
$$ \frac{du}{dx} = \frac{1}{x}, \quad \frac{df}{du} = \cos u $$
Â
Combine terms:
Â
$$ f'(x) = \cos(u) \times \frac{1}{x} = \frac{\cos(\ln x)}{x} $$
Â
Â
Worked Example
Â
Find the derivative of \( y = e^{4x} \) with respect to \( x \).
Â
Solution
Â
We can view this as a composite function and apply the Chain Rule.
Â
Let the exponent be the inner function \( u \):
Â
$$ u = 4x \quad \Rightarrow \quad \frac{du}{dx} = 4 $$
Now, \( y \) becomes a function of \( u \):
Â
$$ y = e^u \quad \Rightarrow \quad \frac{dy}{du} = e^u $$
Â
Apply the chain rule formula \( \displaystyle\frac{dy}{dx} = \displaystyle\frac{dy}{du} \times \displaystyle\frac{du}{dx} \):
Â
$$ \frac{dy}{dx} = e^u \times 4 $$
Â
Substitute \( u = 4x \) back into the expression:
Â
$$ \frac{dy}{dx} = 4e^{4x} $$
Â
Â
Exam Tip
Â
This result is a specific case of the general standard derivative:
Â
$$ \frac{d}{dx}(e^{kx}) = ke^{kx} $$
Â
You are expected to recognize and use this standard form directly in exams without writing out the full substitution steps every time.
Â
TOK: History and Notation
Â
Euler made significant advances in analysis using \( e \) and intuition before calculus was placed on a solid theoretical foundation by Cauchy. Some results were used successfully long before they were rigorously proven.
Does the effectiveness of a mathematical tool justify its use before we fully understand why it works?
Â
🎯 Examiner’s Radar: Advanced Differentiation Strategy
📋 Paper Mapping
- Paper 2 (Optimization): You will often need the Quotient Rule to find the derivative of a cost or surface area function. The examiner expects you to set $$f'(x) = 0$$ to find “exact” stationary points.
- Paper 3 (Complex Modeling): Expect “nested” functions (e.g., $$e^{-0.5t} \sin(2t)$$). This requires combining the Product Rule with the Chain Rule. Missing a single constant here invalidates the entire model.
💡 Scoring Secrets
- The “Show That” Trap: If a question says “Show that $$f'(x) = \dots$$”, you must write the unsimplified Quotient Rule formula with your $$u,\, v,\, u’,\, v’$$ substitutions first to earn the Method (M1) mark.
- GDC vs. Algebra: In Paper 2, if the question asks for the “rate of change at $$x=3$$”, use your GDC’s numerical derivative function ($$d/dx|_{x=3}$$) to save time and avoid algebraic errors.