Product, quotient and chain rules
The product, quotient and chain rules let us differentiate functions built by multiplying, dividing or composing simpler functions. The difficult part is often not the algebra. It is recognising the structure of the function and choosing the correct rule.
What you should know first
Section titled “What you should know first”You should be able to:
- differentiate powers, exponentials, logarithms and trigonometric functions;
- use function notation such as and ;
- simplify algebraic fractions and expressions with indices.
Review differentiating standard functions before continuing if any standard derivative is uncertain.
Choosing the correct rule
Section titled “Choosing the correct rule”Look at the main operation holding the function together.
| Structure | Example | Rule |
|---|---|---|
| Two variable expressions multiplied | Product rule | |
| One variable expression divided by another | Quotient rule | |
| One function placed inside another | Chain rule |
A function may contain more than one structure. For example,
has a product on the outside and a composite function, , inside it. We need the product rule and the chain rule.
Before selecting a rule, simplify if doing so removes unnecessary work. For example,
so its derivative is simply on its domain. The quotient rule would work, but it is needlessly long.
The product rule
Section titled “The product rule”If
then
Equivalently,
Differentiate each factor in turn while leaving the other unchanged. Both terms are essential.
Example 1: polynomial multiplied by an exponential
Section titled “Example 1: polynomial multiplied by an exponential”Differentiate
Choose
Then
Apply the product rule:
The first line after substitution is already a correct derivative. Factoring is useful if the result will later be set equal to zero.
Example 2: polynomial multiplied by a trigonometric function
Section titled “Example 2: polynomial multiplied by a trigonometric function”Differentiate
Let and . Therefore and .
The negative derivative of is a frequent source of sign errors.
Example 3: three factors
Section titled “Example 3: three factors”For , apply the product rule repeatedly:
For example, if
then
Each term differentiates exactly one factor and leaves the other two unchanged.
The quotient rule
Section titled “The quotient rule”If
then
A useful memory pattern is:
The order in the numerator matters. It is denominator times derivative of numerator, minus numerator times derivative of denominator.
Example 4: rational function
Section titled “Example 4: rational function”Differentiate
Set
so and . Then
The derivative is defined only where the original function is defined, so .
Example 5: trigonometric quotient
Section titled “Example 5: trigonometric quotient”Differentiate
Take and . Then and .
An alternative is to write and use the product rule. Both methods give the same result.
The chain rule
Section titled “The chain rule”A composite function has one function inside another. If
then
In words, differentiate the outside function while keeping the inside unchanged, then multiply by the derivative of the inside.
Using an intermediate variable makes the logic visible. If and , then
This notation behaves like cancellation, but the chain rule is the mathematical justification.
Example 6: a power of a linear expression
Section titled “Example 6: a power of a linear expression”Differentiate
The outside function is seventh power and the inside function is .
The factor is the derivative of the inside. Omitting it is the most common chain rule error.
Example 7: trigonometric composition
Section titled “Example 7: trigonometric composition”Differentiate
Keep unchanged while differentiating the outside sine:
Example 8: exponential composition
Section titled “Example 8: exponential composition”If
then
The exponential is unchanged because the derivative of with respect to is .
Example 9: logarithmic composition
Section titled “Example 9: logarithmic composition”Differentiate
Since ,
For real values, the original logarithm also requires .
Example 10: more than one chain
Section titled “Example 10: more than one chain”Differentiate
Work from the outside inward:
There are two inside derivatives: first , then .
Combining the rules
Section titled “Combining the rules”Identify the outermost structure first. That choice determines the first line of the derivative.
Example 11: product rule with a chain rule
Section titled “Example 11: product rule with a chain rule”Differentiate
The outermost structure is a product. Let and .
Therefore
Example 12: quotient rule with chain rules
Section titled “Example 12: quotient rule with chain rules”Differentiate
Use and . Then
Hence
Rewriting as and using the product rule is equally valid and often shorter.
Example 13: chain rule outside a quotient
Section titled “Example 13: chain rule outside a quotient”Differentiate
The outermost structure is fifth power. Let
First apply the chain rule:
Now use the quotient rule on :
Therefore
This example shows why the outermost structure matters. Starting with the quotient rule would treat the whole numerator and denominator as fifth powers and create much more algebra.
Efficient choices and checking
Section titled “Efficient choices and checking”Several forms can represent the same function, so more than one method may be correct.
- Expand before differentiating if expansion is quick.
- Rewrite as to use the chain rule.
- Rewrite as if the product rule looks cleaner.
- Keep factors unexpanded when a later question asks for stationary points.
You can check a derivative by:
- checking that every composite function contributed its inside derivative;
- checking quotient signs and the squared denominator;
- estimating the gradient numerically at one convenient value;
- differentiating an algebraically equivalent form by another method.
For instance,
gives
The negative sign also makes sense because decreases on each interval of its domain.
Common misconceptions
Section titled “Common misconceptions”Multiplying the derivatives in a product
Section titled “Multiplying the derivatives in a product”It is false that
For example, has derivative , while . Use .
Dividing the derivatives in a quotient
Section titled “Dividing the derivatives in a quotient”It is false that
Use , or rewrite the quotient using a negative power.
Reversing the quotient numerator
Section titled “Reversing the quotient numerator”The numerator is , not . Reversing it changes the sign of the answer.
Forgetting the inside derivative
Section titled “Forgetting the inside derivative”The derivative of is
not merely .
Applying a rule to the wrong structure
Section titled “Applying a rule to the wrong structure”is a sum, so differentiate term by term. is a composition, so use the chain rule. Brackets and function notation reveal the difference.
Expanding too early
Section titled “Expanding too early”Expansion can hide helpful factors and introduce errors. Decide whether expanded or factorised form better serves the next part of the problem.
Understanding checks
Section titled “Understanding checks”Try these before reading the answers.
- Differentiate .
- Differentiate .
- Differentiate .
- Differentiate .
- Differentiate .
- Differentiate .
- Differentiate .
Answers
Section titled “Answers”Use the product rule:
Use the quotient rule:
Use the chain rule:
Use the chain rule twice:
Use the product rule outside and the chain rule inside:
Use the quotient rule and chain rule:
Use the chain rule outside. Since
we get
What to learn next
Section titled “What to learn next”These rules are used throughout calculus. Continue to implicit differentiation to differentiate relations in which is not isolated, then study stationary points and curve sketching to use derivatives for analysing graphs.
You will also need these techniques in tangents and normals, parametric differentiation and connected rates of change.