How do you use the product rule for derivatives?
Product rule for derivatives with worked examples
The product rule differentiates two functions multiplied together. If y = f(x)g(x), then y′ = f′(x)g(x) + f(x)g′(x). In words: differentiate the first and keep the second, then keep the first and differentiate the second.
What you should know first
- Basic power, exponential and trigonometric derivatives
- Recognizing multiplication of two functions
- Simplifying algebraic expressions
The explanation
Label the two factors
For x² sin(x), let f = x² and g = sin(x). Then f′ = 2x and g′ = cos(x). Substitute all four pieces into f′g + fg′ without dropping either term.
Do not multiply the derivatives
In general (fg)′ is not f′g′. The product has two changing factors, so its rate of change contains one contribution from each factor. Differentiating x · x as 1 · 1 = 1 instead of 2x shows why the naive rule fails.
Combine it with other rules
A factor may itself be composite. To differentiate x² sin(3x), use the product rule first and the chain rule for sin(3x): y′ = 2x sin(3x) + 3x² cos(3x). For three factors, apply the product rule twice or use f′gh + fg′h + fgh′.
What this covers
- Applying f′g + fg′
- Avoiding the f′g′ misconception
- Products with chain-rule factors
- Factoring and simplifying derivatives
Worked examples
Differentiate y = x² sin(x)
- 1Label the factorsf(x) = x² and g(x) = sin(x).
- 2Differentiate each factorf′(x) = 2x and g′(x) = cos(x).
- 3Apply f′g + fg′y′ = 2x sin(x) + x² cos(x).
- 4Check the structureThere are two terms: one with the first factor differentiated and one with the second differentiated.
Differentiate y = (x² + 1)e^x
- 1Label and differentiatef = x² + 1, g = e^x, so f′ = 2x and g′ = e^x.
- 2Apply the product ruley′ = 2xe^x + (x² + 1)e^x.
- 3Factor the common exponentialFactor e^x and combine 2x + x² + 1.
Mistakes that cost marks
- Using (fg)′ = f′g′ instead of f′g + fg′.
- Including only one of the two product-rule terms.
- Forgetting the chain rule inside a factor such as sin(3x).
- Expanding a product unnecessarily before differentiating.
10 practice questions with step-by-step answers
Pick an answer to see if you're right and why.
1. 1. Differentiate x sin(x).
2. 2. Differentiate x²e^x.
3. 3. Differentiate (3x + 1)(x² − 2).
4. 4. Differentiate e^x cos(x).
5. 5. Differentiate x ln(x), for x > 0.
6. 6. Differentiate x² sin(3x).
7. 7. If f(2) = 3, f′(2) = 4, g(2) = 5 and g′(2) = −1, what is (fg)′(2)?
8. 8. What is the derivative of x · x using the product rule?
9. 9. Which expression is the product rule for fgh?
10. 10. A student differentiates x³e^x as 3x²e^x. Which correction is needed?
Questions students ask
What is the product rule formula?
For y = f(x)g(x), the product rule is y′ = f′(x)g(x) + f(x)g′(x). Each term changes exactly one factor.
Can I just multiply the two derivatives?
No. f′g′ omits the interaction between each changing factor and the other factor's value. Use f′g + fg′ unless the functions have special additional structure.
When do I use the product rule and chain rule together?
Use the product rule when the whole expression is a multiplication. If either factor is a composite, use the chain rule while finding that factor's derivative.
Continue with a personalized 14-day study plan
Take the free adaptive diagnostic to find your weakest calculus concept, get your first learning step, and preview a plan built from your answers. No card is needed.