AP® CALCULUS AB & BC · UNIT 2

The product rule:
formula & examples

Differentiate products with confidence. Learn the formula, follow worked examples and connect product derivatives to tables, tangents and rates.

Topic 2.8 study notes6 worked examples · 6 practice problemsUpdated 22 October 2026
Calculus notebook with limit and integral symbols, compass and pencil on an olive and cream study desk

1. The product rule: formula and meaning

Core concept: Sums use linearity, but a product requires a different rule. Each factor can change, so the derivative accounts for both contributions. Learn the product rule, justify it with limits, and combine it with the power rule and trigonometric, exponential and logarithm derivatives.

A common error: multiplying the two derivatives

The derivative of a product is not generally the product of its derivatives. This is a statement about the rule, not a claim that the two expressions can never agree at an isolated input.

ddx[f(x)g(x)]=f(x)g′(x)+g(x)f′(x)

Example showing why this is wrong:

Let f(x)=x2 and g(x)=x3

  • Correct approach: f(x)·g(x)=x5, so ddx[x5]=5x4
  • Wrong approach: f′(x)·g′(x)=2x·3x2=6x3 (different answer!)

Use the product rule, or simplify the product first when that gives an easier valid method. Here, combining the powers is especially efficient.

THE PRODUCT RULE

If u and v are differentiable functions of x, then:

ddx[u·v]=u·dvdx+v·dudx

Alternative Notation:

ddx[u·v]=u·v′+v·u′

Or using f and g:

ddx[f(x)·g(x)]=f(x)·g′(x)+g(x)·f′(x)

Shorthand notation:

(uv)′=uv′+vu′

MEMORY AIDS FOR THE PRODUCT RULE

Method 1: The Chant

"First d Second, plus Second d First"

Translation: (First function) × (derivative of Second) + (Second function) × (derivative of First)

Method 2: The Pattern

Take the first function, keep it. Differentiate the second.

Then ADD: Take the second function, keep it. Differentiate the first.

Method 3: Left-Right Mnemonic

"Left d Right, plus Right d Left"

Product Rule in Plain English:

To find the derivative of a product of two functions:

  1. Keep the first function unchanged
  2. Multiply by the derivative of the second function
  3. Add (+)
  4. Keep the second function unchanged
  5. Multiply by the derivative of the first function

Conditions and interpretation: If u and v are differentiable at the same input a, their product is differentiable there and (uv)′(a)=u′(a)v(a)+u(a)v′(a). Differentiability of both factors is a sufficient condition for this rule. It is not necessary for every product to be differentiable: |x|·|x|=x2 is differentiable at zero even though the separate factors are not.

For trigonometric factors use radians. If a factor is lnx, the real input must satisfy x>0. Every evaluation must belong to the original product's domain.

2. When to use the product rule or simplify first

Use the Product Rule when:

  • Two functions are multiplied: x2·sinx, ex·lnx, (3x+1)·cosx
  • No useful expansion: Products mixing a polynomial with a trigonometric, exponential or logarithmic function usually benefit from the product rule.
  • Expanding would be messier: Even if you could expand, Product Rule might be easier

Consider a shorter method when:

  • Expansion is convenient: (x+1)(x−2)=x2−x−2, so the power rule is a short alternative. The product rule remains valid.
  • One factor is constant: 5x3 is a product, but the constant multiple rule is shorter. The product rule also works because the derivative of five is zero.
  • Powers combine: x·x2=x3, so combine them before differentiating if convenient. Both methods give the same result.

Products, sums, quotients and compositions

StructureExampleChoose a method
Sumx2+sinxDifferentiate term by term using linearity.
Productx2sinxAccount for each changing factor with the product rule.
Quotientsinxx, x≠0The quotient rule is a useful next technique.
Compositionsin(x2)The chain rule in Unit 3 handles an inner function.

For a constant c, the product rule reduces to the familiar constant multiple rule: ddx[cu]=cu′+u·0=cu′.

3. Six worked examples with full steps

Example 1: Basic Product (Polynomial × Trig)

Problem: Find ddx[x2sinx]

Solution:

  1. Identify the two functions:
    • First function: u=x2
    • Second function: v=sinx
  2. Find each derivative:
    • u′=2x
    • v′=cosx
  3. Apply Product Rule: First d Second + Second d First
    ddx[x2sinx]=x2·cosx+sinx·2x
  4. Simplify (optional):
    =x2cosx+2xsinx

    Or factor: =x(xcosx+2sinx)

Answer: x2cosx+2xsinx

Example 2: Exponential × Polynomial

Problem: Differentiate f(x)=ex·x3

