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.
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
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.
\(\dfrac{d}{dx}\left[x^2\sin x\right]\)
- 1First factor \(f = x^2\), \(f' = 2x\). Second factor \(g = \sin x\), \(g' = \cos x\).
- 2\(f'g + fg' = 2x\sin x + x^2\cos x\).
\(\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
3Using the rule
\(y = xe^x\)
- 1\(y' = (1)e^x + x\,e^x = e^x(1 + x)\).
- 2\(e^x\) is never 0, so \(y' = 0\) only when \(1 + x = 0\): \(x = -1\).
- 3Height: \(y = -1 \cdot e^{-1} = -\dfrac{1}{e} \approx -0.368\).
\(\dfrac{d}{dx}\left[(x^3 + 1)\sqrt{x}\right]\)
- 1Product 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}\).
- 2Expand first: \((x^3 + 1)x^{1/2} = x^{7/2} + x^{1/2}\), derivative \(\tfrac72 x^{5/2} + \tfrac12 x^{-1/2}\).
- 3Both routes agree. Expanding is often quicker when it is easy; the product rule always works.
\(\dfrac{d}{dx}\left[x\,e^x\ln x\right]\)
- 1The rule extends: differentiate one factor at a time, leaving the others alone, and add the three results.
- 2\((1)e^x\ln x + x(e^x)\ln x + x e^x\left(\tfrac{1}{x}\right)\).
- 3Simplify the last term: \(xe^x \cdot \tfrac1x = e^x\).
\(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
\(h(x) = f(x)g(x)\); find \(h'(2)\)
\(f(2) = 3\), \(f'(2) = -1\), \(g(2) = 5\), \(g'(2) = 4\).
- 1\(h'(2) = f'(2)g(2) + f(2)g'(2)\).
- 2\(= (-1)(5) + (3)(4) = -5 + 12 = 7\).
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\(R'(t) = p'(t)q(t) + p(t)q'(t)\).
- 2\(= (0.50)(300) + (12)(-10) = 150 - 120 = 30\).
- 3The price increase adds 150 dollars per month; the drop in sales takes away 120.
“\(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.”
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
| Situation | Derivative |
|---|---|
| \(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 expand | Expanding first is fine; both methods agree |