Calculus 1 • Derivatives: Definition & Rules

Product Rule — The Product Rule

Learn how to differentiate the product of two functions without expanding or simplifying first.

A smooth function curve with a function symbol and rising tangent trend.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

As calculus was being developed in the late 1600s, mathematicians quickly realized they needed efficient rules for finding derivatives. Computing a derivative from the limit definition every single time was tedious, even for simple functions. When two functions are multiplied together, you might be tempted to just differentiate each piece separately and multiply the results — but that approach gives the wrong answer. The Product Rule was developed to handle exactly this situation, providing a reliable shortcut for differentiating products of functions.

1665–1666 • Newton's Fluxions

Isaac Newton developed his method of fluxions during the plague years. He discovered rules for differentiating sums, products, and powers of functions, though he did not publish his work for decades.

1684 • Leibniz Publishes the Calculus

Gottfried Wilhelm Leibniz published his foundational calculus paper, including notation like dy/dx that we still use today. His framework made differentiation rules — including the product rule — accessible to a broader audience.

1690s • The Bernoulli Brothers Apply the Rules

Jakob and Johann Bernoulli used the product rule and other differentiation techniques to solve problems in physics and geometry, demonstrating how powerful these shortcut rules were for real-world applications.

1800s • Rigorous Foundations

Mathematicians like Cauchy and Weierstrass placed the derivative on a rigorous footing using limits. They formally proved the product rule from the limit definition, giving it the solid theoretical backing it has in modern textbooks.

The central question the product rule answers is deceptively simple: if you know the derivatives of two individual functions, how do you find the derivative of their product without expanding or simplifying the expression first? This is essential because many products — like x² · sin(x) — simply cannot be expanded into a single nice formula.

SECTION 2

Core Principles & Definitions

Before diving into the formula, it helps to understand the key ideas that make the product rule work. The rule rests on the fact that when a product of two functions changes, both factors contribute to the change simultaneously. You cannot simply differentiate each factor on its own and multiply — you must account for the interplay between the two changing quantities.

1

Two Functions, One Product

The product rule applies whenever you have a function that can be written as h(x) = f(x) · g(x), where both f and g are differentiable. The key is recognizing that h is a product of two separate pieces.
2

Both Factors Change

When x changes by a tiny amount, both f(x) and g(x) change at the same time. The total change in the product comes from f changing while g stays put, plus g changing while f stays put.
3

The Formula

If h(x) = f(x) · g(x), then h′(x) = f′(x) · g(x) + f(x) · g′(x). You differentiate the first and multiply by the second, then add the first times the derivative of the second.
4

Order Doesn't Matter

Because addition is commutative, it doesn't matter which function you call f and which you call g. The two terms in the product rule can be written in either order, and you'll get the same result.
✦

KEY TAKEAWAY

Think of the product rule like two dancers performing together. If both dancers change their moves at the same time, the overall performance changes in two ways: one dancer's new move paired with the other's current move, plus the first dancer's current move paired with the other's new move. The derivative of a product captures both contributions added together.

SECTION 3

Visual Explanation

One of the best ways to understand the product rule is through an area model. Imagine a rectangle whose width is f(x) and whose height is g(x). The area of the rectangle is the product f(x) · g(x). When x increases by a tiny amount Δx, both the width and height change, creating new strips of area. The product rule captures exactly these new strips.

f(x) · g(x)f'(x)·Δx× g(x)f(x) × g'(x)·Δx≈ 0← f(x) →Δf← g(x) →ΔgΔArea ≈ f'(x)·g(x)·Δx + f(x)·g'(x)·Δxf′ · g termf · g′ termnegligible
The rectangle has area f(x) · g(x). When x changes, the width grows by Δf and the height by Δg, creating a cyan vertical strip (f′ · g contribution) and a pink horizontal strip (f · g′ contribution). The tiny corner rectangle is negligible as Δx → 0.

Notice how the change in total area comes from two rectangular strips, not just one. The cyan strip on the right represents the area gained because the width increased — it has width Δf and height g(x). The pink strip along the bottom represents the area gained because the height increased — it has width f(x) and height Δg. As we take the limit and divide by Δx, these two contributions become exactly f′(x)·g(x) and f(x)·g′(x), giving us the product rule.

