Product Rule
What is the Product Rule?
The product rule differentiates a product of two functions. In words: "first times the derivative of the second, plus the second times the derivative of the first." It's easy to reach for the shortcut of just multiplying f' and g' together — that shortcut is wrong, which is why this rule exists.
For three functions multiplied together, the rule extends naturally: (fgh)' = f'gh + fg'h + fgh' — each term differentiates exactly one of the three functions and leaves the other two unchanged.
What Each Variable Means
When to Use It
- Differentiating any expression that's a product of two (or more) functions, like x²·sin x
- As the basis for deriving the quotient rule (writing f/g as f·g⁻¹)
- Anywhere two changing quantities are multiplied together, such as in related-rates problems
Step-by-Step Examples
Example 1: Product of a polynomial and a trig function
Problem: Differentiate y = x² · sin x
Split the product into its two factors.
f = x², g = sin xDifferentiate each factor separately.
f' = 2x, g' = cos xCombine according to the rule.
dy/dx = x²·cos x + sin x·2xExample 2: Product of two exponential-type functions
Problem: Differentiate y = eˣ · ln x
Split the product into its two factors.
f = eˣ, g = ln xDifferentiate each factor separately.
f' = eˣ, g' = 1/xCombine according to the rule.
dy/dx = eˣ·(1/x) + ln x·eˣCommon Mistakes
Mistake: Multiplying the two derivatives together: d/dx(fg) = f'g'.
Fix: That shortcut is incorrect. The correct rule is d/dx(fg) = f·g' + g·f' — each factor is paired with the other's derivative, then the two products are added.
Practice Questions
Differentiate y = x · eˣ.
Hint: f = x, g = eˣ; f' = 1, g' = eˣ.
Differentiate y = x³ · cos x.
Frequently Asked Questions
How do I extend the product rule to three functions?
(fgh)' = f'gh + fg'h + fgh' — each term differentiates one function at a time, leaving the other two as they are.
Is the product rule related to the quotient rule?
Yes — the quotient rule can be derived from the product rule by rewriting f/g as f · g⁻¹ and applying the product and chain rules together.
Related Formulas
Quotient Rule
Differentiates a ratio of two functions — remembered by the mnemonic "low d-high minus high d-low, over low squared."
Learn more →Chain Rule
Differentiates composite functions — functions nested inside other functions.
Learn more →Power Rule
The most fundamental differentiation rule — multiply by the exponent, then reduce the exponent by one.
Learn more →