Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

The Product Rule

Lesson ~10 min read

In simple terms: In simple terms, the product rule is a special formula you use in calculus to find the rate of change of a function that is made by multiplying two other functions together.

Why this matters

Imagine you're running a small online business selling custom phone cases. Your total daily revenue is the number of cases you sell multiplied by the price of each case. Revenue = (Cases Sold) × (Price).

Now, what if both of those things are changing? Maybe you're running a promotion, so the price is slowly decreasing, but that's causing the number of cases you sell each day to increase. How is your total revenue changing at any given moment?

It's not as simple as just multiplying the change in sales by the change in price. That's the exact puzzle the product rule solves. It helps us find the rate of change for a "product" of two changing quantities. We'll break down this essential rule step-by-step.

Concept overview

flowchart TD
    A[Start: Find derivative of h(x) = f(x) * g(x)] --> B{Is it a product?};
    B -- Yes --> C[Identify f(x) and g(x)];
    C --> D[Find f'(x)];
    C --> E[Find g'(x)];
    D --> F[Assemble the Rule];
    E --> F[Assemble the Rule];
    F[h'(x) = f'(x)g(x) + f(x)g'(x)] --> G[Substitute functions and derivatives];
    G --> H[Simplify the final expression];
    H --> I[End];
    B -- No --> J[Use a different rule, e.g., Power Rule, Chain Rule];
This flowchart shows the step-by-step process for applying the product rule. It starts by asking if a function is a product, then branches to identifying the component functions, finding their individual derivatives, assembling them into the product rule formula, and simplifying the result.

Core explanation

Alright, let's dive into one of the most fundamental rules of differentiation: the product rule.

First, let's get the biggest misconception out of the way.

If you have a function h(x) that is the product of two other functions, say f(x) and g(x), so h(x) = f(x)g(x), you might think you can just take the derivative of each part and multiply them together.

This is the most common mistake students make. d/dx [f(x)g(x)] is NOT f'(x)g'(x).

It feels like it should be that simple, but it doesn't work. Think back to our phone case business. The change in revenue isn't just the change in price times the change in sales. It's more nuanced, and the product rule gives us the correct, complete picture.

The Product Rule Formula

Here is the actual formula. If f and g are differentiable functions, then the derivative of their product is:

d/dx [f(x)g(x)] = f'(x)g(x) + f(x)g'(x)

Let's break that down. I like to think of it in plain English:

"The derivative of a product is the derivative of the first function times the second, plus the first function times the derivative of the second."

Some people find this little jingle helpful: "Lefty-D-Righty plus Righty-D-Lefty," where D means "derivative of." Or, using u and v for the functions, (uv)' = u'v + uv'. Whatever helps you remember the pattern!

An Analogy: The Growing Rectangle

Imagine a rectangle whose width w(t) and height h(t) are both growing over time. The area of the rectangle is A(t) = w(t) * h(t). How is the area changing?

The change in area comes from two places:

  1. The rectangle gets wider. This adds a new slice of area on the side. The size of this new slice is (the change in width) * (the current height). This is our w'(t)h(t) term.
  2. The rectangle gets taller. This adds a new slice of area on the top. The size of this slice is (the current width) * (the change in height). This is our w(t)h'(t) term.

The total change in area is the sum of these two new slices: A'(t) = w'(t)h(t) + w(t)h'(t). This is the product rule in action! You can see that the change depends on both the rates of change (w' and h') and the current dimensions (w and h).

How to Apply the Product Rule: A Step-by-Step Guide

Let's apply this to a real calculus problem. Suppose we want to find the derivative of y = x² sin(x).

  1. 1
    Identify your two functions
    Our function is a product of and sin(x). Let f(x) = x² (our "first" function). Let g(x) = sin(x) (our "second" function).
  2. 2
    Find the derivative of each function separately
    Using our basic derivative rules: f'(x) = 2x g'(x) = cos(x)
  3. 3
    Plug these four pieces into the product rule formula
    Remember the formula: f'(x)g(x) + f(x)g'(x)

    Substitute everything in its place: y' = (2x)(sin(x)) + (x²)(cos(x))

  4. 4
    Simplify (if necessary)
    In this case, it's already quite clean. y' = 2x sin(x) + x² cos(x)

And that's it! You've successfully used the product rule. The key is being organized. Always identify your two functions, find their derivatives separately, and then carefully assemble them into the final formula. Don't try to do it all in your head at once. Write down the parts. It prevents simple errors and makes your work much easier to check.

Worked examples

Let's walk through a couple of examples together. The key is to be methodical and write out each step.

Example 1

Polynomial and Exponential

Problem: Find the derivative of h(x) = (3x⁴ - 5x)eˣ.

Solution Walkthrough:

  1. 1
    Identify the two functions being multiplied
    This function is a product of a polynomial part and an exponential part. Let f(x) = 3x⁴ - 5x. This is our "first" function. Let g(x) = eˣ. This is our "second" function.
  2. 2
    Find the derivatives of these individual functions
    For f(x), we use the power rule on each term: f'(x) = 12x³ - 5

    For g(x), we know the derivative of is just itself: g'(x) = eˣ

  3. 3
    Apply the product rule formula
    h'(x) = f'(x)g(x) + f(x)g'(x) Now, we substitute our four pieces into the formula. Be careful with parentheses!

    h'(x) = (12x³ - 5)(eˣ) + (3x⁴ - 5x)(eˣ)

    This is a perfectly correct answer for the derivative. On a free-response question on the AP exam, you could often stop here.

  4. 4
    Simplify by factoring (good practice)
    Notice that both terms have a common factor of . Let's factor it out to get a cleaner-looking answer.

    h'(x) = eˣ [ (12x³ - 5) + (3x⁴ - 5x) ] h'(x) = eˣ (3x⁴ + 12x³ - 5x - 5)

Example 2

Finding the Equation of a Tangent Line

Problem: Find the equation of the line tangent to the curve y = x³ ln(x) at the point where x = 1.

Solution Walkthrough:

  1. Recognize what you need. To find the equation of a line, we need a point and a slope.

    • Point
      We're given x = 1. To find the y-coordinate, plug it into the original function: y = (1)³ ln(1) = 1 * 0 = 0. So, our point is (1, 0).
    • Slope
      The slope of the tangent line is the value of the derivative at that point. We need to find y' first, using the product rule.
  2. Apply the Product Rule to find y'. Our function is y = x³ ln(x).

    • f(x) = x³ => f'(x) = 3x²
    • g(x) = ln(x) => g'(x) = 1/x

    Now, assemble the rule: y' = f'(x)g(x) + f(x)g'(x) y' = (3x²)(ln(x)) + (x³)(1/x)

  3. Simplify the derivative. y' = 3x² ln(x) + x²

  4. Calculate the slope at x = 1. Plug x = 1 into our expression for y'. m = y'(1) = 3(1)² ln(1) + (1)² m = 3(1)(0) + 1 m = 0 + 1 = 1 So, the slope of the tangent line at x=1 is 1.

  5. Write the equation of the line. Using point-slope form y - y₁ = m(x - x₁), with our point (1, 0) and slope m = 1: y - 0 = 1(x - 1) y = x - 1

This example shows how the product rule is a tool used in larger, multi-step problems—a very common AP exam scenario.

Try it yourself

Ready to try on your own? Don't worry about getting it perfect on the first try. The goal is to practice the process.

Problem 1: Find the derivative, dy/dx, for the function y = x⁴ tan(x).

Problem 2: At what x-values does the graph of f(x) = x eˣ have a horizontal tangent line?