Solution:

  1. Identify: u=ex, v=x3
  2. Derivatives: u′=ex, v′=3x2
  3. Product Rule:
    f′(x)=ex·3x2+x3·ex
  4. Factor out ex:
    f′(x)=ex(3x2+x3)

    Can further factor: =ex·x2(3+x)

Answer: ex(3x2+x3) or exx2(x+3)

Example 3: Both Functions are Trig

Problem: Find g′(x) for g(x)=sinx·cosx

Solution:

  1. Identify: u=sinx, v=cosx
  2. Derivatives: u′=cosx, v′=−sinx (don't forget negative!)
  3. Product Rule:
    g′(x)=sinx·(−sinx)+cosx·cosx
  4. Simplify:
    g′(x)=−sin2x+cos2x=cos2x−sin2x
  5. Bonus identity: This equals cos(2x)! (double angle formula)

Answer: cos2x−sin2x or cos(2x)

Example 4: Polynomial × Natural Log

Problem: Find dydx for y=x3lnx

Solution:

  1. Identify: u=x3, v=lnx
  2. Derivatives: u′=3x2, v′=1x
  3. Product Rule:
    dydx=x3·1x+lnx·3x2
  4. Simplify:
    • x3·1x=x2
    • Result: x2+3x2lnx
  5. Factor (optional): =x2(1+3lnx)

Answer: x2+3x2lnx or x2(1+3lnx)

Example 5: More Complex Expression

Problem: Differentiate h(x)=(2x2−3x+1)·ex

Solution:

  1. Identify: u=2x2−3x+1, v=ex
  2. Derivatives:
    • u′=4x−3
    • v′=ex
  3. Product Rule:
    h′(x)=(2x2−3x+1)·ex+ex·(4x−3)
  4. Factor out ex:
    h′(x)=ex[(2x2−3x+1)+(4x−3)]
  5. Combine like terms:
    h′(x)=ex(2x2+x−2)

Answer: ex(2x2+x−2)

Example 6: Compare product rule with expansion

Problem: Find ddx[(x+2)(x−3)]

Option 1: Product Rule (works but more work)

  1. u=x+2, v=x−3
  2. u′=1, v′=1
  3. (x+2)(1)+(x−3)(1)=x+2+x−3=2x−1

Option 2: Expand First (easier!)

  1. Expand: (x+2)(x−3)=x2−x−6
  2. Differentiate: ddx[x2−x−6]=2x−1

Answer: 2x−1 (same result, but expanding first was simpler!)

Lesson: When factors are simple polynomials, compare expansion with the product rule and choose a clear, efficient method. Neither method is compulsory.

Domain and sign check: Examples 1, 2, 3, 5 and 6 have all real inputs as their domains. Example 4 contains lnx, so the original product and derivative require x>0. Trigonometric inputs use radians. In Example 3, cosine's negative derivative creates the negative sine-square term; the connecting product-rule operation is still addition.

4. Proof using the derivative definition

Theorem: If u and v are differentiable functions, then ddx[uv]=uv′+vu′

Proof (Using Limit Definition):

  1. Start with the limit definition:
    ddx[u(x)v(x)]=limh→0u(x+h)v(x+h)−u(x)v(x)h
  2. Add and subtract u(x+h)v(x) in the numerator (clever trick!):
    =limh→0u(x+h)v(x+h)−u(x+h)v(x)+u(x+h)v(x)−u(x)v(x)h
  3. Factor and separate:
    =limh→0u(x+h)[v(x+h)−v(x)]+v(x)[u(x+h)−u(x)]h
  4. Split into two limits:
    =limh→0u(x+h)·v(x+h)−v(x)h+limh→0v(x)·u(x+h)−u(x)h
  5. Evaluate limits:
    • limh→0u(x+h)=u(x) (continuity)
    • limh→0v(x+h)−v(x)h=v′(x) (definition of derivative)
    • limh→0u(x+h)−u(x)h=u′(x) (definition of derivative)
  6. Final result:
    ddx[uv]=u·v′+v·u′✓

Why the limit step is justified: Differentiability at the fixed input implies continuity there, so limh→0u(x+h)=u(x). The two difference quotients have finite limits by differentiability. These facts permit the sum and product limit laws used above. See the derivative definition and limit laws.

Adding and subtracting the intermediate product is an exact algebraic step for nonzero h. It separates the change in the second factor from the change in the first; simply splitting the original numerator does not supply the two derivative terms.

5. Products of three or more functions

Product Rule for Three Functions

If you have three functions multiplied together:

ddx[uvw]=u′vw+uv′w+uvw′

Pattern: Differentiate one factor at a time, keeping the others unchanged, then sum all terms.

Example: Find ddx[x2·sinx·ex]

  1. u=x2, v=sinx, w=ex
  2. u′=2x, v′=cosx, w′=ex
  3. Apply formula:
    =2x·sinx·ex+x2·cosx·ex+x2·sinx·ex
  4. Factor ex: =ex(2xsinx+x2cosx+x2sinx)

General rule: For a product of n differentiable factors, add n terms. In each term, differentiate one factor and leave all other factors unchanged.

6. Use function data, tangent lines and rate units

Evaluate a derivative from a table

Suppose p(x)=f(x)g(x), and both factors are differentiable at two. The supplied values are:

Inputf(x)f′(x)g(x)g′(x)
23−145
p′(2)=f′(2)g(2)+f(2)g′(2).
p′(2)=(−1)(4)+(3)(5)=−4+15=11.

All four entries must come from the same input. The product value is p(2)=3·4=12, which differs from its derivative value. The tangent line is therefore

y−p(2)=p′(2)(x−2),y=12+11(x−2).

A changing rectangle: both dimensions contribute

Let the length L(t) and width W(t) be differentiable functions of time, measured in metres while time is measured in seconds. Then

A(t)=L(t)W(t),dAdt=LdWdt+WdLdt.

At an instant with L=5m, W=3m, dLdt=0.2ms and dWdt=−0.1ms, calculate

dAdt=5(−0.1)+3(0.2)=0.1m2s.

The area is increasing at that instant despite the shrinking width. Each contribution has area per time units. Multiplying the two side rates would have incompatible units and would miss the current dimensions. Related rates are developed further in Unit 4.

7. Strategies, memory aids and common mistakes

Essential Tips

  • Memorize the chant: "First d Second plus Second d First" until it's automatic
  • Label the factors: Write u and v clearly before applying the rule.
  • Find derivatives first: Calculate u′ and v′ separately before substituting.
  • Don't forget the plus: Product Rule has TWO terms connected by addition
  • Simplify at the end: Factor out common terms, combine like terms
  • Check by expanding: For simple polynomials, expand first to see if it's easier
  • Order doesn't matter: uv′+vu′ and vu′+uv′ are the same (addition is commutative)

Step-by-Step Workflow

Universal Process for Product Rule:

  1. Identify: Label the two factors u and v, and check that each is differentiable at the input under consideration.
  2. Differentiate: Find u′ and v′ separately.
  3. First term: Write uv′, keeping the first factor unchanged.
  4. PLUS SIGN: Don't forget the addition!
  5. Second term: Write vu′, keeping the second factor unchanged.
  6. SIMPLIFY: Factor, combine like terms, clean up notation
  7. Verify: Before simplifying, check that both contributions appear. In each term, one factor is differentiated and the other is unchanged. A factored final answer need not visibly have two terms.

Memory Devices

Mnemonic #1: The Rhythm

"First times d-Second,
Plus Second times d-First"

Say this out loud while writing! The rhythm helps it stick.

Mnemonic #2: The Song Parody

(To the tune of "Row, Row, Row Your Boat")
"First, first, dee the second,
Plus the second, first.
Merrily, merrily, merrily, merrily,
Product Rule works best!"

Visual Pattern:

(uv)′=uv′+vu′

In each term, keep one factor unchanged and differentiate the other.

Common Mistakes to Avoid

  • Mistake 1: Multiplying the derivatives is not a valid general rule. The correct identity is (uv)′=u′v+uv′.
  • Mistake 2: Keeping only uv′ omits the u′v contribution in general. Include both before simplifying.
  • Mistake 3: Wrong sign between terms → Product Rule uses PLUS, not minus
  • Mistake 4: Differentiating both factors in the same term. In each term, differentiate one factor and keep the other unchanged.
  • Mistake 5: Simplifying without retaining the original domain. For instance, x3·1x=x2 where x≠0; in the logarithm example the original domain is x>0. Simplification is helpful but is not always required for a correct derivative.
  • Mistake 6: Treating a constant as though it had a nonzero derivative. Both the constant multiple rule and product rule give ddx[5x3]=15x2.
  • Mistake 7: Changing factor labels partway through a calculation. Either choice of u and v is valid; remain consistent.
  • Mistake 8: Not parenthesizing negatives → ddx[x2(−sinx)], watch the signs!

8. Six practice problems with solutions

Try each original problem before opening its solution. Use radians and retain the original function's domain.

1. Linear times exponential

Find the derivative of f(x)=xex.

Show the two contributions
f′(x)=x(ex)+ex(1)=ex(1+x).

The derivative and original function are defined for every real input.

2. Polynomial times sine

Differentiate g(x)=(3x2+1)sinx.

Show the factor derivatives

The factors have derivatives 6x and cosx.

g′(x)=(3x2+1)cosx+6xsinx.

Both domains are all real inputs.

3. Cosine times logarithm

Differentiate h(x)=cosxlnx.

Show the sign and domain check
h′(x)=cosx·1x+lnx·(−sinx).
h′(x)=cosxx−lnxsinx,x>0.

The minus sign comes from cosine's derivative, and the logarithm restricts the original domain.

4. Fourth power times exponential

Differentiate k(x)=x4ex.

Show the factored answer
k′(x)=x4ex+4x3ex=exx3(x+4).

Factoring is optional; the factored answer still contains both contributions. All real inputs are allowed.

5. Compare two valid methods

Differentiate f(x)=(x−5)(x+2).

Show expansion and product rule
f(x)=x2−3x−10,f′(x)=2x−3.

Alternatively, the product rule gives f′(x)=(x−5)(1)+(x+2)(1)=2x−3. Both are valid for every real input.

6. Evaluate at a special angle

For f(x)=x2cosx, find f′(π).

Show differentiation before evaluation
f′(x)=−x2sinx+2xcosx.
f′(π)=−π2sinπ+2πcosπ=−2π.

Use sinπ=0 and cosπ=−1. This is the derivative value, rather than f(π)=−π2.

9. Write a clear AP-style response

How to write a clear AP-style response:

  • Show the requested work: Write a correct product-rule setup and enough differentiation or evaluation to support your result. Naming all four factor quantities is useful working, rather than a universal scoring requirement.
  • Identify the method: State that you are using the product rule when it helps communicate your reasoning.
  • Simplify purposefully: Combine or factor terms when helpful or when requested. Algebraically equivalent correct derivative expressions can take different forms.
  • Choose an efficient method: Expansion or a constant multiple may be shorter, but the product rule still applies.
  • Check both contributions: Verify the two product-rule terms in your setup. Factoring can combine their appearance later.
  • Combine rules appropriately: The quotient rule follows in Topic 2.9. The chain rule is introduced in Unit 3 and is often used together with the product rule.
  • Avoid the false shortcut: Multiplying two derivatives does not justify a product derivative; show the correct rule or another valid calculation.

Common FRQ Formats:

  1. Find f′(x) for a product of differentiable functions.
  2. Find a tangent at x=a, using both f(a) and f′(a).
  3. "At what rate is the area changing..." (Product Rule in context)
  4. Justify f′(c)=0 through a valid derivative calculation and evaluation.
  5. Find critical points of f: first compute its derivative, then check inputs in the original domain where the derivative is zero or does not exist.
  6. Determine increasing intervals by analysing where f′(x)>0 within the original domain.

Pro Tip: On multiple choice, if you see a product, immediately think "Product Rule OR can I expand first?" This decision tree will save you time!

10. Product rule quick reference

THE PRODUCT RULE - MEMORIZE NOW!

(uv)′=uv′+vu′

"First d Second, Plus Second d First"

Product rule is convenient A shorter alternative
x2sinx (x+1)(x−2) → Expand first
exlnx 5x3 → Constant multiple
(3x+1)cosx x·x2=x3 → Simplify first

Check the general identity: (uv)′=uv′+vu′, rather than the product of the two derivatives.

Conditions: The factors must be differentiable at the input when applying the theorem. Write both contributions before combining terms; simplification does not extend the original domain.

11. Connections and next study steps

Topic 2.8 connects to:

  • Topic 2.9: The quotient rule differentiates quotients. It can be derived from the product rule and differentiation of a reciprocal.
  • Unit 3: The chain rule handles compositions and may be needed inside either factor of a product.
  • Unit 5: Analytical applications, including optimization, often begin by differentiating a product.
  • Unit 4: Related rates frequently need Product Rule
  • BC Unit 6: Integration by parts reverses the product-rule relationship. This integration technique is BC-only content.
  • BC Unit 10: Taylor polynomials may require repeated differentiation, including products when they arise.
  • Real-world: Area, volume, and many physics formulas are products

Remember: For differentiable factors, ddx[uv]=uv′+vu′. Keep one factor unchanged in each contribution, then add. Multiplying the derivatives is not a general shortcut. Expansion or simplification can provide an efficient alternative, while products of more than two factors have one contribution for each changing factor. Keep original domains, radians and units in every calculation.

Independent NUM8ERS study resource. AP® is a trademark of the College Board, which does not endorse this resource.

Back to top ↑