AP Calculus AB · Study guide

The Product Rule

AP® Calculus AB · Unit 2 · Differentiation: Definition and Fundamental Properties

The Product Rule

The derivative of a product is not the product of the derivatives. This guide shows the correct rule, why it has two terms, and how to use it with formulas, tables and real rates.

The idea in one paragraph

If \(h(x) = f(x)g(x)\), then \(h'(x) = f'(x)g(x) + f(x)g'(x)\): derivative of the first times the second, plus the first times derivative of the second. Each term lets one factor change while the other stays put, and together they account for the whole change. Multiplying the two derivatives, \(f'g'\), is never the answer.

1The rule

\[ \frac{d}{dx}\left[f(x)\,g(x)\right] = f'(x)\,g(x) + f(x)\,g'(x) \]

Label the two factors before you start. Write down \(f\), \(f'\), \(g\) and \(g'\), then assemble the two terms. The order of the two terms does not matter, because addition can be done in either order.

Worked Example 1 Power times trig

\(\dfrac{d}{dx}\left[x^2\sin x\right]\)

  1. 1
    First factor \(f = x^2\), \(f' = 2x\). Second factor \(g = \sin x\), \(g' = \cos x\).
  2. 2
    \(f'g + fg' = 2x\sin x + x^2\cos x\).
Answer: \(2x\sin x + x^2\cos x\)
Common Mistake 1 · Multiplying the derivatives

\(\frac{d}{dx}\left[x^2\sin x\right]\) is not \(2x\cos x\). Check with a simple case: \(x \cdot x = x^2\) has derivative \(2x\), but \(1 \cdot 1 = 1\). The two-term rule gives \(1 \cdot x + x \cdot 1 = 2x\).

2Why two terms

Figure 1. Think of f·g as the area of a rectangle. When both sides grow, the area grows by two strips, one from each side, plus a corner so small it disappears in the limit. That is why the product rule has two terms, not one.

3Using the rule

Worked Example 2 Find a horizontal tangent

\(y = xe^x\)

  1. 1
    \(y' = (1)e^x + x\,e^x = e^x(1 + x)\).
  2. 2
    \(e^x\) is never 0, so \(y' = 0\) only when \(1 + x = 0\): \(x = -1\).
  3. 3
    Height: \(y = -1 \cdot e^{-1} = -\dfrac{1}{e} \approx -0.368\).
Answer: Horizontal tangent at \(\left(-1, -\tfrac{1}{e}\right)\).
Figure 2. The product rule gives y′ = eˣ(1 + x), which is 0 only at x = −1. That is the bottom of the dip, where the tangent line is horizontal.
Worked Example 3 Two methods, one answer

\(\dfrac{d}{dx}\left[(x^3 + 1)\sqrt{x}\right]\)

  1. 1
    Product rule: \(3x^2 \cdot x^{1/2} + (x^3 + 1) \cdot \tfrac12 x^{-1/2} = 3x^{5/2} + \tfrac12 x^{5/2} + \tfrac12 x^{-1/2} = \tfrac72 x^{5/2} + \tfrac12 x^{-1/2}\).
  2. 2
    Expand first: \((x^3 + 1)x^{1/2} = x^{7/2} + x^{1/2}\), derivative \(\tfrac72 x^{5/2} + \tfrac12 x^{-1/2}\).
  3. 3
    Both routes agree. Expanding is often quicker when it is easy; the product rule always works.
Answer: \(\tfrac72 x^{5/2} + \dfrac{1}{2\sqrt{x}}\)
Worked Example 4 Three factors

\(\dfrac{d}{dx}\left[x\,e^x\ln x\right]\)

  1. 1
    The rule extends: differentiate one factor at a time, leaving the others alone, and add the three results.
  2. 2
    \((1)e^x\ln x + x(e^x)\ln x + x e^x\left(\tfrac{1}{x}\right)\).
  3. 3
    Simplify the last term: \(xe^x \cdot \tfrac1x = e^x\).
Answer: \(e^x\ln x + xe^x\ln x + e^x\)
Common Mistake 2 · Using the product rule on a constant multiple

\(5x^3\) is a product, but 5 is a constant. The product rule works (\(0 \cdot x^3 + 5 \cdot 3x^2\)), but the constant multiple rule is faster: \(15x^2\).

4From values and in context

Worked Example 5 From values

\(h(x) = f(x)g(x)\); find \(h'(2)\)

\(f(2) = 3\), \(f'(2) = -1\), \(g(2) = 5\), \(g'(2) = 4\).

  1. 1
    \(h'(2) = f'(2)g(2) + f(2)g'(2)\).
  2. 2
    \(= (-1)(5) + (3)(4) = -5 + 12 = 7\).
Answer: \(h'(2) = 7\). (Multiplying the derivatives, \((-1)(4) = -4\), would be wrong.)
Worked Example 6 Rates in context

Revenue when price and sales both change

A café sells \(q(t)\) sandwiches per month at price \(p(t)\) dollars, so revenue is \(R = p \cdot q\). This month \(p = 12\), rising at $0.50 per month, and \(q = 300\), falling by 10 sandwiches per month. How fast is revenue changing?

  1. 1
    \(R'(t) = p'(t)q(t) + p(t)q'(t)\).
  2. 2
    \(= (0.50)(300) + (12)(-10) = 150 - 120 = 30\).
  3. 3
    The price increase adds 150 dollars per month; the drop in sales takes away 120.
Answer: Revenue is increasing at $30 per month.
Write it like this

“\(R'(t) = p'(t)q(t) + p(t)q'(t) = (0.50)(300) + (12)(-10) = 30\). At this time the café’s revenue is increasing at $30 per month.”

Common Mistake 3 · Dropping a sign

In Worked Example 6, sales are falling, so \(q' = -10\), not 10. A rate that decreases a quantity is negative, and that sign carries through the product rule.

Quick reference

SituationDerivative
\(f \cdot g\)\(f'g + fg'\)
\(f \cdot g \cdot k\)\(f'gk + fg'k + fgk'\)
\(c \cdot f\) with c constant\(cf'\) (no product rule needed)
Easy to expandExpanding first is fine; both methods agree