Tutorials › Calculus I › Deriving the Product Rule from First Principles

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

Deriving the Product Rule from First Principles

Learn why differentiable factors have a product whose derivative is the sum of the two cross-products of factor values and derivatives.

Intermediate 9 min read

What You'll Learn

  • State the conditions under which the product rule applies.
  • Explain why differentiability at a point implies continuity there.
  • Split the product difference quotient by adding and subtracting a term.
  • Use limits to derive the product rule at a point.
  • Check the derivation with direct difference-quotient calculations.
  • Identify and correct the error of ignoring one factor’s change.

Why a Product Needs Its Own Derivative Rule

A derivative describes how a function changes near a point. When a function is a product of two changing factors, both factors contribute to that change. The product rule records these two contributions precisely.

Rather than assume a rule for differentiating a product, we will derive it from the definition of the derivative. The key is to rewrite the change in a product so that each factor’s change appears separately. A limit then turns that rewrite into a derivative formula.

The Difference Quotient at a Point

A function \(F\) is differentiable at \(a\) if 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\) while the quotient is formed, and \(a+h\) must lie in the domain of \(F\). For the product rule, suppose \(f\) and \(g\) are both defined on an open interval containing \(a\), and each is differentiable at \(a\). Their product is the function \(F(x)=f(x)g(x)\), also defined near \(a\). Our task is to find the limit of its difference quotient.

Conditions for the product rule: If \(f\) and \(g\) are differentiable at \(a\), then \(F(x)=f(x)g(x)\) is differentiable at \(a\), and $$ F'(a)=f'(a)g(a)+f(a)g'(a). $$

The formula has two terms. In the first, the change in \(f\) is paired with the value of \(g\); in the second, the value of \(f\) is paired with the change in \(g\). We will see why both terms arise.

A Fact Needed for the Limit

The difference quotient for the product will contain \(f(a+h)\). To take its limit, we need to know that \(f(a+h)\) approaches \(f(a)\). Differentiability guarantees this, but it is useful to show the implication directly.

Fact: If \(f\) is differentiable at \(a\), then \(f\) is continuous at \(a\); that is, $$ \lim_{h\to 0} f(a+h)=f(a). $$

For \(h\ne0\), rewrite the difference \(f(a+h)-f(a)\) using the difference quotient:

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

