Tutorials › AP Calculus › The Product Rule for Algebraic Functions

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

The Product Rule for Algebraic Functions

Use the product rule to differentiate two algebraic factors efficiently, and check the result by evaluating or expanding when useful.

Intermediate 8 min read

What You'll Learn

  • State the product rule and its differentiability conditions
  • Identify each factor and its derivative before substituting
  • Differentiate products of polynomials and linear factors without expanding first
  • Evaluate a product derivative at a specified input
  • Verify a product-rule result by differentiating an expanded form
  • Recognize and correct common product-rule errors

Why a Product Needs Its Own Rule

A polynomial may be written in standard form, such as \(x^2+3x+2\), or in factored form, such as \((x+1)(x+2)\). When a function is given as a product, differentiating each factor separately is not enough: both factors can change as \(x\) changes. The product rule accounts for both changes.

It is often useful to keep the original product factored while differentiating. This can avoid unnecessary expansion, preserve the structure of the function, and make it easier to substitute a particular input into the derivative.

The key idea: For two differentiable functions, the derivative of their product is the derivative of the first factor times the second factor, plus the first factor times the derivative of the second factor.

The Product Rule

Let \(u\) and \(v\) be functions differentiable at \(x\). Their product \(u(x)v(x)\) is differentiable there, and its derivative is given by the product rule.

Theorem: If \(u\) and \(v\) are differentiable at \(x\), then $$ \frac{d}{dx}\bigl(u(x)v(x)\bigr)=u'(x)v(x)+u(x)v'(x). $$

The order of the two terms is not important, but the pairing is: differentiate one factor while leaving the other unchanged, then add the term in which their roles are reversed. Do not differentiate both factors in the same term.

For algebraic functions in this tutorial, the factors will typically be polynomials or linear expressions. Polynomials are differentiable for every real \(x\), so the rule applies to their products everywhere on the real line. More generally, the rule applies at any input where both factors are differentiable.

A Justification from the Difference Quotient

The product rule follows from the definition of the derivative. This proof also explains why the derivative has two terms. Suppose \(u\) and \(v\) are differentiable at \(x\). For a nonzero increment \(h\), add and subtract \(u(x+h)v(x)\) in the numerator of the difference quotient:

$$ \begin{aligned} \frac{u(x+h)v(x+h)-u(x)v(x)}{h} &=\frac{u(x+h)v(x+h)-u(x+h)v(x)}{h}\\ &\quad+\frac{u(x+h)v(x)-u(x)v(x)}{h}\\ &=u(x+h)\frac{v(x+h)-v(x)}{h} +v(x)\frac{u(x+h)-u(x)}{h}. \end{aligned} $$

As \(h\) approaches zero, differentiability of \(u\) and \(v\) implies that both are continuous at \(x\). Thus \(u(x+h)\) approaches \(u(x)\). The difference quotients for \(u\) and \(v\) approach \(u'(x)\) and \(v'(x)\), respectively. Taking the limit of the last line therefore gives

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

This is the derivative of \(u(x)v(x)\), so it proves the rule. The two terms correspond to the two ways the product changes: the first factor changes while the second is held at its current value, and the second factor changes while the first is held at its current value.

Applying the Rule to Algebraic Factors

A reliable procedure is to name the factors, differentiate each one, and then place them into the two terms of the rule. Keep the original factors visible until the derivative is assembled. This reduces the chance of losing a factor or applying the power rule to the wrong expression.

1
Identify the factors.
Write the product as \(u(x)v(x)\), naming each factor separately.
2
Differentiate each factor.
Find \(u'(x)\) and \(v'(x)\) using the rules for constants, powers, and sums.
3
Form both product-rule terms.
Use \(u'v+uv'\), keeping the undifferentiated factor in each term.
4
Simplify or evaluate.
Combine like terms if useful, or substitute the requested input into the derivative.

Worked Examples

Worked Example: A Quadratic Times a Linear Factor

Differentiate \(f(x)=(3x^2-2x+1)(x+4)\) without first expanding the product.

Set \(u(x)=3x^2-2x+1\) and \(v(x)=x+4\). Differentiate each factor:

$$ u'(x)=6x-2,\qquad v'(x)=1. $$

