Why the Order of the Rules Matters
A complicated derivative can be difficult not because any one rule is unfamiliar, but because several rules are nested together. An expression may be a quotient whose numerator is a product, or a product with a quotient as one of its factors. In either case, the derivative depends on identifying the expression’s structure before beginning the algebra.
The guiding principle is to start with the outermost operation: the final addition, multiplication, quotient, or composition that combines the main pieces of the expression. Apply its derivative rule first. Then differentiate the pieces required by that rule, using their own structure to choose the next rule.
The Rules Needed for a Mixed Sequence
Suppose \(u\), \(v\), and \(w\) are differentiable functions of \(x\). The product rule is
It applies when the expression is a product. Both terms are required: the first differentiates the first factor, and the second differentiates the second factor.
When \(w(x)\ne 0\), the quotient rule is
The numerator is a difference, and the order matters: the first term is \(u'w\), and the second is \(uw'\). The denominator is squared. In applying this rule, \(u\) and \(w\) may themselves be products, quotients, or composite functions. Their derivatives must be found using the corresponding rules.
The chain rule is needed when a function is composed with another function. If \(F\) is differentiable at \(g(x)\) and \(g\) is differentiable at \(x\), then
For example, differentiating \((x^2+4)^2\) requires the chain rule: its derivative is \(2(x^2+4)(2x)\), not just \(2(x^2+4)\).
A Sequence for Mixed Products and Quotients
Before differentiating, rewrite the expression with clear parentheses. Then identify whether its outermost operation is a product or quotient. The choice determines the first rule; the structure of each factor or numerator and denominator determines the next rules.
Use parentheses to separate the main factors or the numerator and denominator.
For a product, write both product-rule terms. For a quotient, write the full quotient-rule numerator and squared denominator.
Use product, quotient, or chain rules for any component that needs further differentiation.
Keep parentheses until substitutions are complete, simplify carefully, and compare with a direct evaluation of the rule-based expression when useful.
This procedure does not mean that every visible operation must be differentiated separately in the same order. It means that each derivative rule is selected according to the structure of the function being differentiated. In particular, the quotient rule requires the derivatives of both its numerator and denominator; if the numerator is a product, its derivative must include both product-rule terms.
Why the Nested Rule Sequence Works
Consider a function written as a product divided by another function:
First regard the whole numerator as one function, \(N(x)=u(x)v(x)\). The quotient rule gives \(y'=(N'w-Nw')/w^2\). Since the numerator is a product of differentiable functions, the product rule gives \(N'=u'v+uv'\). Substituting that result into the quotient rule yields
This derives the mixed formula by applying the quotient rule to the outer quotient and the product rule to its numerator. The conditions are that \(u\), \(v\), and \(w\) are differentiable at the point under consideration and \(w\ne 0\) there. If any of \(u\), \(v\), or \(w\) contains a composite expression, its derivative must also satisfy the conditions of the chain rule.
Worked Example: A Product in the Numerator
Worked Example: A Product in the Numerator
Differentiate
The outermost operation is a quotient. Set \(N=(x^2+1)(x-1)\) and \(D=x+1\). The quotient rule requires \(N'\) and \(D'\). The numerator \(N\) is a product, so apply the product rule:
Now apply the quotient rule, preserving the order of its numerator terms:
To simplify, expand each product:
Subtracting the second expression from the first gives \(2x^3+2x^2-2x+2\). Therefore,
Check at \(x=0\). The unsimplified quotient-rule calculation has \(N(0)=-1\), \(N'(0)=1\), \(D(0)=1\), and \(D'(0)=1\), so it gives \((1\cdot1-(-1)\cdot1)/1^2=2\). The simplified formula gives \(2/1=2\) as well.
Worked Example: A Composite Denominator and a Product Numerator
Worked Example: A Composite Denominator and a Product Numerator
Differentiate
The outermost operation is a quotient. Let \(N=(x^2+1)(2x-3)\) and \(D=x^2+4\). Apply the product rule to \(N\). The derivatives of the factors are \(2x\) and \(2\), respectively:
For the denominator, the chain rule gives \(D'=2(x^2+4)(2x)/(2(x^2+4))\), or, directly by differentiating the sum, \(D'=2x\). Thus the quotient rule gives
Expand the first product:
The numerator product in the second term is \((x^2+1)(2x-3)=2x^3-3x^2+2x-3\). Multiplication by \(2x\) gives
Subtracting gives \(2x^4+22x^2-18x+8\), so
Check at \(x=0\). In the quotient-rule expression, \(N'(0)=2\), \(D(0)=4\), \(N(0)=-3\), and \(D'(0)=0\). Hence \(y'(0)=(2\cdot4-(-3)\cdot0)/16=1/2\). The simplified expression also gives \(8/16=1/2\).
Worked Example: A Quotient Inside a Product
Worked Example: A Quotient Inside a Product
Differentiate
Here the outermost operation is a product. Write \(f=x^2+1\) and \(g=(2x-1)/(x^2+3)\). The product rule requires both \(f'\) and \(g'\), with \(f'=2x\). The second factor is a quotient, so apply the quotient rule to it:
Now use the product rule:
Expand the first numerator term:
Expand the second:
The sum is \(2x^4+16x^2-4x+6\). Therefore,
Check at \(x=0\). The product-rule expression gives \(2(0)g(0)+(1)g'(0)\). Since \(g'(0)=6/9=2/3\), this is \(2/3\). The simplified result gives \(6/9=2/3\).
A Common Pitfall: Replacing a Required Derivative
In the first example, the quotient rule requires the term \(N'D\), not \(ND\). A tempting but incorrect calculation is
This calculation incorrectly replaces \(N'D\) with \(ND\). The denominator-derivative term is not missing: since \(D'=1\), the subtracted term \(-ND'\) is exactly \(-N\), which is present. What is wrong is the first term: it uses \(N\) instead of \(N'\). The correct numerator is
Keeping \(N'\), \(D\), \(N\), and \(D'\) visibly labelled until substitution is complete helps prevent this error. Also retain parentheses around the entire quotient-rule numerator; subtracting a product means that every term in that product is subtracted.
Why These Sequences Are Useful
Mixed expressions appear naturally when functions are built from simpler functions. A quotient can have a product as its numerator, and a product can have a quotient as a factor. Organizing the derivative by operation makes the calculation traceable: each term has a reason for being there, and each inner derivative can be checked separately.
Before simplifying a result, check that every required derivative has appeared. In a product, there should be one term for differentiating each factor. In a quotient, the numerator should have the form \(u'w-uw'\), and the denominator should be \(w^2\). If the derivative of a composite expression is needed, its inner derivative must also be included. These checks address the structure of the calculation before algebraic simplification can obscure it.
Check Your Understanding
For each question, identify the outermost operation before deciding which derivative rule to apply.
- For \(y=\frac{(x^2+2)(x-3)}{x+4}\), what is the outermost operation, and which inner expression requires the product rule?
- State the quotient-rule numerator for \(y=\frac{u(x)v(x)}{w(x)}\), including the order of its terms.
- For \(y=(x^2+1)\frac{x+2}{x^2+5}\), which rule applies first, and which rule is then needed to differentiate the second factor?
- In the quotient rule, why must the denominator be squared?
- For \(y=\frac{(x^2+1)(2x-1)}{x+3}\), identify the four quantities that must be substituted into the quotient rule.