As \(h\to0\), the first factor tends to \(0\). The expression in parentheses tends to the finite number \(f'(a)\), so it is bounded for all sufficiently small nonzero \(h\). Therefore the product tends to \(0\). This gives \(\lim_{h\to0}[f(a+h)-f(a)]=0\), which is exactly continuity at \(a\). The same argument applies to \(g\).

Deriving the Product Rule

Start with the difference quotient for \(F(x)=f(x)g(x)\). Add and subtract \(f(a+h)g(a)\) in its numerator. This changes nothing, because the added term is immediately subtracted, but it creates differences involving each factor separately.

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

The last equality is an algebraic factorization. In the first pair of terms, \(f(a+h)\) is common. In the second pair, \(g(a)\) is common. Each difference quotient is now one of the quotients whose limit defines a derivative.

1
Separate the changes.
Adding and subtracting \(f(a+h)g(a)\) rewrites the change in the product as a sum of two terms, one involving the change in \(g\) and one involving the change in \(f\).
2
Take the first limit.
By continuity, \(f(a+h)\to f(a)\). By differentiability, \(\frac{g(a+h)-g(a)}{h}\to g'(a)\). The first term therefore tends to \(f(a)g'(a)\).
3
Take the second limit.
The factor \(g(a)\) is constant with respect to \(h\), and \(\frac{f(a+h)-f(a)}{h}\to f'(a)\). The second term tends to \(g(a)f'(a)\).
4
Combine the limits.
Both limits exist and are finite, so the limit of their sum is the sum of their limits. Thus \(F'(a)=f(a)g'(a)+g(a)f'(a)\).

Reordering the two terms gives the standard statement:

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

This proves the rule at an arbitrary point \(a\) where both functions are differentiable. Consequently, wherever both are differentiable, their product has the derivative given by the same formula at each such point.

Worked Difference-Quotient Checks

Worked Example: A Quadratic Factor and a Linear Factor

Let \(f(x)=x^2\) and \(g(x)=x+1\). Compute the derivative of their product at \(a=2\) directly from the difference quotient, then compare it with the derived formula.

First, \(f(2)=4\) and \(g(2)=3\), so \(F(2)=12\). For \(h\ne0\),

$$ \begin{aligned} F(2+h) &=(2+h)^2(3+h)\\ &=(4+4h+h^2)(3+h)\\ &=12+16h+7h^2+h^3. \end{aligned} $$

Therefore,

$$ \frac{F(2+h)-F(2)}{h} = \frac{12+16h+7h^2+h^3-12}{h} = 16+7h+h^2. $$

Taking \(h\to0\) gives \(F'(2)=16\). Independently, \(f'(2)=4\) and \(g'(2)=1\), so the derived formula gives \(4\cdot3+4\cdot1=12+4=16\). As a check, \(F(x)=x^3+x^2\), whose derivative is \(3x^2+2x\); at \(x=2\), this is \(3\cdot4+4=16\), as required.

Worked Example: Two Factors That Both Change

Let \(f(x)=x\) and \(g(x)=x^2\), and find the derivative of \(F(x)=f(x)g(x)\) at \(a=1\) using the difference quotient.

At \(x=1\), \(F(1)=1\). For nonzero \(h\), expand the nearby product:

$$ \begin{aligned} F(1+h) &=(1+h)(1+h)^2\\ &=(1+h)(1+2h+h^2)\\ &=1+3h+3h^2+h^3. \end{aligned} $$

Thus,

$$ \frac{F(1+h)-F(1)}{h} = \frac{1+3h+3h^2+h^3-1}{h} = 3+3h+h^2. $$

The limit is \(F'(1)=3\). The formula gives \(f'(1)g(1)+f(1)g'(1)=1\cdot1+1\cdot2=3\). As a further check, \(F(x)=x^3\), so \(F'(x)=3x^2\) and \(F'(1)=3\). Both factors change with \(h\); the calculation retains contributions from each.

Worked Example: A Product That Simplifies Near the Point

Let \(f(x)=x^2\) and \(g(x)=1/x\), and consider \(a=2\). The functions are defined near \(2\), so the product difference quotient is valid for sufficiently small \(h\ne0\).

We have \(F(2)=2\). Also, \(2+h\ne0\) for \(h\) sufficiently close to zero, and

$$ F(2+h) = (2+h)^2\frac{1}{2+h} = 2+h. $$

It follows that

$$ \frac{F(2+h)-F(2)}{h} = \frac{(2+h)-2}{h} = 1, $$

so \(F'(2)=1\). To check the formula, \(f'(2)=4\), \(g(2)=1/2\), \(f(2)=4\), and \(g'(2)=-1/4\). Hence

$$ f'(2)g(2)+f(2)g'(2) = 4\left(\frac12\right)+4\left(-\frac14\right) = 2-1 = 1. $$

The simplified product is \(F(x)=x\) near \(2\), whose derivative is \(1\). This agrees with both computations.

A Common Error: Keeping Only One Factor’s Change

A tempting but incorrect idea is that the change in a product is just the product of the two changes. For a concrete test, take \(f(x)=x\), \(g(x)=x\), and \(a=1\). Then \(f(1)=g(1)=1\), while \(f(1+h)-f(1)=h\) and \(g(1+h)-g(1)=h\). The incorrect calculation would treat the product’s difference quotient as

$$ \frac{h\cdot h}{h}=h\longrightarrow 0. $$

But \(F(x)=x^2\), so its derivative at \(1\) is \(2\), not \(0\). The error is that the product also changes when one factor changes while the other is at its original value. The exact decomposition from the proof makes the missing contributions visible:

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

In this example, dividing by \(h\) gives \(1+1+h\), which tends to \(2\). The final term contributes \(h\), which tends to zero, but the first two terms do not disappear. This is why the product rule has two terms rather than one.

What the Derivation Establishes

The proof relies on differentiability of both factors at the same point. That condition gives the two derivative limits and, through continuity, the limit of the factor \(f(a+h)\). The algebraic addition and subtraction alone do not establish the rule; the limit conditions are essential.

The result is local: it determines the derivative at \(a\) from the values and derivatives of the factors at \(a\). It does not require either factor to be nonzero. In particular, if one factor is zero at \(a\), the formula still applies as long as both factors are differentiable there.

The main idea to retain is the reasoning behind the formula. A product changes because either factor can change. Adding and subtracting an intermediate product isolates those changes; taking the limit turns them into the two derivative terms.

Check Your Understanding

Try answering these questions using the definition and the derivation.

  1. What assumptions on \(f\) and \(g\) are sufficient for the product rule at \(a\)?
  2. Why does differentiability of \(f\) at \(a\) imply that \(f(a+h)\to f(a)\)?
  3. Which term is added and subtracted in the product difference quotient, and how does it help?
  4. For \(f(x)=x\) and \(g(x)=x^2\) at \(a=1\), what are the two terms in the product-rule formula?
  5. Why does the product rule remain valid when one factor has value zero at \(a\)?

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