Apply the product rule, \(f'=u'v+uv'\):

$$ \begin{aligned} f'(x) &=(6x-2)(x+4)+(3x^2-2x+1)(1)\\ &=(6x^2+24x-2x-8)+(3x^2-2x+1)\\ &=(6x^2+22x-8)+(3x^2-2x+1)\\ &=9x^2+20x-7. \end{aligned} $$

Check by expanding the original function: \(f(x)=3x^3+10x^2-7x+4\). Differentiating this polynomial gives \(9x^2+20x-7\), matching the product-rule result.

Worked Example: A Product of Two Polynomials

Find \(g'(x)\) for \(g(x)=(x^2-5)(2x^3+x)\), keeping the factors unexpanded when applying the rule.

Let \(u(x)=x^2-5\) and \(v(x)=2x^3+x\). Their derivatives are

$$ u'(x)=2x,\qquad v'(x)=6x^2+1. $$

Substitute into \(g'=u'v+uv'\), then multiply and collect terms:

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

Check: expanding the original product gives \(g(x)=2x^5+x^3-10x^3-5x=2x^5-9x^3-5x\). Its derivative is \(10x^4-27x^2-5\), as obtained above.

Worked Example: Evaluate a Product Derivative at an Input

Let \(h(x)=(2x-1)(x^2+3)\). Find \(h'(2)\).

Set \(u(x)=2x-1\), \(v(x)=x^2+3\); then \(u'(x)=2\) and \(v'(x)=2x\). The product rule gives

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

Now substitute \(x=2\):

$$ h'(2)=6(2^2)-2(2)+6=24-4+6=26. $$

Check by expansion: \(h(x)=2x^3-x^2+6x-3\), so \(h'(x)=6x^2-2x+6\), and \(h'(2)=24-4+6=26\). Both methods agree.

Keeping the Factors Straight

Each term in the product rule contains one differentiated factor and one unchanged factor. A useful way to check your setup before simplifying is to look at each term separately:

$$ \underbrace{u'(x)v(x)}_{\text{first factor differentiated}} + \underbrace{u(x)v'(x)}_{\text{second factor differentiated}}. $$

This structure is especially helpful when a factor has several terms. For instance, if one factor is \(x^2-5\), its derivative is \(2x\), but the other factor still appears unchanged in the first product-rule term. The product rule does not say to replace both factors by their derivatives.

There is no requirement to expand the original product before using the rule. In fact, keeping it factored during the first step makes the roles of the factors clear. Expansion may still be useful afterward to simplify the answer or to check it, as in the examples.

A Common Mistake

A frequent error is to differentiate both factors and multiply their derivatives. For \(p(x)=(x+2)(x^2+1)\), that incorrect approach gives

$$ p'_{\text{wrong}}(x)=1\cdot 2x=2x. $$

This omits the fact that either factor can change as \(x\) changes. Apply the two-term rule instead. With \(u=x+2\), \(u'=1\), \(v=x^2+1\), and \(v'=2x\),

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

Check by expanding \(p(x)=x^3+2x^2+x+2\). Its derivative is \(3x^2+4x+1\), not \(2x\). The correction is to include both product-rule terms, with one unchanged factor in each.

When This Rule Is Useful

The product rule is valuable whenever a function is naturally expressed as two changing factors. Factored form can reveal zeros, make evaluation convenient, or preserve a structure that would become less clear after expansion. For AP calculus problems, identifying the factors and writing the two terms accurately is often more important than doing extensive algebra.

Before accepting a result, check these points:

  • Did you identify both factors correctly?
  • Did you calculate each factor's derivative correctly?
  • Does each product-rule term retain one unchanged factor?
  • Did you add the two terms rather than multiply them together?
  • If you expanded to check, does differentiating the expanded polynomial agree?
Takeaway: For a product \(u(x)v(x)\), differentiate one factor at a time and add the results: \(u'v+uv'\). Both factors must be differentiable at the input where the rule is applied.

Check Your Understanding

For each question, keep track of which factor is differentiated in each term.

  1. Differentiate \(r(x)=(x^2+1)(x-3)\) using the product rule, without expanding first.
  2. For \(s(x)=(4x+1)(x^2-2x)\), write \(s'(x)\) as two product-rule terms before simplifying.
  3. Find the derivative of \(t(x)=(x^2-4)(3x+2)\) at \(x=1\).
  4. Explain why the expression \(u'(x)v'(x)\) is not the product rule for \(u(x)v(x)\).
  5. Check the derivative of \((x+1)(x^2+2)\) by comparing the product-rule result with the derivative obtained after expansion.

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