AP Calculus AB and BC · Unit 2 · Topic 2.8

    2.8 The Product Rule

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    The derivative of a product is not the product of the derivatives. Instead, ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x): differentiate the first factor and keep the second, then keep the first and differentiate the second, and add. The rule works for formulas and for functions given only by tables of values.

    What you need to know

    • State and apply the product rule.
    • Explain why the derivative of a product is not the product of derivatives.
    • Use the product rule with values from a table.
    • Combine the product rule with other derivative rules.

    The rule

    ddx[f(x) g(x)]=f′(x) g(x)+f(x) g′(x)\frac{d}{dx}\big[f(x)\,g(x)\big] = f'(x)\,g(x) + f(x)\,g'(x)

    A quick check shows why the obvious guess fails. For x⋅x=x2x \cdot x = x^2, the derivative is 2x2x, but the product of the derivatives is 1⋅1=11 \cdot 1 = 1. The product rule gives 1⋅x+x⋅1=2x1 \cdot x + x \cdot 1 = 2x, which is correct.

    Why the rule has two terms: think of f(x)g(x)f(x)g(x) as the area of a rectangle with sides ff and gg. If both sides grow a little, by Δf\Delta f and Δg\Delta g, the area grows by two thin strips, Δf⋅g\Delta f \cdot g and f⋅Δgf \cdot \Delta g, plus a tiny corner Δf⋅Δg\Delta f \cdot \Delta g. Dividing by Δx\Delta x and letting it shrink, the corner vanishes and the two strips become the two terms of the rule.

    With formulas

    For y=x2sin⁡xy = x^2 \sin x: take f=x2f = x^2 and g=sin⁡xg = \sin x, so f′=2xf' = 2x and g′=cos⁡xg' = \cos x. Then y′=2xsin⁡x+x2cos⁡xy' = 2x\sin x + x^2\cos x. For y=xexy = xe^x: y′=1⋅ex+xex=ex(1+x)y' = 1 \cdot e^x + x e^x = e^x(1 + x), which is 1 at x=0x = 0. For y=xln⁡xy = x\ln x: y′=ln⁡x+x⋅1x=ln⁡x+1y' = \ln x + x \cdot \frac{1}{x} = \ln x + 1.

    Simplify only as far as needed. Factoring, as in ex(1+x)e^x(1 + x), helps when you must solve y′=0y' = 0: since exe^x is never zero, y′=0y' = 0 only at x=−1x = -1. For a product of three factors, apply the rule twice: (fgh)′=f′gh+fg′h+fgh′(fgh)' = f'gh + fg'h + fgh'.

    Products appear naturally in context. Weekly revenue is price times quantity, R(t)=p(t)q(t)R(t) = p(t)q(t). If the price is $20 and falling by $0.50 per week while sales are 300 units and rising by 12 units per week, then R′(t)=p′q+pq′=(−0.5)(300)+(20)(12)=−150+240=90R'(t) = p'q + pq' = (-0.5)(300) + (20)(12) = -150 + 240 = 90 dollars per week: revenue is still rising, because the growth in sales outweighs the price cut.

    With tables

    Free-response questions often give only values. Suppose h(x)=f(x)g(x)h(x) = f(x)g(x) and

    Values of f and g
    xf(x)f′(x)g(x)g′(x)
    23−145

    Then h′(2)=f′(2)g(2)+f(2)g′(2)=(−1)(4)+(3)(5)=−4+15=11h'(2) = f'(2)g(2) + f(2)g'(2) = (-1)(4) + (3)(5) = -4 + 15 = 11. Write the rule with the function names first, then substitute; that way the method is visible even if an arithmetic slip creeps in.

    Tables combine the product rule with tangent lines too: the tangent to hh at x=2x = 2 passes through (2,h(2))=(2,12)(2, h(2)) = (2, 12) with slope 11, so it is y−12=11(x−2)y - 12 = 11(x - 2).

    Key terms

    Product rule
    (fg)′=f′g+fg′(fg)' = f'g + fg'.
    Factor
    One of the functions being multiplied in a product.
    Extended product rule
    (fgh)′=f′gh+fg′h+fgh′(fgh)' = f'gh + fg'h + fgh' for three factors.
    Tabular derivative
    A derivative computed from given values of functions and their derivatives at a point.

    Common mistakes

    • Writing (fg)′=f′g′(fg)' = f'g'.

      The rule has two terms: f′g+fg′f'g + fg'.

    • Dropping one of the two terms.

      Each factor is differentiated once, with the other factor left alone.

    • Mixing up f(2) and f′(2) from a table.

      Label which column you are reading before substituting.

    How this topic is tested

    • Write the product rule in symbols before substituting numbers from a table.
    • Factor out common terms when you need to solve for where the derivative is zero.
    • Use the product rule only when expanding is not simpler.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      What is ddx(x2sin⁡x)\frac{d}{dx}(x^2\sin x)?

    2. Question 2 · MP 2 · Connecting Representations

      h=fgh = fg with f(2)=3f(2) = 3, f′(2)=−1f'(2) = -1, g(2)=4g(2) = 4, g′(2)=5g'(2) = 5. What is h′(2)h'(2)?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      For y=xexy = xe^x, what is y′(0)y'(0)?

    4. Question 4 · MP 1 · Implementing Mathematical Processes

      What is ddx(xln⁡x)\frac{d}{dx}(x\ln x)?

    5. Question 5 · MP 3 · Justification

      A student writes ddx[f(x)g(x)]=f′(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g'(x). Which example shows the error?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 4 points

    The functions ff and gg are differentiable with f(1)=2f(1) = 2, f′(1)=3f'(1) = 3, g(1)=−1g(1) = -1 and g′(1)=4g'(1) = 4. Let h(x)=f(x)g(x)h(x) = f(x)g(x) and k(x)=x2f(x)k(x) = x^2 f(x).

    1. (a) Find h′(1)h'(1).
    2. (b) Write an equation for the tangent line to the graph of kk at x=1x = 1.

    Connected topics

    Frequently asked questions

    Does the order of the two terms matter?

    No. f′g + fg′ and fg′ + f′g are equal; choose one order and stick to it.

    Can I always expand instead?

    Only for simple algebraic products. Products with trig, exponential or log factors need the rule.

    Is there a product rule for three factors?

    Yes: differentiate one factor at a time and add the three terms, (fgh)′ = f′gh + fg′h + fgh′.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Differentiation: Definition and Fundamental Properties on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 2 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    All topics in Unit 2: Differentiation: Definition and Fundamental Properties

    1. 2.1 Defining Average and Instantaneous Rates of Change at a Point
    2. 2.2 Defining the Derivative of a Function and Using Derivative Notation
    3. 2.3 Estimating Derivatives of a Function at a Point
    4. 2.4 Connecting Differentiability and Continuity: Determining When Derivatives Do and Do Not Exist
    5. 2.5 Applying the Power Rule
    6. 2.6 Derivative Rules: Constant, Sum, Difference, and Constant Multiple
    7. 2.7 Derivatives of cos x, sin x, eˣ, and ln x
    8. 2.8 The Product Rule
    9. 2.9 The Quotient Rule
    10. 2.10 Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.