AP Calculus AB • Differentiation: Definition and Fundamental Properties

The Product Rule

A foundational differentiation technique for finding the derivative of a product of two functions.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The development of calculus in the late seventeenth century required mathematicians to handle increasingly complex expressions, many of which arose as products of simpler functions. Physical quantities such as work (force × displacement), momentum (mass × velocity), and revenue (price × quantity) are naturally products, so the ability to differentiate products was essential from the very beginning. Both Isaac Newton and Gottfried Wilhelm Leibniz independently arrived at rules for differentiating products as part of their broader systematic approaches to the calculus. Over time, these rules were formalized into the concise statement we now call the Product Rule—one of the most frequently used differentiation formulas in all of mathematics.

1665–1666 • Newton's Fluxions

During his legendary years at Woolsthorpe, Isaac Newton develops his method of fluxions, including rules for differentiating products of flowing quantities.

1684 • Leibniz Publishes Nova Methodus

Gottfried Wilhelm Leibniz publishes his first paper on calculus. His differential notation d(uv) = u dv + v du makes the Product Rule elegant and memorable.

1748 • Euler's Introductio

Leonhard Euler systematizes calculus techniques, applying the Product Rule routinely to exponential, logarithmic, and trigonometric products.

1821 • Cauchy's Rigorous Foundations

Augustin-Louis Cauchy provides a rigorous proof of the Product Rule using the limit definition of the derivative, placing it on a firm logical foundation.

A natural but incorrect instinct when differentiating a product is to simply differentiate each factor separately and multiply the results. If f(x) = x² and g(x) = x³, then f(x) · g(x) = x⁵, whose derivative is 5x⁴—clearly not f′(x) · g′(x) = 2x · 3x² = 6x³. The gap between this naive guess and the correct answer motivates the precise statement of the Product Rule: how do we correctly differentiate a product of two functions?

SECTION 2

Core Principles & Definitions

Before stating the rule formally, it helps to understand the conceptual pillars that support it. The Product Rule is not an arbitrary formula; it emerges naturally from the limit definition of the derivative and reflects how small changes in two interacting quantities combine to produce a total change. The following foundational ideas clarify why the rule takes the form it does and how to apply it reliably.

1

Differentiability of Each Factor

The Product Rule requires that both f and g be differentiable at the point of interest. If either factor has a cusp, corner, or discontinuity, the rule cannot be applied there directly.
2

Linearity of the Derivative

The derivative is a linear operator: the derivative of a sum is the sum of the derivatives. The Product Rule shows how the derivative interacts with multiplication—a non-linear operation—by distributing across factors in a specific way.
3

Two-Term Structure

The derivative of f · g always produces two terms: one where f is differentiated while g is held fixed, and one where g is differentiated while f is held fixed. This symmetric structure is the hallmark of the Product Rule.
4

Extension to More Factors

For a product of three or more functions, the rule generalizes: differentiate each factor one at a time while holding the others constant, then sum all such terms. This pattern follows from repeated application of the two-function rule.
✦

KEY TAKEAWAY

Think of the Product Rule like two engineers collaborating on a project. If both the design team (f) and the manufacturing team (g) are evolving simultaneously, the total rate of change of the project output isn't just the product of their individual improvement rates. Instead, you must account for each team's current output being amplified by the other team's rate of change. The Product Rule captures exactly this cross-interaction: f′g + fg′.

SECTION 3

Visual Explanation

The most intuitive geometric proof of the Product Rule comes from thinking of the product f(x) · g(x) as the area of a rectangle whose side lengths are f(x) and g(x). When x changes by a small increment Δx, both sides change: f changes by Δf and g changes by Δg. The new area is (f + Δf)(g + Δg) = fg + f · Δg + g · Δf + Δf · Δg. The change in area is thus f · Δg + g · Δf + Δf · Δg. Dividing by Δx and taking the limit as Δx → 0 causes the last term to vanish, leaving f · g′ + g · f′.

