Tutorials › Real Analysis › Proof of the Product Rule

Differentiation · Tutorial 401 of 1000

Proof of the Product Rule

Follow the algebra behind the Product Rule and see how first-order approximations turn the rule into a precise statement about changing products.

Advanced 9 min read

What You'll Learn

  • Derive the Product Rule from an exact difference-quotient identity
  • Use differentiability and continuity to justify each limit in the proof
  • Multiply first-order approximations while controlling the remainder
  • Apply the proof when one factor vanishes at the point
  • Check product derivatives by differentiating an expanded expression

Why the Product Rule Needs a Proof

The Product Rule states how to differentiate a product when both factors vary. Its formula is familiar from the previous tutorial, but the derivative definition does not immediately produce that formula: the difference quotient contains changes in both factors at once. The proof must separate those changes without assuming that either factor stays fixed.

We will use two complementary approaches. First, an exact algebraic identity splits the product’s difference quotient into terms whose limits are known. Second, the first-order approximation characterization from earlier in this course shows how the linear approximations of the two factors combine, and how the remaining error becomes negligible. Both arguments rely on differentiability at the point, not on differentiability throughout the whole interval.

Theorem (Product Rule): Let \(I\) be an interval, let \(a\) be an interior point of \(I\), and let \(f,g:I\to\mathbb{R}\) be differentiable at \(a\). Then \(fg\) is differentiable at \(a\), and $$ (fg)'(a)=f'(a)g(a)+f(a)g'(a). $$

Proof by Splitting the Difference Quotient

For nonzero \(h\) small enough that \(a+h\in I\), start with the difference quotient of the product. Add and subtract \(f(a)g(a+h)\) in its numerator. This intermediate term is chosen so the resulting differences vary one factor at a time.

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

To check the identity, expand the numerator on the right: \(f(a+h)g(a+h)-f(a)g(a+h)+f(a)g(a+h)-f(a)g(a)\). The two middle terms cancel, leaving exactly the numerator on the left. Thus the equality is algebraic and holds for every such nonzero \(h\).

Proof of the Product Rule. Since \(f\) and \(g\) are differentiable at \(a\), the difference quotients satisfy \((f(a+h)-f(a))/h\to f'(a)\) and \((g(a+h)-g(a))/h\to g'(a)\) as \(h\to0\). Differentiability of \(g\) also implies continuity of \(g\) at \(a\), by the theorem that differentiability implies continuity. Hence \(g(a+h)\to g(a)\). Applying the product law for limits to the first term of the identity gives

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

The second term has a constant factor \(f(a)\), so

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

Both limits are finite. The sum law for limits therefore shows that the whole difference quotient tends to \(f'(a)g(a)+f(a)g'(a)\). By the definition of the derivative, \(fg\) is differentiable at \(a\) and has that derivative. This proves the Product Rule. \(\square\)

