01 / 20
×

The Product Rule

Master how to differentiate the product of two functions: learn the formula, see it in action, and avoid common pitfalls.

Calculus 1

Why Can't We Just Multiply Derivatives?

Consider the functions \( f(x) = x \) and \( g(x) = x \). Their product is \( f(x) \cdot g(x) = x^2 \), whose derivative is \( 2x \).

But if we simply multiplied the individual derivatives, we would get \( f'(x) \cdot g'(x) = 1 \cdot 1 = 1 \), which is wrong.

What Is the Product Rule?

When two differentiable functions are multiplied together, the Product Rule tells us how to find the derivative of that product.

Input
Two differentiable functions \( f(x) \) and \( g(x) \)
Output
The derivative of their product: \( \frac{d}{dx}[f(x) \cdot g(x)] \)

Geometric Intuition

Imagine a rectangle with width \( f(x) \) and height \( g(x) \). Its area is \( A = f \cdot g \). When \( x \) changes by a tiny \( dx \), both sides grow:

\(f \cdot g\)
\(g \cdot df\)
\(f \cdot dg\)
\(\approx 0\)
\(g\)
\(f\)
\(df\)
\(dg\)
\(f+df\)
\(g+dg\)

The Formal Statement

In words: "the derivative of the first times the second, plus the first times the derivative of the second."

Prime Notation
\( (f \cdot g)' = f'g + fg' \)
Leibniz Notation
\( \frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx} \)

Proof from the Limit Definition

1
Start with the limit definition: \( \displaystyle\lim_{h \to 0} \frac{f(x+h)\,g(x+h) - f(x)\,g(x)}{h} \)
2
Add and subtract \( f(x+h)\,g(x) \) in the numerator to create two recognizable pieces.
3
Factor: \( f(x+h)\!\cdot\!\frac{g(x+h)-g(x)}{h} + g(x)\!\cdot\!\frac{f(x+h)-f(x)}{h} \)
4
As \( h \to 0 \): \( f(x+h) \to f(x) \), and the difference quotients become \( g'(x) \) and \( f'(x) \).

Product Rule vs. Chain Rule

Product Rule Chain Rule
Structure \( f(x) \cdot g(x) \) \( f\bigl(g(x)\bigr) \)
Operation Multiplication of two functions Composition (function inside function)
Formula \( f'g + fg' \) \( f'\bigl(g(x)\bigr) \cdot g'(x) \)
Example \( x^2 \sin x \) \( \sin(x^2) \)

How to Apply the Product Rule

1
Identify the two factors: Label one as \( f(x) \) and the other as \( g(x) \).
2
Differentiate each factor separately: Find \( f'(x) \) and \( g'(x) \) using basic rules (power, trig, exponential, etc.).
3
Plug into the formula: Compute \( f'(x)\,g(x) + f(x)\,g'(x) \).
4
Simplify: Combine like terms, factor if possible, and present the final answer.

Example 1: Polynomial Times Polynomial

Find the derivative of \( h(x) = x^3 \cdot (2x + 5) \).

1
Let \( f(x) = x^3 \) and \( g(x) = 2x + 5 \).
2
Derivatives: \( f'(x) = 3x^2 \) and \( g'(x) = 2 \).
3
Apply: \( h'(x) = \underbrace{3x^2}_{f'}\!\cdot\!\underbrace{(2x+5)}_{g} \;+\; \underbrace{x^3}_{f}\!\cdot\!\underbrace{2}_{g'} \)
4
Simplify: \( 6x^3 + 15x^2 + 2x^3 = 8x^3 + 15x^2 \).

Example 2: Polynomial Times Trig

Find \( \frac{d}{dx}\bigl[x^2 \sin x\bigr] \).

1
Let \( f(x) = x^2 \) and \( g(x) = \sin x \).
2
Derivatives: \( f'(x) = 2x \) and \( g'(x) = \cos x \).
3
Apply: \( 2x \sin x + x^2 \cos x \).

Example 3: Exponential Times Polynomial

Find \( \frac{d}{dx}\bigl[e^x(3x^2 - 7)\bigr] \).

1
Let \( f(x) = e^x \) and \( g(x) = 3x^2 - 7 \).
2
Derivatives: \( f'(x) = e^x \) and \( g'(x) = 6x \).
3
Apply: \( e^x(3x^2 - 7) + e^x(6x) \).
4
Factor out \( e^x \): \( e^x(3x^2 + 6x - 7) \).

Visualizing \( f \), \( g \), and \( (fg)' \)

0 1 2 3 4 x y -1 1 2 3 4 5
\(f(x)=x+1\)
\(g(x)=e^{-x}\)
\((fg)'\)

Extending to Three Functions

What if we need \( \frac{d}{dx}[f \cdot g \cdot h] \)? Apply the Product Rule iteratively:

Each term has exactly one derivative and the other factors are left alone. The pattern generalizes to any number of factors.

Common Mistakes to Avoid

✕ Multiplying Derivatives
Writing \( (fg)' = f' \cdot g' \). This is always wrong. You must use \( f'g + fg' \).
✕ Forgetting a Term
Writing only \( f'g \) or only \( fg' \). The Product Rule has two terms added together.
✕ Confusing with Chain Rule
Applying the Chain Rule to \( x^2 \sin x \) instead of the Product Rule. Check the structure: multiplication vs. composition.

Summary of Derivative Rules

Rule When to Use Formula
Power Rule \( x^n \) \( nx^{n-1} \)
Constant Multiple \( c \cdot f(x) \) \( c \cdot f'(x) \)
Product Rule \( f(x) \cdot g(x) \) \( f'g + fg' \)
Quotient Rule \( \frac{f(x)}{g(x)} \) \( \frac{f'g - fg'}{g^2} \)
Chain Rule \( f\bigl(g(x)\bigr) \) \( f'\bigl(g(x)\bigr) \cdot g'(x) \)

Question 1 of 5

What is \( \frac{d}{dx}[x \cdot e^x] \)?

Question 2 of 5

Find \( \frac{d}{dx}[x^2 \cos x] \).

Question 3 of 5

If \( h(x) = (3x + 1)(x^2 - 4) \), what is \( h'(x) \)?

Question 4 of 5

Which expression correctly applies the Product Rule to \( e^x \ln x \)?

Question 5 of 5

A student writes \( \frac{d}{dx}[\sin x \cdot \cos x] = \cos x \cdot (-\sin x) = -\sin x \cos x \). What is wrong?