Area Model of the Product Rulef · g(original area)f · Δgg · ΔfΔf · Δg→ 0gΔgfΔfΔArea ≈ f · Δg + g · Δf (the Δf · Δg rectangle vanishes in the limit)
The violet rectangle represents the original area f · g. When x increases by Δx, the cyan strip (f · Δg) and pink strip (g · Δf) account for most of the area change. The small amber corner rectangle Δf · Δg is second-order and vanishes upon taking the limit.

This area model is more than a mnemonic—it constitutes a genuine geometric proof of the Product Rule. The key insight is that the cross-terms f · Δg and g · Δf both scale linearly with Δx, so they survive the limit process. The corner term Δf · Δg scales as (Δx)², so dividing by Δx still leaves a factor of Δx, which tends to zero. This is why the Product Rule contains exactly two terms rather than three.

Workers extend two adjacent courtyard sides; an exact rectangle decomposition isolates two strips and the small corner.Increasing both side lengths adds two strips and a corner. Dividing the area change by the input change and taking a limit gives the product rule, (fg)′ = f′g + fg′.

Increasing both side lengths adds two strips and a corner. Dividing the area change by the input change and taking a limit gives the product rule, (fg)′ = f′g + fg′.Increasing both side lengths adds two strips and a corner. Dividing the area change by the input change and taking a limit gives the product rule, (fg)′ = f′g + fg′.

SECTION 4

Mathematical Framework

We now present the formal statement, followed by a rigorous proof from the limit definition. Understanding this derivation is essential for AP Calculus AB, because the exam frequently tests whether students can apply the Product Rule correctly and understand its structure.

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)

Where f and g are differentiable functions of x. In Leibniz notation: d(uv)/dx = (du/dx)v + u(dv/dx).

Proof from the Limit Definition

Starting from the definition of the derivative, we write the derivative of the product as a limit, then employ the classic algebraic trick of adding and subtracting the same term in the numerator to factor the expression.

STEP 1 — LIMIT DEFINITION

d/dx[f(x)g(x)]=lim(h→0)[f(x+h)g(x+h)−f(x)g(x)]/hd/dx [f(x)g(x)] = lim(h→0) [f(x+h)g(x+h) − f(x)g(x)] / h

This is the standard difference quotient applied to the product f · g.

STEP 2 — ADD AND SUBTRACT f(x+h)g(x)

=lim(h→0)[f(x+h)g(x+h)−f(x+h)g(x)+f(x+h)g(x)−f(x)g(x)]/h= lim(h→0) [f(x+h)g(x+h) − f(x+h)g(x) + f(x+h)g(x) − f(x)g(x)] / h

Inserting −f(x+h)g(x) + f(x+h)g(x) = 0 into the numerator allows factoring.

STEP 3 — FACTOR AND SEPARATE

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

As h → 0, f(x+h) → f(x) by continuity (differentiability implies continuity), [g(x+h)−g(x)]/h → g′(x), and [f(x+h)−f(x)]/h → f′(x). The result is f(x)g′(x) + g(x)f′(x). ∎

💡

Common Mnemonic

Many students remember the Product Rule as: "the first times the derivative of the second, plus the second times the derivative of the first." In shorthand: f · g′ + g · f′. The order of the two terms does not matter since addition is commutative.

SECTION 5

Common Forms & Classification

The Product Rule appears in many guises on the AP exam. Recognizing these common product forms is essential for efficiency and accuracy. Below, a reference table shows the most frequently tested product types and their derivatives, all derived from the single formula (fg)′ = f′g + fg′.

Product Formf(x)g(x)Derivative (fg)′
x² · sin xx²sin x2x sin x + x² cos x
eˣ · ln xeˣln xeˣ ln x + eˣ/x
(3x + 1)(x² − 4)3x + 1x² − 43(x² − 4) + (3x + 1)(2x)
x³ · eˣx³eˣ3x²eˣ + x³eˣ = eˣ(3x² + x³)
√x · cos xx1/2x^{1/2}cos x(1/(2√x)) cos x − √x sin x

