Tutorials › Calculus I › Differentiating Products with Repeated Factors

Product, Quotient, and Chain Rules · Tutorial 476 of 1495

Differentiating Products with Repeated Factors

Treat each repeated factor as a separate factor, apply the product rule to every occurrence, and simplify the resulting derivative.

Intermediate 9 min read

What You'll Learn

  • Rewrite a product with repeated factors as a list of individual factors.
  • Apply the product rule to three or more factors by differentiating one factor at a time.
  • Explain why identical repeated factors produce matching derivative terms.
  • Combine terms carefully without losing a contribution.
  • Check a derivative by expanding the original expression and differentiating the polynomial.

Why Repeated Factors Need Care

A product such as \((x+1)^2(x-2)\) contains three factor occurrences: \(x+1\), \(x+1\), and \(x-2\). The two copies of \(x+1\) have the same formula, but they occupy separate places in the product. When differentiating, each place contributes a term.

The product rule for two differentiable functions says that \((uv)'=u'v+uv'\). For more factors, the same idea continues: differentiate one factor at a time, leave the other factors unchanged, and add the resulting terms. Repeated factors are a useful setting for seeing why every occurrence matters.

Key idea: In a product, count factor occurrences, not just distinct formulas. If the same factor appears twice, it contributes twice when the product rule is applied.

The Product Rule for Several Factors

Suppose \(f_1,f_2,\ldots,f_n\) are differentiable functions on an interval. Their product is differentiable, and its derivative is the sum of \(n\) terms. In the \(i\)th term, \(f_i\) is differentiated and every other factor is left unchanged.

$$ \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). $$

For three factors, this says to form three terms: differentiate the first factor, then the second, then the third. The other two factors remain as they were in each term.

$$ \frac{d}{dx}\bigl(f_1f_2f_3\bigr) = f_1'f_2f_3+f_1f_2'f_3+f_1f_2f_3'. $$

This formula applies when each factor is differentiable on the interval being considered. The notation does not require the factors to be different functions. If two or more factors are identical, each occurrence still gets its own term.

Why the Several-Factor Rule Works

The formula follows by repeatedly applying the two-factor product rule. Here is a proof for three factors, followed by the same reasoning for any finite number of factors.

