# Product Rule

> AP Calculus AB · Unit 2: Differentiation: Definition and Fundamental Properties
> Source: https://www.owlsprep.com/study/ap-calculus-ab-u2-product-rule/

This study guide covers the product rule for differentiation, including the core formula for two and multiple functions, derivation from first principles, applications to tangent lines, and common exam pitfalls for AP Calculus AB.

**Prerequisites:** [Limit definition of the derivative](https://www.owlsprep.com/study/ap-calculus-ab-u2-derivative-definition/); [Basic derivative rules (power rule, constant multiple)](https://www.owlsprep.com/study/ap-calculus-ab-u2-basic-derivative-rules/); Algebraic factoring and expansion

## Learning objectives

- State the product rule for two and multiple differentiable functions
- Apply the product rule to differentiate products of functions
- Use the product rule to find tangent lines to product functions
- Identify and avoid common errors when applying the product rule

## Product Rule for Two Differentiable Functions

For any function $f(x) = g(x)h(x)$, where $g(x)$ and $h(x)$ are both differentiable at $x$, the product rule can be derived directly from the limit definition of the derivative.

**Derivation:** Derive the product rule formula from first principles

*Starting from:* The limit definition of $f'(x)$ for $f(x) = g(x)h(x)$

1. Start with the standard limit definition:
2. $$f'(x) = \lim_{\Delta x \to 0} \frac{g(x+\Delta x)h(x+\Delta x) - g(x)h(x)}{\Delta x}$$
3. Add and subtract $g(x+\Delta x)h(x)$ in the numerator to factor:
4. $$\text{Numerator} = g(x+\Delta x)\left(h(x+\Delta x) - h(x)\right) + h(x)\left(g(x+\Delta x) - g(x)\right)$$
5. Split the limit, use the fact that differentiable functions are continuous ($\lim_{\Delta x \to 0} g(x+\Delta x) = g(x)$), and apply the definition of $g'(x)$ and $h'(x)$.

*Conclusion:* We arrive at the standard product rule formula for two functions.

**Product Rule (Two Functions)** — If both $g$ and $h$ are differentiable at $x$, the derivative of $f(x)$ is: $f'(x) = g(x)h'(x) + h(x)g'(x)$

*Notation:* f(x) = g(x)h(x)

*Example:* For $f(x) = x^3 \sin x$, $f'(x) = x^3 \cos x + 3x^2 \sin x$

**Worked example:** Find the derivative of $f(x) = x^3 \sin x$.

1. 1. Identify the two differentiable factors:
2. $$g(x) = x^3, \quad h(x) = \sin x$$
3. 2. Calculate the derivatives of each factor:
4. $$g'(x) = 3x^2, \quad h'(x) = \cos x$$
5. 3. Substitute into the product rule formula:
6. $$f'(x) = g(x)h'(x) + h(x)g'(x) = x^3 \cos x + (\sin x)(3x^2)$$
7. 4. Simplify by factoring out the common term $x^2$:
8. $$f'(x) = x^2\left(x \cos x + 3 \sin x\right)$$

> **Exam tip:** Always explicitly label $g(x), g'(x), h(x), h'(x)$ in FRQ working to earn partial credit for small errors.

## Extended Product Rule for Three or More Functions

The product rule generalizes naturally to products of three or more differentiable functions, and this extension is commonly tested on AP exams. The pattern is simple: for $n$ factors multiplied together, the derivative will have $n$ terms, where each term is the derivative of exactly one factor multiplied by all the other original (unchanged) factors.

**Product Rule (Three Functions)** — The derivative is given by: $f'(x) = u'(x)v(x)w(x) + u(x)v'(x)w(x) + u(x)v(x)w'(x)$

*Notation:* f(x) = u(x)v(x)w(x)

If you forget the extended pattern, you can always derive it by grouping two factors as a single product and applying the two-function product rule twice. This method requires no extra memorization and always gives the correct result.

**Worked example:** Find the derivative of $f(x) = 2x e^x \cos x$.

1. 1. Label the three factors and their individual derivatives:
2. $$u(x) = 2x, \quad u'(x) = 2 \\ v(x) = e^x, \quad v'(x) = e^x \\ w(x) = \cos x, \quad w'(x) = -\sin x$$
3. 2. Apply the extended product rule:
4. $$f'(x) = (2)(e^x)(\cos x) + (2x)(e^x)(\cos x) + (2x)(e^x)(-\sin x)$$
5. 3. Simplify by factoring out the common term $2e^x$:
6. $$f'(x) = 2e^x\left(\cos x + x \cos x - x \sin x\right)$$

> **Exam tip:** If you forget the extended pattern, group two factors and apply the two-function rule twice for a foolproof result.

## AP Application: Finding Tangent Lines

One of the most common AP exam applications of the product rule is finding the equation of a tangent line to a curve that is defined as a product of functions. This problem combines your knowledge of the product rule with the geometric definition of the derivative as the slope of the tangent line, following three core steps: 1) Use product rule to find $f'(x)$, 2) Evaluate $f'(a)$ at the given $x=a$ to get the slope $m$, 3) Find $f(a)$ to get the point $(a, f(a))$, then use point-slope form to write the tangent line equation.