Common product forms and their derivatives

Graphs of f(x) = x², g(x) = sin x, and h(x) = x² sin x with h′(x)xy0π/2π3π/22πf(x) = x²g = sin xh = x² sin xh′ = 2x sin x + x² cos xNote: h′(x) = 2x sin x + x² cos x (Product Rule applied to f·g)
The dashed amber curve is f(x) = x², the dashed emerald curve is g(x) = sin x, the solid pink-violet curve is their product h(x) = x² sin x, and the dotted cyan-emerald curve is h′(x) = 2x sin x + x² cos x. Observe that h′ is zero wherever the tangent to h is horizontal.

The graph above illustrates a critical feature: the derivative of a product can have a much more complex shape than either factor alone. The oscillating behavior of h′(x) results from the interplay of the two terms 2x sin x and x² cos x. On the AP exam, you may be asked to identify intervals where h is increasing or decreasing by analyzing the sign of h′—skills that depend on correctly applying the Product Rule first.

SECTION 6

Worked Example

Let us work through a complete example that combines the Product Rule with other differentiation techniques, mirroring the complexity of a typical AP Calculus AB free-response question.

Differentiate y = (2x³ + 5x) · eˣ

  1. 1

    Step 1 — Identify the Factors

    We recognize this as a product of two functions. Let f(x) = 2x³ + 5x and g(x) = eˣ. Both are differentiable for all real numbers, so the Product Rule applies.
  2. 2

    Step 2 — Differentiate Each Factor

    Using the power rule: f′(x) = 6x² + 5. The exponential function is its own derivative: g′(x) = eˣ.
    f′(x) = 6x² + 5, g′(x) = eˣ
  3. 3

    Step 3 — Apply the Product Rule

    By the Product Rule, dy/dx = f′(x) · g(x) + f(x) · g′(x) = (6x² + 5) · eˣ + (2x³ + 5x) · eˣ.
  4. 4

    Step 4 — Simplify

    Factor out the common factor eˣ: dy/dx = eˣ[(6x² + 5) + (2x³ + 5x)] = eˣ(2x³ + 6x² + 5x + 5).
    dy/dx = eˣ(2x³ + 6x² + 5x + 5)
  5. 5

    Step 5 — Verify

    As a sanity check, evaluate at x = 0. The original function gives y(0) = (0 + 0)(1) = 0, and the derivative gives y′(0) = e⁰(0 + 0 + 0 + 5) = 5. One can verify numerically that the tangent line y = 5x closely approximates the function near x = 0.
💡

AP Tip

On the AP exam, always simplify your answer by factoring out common terms (especially eˣ, sin x, or cos x). Graders award full credit for any correct equivalent form, but a clean factored answer reduces the risk of errors in subsequent parts of a free-response question.

SECTION 7

Product Rule vs. Other Differentiation Rules

Students often confuse when to use the Product Rule versus the Chain Rule or the Quotient Rule, or they fail to recognize that the Product Rule is even needed. The following comparison table clarifies when each rule applies, how to recognize the appropriate situation, and what the resulting derivative looks like.

RuleWhen to UseFormulaKey Signal
Product RuleTwo functions multiplied: f(x) · g(x)f′g + fg′Both factors contain x and are multiplied
Quotient RuleOne function divided by another: f(x)/g(x)(f′g − fg′) / g²A fraction with x in both numerator and denominator
Chain RuleA function composed inside another: f(g(x))f′(g(x)) · g′(x)A function applied to an inner expression
Sum/DifferenceFunctions added or subtracted: f(x) ± g(x)f′ ± g′Terms separated by + or −

Comparison of major differentiation rules

⚡

WHEN RULES COMBINE

Many AP problems require combining the Product Rule with the Chain Rule. For example, differentiating x² · sin(3x) requires the Product Rule to handle the multiplication and the Chain Rule for sin(3x). Building fluency with each rule individually is the foundation for handling these composite problems efficiently.
⚠

