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 9 November 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.

Product rule

One contribution from each factor

1 · Check differentiability and write both terms

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

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

2 · Use prime notation for the factor derivatives

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)

3 · Read the shorthand form

Shorthand notation:

(uv)′=uv′+vu′

Counterexample

Test the shortcut of multiplying slopes

1 · Start with two simple powers

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)

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

2 · Differentiate the product

Correct approach: f(x)·g(x)=x5, so ddx[x5]=5x4

3 · Check the result against the shortcut

Wrong approach: f′(x)·g′(x)=2x·3x2=6x3 (different answer!)

At input one, the product derivative is five. Multiplying the two factor derivatives gives six.

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

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

Multiply a polynomial and sine

1 · Identify and differentiate the factors

Problem: Find ddx[x2sinx]

Identify the two functions:

First function: u=x2

Second function: v=sinx

Find each derivative:

u′=2x

v′=cosx

2 · Add the two product-rule terms

Apply Product Rule: First d Second + Second d First

ddx[x2sinx]=x2·cosx+sinx·2x

3 · Simplify or factor the result

Simplify (optional):

=x2cosx+2xsinx

Or factor: =x(xcosx+2sinx)

Answer: x2cosx+2xsinx

Example 2

Multiply an exponential and a power

1 · Identify and differentiate the factors

Problem: Differentiate f(x)=ex·x3

Identify: u=ex, v=x3

Derivatives: u′=ex, v′=3x2

2 · Add the two product-rule terms

Product Rule:

f′(x)=ex·3x2+x3·ex

3 · Factor out the common exponential

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

Combine sine and cosine

1 · Identify and differentiate the factors

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

Identify: u=sinx, v=cosx

Derivatives: u′=cosx, v′=−sinx (don't forget negative!)

2 · Add the two product-rule terms

Product Rule:

g′(x)=sinx·(−sinx)+cosx·cosx

3 · Simplify and use the double-angle identity

Simplify:

g′(x)=−sin2x+cos2x=cos2x−sin2x

Bonus identity: This equals cos(2x)! (double angle formula)

Answer: cos2x−sin2x or cos(2x)

Example 4

Multiply a polynomial and a logarithm

1 · Identify and differentiate the factors

Problem: Find dydx for y=x3lnx

Identify: u=x3, v=lnx

Derivatives: u′=3x2, v′=1x

2 · Add the two product-rule terms

Product Rule:

dydx=x3·1x+lnx·3x2

3 · Simplify on the positive-input domain

Simplify:

x3·1x=x2

Result: x2+3x2lnx

Factor (optional): =x2(1+3lnx)

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

Example 5

Multiply a quadratic and an exponential

1 · Identify and differentiate the factors

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

Identify: u=2x2−3x+1, v=ex

Derivatives:

u′=4x−3

v′=ex

2 · Add the two product-rule terms

Product Rule:

h′(x)=(2x2−3x+1)·ex+ex·(4x−3)

3 · Factor and combine like terms

Factor out ex:

h′(x)=ex[(2x2−3x+1)+(4x−3)]

Combine like terms:

h′(x)=ex(2x2+x−2)

Answer: ex(2x2+x−2)

Example 6

Compare the product rule with expansion

1 · Read the factored expression

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

2 · Differentiate in factored form

u=x+2, v=x−3

u′=1, v′=1

(x+2)(1)+(x−3)(1)=x+2+x−3=2x−1

3 · Expand first and compare answers

Expand: (x+2)(x−3)=x2−x−6

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

Limit proof

Separate the changes of the two factors

1 · Start with the derivative definition

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

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 an intermediate product

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

Factor and separate:

=limh→0u(x+h)[v(x+h)−v(x)]+v(x)[u(x+h)−u(x)]h

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.

3 · Separate the limit into two contributions

Split into two limits:

=limh→0u(x+h)·v(x+h)−v(x)h+limh→0v(x)·u(x+h)−u(x)h

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.

4 · Evaluate the limits and add

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)

Final result:

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

Area model

See both changes in a rectangle

1 · Set the side lengths and finite increases

Start with length L=5m and width W=3m. In the diagram the finite increases are ΔL=2m and ΔW=1m.

2 · Add the two strips and corner

ΔA=LΔW+WΔL+ΔLΔW.
ΔA=5(1)+3(2)+2(1)=13m2.

3 · Take the limit of the corner rate

For differentiable dimensions that vary with time, let h be the time step. The corner contribution per unit time is ΔL·ΔWh. As h→0, the length change tends to zero and the width quotient tends to the finite width derivative. The two strip terms therefore supply the instantaneous rate.

Original rectangle, two strips and corner

0 5 7 Length (m) 0 3 4 Width (m) Original 15 Length 6 Width 5 Corner 2
The original area is 15m2. The length strip adds 6m2, the width strip adds 5m2, and the corner adds 2m2. The diagram uses equal scales along the two axes.

5. Products of three or more functions

Extension

Differentiate a product of three factors

1 · Read the three-factor pattern

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.

2 · Identify and differentiate each factor

Example: Find ddx[x2·sinx·ex]

u=x2, v=sinx, w=ex

u′=2x, v′=cosx, w′=ex

3 · Add the three contributions

Apply formula:

=2x·sinx·ex+x2·cosx·ex+x2·sinx·ex

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

Table example

Evaluate a derivative from a table

1 · Read all four entries at one input

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

2 · Evaluate the product derivative

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

3 · Use height and slope to write the tangent

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).

Two factors that fit the table

1.5 2.0 2.5 Input 0 2 4 6 8 Output First factor Second factor
One possible pair is f(x)=5−x (solid) and g(x)=5x−6 (dashed). At x=2, their values are 3 and 4, and their slopes are −1 and 5.

The product and its tangent

1.5 2.0 2.5 Input 0 4 8 12 16 20 Output P Product Tangent
For that pair, p(x)=(5−x)(5x−6). The tangent passes through P=(2,12) and follows y=12+11(x−2). Its slope 11 comes from the two product-rule contributions.

Rates example

A changing rectangle: both dimensions contribute

1 · Write the area and its instantaneous rate

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.

2 · Substitute both dimensions and rates

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.

3 · Interpret the sign and units

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

Practice 1

Solution

1 · Add both contributions

f′(x)=x(ex)+ex(1)=ex(1+x).

2 · Check the domain

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

Practice 2

Solution

1 · Find the two factor derivatives

The factors have derivatives 6x and cosx.

2 · Combine the terms

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

3 · Check the domain

Both domains are all real inputs.

3. Cosine times logarithm

Differentiate h(x)=cosxlnx.

Show the sign and domain check

Practice 3

Solution

1 · Keep the cosine sign

h′(x)=cosx·1x+lnx·(−sinx).

2 · Simplify and state the domain

h′(x)=cosxx−lnxsinx,x>0.

3 · Interpret the minus sign

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

Practice 4

Solution

1 · Apply the rule and factor

k′(x)=x4ex+4x3ex=exx3(x+4).

2 · Check the factored form

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

Practice 5

Solution

1 · Expand before differentiating

f(x)=x2−3x−10,f′(x)=2x−3.

2 · Compare with the product rule

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

Practice 6

Solution

1 · Differentiate the product

f′(x)=−x2sinx+2xcosx.

2 · Substitute the angle in radians

f′(π)=−π2sinπ+2πcosπ=−2π.

3 · Separate height from slope

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.