Tutorials › Calculus I › Deriving the Product Rule for Three Factors

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

Deriving the Product Rule for Three Factors

Learn how to derive and apply the three-factor product rule, and why its three terms account for differentiating each factor once.

Intermediate 9 min read

What You'll Learn

  • Derive the three-factor product rule from the two-factor rule.
  • State the differentiability conditions needed for the formula.
  • Identify which factor is differentiated in each of the three terms.
  • Apply the formula to polynomial products and repeated factors.
  • Check a product derivative by expanding and differentiating directly.
  • Recognize and correct common errors in three-factor derivatives.

Why a Product of Three Factors Needs Three Terms

A product of three functions changes when any of its factors changes. Its derivative must therefore account for the change in the first factor, the change in the second factor, and the change in the third factor. The two-factor product rule gives a precise way to combine these contributions.

The goal here is to derive the formula rather than simply memorize it. The derivation uses the two-factor product rule twice: first for the product of the first two functions, and then for that product multiplied by the third function.

Key idea: In the derivative of a product of three differentiable functions, each term differentiates one factor and leaves the other two factors unchanged.

The Two-Factor Rule and the Required Conditions

We use the two-factor product rule: if \(u\) and \(v\) are differentiable on an interval \(I\), then their product \(uv\) is differentiable on \(I\), and

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

Here, the prime denotes differentiation with respect to \(x\). The rule applies to functions, not only to particular algebraic expressions, so we can use it with a product such as \(fg\) as one of the factors.

Conditions: Let \(f\), \(g\), and \(h\) be differentiable on the same interval \(I\). Then the three-factor product \(fgh\) is differentiable on \(I\), and the formula derived below holds for every \(x\in I\).

It is important that the functions be differentiable on the interval under consideration. The formula does not assert that a derivative exists at a point where one of the factors is not differentiable.

Deriving the Three-Factor Formula

Group the first two factors together. This lets us view the full product \(fgh\) as the product \((fg)h\). Apply the two-factor rule to those two factors:

$$ ((fg)h)'=(fg)'h+(fg)h'. $$

