AP® Calculus AB review sheet from Aim for Five (aimforfive.com/calc-ab/units/2/2-8)
Unit 2 · Topic 2.8
2.8 The Product Rule
To differentiate a product f(x)·g(x), use the product rule: f′(x)g(x) + f(x)g′(x). The derivative of a product is not the product of the derivatives, which is one of the most common mistakes in calculus.
Key terms
- product rule
- product of functions
- f′g + fg′
The rule
If h(x) = f(x)·g(x), then h′(x) = f′(x)g(x) + f(x)g′(x). A handy way to say it: derivative of the first times the second, plus the first times the derivative of the second.
Because the two terms are added, the order doesn't matter. f(x)g′(x) + g(x)f′(x) is the same thing.
Why it has two terms
Picture a rectangle with width f(x) and height g(x), so its area is f(x)·g(x). When x changes a little, the width grows by about f′(x)·Δx and the height by about g′(x)·Δx. The new area adds a strip along the top (width times the height change) and a strip along the side (height times the width change), plus a tiny corner piece that becomes negligible. The two strips are the two terms of the product rule.
Using it with tables
The exam often gives values of f, g, f′ and g′ in a table and asks for the derivative of a product at a point. Plug the table values into the rule: h′(a) = f′(a)g(a) + f(a)g′(a). Each of the four values must come from the same x-value, a.
When to use it, and when not to
Not every product needs the full rule. Look at the factors first:
- Use it when two non-constant functions of x are multiplied: x²eˣ, x sin x, eˣ ln x.
- Skip it when one factor is a constant: 5 sin x just needs the constant multiple rule.
- Consider expanding first when both factors are polynomials, like (x² + 1)(x − 3). Either method works; pick the faster one.
- For three factors, apply it twice: (fgk)′ = f′gk + fg′k + fgk′.
Simplifying the result
After using the rule, factoring helps when you need to solve h′(x) = 0. For h(x) = x²eˣ, h′(x) = 2xeˣ + x²eˣ = xeˣ(x + 2). Since eˣ is never 0, h′(x) = 0 only at x = 0 and x = −2.
Product rule with graphs
Sometimes f and g are given as graphs made of straight segments. Then f(a) is the height of the graph at x = a and f′(a) is the slope of the segment that contains a. For h(x) = f(x)g(x), read all four values at the same x and use the rule.
If a is at a corner of one of the graphs, the derivative of that function doesn't exist there, so the product rule can't be used at that point.
Worked examples
Try each one yourself first, then open the solution.
- Example 1
Product rule with a table
f(2) = 3, f′(2) = −1, g(2) = 4 and g′(2) = 5. If h(x) = f(x)·g(x), find h′(2).
Show the solutionHide the solution
- Step 1: Product rule: h′(2) = f′(2)g(2) + f(2)g′(2).
- Step 2: Substitute: (−1)(4) + (3)(5) = −4 + 15.
Answer: h′(2) = 11
- Example 2
Product of a power and a trig function
Find the slope of y = x sin x at x = π.
Show the solutionHide the solution
- Step 1: Product rule: y′ = (1)(sin x) + (x)(cos x) = sin x + x cos x.
- Step 2: At x = π: sin π + π cos π = 0 + π(−1).
Answer: The slope is −π.
- Example 3
Trap: multiplying the derivatives
A student says that for h(x) = x²eˣ, h′(x) = (2x)(eˣ) = 2xeˣ. Find the correct derivative and check it at x = 1.
Show the solutionHide the solution
- Step 1: The student multiplied the two derivatives. That ignores the second term.
- Step 2: Correct: h′(x) = (2x)eˣ + x²(eˣ) = eˣ(x² + 2x) = xeˣ(x + 2).
- Step 3: At x = 1: the correct value is 3e ≈ 8.155, while the student's formula gives 2e ≈ 5.437.
Answer: h′(x) = xeˣ(x + 2), so h′(1) = 3e.
Common mistakes
- Writing (fg)′ = f′g′. You need both terms: f′g + fg′.
- Mixing x-values when using a table, like using f(2) with g′(3).
- Forgetting that a factor like eˣ or a trig function is a function of x, not a constant.
On the exam
- Table-based product rule questions are very common in multiple choice and in free response.
- In free response, you don't have to simplify a derivative unless you need to solve or analyze it, but show the rule's two terms clearly.
Connected topics
Videos
Check yourself
4 questions on 2.8 The Product Rule. Pick an answer to see if you got it, and why.
If h(x) = x³ ln x, what is h′(e)?
If f(x) = x tan x, what is f′(π/4)?
On the interval [0, 2π], at which values of x does the graph of h(x) = eˣ cos x have a horizontal tangent line?
If f(x) = sin x · sec x, then f′(x) =
0 of 4 answered