Tutorials › AP Calculus › Worked Derivatives of Factored Polynomials

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

Worked Derivatives of Factored Polynomials

Choose an efficient method for differentiating a factored polynomial, and check that its expanded and factored derivative forms agree.

Intermediate 9 min read

What You'll Learn

  • Differentiate products of polynomial factors using the product rule.
  • Decide when expansion or repeated product rules are more efficient.
  • Write the derivative of a product of several factors as a sum.
  • Compare factored and expanded derivative forms.
  • Check a derivative by substituting a convenient input or differentiating the expanded polynomial.
  • Recognize errors such as multiplying factor derivatives instead of using the product rule.

Why Factored Form Changes the Work

A polynomial may be presented as a product of factors rather than as a sum of powers. For example, \(f(x)=(x-2)(x+3)\) is already factored, while \(f(x)=x^2+x-6\) is its expanded form. Both expressions define the same function, but their forms suggest different ways to differentiate.

Expanding first lets you use the power rule term by term. Applying the product rule instead can avoid expansion and preserve information about the factors, such as where the original function is zero. Neither approach is automatically best in every problem. A useful habit is to choose a method, then compare the result with the other form when that comparison is manageable.

Key idea: To differentiate a product, differentiate one factor at a time and add the resulting terms, leaving the other factors undifferentiated. Do not multiply the derivatives of the factors.

Choosing Between Expansion and the Product Rule

