Product, Quotient and Chain Rules
You now know how to differentiate every function type in Advanced Maths — polynomial, exponential, logarithmic, trigonometric. This capstone lesson unlocks the rules for combining them: the product rule for $f \cdot g$, the quotient rule for $f/g$, and the chain rule for $f(g(x))$. Armed with all three, you can differentiate anything the HSC can throw at you — and find tangent and normal lines on any curve.
Every rule you've learned for differentiation was designed for a specific shape of function. But real-world functions mix shapes — distance times friction, voltage over resistance. Without using any formula, write your gut answers:
- If $y = f(x) \cdot g(x)$, is the derivative simply $f'(x) \cdot g'(x)$? Why or why not?
- What do you think the "chain rule" actually chains together?
- How would you find the equation of a tangent line at a specific point on a curve?
When two functions are combined, the way you differentiate depends on how they are combined. Three rules cover every case in Maths Advanced:
Product rule — for $f \cdot g$: the derivative is "derivative of first times second, plus first times derivative of second." Each factor takes a turn being differentiated while the other stays.
Quotient rule — for $f/g$: "lo d(hi) minus hi d(lo), over lo squared." The numerator is the product rule with a subtraction; the denominator is the bottom squared.
Chain rule — for $f(g(x))$: differentiate the outer function leaving the inside alone, then multiply by the derivative of the inside. Work outside in.
Key facts
- Product rule: $(fg)' = f'g + fg'$
- Quotient rule: $(f/g)' = (f'g - fg') / g^2$
- Chain rule: $[f(g(x))]' = f'(g(x)) \cdot g'(x)$
- Tangent slope $= f'(x_0)$; normal slope $= -1/f'(x_0)$
Concepts
- Why the product rule is not simply $f' \cdot g'$
- How to identify which rule applies from the structure of the function
- Why the chain rule requires multiplying by the inner derivative
- How tangent and normal lines are perpendicular to each other
Skills
- Differentiate mixed products, quotients, and composites of poly, trig, exp, log
- Apply multiple rules in a single problem (e.g. product + chain)
- Find equations of tangents and normals to any differentiable curve
- Locate stationary points and classify them using derivatives
The product of two functions does not differentiate to the product of their derivatives. Each function takes a turn being differentiated while the other holds still.
Memory aid: "derivative of first times second, plus first times derivative of second" — "the other one stays."
Always start by identifying $u = f(x)$ and $v = g(x)$, writing their derivatives, then substituting into $u'v + uv'$.
$y = x^2\sin x$: let $u = x^2$, $v = \sin x$. Then $u' = 2x$, $v' = \cos x$.
$y' = 2x\sin x + x^2\cos x$.
$y = e^x\ln x$: $u' = e^x$, $v' = \dfrac{1}{x}$.
$y' = e^x\ln x + e^x \cdot \dfrac{1}{x} = e^x\!\left(\ln x + \dfrac{1}{x}\right)$.
$y = x\cos(3x)$: $u = x$, $v = \cos(3x)$. Note: $v' = -3\sin(3x)$ (chain rule on the trig).
$y' = \cos(3x) + x \cdot (-3\sin(3x)) = \cos(3x) - 3x\sin(3x)$.
Product rule: $(fg)' = f'g + fg'$ — "derivative of first times second, plus first times derivative of second."; Step: label $u$ and $v$, find $u'$ and $v'$, substitute. Don't skip the labelling step.
Pause — copy the product rule $(fg)' = f'g + fg'$ — "derivative of first times second, plus first times derivative of second" — and the labelling method (always name $u$ and $v$ first) into your book.
Quick check: What is $\dfrac{d}{dx}[x\sin x]$?
We just saw the product rule $(fg)' = f'g + fg'$ for multiplied functions. That raises a question: when one function divides another, is there an analogous rule — and does the order of $f$ and $g$ matter? This card answers it → the quotient rule $\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}$, where order matters because of the subtraction in the numerator.
When one function divides another, the quotient rule handles the differentiation — with a crucial subtraction in the numerator and the denominator squared on the bottom.
Memory aid: "lo d(hi) minus hi d(lo), over lo squared" — or "derivative of top times bottom minus top times derivative of bottom, all over bottom squared."
$$y' = \frac{\cos x \cdot x^2 - \sin x \cdot 2x}{x^4} = \frac{x(x\cos x - 2\sin x)}{x^4} = \frac{x\cos x - 2\sin x}{x^3}$$
$$y' = \frac{e^x(x+1) - e^x \cdot 1}{(x+1)^2} = \frac{e^x(x+1-1)}{(x+1)^2} = \frac{xe^x}{(x+1)^2}$$ Factor $e^x$ from the numerator before simplifying — it almost always cancels or cleans up the expression.
Quotient rule: $\left(\dfrac{f}{g}\right)' = \dfrac{f'g - fg'}{g^2}$ — the order matters: it's subtraction, not addition.; Mnemonic: "lo d(hi) minus hi d(lo), over lo squared."
Pause — copy the quotient rule $\left(\dfrac{f}{g}\right)' = \dfrac{f'g - fg'}{g^2}$ and the mnemonic "lo d(hi) minus hi d(lo), over lo squared" into your book.
True or false: $\dfrac{d}{dx}\!\left[\dfrac{e^x}{x}\right] = \dfrac{e^x(x-1)}{x^2}$.
We just saw the product and quotient rules — both handle two functions side-by-side. That raises a question: what rule applies when one function is plugged inside another, such as $\ln(\cos x)$ or $e^{\sin x}$? This card answers it → the chain rule $[f(g(x))]' = f'(g(x)) \cdot g'(x)$: differentiate outside (leaving inside untouched), then multiply by the inside's derivative.
The chain rule applies whenever one function is plugged inside another — a composite. The key step is identifying what is "outside" and what is "inside," then multiplying the two derivatives.
Rule of thumb: differentiate the outer function (leaving the inside unchanged), then multiply by the derivative of the inside.
$y = \sin(e^x)$: outer $\sin(\square)$, inner $e^x$. $y' = \cos(e^x) \cdot e^x$.
$y = e^{\sin x}$: outer $e^{\square}$, inner $\sin x$. $y' = e^{\sin x} \cdot \cos x$.
$y = \ln(\cos x)$: outer $\ln(\square)$, inner $\cos x$. $y' = \dfrac{1}{\cos x} \cdot (-\sin x) = -\tan x$.
$y = \sqrt{\sin(2x)}$: outer $\sqrt{\square} = (\square)^{1/2}$, inner $\sin(2x)$. Note: $\sin(2x)$ is itself a composite — apply chain rule to it: inner derivative $= 2\cos(2x)$.
$y' = \dfrac{1}{2}[\sin(2x)]^{-1/2} \cdot 2\cos(2x) = \dfrac{\cos(2x)}{\sqrt{\sin(2x)}}$.
$y' = 2\sin(3x) \cdot \cos(3x) \cdot 3 = 6\sin(3x)\cos(3x) = 3\sin(6x)$.
(Used $2\sin A\cos A = \sin(2A)$ to simplify.)
Chain rule: $[f(g(x))]' = f'(g(x)) \cdot g'(x)$ — differentiate outside (leave inside alone), multiply by inside derivative.; $\ln(\cos x) \Rightarrow y' = -\tan x$ — worth memorising as a result.
Pause — copy the chain rule $[f(g(x))]' = f'(g(x)) \cdot g'(x)$ and the key result $\dfrac{d}{dx}\ln(\cos x) = -\tan x$ into your book.
Quick check: $\dfrac{d}{dx}[\ln(\cos x)] = ?$
We just saw the three differentiation rules — product, quotient, and chain — for computing $f'(x)$. That raises a question: once you have the derivative at a specific point, how do you write the equation of the tangent or normal line to the curve? This card answers it → evaluate $m_T = f'(x_0)$, then apply point-slope form $y - y_0 = m_T(x - x_0)$; for the normal use $m_N = -1/m_T$.
The derivative gives the exact slope of the curve at any point. Once you have the slope, writing the equation of the tangent or normal is just point-slope form.
At a point $(x_0, y_0)$ on a curve $y = f(x)$:
Tangent slope: $m_T = f'(x_0)$.
Normal slope: $m_N = -\dfrac{1}{m_T}$ (perpendicular — slopes multiply to $-1$).
Special cases: if $m_T = 0$, the tangent is horizontal ($y = y_0$) and the normal is vertical ($x = x_0$). If $m_T$ is undefined (rare in this course), tangent is vertical and normal is horizontal.
Tangent: $y - 0 = 1(x - 0)$ → $y = x$.
Normal: $m_N = -1$. Normal: $y = -x$.
Horizontal tangent at $\left(\dfrac{\pi}{2}, 0\right)$: equation $y = 0$.
Normal (vertical): $x = \dfrac{\pi}{2}$.
Tangent at $(x_0, y_0)$: find $m_T = f'(x_0)$, then use $y - y_0 = m_T(x-x_0)$.; Normal at $(x_0, y_0)$: $m_N = -1/m_T$, same point-slope form.
Pause — copy the tangent formula $y - y_0 = m_T(x-x_0)$ where $m_T = f'(x_0)$ and the normal slope $m_N = -1/m_T$ into your book.
Fill the blanks: For $y = x^2\cos x$, differentiating gives $y' = 2x\cos x - x^2\sin x$. At $x = \pi$: $y' = 2\pi(-1) - \pi^2(0) =$ . The gradient of the tangent at $x = \pi$ is . The normal slope is .
We just saw the tangent and normal method: differentiate to find $m_T$, then apply point-slope form. That raises a question: in HSC questions like $y = x^2e^{-x}$ or $y = \dfrac{\sin x}{1+\cos x}$, which rule do you reach for first — and how do you combine product, quotient, and chain in the right order? This card answers it → always identify the outermost structure first, apply that rule, then handle each component with its own rule.
The hardest HSC problems combine rules in a single expression. The strategy is always the same: identify the outermost structure first (product, quotient, or composition), apply the corresponding rule, then handle each component using its own rule.
Product rule: $u = x^2$, $v = e^{-x}$. Note: $v' = -e^{-x}$ (chain rule on $e^{-x}$).
$y' = 2x \cdot e^{-x} + x^2 \cdot (-e^{-x}) = xe^{-x}(2 - x)$.
Stationary points: $y' = 0$ when $x = 0$ or $x = 2$.
At $x = 0$: $y = 0$. At $x = 2$: $y = 4e^{-2}$.
$f = \sin x$, $f' = \cos x$, $g = 1 + \cos x$, $g' = -\sin x$.
$$y' = \frac{\cos x(1+\cos x) - \sin x(-\sin x)}{(1+\cos x)^2} = \frac{\cos x + \cos^2 x + \sin^2 x}{(1+\cos x)^2}$$ Use $\cos^2 x + \sin^2 x = 1$: $$= \frac{\cos x + 1}{(1+\cos x)^2} = \frac{1}{1+\cos x}$$ A beautiful simplification — always look for Pythagorean identity opportunities in trig derivatives.
1. Look at the outermost operation: $\times$, $\div$, or composition?
2. Apply the corresponding rule (product / quotient / chain).
3. Differentiate each component — check if chain rule is needed within.
4. Simplify: factor out common terms, apply trig identities if helpful.
5. Exam tip: simplify before differentiating where possible (log laws, trig identities).
Strategy: identify outermost structure (product/quotient/composite), apply that rule first.; $y = x^2 e^{-x}$: product rule gives $y' = xe^{-x}(2-x)$. Stationary at $x=0$ and $x=2$.
Pause — copy the strategy (identify outermost structure first, then apply product/quotient/chain) and the worked result $\dfrac{d}{dx}[x^2e^{-x}] = xe^{-x}(2-x)$ with stationary points at $x = 0$ and $x = 2$ into your book.
Teach to learn: Explain to a classmate the step-by-step strategy for differentiating $y = x^3\sin(2x)$ using the product rule. Include what you do with the chain rule part.
Worked examples · 3 problems
Differentiate $y = x^3\sin(2x)$. Show full working.
$u = x^3 \Rightarrow u' = 3x^2$
$v = \sin(2x) \Rightarrow v' = 2\cos(2x)$ (chain rule: outer $\sin$, inner $2x$, inner derivative $= 2$)
$y' = 3x^2\sin(2x) + x^3 \cdot 2\cos(2x)$
$y' = 3x^2\sin(2x) + 2x^3\cos(2x)$
$y' = x^2[3\sin(2x) + 2x\cos(2x)]$
Find the equation of the tangent to $y = \dfrac{\ln x}{\cos x}$ at $x = 1$.
$y(1) = \dfrac{\ln 1}{\cos 1} = \dfrac{0}{\cos 1} = 0$.
Point: $(1,\ 0)$.
$$y' = \frac{\dfrac{1}{x}\cos x - \ln x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos x / x + \ln x \sin x}{\cos^2 x}$$
$y'(1) = \dfrac{\cos 1 / 1 + 0}{\cos^2 1} = \dfrac{\cos 1}{\cos^2 1} = \dfrac{1}{\cos 1} = \sec 1$.
Tangent: $y - 0 = \sec 1 \cdot (x - 1)$, i.e. $y = (x-1)\sec 1$.
For $y = xe^{-x}$: (a) find the equation of the tangent at $x = 1$, (b) find the equation of the normal at $x = 1$, (c) find where the tangent meets the $x$-axis.
$y' = e^{-x} + x(-e^{-x}) = e^{-x}(1-x)$.
At $x = 1$: $m_T = e^{-1}(1-1) = 0$.
Part (b) Normal: $m_T = 0$ means vertical normal: $x = 1$.
Part (c) Where does $y = \dfrac{1}{e}$ meet the $x$-axis? The $x$-axis is $y = 0$. But $y = \dfrac{1}{e} \neq 0$ — the tangent is horizontal and never meets the $x$-axis. It is parallel to it.
Earlier you were asked whether $(fg)' = f'g'$. The answer is no — it's $f'g + fg'$. The product rule requires each factor to take a turn being differentiated. The chain rule "chains" the outer and inner derivatives by multiplying them. And finding a tangent just needs the derivative at the point as the slope, then point-slope form. Now compare with your original gut answers.
Five questions — one per rule plus a tangent/normal problem. Pick your answer, then rate your confidence.
Q1. $\dfrac{d}{dx}[x\sin x] = ?$
Q2. $\dfrac{d}{dx}\!\left[\dfrac{e^x}{x}\right] = ?$
Q3. $\dfrac{d}{dx}[\ln(\cos x)] = ?$
Q4. For $y = x^2\cos x$, the gradient at $x = \pi$ is:
Q5. The normal to $y = e^{2x}$ at $x = 0$ has equation:
SA 1. Differentiate the following, showing all steps:
(a) $y = x^3\sin(2x)$
(b) $y = \dfrac{\ln x}{\cos x}$
(2 marks each)
SA 2. Find the equation of the tangent to $y = xe^{-x}$ at the point where $x = 1$. Hence find where this tangent meets the $x$-axis. (4 marks)
SA 3. For the curve $y = x\ln x$ (where $x > 0$):
(a) Find $y'$ and $y''$.
(b) Show that the curve has no local maximum.
(c) Find the equation of the normal to the curve at $x = e$.
(5 marks)
📖 Comprehensive answers (click to reveal)
MC answers: Q1 B, Q2 A, Q3 B, Q4 D ($y' = 2x\cos x - x^2\sin x$; at $\pi$: $2\pi(-1) - \pi^2(0) = -2\pi$), Q5 B ($y' = 2e^{2x}$; at $x=0$: $m_T = 2$, $m_N = -\frac{1}{2}$, point $(0,1)$: $y = -\frac{1}{2}x + 1$).
SA 1 (4 marks):
(a) $y = x^3\sin(2x)$. Product rule: $u = x^3$, $u' = 3x^2$; $v = \sin(2x)$, $v' = 2\cos(2x)$ [chain rule]. $y' = 3x^2\sin(2x) + 2x^3\cos(2x)$ [2].
(b) $y = \dfrac{\ln x}{\cos x}$. Quotient rule: $f = \ln x$, $f' = \frac{1}{x}$; $g = \cos x$, $g' = -\sin x$. $y' = \dfrac{\frac{\cos x}{x} + \ln x\sin x}{\cos^2 x} = \dfrac{\cos x + x\ln x\sin x}{x\cos^2 x}$ [2].
SA 2 (4 marks):
$y' = e^{-x}(1-x)$ (product rule) [1]. At $x = 1$: $y = e^{-1}$, $y' = e^{-1}(0) = 0$ [1]. Horizontal tangent: $y = e^{-1}$ [1]. This tangent is parallel to the $x$-axis and never meets it (or state: it meets the $x$-axis at no finite point) [1].
Note: If students misread and calculate a non-zero gradient, accept their tangent equation if working is correct.
SA 3 (5 marks):
(a) $y = x\ln x$. Product rule: $y' = \ln x + x \cdot \frac{1}{x} = \ln x + 1$ [1]. $y'' = \frac{1}{x}$ [1].
(b) For a local maximum we need $y'' \leq 0$. Since $x > 0$, $y'' = \frac{1}{x} > 0$ for all $x > 0$ — the curve is concave up everywhere and there is no local maximum [1].
(c) At $x = e$: $y = e\ln e = e$. Point $(e, e)$ [0.5]. $y'(e) = \ln e + 1 = 2$. Normal slope: $m_N = -\frac{1}{2}$ [0.5]. Normal: $y - e = -\frac{1}{2}(x - e)$ → $y = -\frac{x}{2} + \frac{3e}{2}$ [1].
Five timed differentiation questions mixing all three rules. Gold tier: 90% + speed. This is your capstone battle — show everything you know.
⚔ Enter the arenaClimb platforms by answering product, quotient and chain rule questions. A lighter alternative to the boss — good for consolidation.
Mark lesson as complete
Tick when you've finished the practice and review.