SECTION 4

Mathematical Framework

Let's state the product rule precisely and then see where it comes from using the limit definition of the derivative. Understanding the proof helps you see why the formula has two terms.

THE PRODUCT RULE

d/dx[f(x)⋅g(x)]=f′(x)⋅g(x)+f(x)⋅g′(x)d/dx [f(x) · g(x)] = f′(x) · g(x) + f(x) · g′(x)

f(x) and g(x) are differentiable functions. f′(x) is the derivative of f, and g′(x) is the derivative of g. The derivative of the product equals the derivative of the first times the second, plus the first times the derivative of the second.

Proof from the Limit Definition

Start with the limit definition of the derivative applied to the product h(x) = f(x) · g(x). The key trick is to add and subtract the term f(x + Δx) · g(x) in the numerator, which lets us factor the expression into two recognizable limits.

STEP 1 — LIMIT DEFINITION

h′(x)=lim[Δx→0][f(x+Δx)⋅g(x+Δx)−f(x)⋅g(x)]/Δxh′(x) = lim[Δx→0] [f(x+Δx)·g(x+Δx) − f(x)·g(x)] / Δx

This is the standard limit definition applied to the product h(x) = f(x) · g(x).

STEP 2 — ADD AND SUBTRACT

=lim[Δx→0][f(x+Δx)⋅g(x+Δx)−f(x+Δx)⋅g(x)+f(x+Δx)⋅g(x)−f(x)⋅g(x)]/Δx= lim[Δx→0] [f(x+Δx)·g(x+Δx) − f(x+Δx)·g(x) + f(x+Δx)·g(x) − f(x)·g(x)] / Δx

We insert − f(x+Δx)·g(x) + f(x+Δx)·g(x) into the numerator. These cancel, so we haven't changed the value.

STEP 3 — FACTOR AND TAKE LIMITS

=lim[Δx→0]f(x+Δx)⋅[g(x+Δx)−g(x)]/Δx+g(x)⋅[f(x+Δx)−f(x)]/Δx= lim[Δx→0] f(x+Δx) · [g(x+Δx)−g(x)]/Δx + g(x) · [f(x+Δx)−f(x)]/Δx

The first group gives f(x) · g′(x) (since f(x+Δx) → f(x) and the bracket → g′(x)). The second group gives g(x) · f′(x). Combined: f′(x)·g(x) + f(x)·g′(x).

⚠

Common Mistake Alert

The derivative of f(x) · g(x) is NOT f′(x) · g′(x). You cannot simply differentiate each factor and multiply them together. Always use f′g + fg′.

SECTION 5

Common Patterns & Extended Product Rule

Let's look at the most common types of products you'll encounter and how the product rule applies to each. Recognizing these patterns will help you work faster and more accurately. We'll also see how the rule extends to products of three or more functions.

Product Rule Pattern Maph(x) = f(x) · g(x)Polynomial × Polynomialf = x³, g = x² + 1h′ = 3x²(x²+1) + x³(2x)Polynomial × Trigf = x², g = sin(x)h′ = 2x·sin(x) + x²·cos(x)Polynomial × Exponentialf = x, g = eˣh′ = 1·eˣ + x·eˣTriple Product Rule: h(x) = f · g · kh′ = f′·g·k + f·g′·k + f·g·k′Each factor takes a turn being differentiated
The product rule follows the same pattern regardless of function type: differentiate one factor while keeping the other unchanged, then switch roles and add. For three factors, each one takes a turn being differentiated.

Notice the symmetry: no matter which type of functions you're working with, the product rule always produces two terms that are added together. For a product of three functions, you get three terms — each function takes its turn being differentiated while the other two remain unchanged. This pattern extends naturally to products of any number of functions.

