Tutorials › AP Calculus › Deriving the Product Rule

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

Deriving the Product Rule

Follow the difference quotient step by step to see why the derivative of a product contains two terms.

Intermediate 9 min read

What You'll Learn

  • State the pointwise conditions for the product rule
  • Add and subtract a cross term in the product difference quotient
  • Identify the two limits that become the derivatives of the factors
  • Explain why continuity lets a changing factor approach its value at the point
  • Check the derivation on products whose factors are polynomials
  • Recognize a common error caused by omitting the cross term

Why Derive the Product Rule?

The derivative of a product is not obtained by simply multiplying the derivatives of its factors. The product rule has two terms, and the difference quotient explains why both are necessary. Its derivation also shows exactly which assumptions make the rule valid.

We will work at a single point \(a\). The functions do not need to be polynomials: the argument applies whenever both factors are differentiable at that point. The key algebraic move is to add and subtract a cross term so that the difference of products becomes a sum of two expressions involving familiar difference quotients.

Pointwise Derivatives and the Product Rule

A function \(f\) is differentiable at \(a\) when the following limit exists as a finite real number:

$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$

Here \(h\ne 0\) in the quotient, and the limit considers values of \(h\) approaching zero for which the function is defined. If \(f\) is differentiable at \(a\), then it is continuous there, so \(f(a+h)\to f(a)\) as \(h\to0\). We will use that fact in the derivation.

Theorem: If \(f\) and \(g\) are differentiable at \(a\), then their product \(p(x)=f(x)g(x)\) is differentiable at \(a\), and $$ p'(a)=f'(a)g(a)+f(a)g'(a). $$

The rule is pointwise: differentiability of both factors at \(a\) is enough to conclude that the product is differentiable at \(a\). If both functions are differentiable throughout an interval, the same formula applies at every point in that interval.

The Difference Quotient for a Product

Start from the definition for \(p(x)=f(x)g(x)\). Its difference quotient at \(a\) is

$$ \frac{p(a+h)-p(a)}{h} = \frac{f(a+h)g(a+h)-f(a)g(a)}{h}. $$

The numerator is a difference of products. It does not yet display either derivative quotient. To separate it, add and subtract \(f(a+h)g(a)\), which is the cross term. Adding and subtracting the same quantity leaves the expression unchanged:

$$ \begin{aligned} f(a+h)g(a+h)-f(a)g(a) &=f(a+h)g(a+h)-f(a+h)g(a)\\ &\quad+f(a+h)g(a)-f(a)g(a). \end{aligned} $$

Factor each difference in this new sum. The first pair has the common factor \(f(a+h)\); the second pair has the common factor \(g(a)\). Dividing by \(h\) gives

$$ \frac{f(a+h)g(a+h)-f(a)g(a)}{h} = f(a+h)\frac{g(a+h)-g(a)}{h} + g(a)\frac{f(a+h)-f(a)}{h}. $$

Now the two difference quotients are recognizable: as \(h\to0\), the first quotient tends to \(g'(a)\), and the second tends to \(f'(a)\). The factor \(f(a+h)\) tends to \(f(a)\), while \(g(a)\) is constant with respect to \(h\). Taking the limit therefore gives the product rule.

Why the Limits Give the Formula

The details of the limit matter. Differentiability of \(g\) at \(a\) gives the finite limit \(g'(a)\) for its difference quotient. Differentiability of \(f\) gives the finite limit \(f'(a)\). Continuity of \(f\) at \(a\), which follows from its differentiability there, gives the limit of the changing factor \(f(a+h)\).

$$ \begin{aligned} p'(a) &=\lim_{h\to0}\left[ f(a+h)\frac{g(a+h)-g(a)}{h} + g(a)\frac{f(a+h)-f(a)}{h} \right]\\ &=f(a)g'(a)+g(a)f'(a). \end{aligned} $$

This uses the limit laws for sums and products: if two factors have finite limits, the limit of their product is the product of those limits, and the limit of a sum is the sum of its limits. Both derivative limits exist by the assumptions, and \(f(a+h)\) has a finite limit by continuity. Since the resulting limit exists and is finite, the product is differentiable at \(a\), as claimed.

Key idea: The two derivative limits come from the two difference quotients created by the cross-term decomposition. The extra factor \(f(a+h)\) does not remain variable in the limit; continuity makes it approach \(f(a)\).

Worked Examples: Following the Derivation

Worked Example: Derive the Product Derivative for \(x^2(x+1)\) at \(x=2\)

Let \(f(x)=x^2\), \(g(x)=x+1\), and \(a=2\). We will compute the difference quotient for the product using the cross term. First record the factor values and derivatives at the point: \(f(2)=4\), \(g(2)=3\), \(f'(2)=4\), and \(g'(2)=1\). Thus the product rule predicts \(4(1)+3(4)=16\).

The product at \(2+h\) is \((2+h)^2(3+h)\), and the product at \(2\) is \(4\cdot3=12\). Add and subtract the cross term \(f(2+h)g(2)=(2+h)^2\cdot3\):