**Worked example:** Find the equation of the tangent line to $f(x) = (x^2 - 4)(3x + 2)$ at $x=1$.

1. 1. Identify factors and their derivatives:
2. $$g(x) = x^2 - 4, \quad g'(x) = 2x \\ h(x) = 3x + 2, \quad h'(x) = 3$$
3. 2. Apply product rule to find $f'(x)$ and simplify:
4. $$f'(x) = (x^2 - 4)(3) + (3x + 2)(2x) = 3x^2 - 12 + 6x^2 + 4x = 9x^2 + 4x - 12$$
5. 3. Calculate the slope at $x=1$:
6. $$f'(1) = 9(1)^2 + 4(1) - 12 = 1 \implies m = 1$$
7. 4. Calculate the $y$-coordinate of the tangent point:
8. $$f(1) = (1 - 4)(3 + 2) = -15 \implies \text{Point} = (1, -15)$$
9. 5. Use point-slope form and simplify to slope-intercept:
10. $$y + 15 = 1(x - 1) \implies y = x - 16$$

> **Exam tip:** For polynomial products, expand the original product and differentiate term-by-term to quickly check your derivative result.

## AP-Style Concept Check

**Check your understanding**

Test your understanding with these AP-style practice questions:

1. What is the derivative of $f(x) = 4x e^{2x}$?

   - A) $4e^{2x}(2x + 1)$
   - B) $8e^{2x}$
   - C) $4e^{2x}(x + 1)$
   - D) $8x e^{2x}$

   *Why:* Incorrect options come from common errors: forgetting one term of the product rule, or incorrectly applying the constant multiple rule. The correct working is: $g(x) = 4x$, $g'(x)=4$, $h(x)=e^{2x}$, $h'(x)=2e^{2x}$, so $f'(x) = (4x)(2e^{2x}) + 4e^{2x} = 4e^{2x}(2x+1)$.

2. Let $f(x) = (x^2 - 5x) \cos x$. (a) Find $f'(x)$. (b) Find the slope of the tangent line at $x = \pi$. (c) Is $f(x)$ increasing or decreasing at $x = \pi$? Justify your answer.

   *Why:* This is a common multi-part FRQ style question that tests both product rule application and interpretation of the derivative sign.

## Common pitfalls