Product Typef(x)g(x)f′g + fg′
Poly × Polyx²x³ + 2x2x(x³+2x) + x²(3x²+2)
Poly × Trig3xcos(x)3·cos(x) + 3x·(−sin(x))
Poly × Expx⁴eˣ4x³·eˣ + x⁴·eˣ
Trig × Trigsin(x)cos(x)cos(x)·cos(x) + sin(x)·(−sin(x))

Common product types and their derivatives

SECTION 6

Worked Example

Let's walk through a complete example step by step. We'll find the derivative of h(x) = (x² + 3x) · sin(x) using the product rule.

Differentiate h(x) = (x² + 3x) · sin(x)

  1. 1

    Step 1 — Identify f(x) and g(x)

    We have a product of two functions. Let f(x) = x² + 3x and g(x) = sin(x). Notice that neither function can be easily combined with the other — this is exactly when the product rule is needed.
    f(x) = x² + 3x, g(x) = sin(x)
  2. 2

    Step 2 — Find f′(x) and g′(x)

    Differentiate each factor separately. Using the power rule, f′(x) = 2x + 3. From our trig derivative rules, g′(x) = cos(x).
    f′(x) = 2x + 3, g′(x) = cos(x)
  3. 3

    Step 3 — Apply the Product Rule

    Plug into the formula h′(x) = f′(x)·g(x) + f(x)·g′(x). This gives us: h′(x) = (2x + 3)·sin(x) + (x² + 3x)·cos(x).
    h′(x) = (2x + 3)·sin(x) + (x² + 3x)·cos(x)
  4. 4

    Step 4 — Simplify (if possible)

    In this case, the expression is already in its simplest form. Since we have both sin(x) and cos(x) terms that don't combine, we leave our answer as is. Sometimes you can factor out common terms, but here that's not helpful.
    h′(x) = (2x + 3) sin(x) + (x² + 3x) cos(x)
💡

Quick Check

To verify your answer makes sense, try plugging in x = 0. The original function gives h(0) = (0 + 0)·sin(0) = 0, and the derivative gives h′(0) = (0 + 3)·sin(0) + (0 + 0)·cos(0) = 0 + 0 = 0. This tells us the tangent line at x = 0 is horizontal, which makes sense because the function equals zero there.

SECTION 7

Product Rule vs. Other Strategies

Not every product requires the product rule. Sometimes it's faster to simplify first. Knowing when to use the product rule and when to choose an alternative strategy will save you time and reduce errors.

SituationBest StrategyWhy
x² · sin(x)Product RuleCannot be expanded into a single function type
3x · (x² + 5)Expand first, then power ruleMultiplying out gives 3x³ + 15x, which is simpler
5 · eˣConstant multiple rule5 is a constant, not a function of x — just pull it out
eˣ · cos(x)Product RuleTwo distinct function types — no shortcut available
sin(x) / cos(x)Quotient Rule (or rewrite as tan(x))This is a quotient, not a product

Choosing the right differentiation strategy

✦

WHEN TO USE THE PRODUCT RULE

Use the product rule when you have two (or more) functions of x multiplied together and you cannot simplify or expand the product into a simpler form. If one of the "factors" is just a constant (not involving x), use the constant multiple rule instead — it's simpler and faster.

SECTION 8

Connection to the Quotient Rule & Beyond

The product rule is closely related to the quotient rule, which handles the derivative of f(x)/g(x). In fact, the quotient rule can be derived from the product rule by rewriting f/g as f · g⁻¹ and applying both the product rule and the chain rule. Understanding the product rule deeply makes learning these related rules much easier.

FeatureProduct RuleQuotient Rule
Operationf(x) · g(x)f(x) / g(x)
Formulaf′g + fg′(f′g − fg′) / g²
SignAddition between termsSubtraction between terms
DenominatorNoneg(x) squared
PrerequisitePower rule and basic derivativesProduct rule understanding

Comparing the product and quotient rules

Looking ahead, the product rule also plays a role in integration by parts, an important technique in integral calculus. Integration by parts is essentially the product rule run in reverse. Mastering the product rule now builds a strong foundation for the more advanced techniques you'll encounter in Calculus 2.

SECTION 9

Practice Problems

Test your understanding with these five problems, ordered from conceptual to challenging. Try each one on paper before revealing the answer.

