Tutorials › AP Calculus › Products with Three or More Factors

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

Products with Three or More Factors

Apply the product rule repeatedly to differentiate a product with any finite number of polynomial factors.

Intermediate 9 min read

What You'll Learn

  • Write the derivative of a product of three or more factors as a sum.
  • Keep every factor unchanged except the one differentiated in each term.
  • Extend the three-factor rule to any finite number of polynomial factors.
  • Check a factored derivative by expanding the original product.
  • Recognize and correct missing-term errors.

Why Products Need More Than One Product-Rule Step

A polynomial may be written as a product of simpler polynomial factors. For two factors, the product rule says that if \(u\) and \(v\) are differentiable, then \((uv)'=u'v+uv'\). With three or more factors, the same idea applies repeatedly: each term accounts for one factor changing while all the other factors remain in place.

This matters because a product of several factors is not differentiated by differentiating every factor simultaneously. Instead, the derivative is a sum. The number of terms in that sum matches the number of factors, and each term has exactly one differentiated factor.

Key rule: To differentiate a product of \(n\) differentiable functions, make one term for each factor. In that term, differentiate that factor and leave all the other factors unchanged.

The Rule for Three Factors

Let \(f\), \(g\), and \(h\) be differentiable functions. Apply the product rule first to the product \((fg)h\). The derivative of \(fg\) is \(f'g+fg'\), so the result is:

$$ \frac{d}{dx}(fgh) =(f'g+fg')h+(fg)h' =f'gh+fg'h+fgh'. $$

There are three terms, one for each factor. In the first, \(f\) is differentiated; in the second, \(g\) is differentiated; and in the third, \(h\) is differentiated. The order of the factors is preserved in every term.

Three-factor product rule: If \(f\), \(g\), and \(h\) are differentiable, then $$ (fgh)'=f'gh+fg'h+fgh'. $$

Worked Example: Differentiating Three Linear Factors

Worked Example: Differentiating Three Linear Factors

Differentiate \(P(x)=(x+1)(x-2)(x+3)\). Label the factors \(f=x+1\), \(g=x-2\), and \(h=x+3\). Their derivatives are \(f'=1\), \(g'=1\), and \(h'=1\).

Use the three-factor rule, differentiating one factor in each term:

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

Now simplify each product:

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

Adding the three results gives:

$$ P'(x)=3x^2+4x-5. $$

Check by expanding \(P\) first. Since \((x-2)(x+3)=x^2+x-6\),

$$ \begin{aligned} P(x)&=(x+1)(x^2+x-6)\\ &=x^3+2x^2-5x-6, \end{aligned} $$

so differentiating the expanded polynomial gives \(P'(x)=3x^2+4x-5\), matching the result from the product rule.

Products with Four or More Factors

The same pattern continues when there are more factors. For four differentiable functions, regard the product as \((fgh)k\) and apply the two-factor product rule. The derivative of \(fgh\) already has three terms; multiplying those by \(k\), then adding the term where \(k\) is differentiated, gives four terms.

$$ (fghk)'=f'ghk+fg'hk+fgh'k+fghk'. $$

In general, for differentiable functions \(f_1,f_2,\ldots,f_n\), the derivative is a sum of \(n\) terms. The \(i\)-th term contains \(f_i'\) in place of \(f_i\), with every other factor unchanged.

General product rule: For differentiable functions \(f_1,f_2,\ldots,f_n\), $$ \frac{d}{dx}\left(\prod_{i=1}^{n}f_i(x)\right) = \sum_{i=1}^{n} \left(f_i'(x)\prod_{\substack{j=1\\j\ne i}}^{n}f_j(x)\right). $$ Each term differentiates exactly one factor. The remaining factors are multiplied together unchanged.

This compact notation is a precise version of the “one factor at a time” instruction. For example, if \(n=4\), the sum has four terms. The condition \(j\ne i\) means that the factor with index \(i\) is left out of the unchanged product because it has been differentiated.

Why the General Rule Works

The general rule follows by induction from the ordinary two-factor product rule. Induction means proving a starting case and then showing that if the statement holds for a product of \(n\) factors, it also holds for a product of \(n+1\) factors.

1
Start with one factor.
For \(n=1\), the derivative of \(f_1\) is \(f_1'\). This is exactly the one-term formula.
2
Assume the rule for \(n\) factors.
Let \(F=f_1f_2\cdots f_n\), and assume \(F'=\sum_{i=1}^{n} f_i'\prod_{j\ne i,\,1\le j\le n}f_j\).
3
Add one more factor.
For a further differentiable function \(f_{n+1}\), use the two-factor product rule on \(Ff_{n+1}\): \((Ff_{n+1})'=F'f_{n+1}+Ff_{n+1}'\).
4
Substitute the assumed formula.
The term \(F'f_{n+1}\) gives the first \(n\) terms, each with the additional unchanged factor \(f_{n+1}\). The term \(Ff_{n+1}'\) gives the final term, where only \(f_{n+1}\) is differentiated.

More explicitly, substituting the induction assumption yields:

$$ \begin{aligned} (Ff_{n+1})' &=\left(\sum_{i=1}^{n} f_i'\prod_{\substack{j=1\\j\ne i}}^{n}f_j\right)f_{n+1} +\left(\prod_{j=1}^{n}f_j\right)f_{n+1}'\\ &=\sum_{i=1}^{n} f_i'\prod_{\substack{j=1\\j\ne i}}^{n+1}f_j +f_{n+1}'\prod_{j=1}^{n}f_j. \end{aligned} $$

The sum on the last line contains the terms for differentiating factors \(1\) through \(n\); the final term differentiates factor \(n+1\). Together they are exactly the stated formula for \(n+1\) factors. Since the rule holds for one factor and each case implies the next, it holds for every positive integer \(n\).

Worked Example: Four Factors

Worked Example: Four Factors

Differentiate \(Q(x)=(x-1)(x+1)(x+2)(x-2)\). The derivative of each linear factor is \(1\), so the four-factor rule gives:

$$ \begin{aligned} Q'(x)={}&(x+1)(x+2)(x-2)\\ &+(x-1)(x+2)(x-2)\\ &+(x-1)(x+1)(x-2)\\ &+(x-1)(x+1)(x+2). \end{aligned} $$

Simplify each term, keeping track of its sign and powers:

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

Adding like terms, the cubic terms total \(4x^3\), the quadratic terms cancel, the linear terms total \(-10x\), and the constants cancel. Therefore \(Q'(x)=4x^3-10x\).

Check by multiplying the original factors in pairs:

$$ Q(x)=(x^2-1)(x^2-4)=x^4-5x^2+4, \qquad Q'(x)=4x^3-10x. $$

This agrees with the four-term calculation.

Worked Example: A Factor with a Nonconstant Derivative

Worked Example: A Factor with a Nonconstant Derivative

Differentiate \(R(x)=(2x-1)(x^2+1)(x-3)\). Name the factors \(f=2x-1\), \(g=x^2+1\), and \(h=x-3\). Their derivatives are \(f'=2\), \(g'=2x\), and \(h'=1\). Thus:

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

Simplify each term separately:

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

Adding the terms gives:

$$ R'(x)=(2+4+2)x^3+(-6-14-1)x^2+(2+6+2)x+(-6-1) =8x^3-21x^2+10x-7. $$

Check by expanding \(R\). First, \((2x-1)(x^2+1)=2x^3-x^2+2x-1\). Then:

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

Differentiating this polynomial gives \(8x^3-21x^2+10x-7\), confirming the result.

A Common Mistake: Leaving Out a Term

With three factors, a frequent error is to differentiate the first and last factors but forget the middle one. For \(P(x)=(x+1)(x+2)(x+3)\), that incomplete calculation would be:

$$ P'_{\text{wrong}}(x)=(x+2)(x+3)+(x+1)(x+2). $$

It omits the term \((x+1)(x+3)\), which comes from differentiating the middle factor. At \(x=0\), the incorrect expression gives \(2\cdot3+1\cdot2=8\). The correct rule gives:

$$ P'(0)=(2)(3)+(1)(3)+(1)(2)=6+3+2=11. $$

As a check, expanding \(P(x)\) gives \(x^3+6x^2+11x+6\), whose derivative at \(0\) is also \(11\). To avoid this mistake, count the factors before writing the derivative: a product of \(n\) factors must produce \(n\) terms.

Using the Rule Efficiently

For a factored polynomial, keeping the derivative in product-rule form can be useful. It often avoids expanding a large product, and it makes clear which factor contributed each term. If a final answer needs to be simplified, expand or combine terms only after the complete derivative has been written.

  • List the factors in their original order.
  • Find the derivative of each factor.
  • Write one term for each factor, differentiating that factor alone.
  • Check that every other factor appears unchanged in that term.
  • Simplify and, when practical, verify by expanding the original product.

If one factor is a constant, its derivative is zero, so the term corresponding to that factor contributes zero. The other terms still follow the same pattern. The rule also requires each factor to be differentiable at the input values under consideration; polynomial factors are differentiable for every real \(x\).

Check Your Understanding

For each question, write enough work to show how the factors and terms are accounted for.

  1. Write the product-rule expression for the derivative of \((x-2)(x+1)(x+4)\), before simplifying.
  2. How many terms should appear when differentiating a product of six differentiable factors?
  3. Differentiate \((x+2)(x^2-1)(x-1)\) using the three-factor rule.
  4. Explain why the derivative of \(fghk\) has four terms rather than one term containing \(f'g'h'k'\).
  5. Differentiate \((3x+1)(x-2)(x+5)\), and check your result by expanding the original product.

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