- **Wrong:** For $f(x) = g(x)h(x)$, claim $f'(x) = g'(x)h'(x)$
  - Why it fails: Students incorrectly extend the sum rule pattern ($(g+h)' = g' + h'$) to products
  - Correct: Always write the full product rule $f'(x) = g(x)h'(x) + h(x)g'(x)$ before starting calculations
- **Wrong:** For $f(x) = 3x^2 \sin x$, write $f'(x) = 3(2x \cos x) = 6x \cos x$, forgetting the second product rule term
  - Why it fails: Confusion between the constant multiple rule and product rule, leading to stopping after differentiating only one factor
  - Correct: Factor the constant out first to apply product rule only to the non-constant factors, or treat the constant as a factor with derivative zero
- **Wrong:** For $f(x) = (x+3)^2 = (x+3)(x+3)$, calculate $f'(x) = 1 \cdot 1 = 1$
  - Why it fails: Same as the first pitfall: multiplying derivatives instead of applying the full product rule
  - Correct: Apply product rule: $f'(x) = (1)(x+3) + (x+3)(1) = 2(x+3)$, which matches the chain rule result
- **Wrong:** For $f(x) = uvw$, write $f'(x) = u'v'w + uv'w' + u'v'w'$
  - Why it fails: Misremembering the extended pattern, taking the derivative of two factors per term instead of one
  - Correct: Follow the rule: each term has exactly one derivative, all other factors are unchanged: $f'(x) = u'vw + uv'w + uvw'$
- **Wrong:** When finding a tangent line at $x=a$, calculate slope $m = f(a)$ instead of $m = f'(a)$
  - Why it fails: Rushing through the problem, mixing up what the original function and derivative represent
  - Correct: Explicitly label 'slope = $f'(a)$' and 'y-coordinate = $f(a)$' in your working to avoid mixing them up

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Product Rule (Two Functions) | If $f(x) = g(x)h(x)$, then $f'(x) = g(x)h'(x) + h(x)g'(x)$ | Applies to differentiable $g, h$; derivative of product $\neq$ product of derivatives |
| Leibniz Notation | $\frac{d}{dx}[uv] = u \frac{dv}{dx} + v \frac{du}{dx}$ | Common in FRQ, easy to track which term is differentiated |
| Product Rule (Three Functions) | If $f(x) = uvw$, then $f'(x) = u'vw + uv'w + uvw'$ | Each term differentiates exactly one factor; all other factors stay unchanged |
| Extended Rule (n Factors) | $\frac{d}{dx}\left[\prod_{i=1}^n f_i\right] = \sum_{i=1}^n \left(f_i' \prod_{j \neq i} f_j\right)$ | Rarely tested for $n>3$ on AB; group and use two-function rule if unsure |
| Constant Multiple Rule (Special Case) | If $f(x) = c \cdot g(x)$, then $f'(x) = c \cdot g'(x)$ | Derived from product rule: derivative of constant $c$ is 0 |
| Tangent Line Slope at $x=a$ | Slope $m = f'(a)$ | Slope always comes from the derivative, not the original function |
| Tangent Line Equation | $y - f(a) = m(x - a)$ | Standard point-slope form; simplify to slope-intercept if requested |

## What's next

Mastering the product rule is a non-negotiable prerequisite for every upcoming differentiation topic in AP Calculus AB. Immediately next, you will combine the product rule with the chain rule to differentiate composite functions that include products of simpler inner functions, a common source of points on both multiple-choice and free-response sections. Later, you will rely on the product rule for implicit differentiation, related rates, and optimization problems, where most functions you need to differentiate are products of two or more simpler functions. Without a solid command of the product rule, you will be unable to correctly set up and solve these more complex problems, leading to unnecessary lost points.

- [Quotient rule](https://www.owlsprep.com/study/ap-calculus-ab-u2-quotient-rule/)
- [Implicit differentiation](https://www.owlsprep.com/study/ap-calculus-ab-u3-implicit-differentiation/)
- [Derivatives of tan, cot, sec, csc](https://www.owlsprep.com/study/ap-calculus-ab-u2-derivatives-of-tan-cot-sec/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-ab-u2-product-rule/