Question 1: CONCEPTUAL

A student claims that the derivative of x² · sin(x) is simply 2x · cos(x). Explain why this is wrong and state what the correct answer should be.
Show answer
The student made the common mistake of differentiating each factor separately and multiplying the results: (d/dx of x²) times (d/dx of sin x) = 2x · cos(x). This ignores the product rule. The correct approach is to apply f′g + fg′, giving 2x · sin(x) + x² · cos(x). The product rule has two additive terms because both factors change simultaneously as x changes, and each factor's change must be accounted for while the other factor is held fixed.

Question 2: BASIC CALCULATION

Find the derivative of h(x) = x³ · eˣ.
Show answer
Let f(x) = x³ and g(x) = eˣ. Then f′(x) = 3x² and g′(x) = eˣ (since the derivative of eˣ is itself). By the product rule, h′(x) = f′g + fg′ = 3x² · eˣ + x³ · eˣ. We can factor out eˣ to get h′(x) = eˣ(3x² + x³), or equivalently eˣ · x²(3 + x). This factored form is often preferred because it makes finding critical points easier.

Question 3: INTERMEDIATE

Differentiate y = (2x² − 5x + 1) · cos(x), and evaluate y′ at x = 0.
Show answer
Set f(x) = 2x² − 5x + 1 and g(x) = cos(x). Then f′(x) = 4x − 5 and g′(x) = −sin(x). The product rule gives y′ = (4x − 5) · cos(x) + (2x² − 5x + 1) · (−sin(x)). To evaluate at x = 0: y′(0) = (0 − 5) · cos(0) + (0 − 0 + 1) · (−sin(0)) = (−5)(1) + (1)(0) = −5. So the slope of the tangent line at x = 0 is −5.

Question 4: APPLIED

A particle's position at time t seconds is given by s(t) = t² · sin(t) meters. Find the velocity function v(t) = s′(t), and determine the velocity at t = π seconds.
Show answer
Velocity is the derivative of position, so we apply the product rule with f(t) = t² and g(t) = sin(t). We get f′(t) = 2t and g′(t) = cos(t). Therefore v(t) = s′(t) = 2t · sin(t) + t² · cos(t). At t = π: v(π) = 2π · sin(π) + π² · cos(π) = 2π · 0 + π² · (−1) = −π² ≈ −9.87 m/s. The negative velocity means the particle is moving in the negative direction at t = π seconds.

Question 5: CRITICAL THINKING

Use the product rule to find the derivative of y = x · x (that is, x²) and verify that it gives the same result as the power rule. Then use the product rule on y = f(x) · g(x) · k(x) (a triple product) to derive the formula for the derivative of three functions multiplied together.
Show answer
For y = x · x, let f(x) = x and g(x) = x. Then f′ = 1, g′ = 1. Product rule: y′ = 1 · x + x · 1 = 2x, which matches the power rule result d/dx(x²) = 2x. For the triple product, group it as y = [f · g] · k. Apply the product rule with the outer product: y′ = [f · g]′ · k + [f · g] · k′. Now apply the product rule again to [f · g]′ = f′g + fg′. Substituting: y′ = (f′g + fg′) · k + f · g · k′ = f′gk + fg′k + fgk′. Each factor takes its turn being differentiated while the other two remain unchanged — a pattern that extends to any number of factors.

SUMMARY

Lesson Summary

Summary

The Product Rule states that the derivative of f(x) · g(x) equals f′(x) · g(x) + f(x) · g′(x). This formula captures the fact that when two functions are multiplied together, both contribute to the overall rate of change. The area model provides a visual explanation: the change in the product comes from two rectangular strips, each corresponding to one term in the formula.

Use the product rule whenever you have a product of two functions that cannot be easily simplified — for example, polynomial × trig or polynomial × exponential. Remember that the derivative of a product is not simply the product of the derivatives. The rule extends naturally to triple products and beyond, and it serves as the foundation for the quotient rule and integration by parts in future courses.

Varsity Tutors • Calculus 1 • Product Rule — The Product Rule