Why the Order of the Operations Matters
Some algebraic expressions contain both products and quotients. For example, the numerator of a fraction may itself be a product, or a quotient may be one factor in a larger product. To differentiate such an expression reliably, first identify its outermost operation: the final multiplication or division that combines its pieces. Apply the rule for that operation, then differentiate any pieces that still require a product or quotient rule.
This method is an organized use of rules you already know. It does not require a new derivative formula for every possible arrangement. Instead, the product rule and quotient rule can be applied successively, with each intermediate derivative written clearly.
The Rules and Their Conditions
If \(u\) and \(v\) are differentiable functions, their product is differentiable, and its derivative is
Both terms are necessary: the first accounts for the change in \(u\), and the second accounts for the change in \(v\).
If \(u\) and \(v\) are differentiable and \(v(x)\ne 0\), their quotient is differentiable at \(x\), with derivative
The quotient formula applies only where the denominator is nonzero. For a formula to hold on an interval, the functions involved must be differentiable there and the denominator must remain nonzero there. In the examples below, derivatives of polynomial factors are found using the power, constant-multiple, and sum rules.
Start with the Outermost Operation
Parentheses and the main fraction bar reveal the structure. In \(\frac{(x^2+1)(x-1)}{x+2}\), the outermost operation is division: the entire numerator is divided by \(x+2\). The numerator, considered as one function, is itself a product. Thus the quotient rule comes first, and the product rule is needed to find the numerator’s derivative.
In \(\left(\frac{x^2+1}{x+2}\right)(x-1)\), the outermost operation is multiplication. The quotient rule is needed to differentiate the first factor. Although these two expressions have the same value, their displayed structures suggest different orders of calculation. Either order can work if each rule is applied to the correct whole function.
Identify the largest product or quotient in the expression.
Name the whole factors, numerator, or denominator before differentiating them.
Use another product or quotient rule for any component that still has that structure.
Combine terms carefully, then compare with an equivalent form when one is available.
Worked Example: A Product of Two Polynomials
Worked Example: Differentiate a polynomial product
Differentiate \(y=(x^2+1)(x^3-2x)\). The outermost operation is multiplication. Set \(u=x^2+1\) and \(v=x^3-2x\). Then \(u'=2x\), and \(v'=3x^2-2\), by the power and sum rules.
Check by expanding the original expression first:
The expanded form gives the same derivative, so the product-rule calculation checks.
A Quotient Whose Numerator Is a Product
For a quotient with a product in its numerator, call the entire numerator \(N\), rather than treating only one of its factors as the numerator. First find \(N'\) using the product rule; then use \(N\) and \(N'\) in the quotient rule.
Worked Example: Apply the product rule inside a quotient
Differentiate \(y=\frac{(x+1)(x^2+1)}{x-1}\), where \(x\ne 1\). Set \(N=(x+1)(x^2+1)\) and \(D=x-1\). The outermost operation is division. By the product rule,
Now use the quotient rule. The denominator \(D=x-1\) must be nonzero, which is why \(x=1\) is excluded.
For a check, expand the numerator of the original fraction: \((x+1)(x^2+1)=x^3+x^2+x+1\). Division by \(x-1\) gives
Putting this checked derivative over the common denominator gives
This agrees with the quotient-rule result.
A Product Containing a Quotient
When the whole expression is a product but one factor is a quotient, use the product rule for the outer operation. Then find the derivative of the quotient factor. Keeping the quotient intact while differentiating the product helps make the structure visible.
Worked Example: Apply the quotient rule inside a product
Differentiate \(y=\left(\frac{x^2+1}{x+2}\right)(x-1)\), where \(x\ne -2\). Set \(u=\frac{x^2+1}{x+2}\) and \(v=x-1\). The outermost operation is multiplication, so \(y'=u'v+uv'\). First, \(v'=1\). For \(u'\), apply the quotient rule:
Substitute \(u\), \(u'\), \(v\), and \(v'\) into the product rule:
Check by combining the original expression into one quotient and dividing its numerator: \((x^2+1)(x-1)=x^3-x^2+x-1\), and
Differentiating this equivalent form gives
The check agrees, and both forms are defined only when \(x\ne -2\).
Why the Rules Can Be Applied in Succession
The nested calculations are valid because the product and quotient rules apply to differentiable functions, not just to individual algebraic terms. In particular, if \(f\), \(g\), and \(h\) are differentiable and \(h(x)\ne 0\), the expression \(\frac{fg}{h}\) can be treated as a quotient with numerator \(fg\). The product rule gives the derivative of that whole numerator.
This derivation explains the order of operations: first differentiate the numerator as a product, then place that result into the quotient rule. The formula is valid at points where the three functions are differentiable and \(h\ne 0\). It is not a separate rule to memorize for every possible arrangement; it follows directly from the two rules.
A Common Mistake: Differentiating Only Part of the Numerator
Consider again \(y=\frac{(x^2+1)(x-1)}{x+2}\). A tempting but incorrect calculation is to differentiate \(x^2+1\) and put that derivative into the quotient rule while leaving the factor \(x-1\) untouched:
This treats \(x^2+1\) as though it were the entire numerator. The actual numerator is the product \((x^2+1)(x-1)\), so its derivative must include a term for the change in each factor:
For instance, at \(x=0\), the incorrect formula gives \(-\frac14\). The correct derivative from the product-inside-quotient calculation gives \(\frac{3}{4}\). The disagreement exposes the missing product-rule term. Before applying the quotient rule, always identify and differentiate the entire numerator.
Choosing a Reliable Approach
There may be more than one useful way to organize a derivative. You can sometimes simplify or expand an expression first, or you can apply the rules to its displayed structure. The central requirement is that each operation be handled correctly and that any simplification preserve the expression on the domain under consideration. A denominator that is zero still excludes that input, even if an algebraic rewrite appears to remove it.
- Mark the outermost multiplication or division.
- Use the product rule for a product; differentiate both factors.
- Use the quotient rule for a quotient; keep the order \(u'v-uv'\) in its numerator.
- If a factor or numerator has its own product or quotient structure, apply the corresponding rule to that whole component.
- State restrictions from denominators and check the result using an equivalent expression when practical.
These habits are useful because a complicated expression can be broken into a sequence of small, verifiable steps. On the AP exam, clear structure also makes it easier to spot omitted terms or a reversed subtraction before they affect the final answer.
Check Your Understanding
For each question, identify the outermost operation before carrying out any differentiation.
- For \(y=(x^2-3)(x^3+x)\), what are the two factors to which the product rule applies?
- For \(y=\frac{(x+2)(x^2+1)}{x-3}\), what whole function should be treated as the numerator in the quotient rule?
- For \(y=\left(\frac{x^2+4}{x+1}\right)(x^2-1)\), which rule applies first, and which rule is needed for the quotient factor?
- Why must \(x=3\) be excluded from the domain of \(\frac{(x+2)(x^2+1)}{x-3}\)?
- In differentiating \(\frac{f(x)g(x)}{h(x)}\), what expression should replace the derivative of the numerator in the quotient rule?