The continuity step is essential: the first difference quotient is multiplied by \(g(a+h)\), not by the fixed value \(g(a)\). Knowing only that the difference quotient tends to \(f'(a)\) would not, by itself, justify taking the limit of that product. Continuity supplies the limit of the other factor.

Proof Through First-Order Approximations

There is another way to track the same calculation. The First-Order Approximation Characterization says that differentiability at \(a\) gives an expansion into a constant term, a linear term, and a remainder that is small compared with \(h\). The following result spells out how two such expansions interact. It provides a useful technique beyond this particular derivative calculation: when multiplying approximations, one must account for every cross term and verify that the error terms remain negligible.

Theorem (Product of First-Order Approximations): Suppose, as \(h\to0\), that $$ f(a+h)=A+Bh+r_f(h),\qquad g(a+h)=C+Dh+r_g(h), $$ where \(r_f(h)/h\to0\) and \(r_g(h)/h\to0\). Then $$ f(a+h)g(a+h)=AC+(AD+BC)h+r(h), $$ where \(r(h)/h\to0\).

Proof. For \(h\ne0\), write \(r_f(h)=h\varepsilon_f(h)\) and \(r_g(h)=h\varepsilon_g(h)\), where \(\varepsilon_f(h)\to0\) and \(\varepsilon_g(h)\to0\). Multiplication gives

$$ \begin{aligned} f(a+h)g(a+h) ={}&(A+Bh+h\varepsilon_f(h))(C+Dh+h\varepsilon_g(h))\\ ={}&AC+(AD+BC)h+r(h), \end{aligned} $$

where the terms not included in \(AC+(AD+BC)h\) are

$$ r(h)=hA\varepsilon_g(h)+hC\varepsilon_f(h) +h^2\bigl(BD+B\varepsilon_g(h)+D\varepsilon_f(h) +\varepsilon_f(h)\varepsilon_g(h)\bigr). $$

Dividing by \(h\) yields

$$ \frac{r(h)}{h} =A\varepsilon_g(h)+C\varepsilon_f(h) +h\bigl(BD+B\varepsilon_g(h)+D\varepsilon_f(h) +\varepsilon_f(h)\varepsilon_g(h)\bigr). $$

The first two terms tend to zero. In the parentheses, \(B\) and \(D\) are fixed, while \(\varepsilon_f(h)\) and \(\varepsilon_g(h)\) tend to zero, so the parenthesized expression has a finite limit \(BD\). Multiplication by \(h\to0\) makes the final term tend to zero. Thus \(r(h)/h\to0\), proving the result. \(\square\)

For differentiable \(f\) and \(g\), the First-Order Approximation Characterization gives \(A=f(a)\), \(B=f'(a)\), \(C=g(a)\), and \(D=g'(a)\). The theorem then says that the product has constant term \(f(a)g(a)\), linear coefficient \(f'(a)g(a)+f(a)g'(a)\), and an error small compared with \(h\). By the same characterization, that linear coefficient is the derivative of the product. This recovers the Product Rule by following the first-order terms rather than taking limits of a split difference quotient.

Worked Applications of the Proof

Worked Example: Two Polynomial Factors

Let \(f(x)=x^2+3x\) and \(g(x)=2x-1\), and find the derivative of their product at \(a=2\). The Power Rule and Sum Rule give \(f'(x)=2x+3\) and \(g'(x)=2\). The values needed in the Product Rule are

$$ f(2)=4+6=10,\qquad g(2)=4-1=3,\qquad f'(2)=4+3=7,\qquad g'(2)=2. $$

Therefore,

$$ (fg)'(2)=f'(2)g(2)+f(2)g'(2) =(7)(3)+(10)(2)=21+20=41. $$

As a check, expanding first gives \(f(x)g(x)=2x^3+5x^2-3x\). Its derivative is \(6x^2+10x-3\), whose value at \(2\) is \(24+20-3=41\), in agreement with the rule.

Worked Example: A Factor That Vanishes

Let \(f(x)=x^2-1\) and \(g(x)=x^3+2\), and compute the derivative of their product at \(a=1\). Direct substitution gives \(f(1)=1-1=0\) and \(g(1)=1+2=3\). Also \(f'(x)=2x\), so \(f'(1)=2\), and \(g'(x)=3x^2\), so \(g'(1)=3\). The Product Rule gives

$$ (fg)'(1)=f'(1)g(1)+f(1)g'(1) =(2)(3)+(0)(3)=6. $$

The zero value removes the second term, but it does not make the derivative vanish: the other factor is changing while \(g(1)=3\). Expanding provides a check: \(f(x)g(x)=x^5-x^3+2x^2-2\), so the derivative is \(5x^4-3x^2+4x\), which equals \(5-3+4=6\) at \(1\).

Worked Example: A Reciprocal Factor on Its Domain

On \(I=(-\infty,2)\), let \(f(x)=1/(x-2)\) and \(g(x)=x^2+1\). The interval keeps the denominator nonzero, so both functions are defined there. Their derivatives are \(f'(x)=-1/(x-2)^2\) and \(g'(x)=2x\). At \(a=0\),

$$ f(0)=-\frac12,\qquad g(0)=1,\qquad f'(0)=-\frac14,\qquad g'(0)=0. $$

Thus

$$ (fg)'(0)=\left(-\frac14\right)(1)+\left(-\frac12\right)(0) =-\frac14. $$

This result can be checked by writing \(g(x)=x^2+1\) and differentiating the product directly: \[ \frac{x^2+1}{x-2} \] has derivative \[ \frac{2x(x-2)-(x^2+1)}{(x-2)^2}. \] At \(x=0\), the numerator is \(0-1=-1\) and the denominator is \(4\), giving \(-1/4\). The domain condition is part of the calculation: the Product Rule applies at an interior point of an interval where both factors are defined and differentiable.

What the Proof Does—and Does Not—Say

The proof succeeds because it turns a simultaneous change into two separate changes. The exact identity assigns one difference to \(f\) and the other to \(g\); in the limit, each change is weighted by the value of the other factor. The first-order approach expresses the same structure in another way: multiplying the linear approximations produces the two linear contributions, while products of changes contribute only to the smaller-order remainder.

A common error is to write \((fg)'(a)=f'(a)g'(a)\). The proof shows why this is not the formula: the terms arise from a change in one factor multiplied by the value of the other, not from multiplying the two changes. Another error is to use the theorem without checking differentiability of both factors at the point. The theorem provides a sufficient condition for the product to be differentiable; it does not say that both factors must be differentiable whenever their product is differentiable.

For example, \(u(x)=|x|\) is not differentiable at zero, but \(u(x)u(x)=x^2\) is differentiable there. This does not contradict the Product Rule, whose hypotheses are not met for the two factors \(u\) and \(u\). The distinction between a theorem’s sufficient hypotheses and necessary conditions is important throughout analysis.

Check Your Understanding

Use the difference-quotient proof and the first-order approximation result to answer the following.

  1. In the split difference-quotient identity, what intermediate term is added and subtracted in the numerator?
  2. Why does the proof need continuity of \(g\) at \(a\) for the first term of the identity?
  3. If \(f(a)=5\), \(f'(a)=-1\), \(g(a)=2\), and \(g'(a)=4\), find \((fg)'(a)\).
  4. In the first-order approximation proof, why does \(h\varepsilon_f(h)\varepsilon_g(h)\), divided by \(h\), tend to zero?
  5. Does differentiability of \(fg\) imply that both \(f\) and \(g\) are differentiable? Give a reason for your answer.