Common Error Alert

The most frequent mistake is writing d/dx[f · g] = f′ · g′. This is almost never correct. Remember: the derivative of a product is NOT the product of the derivatives. Always use f′g + fg′.

SECTION 8

Connection to Advanced Theory

The Product Rule is not merely a computational tool—it is a cornerstone of differential calculus that extends into integration theory, multivariable calculus, and beyond. Understanding these connections deepens your appreciation of the rule and previews material you will encounter in AP Calculus BC and college-level courses.

Concept in AP Calculus ABExtension in Advanced Courses
Product Rule: (fg)′ = f′g + fg′Integration by Parts: ∫f g′ dx = fg − ∫f′g dx (derived by integrating the Product Rule)
Product of two single-variable functionsProduct of multivariable functions: ∂(fg)/∂x = (∂f/∂x)g + f(∂g/∂x) in multivariable calculus
Finite products f · gLeibniz's General Rule: (fg)⁽ⁿ⁾ = Σ C(n,k) f⁽ᵏ⁾g⁽ⁿ⁻ᵏ⁾, a formula for the nth derivative of a product
Scalar-valued Product RuleVector-valued Product Rule: d/dt[f(t) · r(t)] = f′(t)r(t) + f(t)r′(t) for vector functions

How the Product Rule extends into higher mathematics

The most important immediate extension for AP students is integration by parts, which is simply the Product Rule run in reverse. By rearranging (fg)′ = f′g + fg′ and integrating both sides, one obtains ∫fg′ dx = fg − ∫f′g dx. This technique, covered in AP Calculus BC, becomes one of the most powerful integration methods in all of calculus. Mastering the Product Rule now builds the conceptual foundation for that later work.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

If f and g are differentiable functions with f(2) = 3, f′(2) = −1, g(2) = 4, and g′(2) = 5, what is the value of d/dx[f(x) · g(x)] at x = 2?
  • A. −5
  • B. 7
  • C. 11
  • D. 15
  • E. 19
Show answer (C)
Applying the Product Rule: (fg)′(2) = f′(2) · g(2) + f(2) · g′(2) = (−1)(4) + (3)(5) = −4 + 15 = 11. This problem tests direct substitution into the Product Rule formula using given numerical values, reinforcing that the rule works with function values at a specific point, not just symbolic expressions.

Question 2: BASIC CALCULATION

Find the derivative of y = x⁴ · cos x.
  • A. x³(4 cos x − x sin x)
  • B. −4x³ sin x
  • C. x³(4 cos x + x sin x)
  • D. −x⁴ sin x
  • E. 4x³ cos x + x⁴ sin x
Show answer (A)
Let f(x) = x⁴ and g(x) = cos x. Then f′(x) = 4x³ and g′(x) = −sin x. By the Product Rule: dy/dx = 4x³ cos x + x⁴(−sin x) = 4x³ cos x − x⁴ sin x. This can be factored as x³(4 cos x − x sin x). A is correct: x³(4 cos x − x sin x). B is wrong because 4x³(−sin x) = −4x³ sin x is only the product of the individual derivatives, not the Product Rule. C is wrong because it uses the wrong sign on the sin x term. D is wrong because it omits the f′g term entirely. E is wrong because it adds x⁴ sin x instead of subtracting.

Question 3: INTERMEDIATE

Find the derivative of h(x) = (3x² − 2x + 1) · e²ˣ. (Note: You will need to use both the Product Rule and the Chain Rule.)
  • A. e²ˣ(6x² − 2x + 6x − 2)
  • B. (6x − 2)(2e²ˣ)
  • C. e²ˣ(6x² + 2x)
  • D. e²ˣ(6x² − 6x + 2)
  • E. 2e²ˣ(3x² − 2x + 1)
