Tutorials › AP Calculus › Combining Product and Quotient Rules

Power, Polynomial, and Rational Rules · Tutorial 135 of 999

Combining Product and Quotient Rules

Learn how to organize product and quotient derivatives when one operation is nested inside another.

Intermediate 8 min read

What You'll Learn

  • Identify whether a product or quotient is the outermost operation.
  • Apply the product rule to a numerator or factor that is itself a product.
  • Apply the quotient rule when the denominator is nonzero.
  • Organize nested rules without omitting terms.
  • Check derivatives by expanding or rewriting the original expression.

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.

Key idea: Treat each whole factor, numerator, or denominator as a function. Differentiate the outermost product or quotient first, then differentiate any factor or numerator that is itself a product or quotient.

The Rules and Their Conditions

If \(u\) and \(v\) are differentiable functions, their product is differentiable, and its derivative is

$$ (uv)'=u'v+uv'. $$

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

$$ \left(\frac{u}{v}\right)' = \frac{u'v-uv'}{v^2}. $$

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.

1
Read the structure.
Identify the largest product or quotient in the expression.
2
Apply its rule.
Name the whole factors, numerator, or denominator before differentiating them.
3
Work inward.
Use another product or quotient rule for any component that still has that structure.
4
Simplify and check.
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.

$$ \begin{aligned} y' &=u'v+uv'\\ &=(2x)(x^3-2x)+(x^2+1)(3x^2-2)\\ &=2x^4-4x^2+(3x^4+x^2-2)\\ &=5x^4-3x^2-2. \end{aligned} $$

Check by expanding the original expression first:

$$ y=x^5-2x^3+x^3-2x=x^5-x^3-2x, \qquad \frac{dy}{dx}=5x^4-3x^2-2. $$

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,

$$ \begin{aligned} N' &=1\cdot(x^2+1)+(x+1)(2x)\\ &=x^2+1+2x^2+2x\\ &=3x^2+2x+1, \qquad D'=1. \end{aligned} $$

Now use the quotient rule. The denominator \(D=x-1\) must be nonzero, which is why \(x=1\) is excluded.

$$ \begin{aligned} y' &=\frac{N'D-ND'}{D^2}\\ &=\frac{(3x^2+2x+1)(x-1)-(x+1)(x^2+1)}{(x-1)^2}\\ &=\frac{(3x^3-x^2-x-1)-(x^3+x^2+x+1)}{(x-1)^2}\\ &=\frac{2x^3-2x^2-2x-2}{(x-1)^2}. \end{aligned} $$

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

$$ y=x^2+2x+3+\frac{4}{x-1}, \qquad y'=2x+2-\frac{4}{(x-1)^2}. $$

Putting this checked derivative over the common denominator gives

$$ \begin{aligned} 2x+2-\frac{4}{(x-1)^2} &=\frac{(2x+2)(x-1)^2-4}{(x-1)^2}\\ &=\frac{(2x+2)(x^2-2x+1)-4}{(x-1)^2}\\ &=\frac{2x^3-2x^2-2x-2}{(x-1)^2}. \end{aligned} $$

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:

$$ \begin{aligned} u' &=\frac{(2x)(x+2)-(x^2+1)(1)}{(x+2)^2}\\ &=\frac{2x^2+4x-x^2-1}{(x+2)^2}\\ &=\frac{x^2+4x-1}{(x+2)^2}. \end{aligned} $$

Substitute \(u\), \(u'\), \(v\), and \(v'\) into the product rule:

$$ \begin{aligned} y' &=\frac{(x^2+4x-1)(x-1)}{(x+2)^2} +\frac{x^2+1}{x+2}\\ &=\frac{(x^2+4x-1)(x-1)+(x^2+1)(x+2)}{(x+2)^2}\\ &=\frac{(x^3+3x^2-5x+1)+(x^3+2x^2+x+2)}{(x+2)^2}\\ &=\frac{2x^3+5x^2-4x+3}{(x+2)^2}. \end{aligned} $$

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

$$ y=\frac{x^3-x^2+x-1}{x+2} =x^2-3x+7-\frac{15}{x+2}. $$

Differentiating this equivalent form gives

$$ y'=2x-3+\frac{15}{(x+2)^2} =\frac{(2x-3)(x+2)^2+15}{(x+2)^2} =\frac{2x^3+5x^2-4x+3}{(x+2)^2}. $$

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.

Derivation: Let \(N=fg\) and \(D=h\). The product rule gives \(N'=f'g+fg'\). Applying the quotient rule to \(N/D\) then gives
$$ \begin{aligned} \left(\frac{fg}{h}\right)' &=\frac{N'h-Nh'}{h^2}\\ &=\frac{(f'g+fg')h-fgh'}{h^2}. \end{aligned} $$

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:

$$ \text{Incorrect:}\qquad y'=\frac{2x(x+2)-(x^2+1)}{(x+2)^2}. $$

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:

$$ \begin{aligned} \big((x^2+1)(x-1)\big)' &=2x(x-1)+(x^2+1)\cdot 1\\ &=2x^2-2x+x^2+1\\ &=3x^2-2x+1. \end{aligned} $$

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.

  1. For \(y=(x^2-3)(x^3+x)\), what are the two factors to which the product rule applies?
  2. For \(y=\frac{(x+2)(x^2+1)}{x-3}\), what whole function should be treated as the numerator in the quotient rule?
  3. 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?
  4. Why must \(x=3\) be excluded from the domain of \(\frac{(x+2)(x^2+1)}{x-3}\)?
  5. In differentiating \(\frac{f(x)g(x)}{h(x)}\), what expression should replace the derivative of the numerator in the quotient rule?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon
Clinical Biostats