The expression still contains \((fg)'\). Since \(f\) and \(g\) are differentiable, apply the two-factor rule to their product:

$$ (fg)'=f'g+fg'. $$

Substitute this expression into the derivative of \((fg)h\), then distribute the factor \(h\):

$$ \begin{aligned} ((fg)h)' &=(f'g+fg')h+(fg)h'\\ &=f'gh+fg'h+fgh'. \end{aligned} $$

Since \((fg)h=fgh\), this establishes the three-factor product rule.

Theorem: If \(f\), \(g\), and \(h\) are differentiable on an interval \(I\), then, for every \(x\in I\),
$$ (fgh)'=f'gh+fg'h+fgh'. $$

This is a complete derivation from the two-factor product rule. The first application differentiates the grouped product \(fg\) or the factor \(h\); the second application expands the derivative of \(fg\). Together, the applications produce the three contributions.

Why Each Factor Is Differentiated Once

Read the terms from left to right. In \(f'gh\), the derivative is applied to \(f\), while \(g\) and \(h\) remain unchanged. In \(fg'h\), it is applied to \(g\). In \(fgh'\), it is applied to \(h\). Thus every term represents one factor changing while the other two are held in their original, undifferentiated forms.

This pattern is not a matter of writing down every possible combination of primes. There are exactly three terms because there are three factors, and each term contains exactly one differentiated factor. For example, \(f'g'h\) would differentiate two factors at once; it is not one of the contributions given by the product rule.

1
Differentiate the first factor.
Write \(f'gh\), keeping \(g\) and \(h\) unchanged.
2
Differentiate the second factor.
Write \(fg'h\), keeping \(f\) and \(h\) unchanged.
3
Differentiate the third factor.
Write \(fgh'\), keeping \(f\) and \(g\) unchanged.
4
Add the contributions.
The complete derivative is \(f'gh+fg'h+fgh'\).

Worked Examples

Worked Example: Differentiating Three Polynomial Factors

Find the derivative of \(y=(x^2+1)(2x-1)(x+3)\).

Set \(f=x^2+1\), \(g=2x-1\), and \(h=x+3\). Their derivatives are \(f'=2x\), \(g'=2\), and \(h'=1\). Apply the three-factor formula:

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

Expand each term. First, \((2x-1)(x+3)=2x^2+5x-3\), so the first term is \(4x^3+10x^2-6x\). For the second term, \((x^2+1)(x+3)=x^3+3x^2+x+3\), giving \(2x^3+6x^2+2x+6\). The third term is \(2x^3-x^2+2x-1\). Adding like terms gives

$$ y'=8x^3+15x^2-2x+5. $$

Check by expanding the original product. First, \((2x-1)(x+3)=2x^2+5x-3\). Therefore,

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

and direct differentiation gives \(y'=8x^3+15x^2-2x+5\), agreeing with the product-rule result.

Worked Example: Evaluating the Derivative at a Point

Let \(y=(x^2-2x+3)(x+1)(3x-1)\). Find \(y'(1)\) using the three-factor rule.

Write \(f=x^2-2x+3\), \(g=x+1\), and \(h=3x-1\). At \(x=1\), the factor values and derivative values are

$$ \begin{aligned} f(1)&=1-2+3=2, & f'(1)&=2(1)-2=0,\\ g(1)&=1+1=2, & g'(1)&=1,\\ h(1)&=3(1)-1=2, & h'(1)&=3. \end{aligned} $$

Substitute these values into \(y'=f'gh+fg'h+fgh'\):

$$ \begin{aligned} y'(1) &=f'(1)g(1)h(1)+f(1)g'(1)h(1)+f(1)g(1)h'(1)\\ &=(0)(2)(2)+(2)(1)(2)+(2)(2)(3)\\ &=0+4+12\\ &=16. \end{aligned} $$

To check, multiply the factors: \((x^2-2x+3)(x+1)=x^3-x^2+x+3\), and then

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

Differentiate this polynomial: \(y'=12x^3-12x^2+8x+8\). At \(x=1\), \(y'(1)=12-12+8+8=16\), as before.

Worked Example: Repeated Factors

Find the derivative of \(y=x^2\cdot x^2\cdot x^2\). Treat the three occurrences as the factors \(f=x^2\), \(g=x^2\), and \(h=x^2\). Each has derivative \(2x\). The rule gives

$$ \begin{aligned} y' &=(2x)(x^2)(x^2)+(x^2)(2x)(x^2)+(x^2)(x^2)(2x)\\ &=2x^5+2x^5+2x^5\\ &=6x^5. \end{aligned} $$

Since the original product is \(x^2x^2x^2=x^6\), direct differentiation gives \(y'=6x^5\). The check confirms the result. The repeated factors are still treated as three factor positions: the rule contributes one term for differentiating each position.

A Common Mistake: Differentiating All Factors at Once

A tempting but incorrect calculation is to differentiate each factor and multiply the results. For \(y=(x^2+1)(2x-1)(x+3)\), that mistake would give

$$ y' \mathrel{\not=} (2x)(2)(1)=4x. $$

This expression differentiates all three factors simultaneously and omits the cases in which only one factor changes. For example, at \(x=0\), the incorrect expression gives \(0\). But the correct formula gives

$$ \begin{aligned} y'(0) &=0\cdot(-1)\cdot3+1\cdot2\cdot3+1\cdot(-1)\cdot1\\ &=0+6-1\\ &=5. \end{aligned} $$

The correction is to make three separate terms, differentiating a different factor in each one, and then add them. The expansion check in the first example also gives \(y'(0)=5\), since \(8(0)^3+15(0)^2-2(0)+5=5\).

Organizing and Checking the Formula

When applying the rule, it helps to label the factors before differentiating. This makes it easier to see whether a factor has been omitted or differentiated in the wrong terms. In the expression \(fgh\), the three intended terms are \(f'gh\), \(fg'h\), and \(fgh'\).

After writing the three terms, check each one separately:

  • Does the first term differentiate \(f\) and leave \(g\) and \(h\) unchanged?
  • Does the second term differentiate \(g\) and leave \(f\) and \(h\) unchanged?
  • Does the third term differentiate \(h\) and leave \(f\) and \(g\) unchanged?
  • Are all three terms added?

If the factors are polynomials, expanding the original product and differentiating it directly can provide an independent check, as in the examples. That check is useful for detecting algebra errors, but it does not replace the derivation of the rule. For more complicated functions, the product-rule expression may be clearer than a fully expanded result.

Takeaway: For three differentiable factors, apply the two-factor rule to \((fg)h\), then apply it again to \(fg\). This yields three terms, with each factor differentiated once:
$$ (fgh)'=f'gh+fg'h+fgh'. $$

Check Your Understanding

Use the three-factor product rule to answer the following questions. In each derivative, identify which factor is differentiated in each term.

  1. Write the derivative formula for \(y=fgh\), assuming all three functions are differentiable on an interval.
  2. For \(y=(x+2)(x^2+1)(2x-3)\), write the three product-rule terms without expanding or simplifying them.
  3. Suppose \(f(1)=2\), \(g(1)=3\), \(h(1)=4\), \(f'(1)=1\), \(g'(1)=0\), and \(h'(1)=-2\). Find \((fgh)'(1)\).
  4. What is wrong with the calculation \((fgh)'=f'g'h'\)? State the corrected formula.
  5. Apply the formula to \(y=x^2\cdot x\cdot(x+1)\), then check your result by expanding the product first.

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