1
Group the first two factors.
Write \(f_1f_2f_3\) as \((f_1f_2)f_3\). Since the factors are differentiable, their products are differentiable and the two-factor product rule applies.
2
Apply the product rule to the groups.
\((f_1f_2f_3)'=(f_1f_2)'f_3+(f_1f_2)f_3'\).
3
Expand the derivative of the first group.
Using \((f_1f_2)'=f_1'f_2+f_1f_2'\), obtain \(f_1'f_2f_3+f_1f_2'f_3+f_1f_2f_3'\).

For \(n\) factors, use induction. The formula is the two-factor product rule when \(n=2\). Suppose it holds for \(n\) factors and let \(P=f_1f_2\cdots f_n\). Then the product of \(n+1\) factors is \(P f_{n+1}\), so

$$ (Pf_{n+1})'=P'f_{n+1}+P f_{n+1}'. $$

By the induction assumption, \(P'\) is the sum of the \(n\) terms obtained by differentiating each of \(f_1,\ldots,f_n\) in turn. Multiplying that sum by \(f_{n+1}\) appends the unchanged last factor to each of those terms. The remaining term \(P f_{n+1}'\) differentiates the last factor and leaves the first \(n\) factors unchanged. These are exactly the \(n+1\) terms in the stated formula, proving it for every finite \(n\).

A Reliable Procedure

When differentiating a product with repeated factors, first write down every occurrence, even if several entries look alike. Then make one term for each occurrence: differentiate that factor and copy all the other factors unchanged. Only after all terms have been written should you combine identical terms or factor common expressions.

For example, the product \((x+1)^2(x-2)\) should initially be read as \((x+1)(x+1)(x-2)\), not as a list containing only two distinct formulas. There are three factor occurrences, so there will be three product-rule terms.

Worked Examples

Worked Example: Differentiate a Squared Factor Times a Linear Factor

Differentiate \(f(x)=(x+1)^2(x-2)\) by treating the repeated factor as two occurrences.

First write the product as \(f(x)=(x+1)(x+1)(x-2)\). The derivatives of the three factors are \(1\), \(1\), and \(1\). Applying the three-factor rule gives one term for each occurrence:

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

Check by expanding the original function:

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

Differentiating this polynomial gives \(3x^2-3\). The product-rule answer also gives \(3(x+1)(x-1)=3(x^2-1)=3x^2-3\), so the results agree.

Worked Example: A Repeated Linear Factor with a Nonunit Derivative

Differentiate \(g(x)=(2x-1)^2(x+3)\). Write the product as \((2x-1)(2x-1)(x+3)\). The derivatives of these factor occurrences are \(2\), \(2\), and \(1\), respectively.

$$ \begin{aligned} g'(x) &=2(2x-1)(x+3) +(2x-1)2(x+3) +(2x-1)^2\\ &=4(2x-1)(x+3)+(2x-1)^2\\ &=(2x-1)\bigl(4(x+3)+(2x-1)\bigr)\\ &=(2x-1)(4x+12+2x-1)\\ &=(2x-1)(6x+11). \end{aligned} $$

For a check, expand first:

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

Its derivative is \(12x^2+16x-11\). Expanding the product-rule answer gives \((2x-1)(6x+11)=12x^2+16x-11\), confirming the result. Notice that each occurrence of \(2x-1\) has derivative \(2\); the two matching contributions therefore add to \(4(2x-1)(x+3)\).

Worked Example: Two Different Repeated Factors

Differentiate \(h(x)=(x-1)^3(x+2)^2\). There are five factor occurrences: three copies of \(x-1\), followed by two copies of \(x+2\). Each linear factor has derivative \(1\).

Applying the product rule to all five occurrences gives three equal terms from differentiating a copy of \(x-1\), and two equal terms from differentiating a copy of \(x+2\):

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

Check by expanding the original function. First, \((x-1)^3=x^3-3x^2+3x-1\) and \((x+2)^2=x^2+4x+4\). Their product is

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

Therefore \(h'(x)=5x^4+4x^3-15x^2-2x+8\). Expanding the factored answer gives \((x^3-3x+2)(5x+4)=5x^4+4x^3-15x^2-2x+8\), as required.

What Repetition Does to the Terms

If the same differentiable factor \(u(x)\) appears \(m\) times, with another differentiable factor \(v(x)\), the product can be read as \(m\) separate copies of \(u\) followed by \(v\). Differentiating each copy in turn produces \(m\) identical contributions. Differentiating \(v\) produces one further term. Thus, for a positive integer \(m\), the product rule gives

$$ \frac{d}{dx}\bigl(u(x)^m v(x)\bigr) = m\,u(x)^{m-1}u'(x)v(x)+u(x)^m v'(x). $$

This formula is a consequence of counting the product-rule terms: there are \(m\) choices of a copy of \(u\) to differentiate, and each choice gives the same expression. It is valid wherever \(u\) and \(v\) are differentiable. It is not a reason to omit the individual contributions when first applying the product rule; writing those contributions out can help prevent errors.

A Common Mistake: Counting a Repeated Factor Only Once

For \(f(x)=(x+1)^2(x-2)\), an incorrect calculation might write only

$$ f'(x)=(x+1)(x-2)+(x+1)^2. $$

This differentiates one copy of \(x+1\), then differentiates \(x-2\), but it never differentiates the second copy of \(x+1\). The missing term is another \((x+1)(x-2)\). The corrected calculation is

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

A practical safeguard is to count the terms before simplifying. A product written as \(n\) factor occurrences must initially produce \(n\) product-rule terms. Some terms may be equal, but none should be discarded before they have been accounted for.

Why This Method Is Useful

Writing a product as its visible factors makes the product rule systematic, especially when a factor repeats several times. It shows exactly where each contribution comes from and makes the multiplicity of matching terms clear. The terms can then be combined or factored to make the final derivative easier to read.

When the original expression is a polynomial, expanding and differentiating provides a useful independent check, as in the examples. Expansion is not necessary for the product rule itself; it is simply one way to verify the simplified result. The essential habit is to preserve every factor occurrence until its derivative contribution has been included.

Check Your Understanding

For each question, keep track of factor occurrences before simplifying.

  1. How many product-rule terms arise from \((x-4)^3(x+1)\) before any terms are combined?
  2. Differentiate \((x+2)^2(x-1)\) by writing out its three factor occurrences.
  3. In differentiating \((3x+1)^2(x-2)\), what derivative belongs to each occurrence of \(3x+1\)?
  4. Why do three identical copies of \(u(x)\) in a product give three matching terms when one copy is differentiated at a time?
  5. Expand \((x+1)^2(x-2)\) and use the polynomial derivative to check the product-rule result.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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