For two differentiable functions \(u\) and \(v\), the product rule is \((uv)'=u'v+uv'\). In this tutorial, the factors are polynomials, so each factor is differentiable for every real \(x\). You can expand a factored polynomial and differentiate its terms, or use the product rule directly. With several factors, apply the product rule repeatedly.

Expansion can be convenient when it is short and the resulting polynomial is easy to differentiate. The product rule can be convenient when expansion would create many terms or when the factors themselves are useful to keep visible. After differentiating, equivalent answers need not look alike: one may be factored and another expanded.

Definition: If \(P(x)=p_1(x)p_2(x)\cdots p_n(x)\), where each \(p_i\) is a differentiable function, its derivative can be written as a sum of \(n\) terms. In the \(i\)th term, \(p_i\) is differentiated and every other factor is left unchanged.
$$ P'(x)=\sum_{i=1}^{n}p_1(x)\cdots p_{i-1}(x)p_i'(x)p_{i+1}(x)\cdots p_n(x). $$

For three factors, this says to differentiate each factor in turn:

$$ \bigl(p_1p_2p_3\bigr)' =p_1'p_2p_3+p_1p_2'p_3+p_1p_2p_3'. $$

This formula follows from the product rule, not from a separate rule that multiplies all the derivatives. The proof also explains why the method extends to any finite number of factors.

Why the Repeated Product Rule Works

1
Begin with one factor.
For \(P(x)=p_1(x)\), the derivative is \(P'(x)=p_1'(x)\), which is the stated sum with one term.
2
Assume the formula for \(n\) factors.
Let \(P_n(x)=p_1(x)\cdots p_n(x)\), and suppose its derivative is the sum formed by differentiating each of its \(n\) factors in turn.
3
Add one more factor.
Write \(P_{n+1}(x)=P_n(x)p_{n+1}(x)\). The product rule gives \(P_{n+1}'=P_n'p_{n+1}+P_np_{n+1}'\).
4
Identify every term.
Substituting the assumed formula for \(P_n'\) into \(P_n'p_{n+1}\) produces the \(n\) terms in which one of the first \(n\) factors is differentiated. The term \(P_np_{n+1}'\) is the additional term in which the last factor is differentiated. Thus the formula holds for \(n+1\) factors.

The base case and the step from \(n\) factors to \(n+1\) factors establish the formula for every positive integer \(n\). This is why repeated use of the two-factor product rule gives exactly one term for each factor differentiated.

Worked Examples

Worked Example: A Product of Two Linear Factors

Differentiate \(f(x)=(x-2)(x+3)\) using the product rule, then check by expansion.

Let \(u(x)=x-2\) and \(v(x)=x+3\). Their derivatives are \(u'(x)=1\) and \(v'(x)=1\). Applying the product rule gives:

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

Now expand the original function to check:

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

The two methods agree. As a numerical check at \(x=0\), the product-rule expression gives \(1(3)+(-2)1=1\), and \(2(0)+1=1\).

Worked Example: A Quadratic Factor Times a Linear Factor

Find the derivative of \(g(x)=(2x^2-x+1)(x-2)\) in product-rule form and expanded form.

Differentiate each factor separately: \((2x^2-x+1)'=4x-1\), and \((x-2)'=1\). Therefore:

$$ \begin{aligned} g'(x) &=(4x-1)(x-2)+(2x^2-x+1)1\\ &=(4x^2-8x-x+2)+(2x^2-x+1)\\ &=4x^2-9x+2+2x^2-x+1\\ &=6x^2-10x+3. \end{aligned} $$

For an independent check, expand \(g\) first:

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

At \(x=2\), the product-rule form gives \((8-1)(0)+(8-2+1)=7\). The expanded derivative gives \(6(2^2)-10(2)+3=24-20+3=7\), confirming agreement at that input as well.

Worked Example: Three Factors with a Repeated Factor

Differentiate \(h(x)=(x-1)^2(x+2)\) by treating it as three factors, and compare with expansion. Write the repeated factor explicitly as \((x-1)(x-1)(x+2)\).

In each product-rule term, differentiate one factor and leave the other two unchanged. Each linear factor has derivative \(1\):

$$ \begin{aligned} h'(x) &=1(x-1)(x+2)+(x-1)1(x+2)+(x-1)(x-1)1\\ &=(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^2-1)\\ &=3x^2-3. \end{aligned} $$

Now expand the original function:

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

The forms agree. Also, \(h'(1)=3(1)^2-3=0\); the product-rule expression gives \((1-1)(3(1)+3)=0\). The repeated factor makes the zero at \(x=1\) visible in the factored derivative.

Equivalent Forms Reveal Different Information

A derivative can be correct in more than one algebraic form. The product-rule result may retain factors, while expansion combines terms into a polynomial in standard form. For instance, \(3(x-1)(x+1)\) and \(3x^2-3\) are equal because \((x-1)(x+1)=x^2-1\).

The factored form can make zeros of the derivative apparent: \(3(x-1)(x+1)=0\) at \(x=1\) and \(x=-1\). The expanded form can make it easier to compare coefficients or substitute a value using a familiar polynomial expression. Choose the form that best serves the next step; do not assume that a different-looking answer is wrong.

Common Mistake: Multiplying the Derivatives

A frequent error is to differentiate each factor and then multiply the results. For example, for \(q(x)=(x^2+1)(x-3)\), an incorrect calculation is:

$$ q'(x)\ne (2x)(1)=2x. $$

This omits the changes in each factor while the other factor remains present. The product rule requires two terms:

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

Check at \(x=0\). The correct derivative gives \(1\), while the incorrect answer \(2x\) gives \(0\). This concrete mismatch exposes the error. In general, whenever differentiating a product, check that there is one term for each factor and that each term leaves all the other factors in place.

A Practical Method

For a factored polynomial, use this sequence of decisions:

  1. Identify each factor and its derivative, using the power rule and the sum rule.
  2. Estimate whether expansion is short or likely to create many terms.
  3. If using the product rule, write one term for each factor differentiated in turn.
  4. Simplify carefully, keeping a factored result if it is useful.
  5. When practical, expand the original expression or the derivative to verify that the forms agree.

These steps apply to products of polynomial factors, including repeated factors. Because every polynomial is differentiable for every real input, no additional domain restriction is needed for these examples.

Check Your Understanding

For each question, decide which form or rule is useful and show enough work to justify the result.

  1. Differentiate \(r(x)=(x+4)(x-1)\) using the product rule, then check by expansion.
  2. For \(s(x)=(x^2+2)(x+1)\), write the product-rule derivative and simplify it.
  3. Differentiate \(t(x)=(x-3)^2(x+1)\) by treating it as three factors. How many product-rule terms should appear before simplification?
  4. Explain why differentiating \(u(x)v(x)\) as \(u'(x)v'(x)\) does not follow from the product rule.
  5. Give one reason to keep a derivative factored and one reason to expand it.

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