$$ \begin{aligned} \frac{(2+h)^2(3+h)-12}{h} &=\frac{(2+h)^2(3+h)-3(2+h)^2}{h} +\frac{3(2+h)^2-12}{h}\\ &=(2+h)^2\frac{(3+h)-3}{h} +3\frac{(2+h)^2-4}{h}\\ &=(2+h)^2+3\frac{4h+h^2}{h}\\ &=(2+h)^2+3(4+h). \end{aligned} $$

Taking \(h\to0\) gives \(2^2+3(4)=4+12=16\). Check by expanding the product: \(x^2(x+1)=x^3+x^2\), whose derivative is \(3x^2+2x\). At \(x=2\), this is \(3(4)+4=16\), agreeing with the difference-quotient result.

Worked Example: Use a Zero Factor at \(x=3\)

Let \(f(x)=x-3\) and \(g(x)=x^2\), so \(p(x)=(x-3)x^2\). At \(a=3\), \(f(3)=0\), \(g(3)=9\), \(f'(3)=1\), and \(g'(3)=6\). The product rule predicts \(1(9)+0(6)=9\). The quotient derivation shows why the term involving \(g'(3)\) vanishes here.

For \(h\ne0\), \(f(3+h)=h\) and \(g(3+h)=(3+h)^2\). Add and subtract the cross term \(f(3+h)g(3)=9h\):

$$ \begin{aligned} \frac{f(3+h)g(3+h)-f(3)g(3)}{h} &=\frac{h(3+h)^2-0}{h}\\ &=\frac{h(3+h)^2-9h}{h} +\frac{9h}{h}\\ &=h\frac{(3+h)^2-9}{h}+9\\ &=h\frac{6h+h^2}{h}+9\\ &=h(6+h)+9. \end{aligned} $$

As \(h\to0\), \(h(6+h)\to0\), so the derivative is \(9\). This is also confirmed directly: \(p(x)=x^3-3x^2\), so \(p'(x)=3x^2-6x\), and \(p'(3)=27-18=9\).

Worked Example: Check the Two Terms at \(x=1\)

Take \(f(x)=2x+1\) and \(g(x)=x^2-1\), with \(a=1\). The values are \(f(1)=3\), \(g(1)=0\), \(f'(1)=2\), and \(g'(1)=2\). The product rule gives \(f'(1)g(1)+f(1)g'(1)=2(0)+3(2)=6\).

Using the cross term \(f(1+h)g(1)\), which is zero in this case, the quotient becomes

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

Its limit is \(3(2)=6\). For an independent check, expand \(p(x)=(2x+1)(x^2-1)=2x^3+x^2-2x-1\). Then \(p'(x)=6x^2+2x-2\), and \(p'(1)=6+2-2=6\), as required.

A Common Mistake: Leaving Out the Cross Term

A tempting but incorrect split is to replace the numerator \(f(a+h)g(a+h)-f(a)g(a)\) by \(f(a)[g(a+h)-g(a)]+g(a)[f(a+h)-f(a)]\). That expression uses only values at \(a\), and it omits the product of the two changes. A quick numerical check exposes the error.

Take \(f(x)=x\), \(g(x)=x\), \(a=1\), and \(h=1\). The actual product difference quotient is \((2\cdot2-1\cdot1)/1=3\). The incorrect split gives \(1(2-1)+1(2-1)=2\), not \(3\). The missing amount is the cross product of the changes: \((f(2)-f(1))(g(2)-g(1))=1\cdot1=1\).

The correction is to add and subtract a cross term before splitting. Using \(f(a+h)g(a)\), as in the proof, produces an exact identity for every allowed \(h\); it is not an approximation. In this example the corrected quotient is \(f(2)[g(2)-g(1)]+g(1)[f(2)-f(1)]=2(1)+1(1)=3\). In the limit, the first multiplier becomes \(f(a)\), yielding the established product rule.

Why This Derivation Matters

The product rule is more than a formula to memorize. The derivation identifies the roles played by algebra and calculus: adding and subtracting a carefully chosen quantity creates the two difference quotients, while differentiability and continuity determine their limits. This method also makes the assumptions visible. If either factor is not differentiable at \(a\), this proof cannot supply the required derivative limit; that does not by itself prove the product is not differentiable, but the theorem does not apply.

When using the result, keep the factors in their original roles long enough to identify their values and derivatives at the point. The two contributions are: the derivative of the first factor times the value of the second, and the value of the first times the derivative of the second. The derivation shows why neither contribution can generally be discarded.

Check Your Understanding

Answer each question using the difference-quotient derivation, not only the remembered formula.

  1. What quantity is added and subtracted to split the product difference quotient in the proof?
  2. Which two difference quotients appear after the cross-term decomposition, and what limits do they approach?
  3. Why does the factor \(f(a+h)\) approach \(f(a)\) as \(h\to0\) under the theorem's assumptions?
  4. For \(f(x)=x^2\) and \(g(x)=x-1\), calculate the product-rule derivative at \(x=1\), showing the factor values and derivatives.
  5. In the incorrect split, what part of the product change is omitted, and why can it matter before taking a limit?

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