Show answer (C)
Let f(x) = 3x² − 2x + 1 and g(x) = e²ˣ. Then f′(x) = 6x − 2 and g′(x) = 2e²ˣ (by the Chain Rule). Applying the Product Rule: h′(x) = (6x − 2)e²ˣ + (3x² − 2x + 1)(2e²ˣ). Factor out e²ˣ: h′(x) = e²ˣ[(6x − 2) + 2(3x² − 2x + 1)] = e²ˣ[6x − 2 + 6x² − 4x + 2] = e²ˣ(6x² + 2x). A is wrong because it uses g′(x) = e²ˣ, forgetting the Chain Rule factor of 2. B is wrong because it is (f′)(g′) rather than the correct Product Rule application. C is correct: e²ˣ(6x² + 2x), which factors further as 2x · e²ˣ(3x + 1). D is wrong because it has incorrect signs in the simplified polynomial. E is wrong because it omits the f′g term entirely.

Question 4: APPLIED

6 pts
A particle moves along the x-axis. Its position at time t ≥ 0 is given by s(t) = t² · sin(πt) meters. (a) Find the velocity function v(t). (b) Find the velocity at t = 1. (c) Is the particle moving to the left or right at t = 1? (d) Find all times t in [0, 2] where the velocity is zero.
Show answer
(a) [2 points] Using the Product Rule with f(t) = t² and g(t) = sin(πt): f′(t) = 2t, g′(t) = π cos(πt) (Chain Rule). So v(t) = s′(t) = 2t sin(πt) + πt² cos(πt). (b) [1 point] v(1) = 2(1) sin(π) + π(1)² cos(π) = 2(0) + π(−1) = −π ≈ −3.14 m/s. (c) [1 point] Since v(1) = −π < 0, the particle is moving to the left at t = 1. (d) [2 points] Set v(t) = 0: 2t sin(πt) + πt² cos(πt) = 0. Factor out t: t[2 sin(πt) + πt cos(πt)] = 0. So t = 0 or 2 sin(πt) + πt cos(πt) = 0. The transcendental equation 2 sin(πt) = −πt cos(πt) must be solved numerically or analyzed. At t = 0, v = 0. Additional zeros occur where tan(πt) = −πt/2. Using a calculator or graphical analysis on [0, 2], additional zeros occur at approximately t ≈ 0.635 and t ≈ 1.387.

Question 5: CRITICAL THINKING

4 pts
Let f and g be differentiable functions. Prove that the derivative of f(x) · g(x) · h(x), where h is also differentiable, equals f′gh + fg′h + fgh′ by applying the Product Rule twice. Clearly show each application.
Show answer
[1 point] Group the triple product as [f(x) · g(x)] · h(x). Let u(x) = f(x) · g(x) so that the expression is u(x) · h(x). [1 point] Apply the Product Rule to u · h: d/dx[u · h] = u′ · h + u · h′. [1 point] Now apply the Product Rule to find u′ = d/dx[f · g] = f′g + fg′. [1 point] Substitute back: d/dx[fgh] = (f′g + fg′) · h + (fg) · h′ = f′gh + fg′h + fgh′. This three-term formula has a clear pattern: each factor is differentiated exactly once while the other two are held fixed, and all three resulting terms are summed. This pattern generalizes to products of n functions by induction. ∎

SUMMARY

Summary

Summary

The Product Rule states that for two differentiable functions f and g, the derivative of their product is d/dx[f · g] = f′g + fg′. This rule is derived from the limit definition of the derivative using the algebraic technique of adding and subtracting a strategic term. Geometrically, it corresponds to the area model of a rectangle with changing side lengths, where the cross-terms survive the limit but the corner rectangle vanishes.

Key points to remember: the derivative of a product is not the product of the derivatives; the rule extends to products of three or more functions by repeated application; and it frequently appears in combination with the Chain Rule on the AP exam. Mastering the Product Rule also prepares you for integration by parts, which is the integral counterpart of this fundamental differentiation technique.

Varsity Tutors • AP Calculus AB • The Product Rule