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 we use in calculus to find the rate of change of a quantity that is the result of multiplying two other changing quantities together.

Why this matters

Imagine you and your friend Priya start a small business in Seattle selling custom-designed hoodies. Your revenue is simple: the price of one hoodie times the number of hoodies you sell.

But things get interesting. To boost sales, you run a promotion, so the price per hoodie is decreasing over time. At the same time, your marketing on social media is working, so the number of hoodies you sell is increasing each day. Both key factors are changing at once.

If you want to know how fast your total revenue is changing right now, you can't just look at the change in price or the change in sales alone. You need to account for both moving parts simultaneously. This is where calculus, and specifically the Product Rule, comes in. It gives us a precise way to handle this exact kind of problem.

Concept overview

flowchart TD
    A[Start: Find derivative of h(x)] --> B{Is h(x) a product f(x) * g(x)?};
    B -->|No| C[Use another rule, e.g., Power Rule];
    B -->|Yes| D[Identify f(x) and g(x)];
    D --> E[Find derivatives f'(x) and g'(x) separately];
    E --> F[Write the formula: f(x)g'(x) + g(x)f'(x)];
    F --> G[Substitute the 4 pieces into the formula];
    G --> H[Simplify the resulting expression];
    H --> I[Finish];
This diagram is a flowchart that outlines the step-by-step process for applying the Product Rule. It begins by asking if the function is a product, then guides the user through identifying the component functions, finding their derivatives, substituting them into the formula, and simplifying the result.

Core explanation

Hello there! I’m Saavi, and I’m so glad you’re here. Today, we're tackling one of the most essential tools in your calculus toolkit: the Product Rule.

Let's get one thing straight right away. 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), how do you find the derivative, h'(x)?

The Most Common Mistake in All of Calculus

This is where so many students slip up, and I want to call it out right at the start. It is incredibly tempting to think that the derivative of the product is just the product of the derivatives.

That is, it feels like h'(x) should be f'(x) * g'(x).

This is completely, totally, 100% incorrect.

Let's prove it with a simple example we already know. Let f(x) = x^2 and g(x) = x^3. The product is h(x) = f(x)g(x) = x^2 * x^3 = x^5. Using the Power Rule, we know the derivative of h(x) is h'(x) = 5x^4. This is the correct answer.

Now, let's try the wrong way. The derivative of f(x) is f'(x) = 2x. The derivative of g(x) is g'(x) = 3x^2. If we multiply these derivatives, we get f'(x)g'(x) = (2x)(3x^2) = 6x^3.

Introducing the Product Rule

Here is the actual formula. When you have h(x) = f(x)g(x), its derivative is:

h'(x) = f(x)g'(x) + g(x)f'(x)

In words, I like to say it like this: "The first function times the derivative of the second, plus the second function times the derivative of the first."

Say that out loud a few times. It has a nice rhythm to it, and it will help you remember the pattern.

A Visual Analogy: The Growing Rectangle

Why does this rule work? Imagine a rectangle whose area represents our product. Let the width of the rectangle be f(x) and the length be g(x). The area, A, is f(x) * g(x).

Now, imagine that both the width and the length are growing over time (or as x changes). The width f(x) grows by a tiny amount, which we can think of as its rate of change, f'(x). The length g(x) also grows by a tiny amount, its rate of change, g'(x).

How does the total area change?

The area grows in two main ways:

  1. A new vertical strip is added. Its area is the original width, f(x), times the small change in length, g'(x). This gives us the term f(x)g'(x).
  2. A new horizontal strip is added. Its area is the original length, g(x), times the small change in width, f'(x). This gives us the term g(x)f'(x).

(There's also a tiny corner piece with area f'(x)g'(x), but in calculus, this piece is so infinitesimally small compared to the strips that it becomes negligible as our changes approach zero. We can ignore it.)

So, the total change in area is the sum of the two strips: f(x)g'(x) + g(x)f'(x). This is the Product Rule! It accounts for the change contributed by both growing sides.

How to Use the Product Rule: A 4-Step Process

When you see a function like h(x) = (x^2 + 4) * sin(x), your brain should immediately say "Product Rule!" Here is a foolproof process to get it right every time.

Let's find the derivative of h(x) = (x^2 + 4) * sin(x).

  1. 1

    Identify your f(x) and g(x). It's the product of two distinct parts. Let's call them:

    • f(x) = x^2 + 4 (the first function)
    • g(x) = sin(x) (the second function)
  2. 2
    Find the derivatives of each part separately
    . This is a crucial intermediate step. Write them down!
    • f'(x) = 2x (using the Power Rule)
    • g'(x) = cos(x) (a standard trig derivative)
  3. 3
    Assemble the pieces using the formula
    . Write out the formula first to guide you: h'(x) = f(x)g'(x) + g(x)f'(x) Now, carefully substitute the four pieces you identified: h'(x) = (x^2 + 4)(cos(x)) + (sin(x))(2x)
  4. 4
    Simplify (if necessary)
    . For now, that's a perfectly acceptable answer on a free-response question. You can clean it up a bit for clarity: h'(x) = (x^2 + 4)cos(x) + 2x sin(x)

That's it! The key is being organized. By identifying the four components (f, g, f', and g') before you assemble the final answer, you prevent careless mix-ups.

Worked examples

Let's walk through a couple of examples together. The key is organization and remembering the pattern.


Example 1

Two Polynomials

Problem: Find the derivative of y = (3x^2 - 1)(x^4 + 5x).

Solution:

  1. 1
    Recognize the structure
    This is a classic product of two functions. We absolutely need the Product Rule. Don't even think about multiplying it all out first (though you could, it's much more work and prone to algebra mistakes).
  2. 2
    Identify the pieces
    Let's break the function down into our four essential components.
    • First function: f(x) = 3x^2 - 1
    • Second function: g(x) = x^4 + 5x
  3. 3
    Find their derivatives
    • f'(x) = 6x
    • g'(x) = 4x^3 + 5
  4. 4
    Apply the Product Rule formula
    The formula is y' = f(x)g'(x) + g(x)f'(x). Let's plug everything in carefully. y' = (3x^2 - 1)(4x^3 + 5) + (x^4 + 5x)(6x)

    Why this step is important: At this point on an AP Exam free-response question, you have demonstrated you know the calculus. This is often called the "unsimplified derivative" and can earn you full credit.

  5. 5
    Simplify (for practice or multiple-choice)
    Let's multiply everything out to get the kind of answer you'd see on a multiple-choice question.
    • First part: (3x^2 - 1)(4x^3 + 5) = 12x^5 + 15x^2 - 4x^3 - 5
    • Second part: (x^4 + 5x)(6x) = 6x^5 + 30x^2

    Now combine like terms: y' = (12x^5 + 6x^5) - 4x^3 + (15x^2 + 30x^2) - 5 y' = 18x^5 - 4x^3 + 45x^2 - 5


Example 2

A Mix of Function Types

Problem: Find the derivative of f(t) = e^t cos(t).

Solution:

  1. 1
    Recognize the structure
    We see the exponential function e^t multiplied by the trig function cos(t). This is a job for the Product Rule. The variable is t instead of x, but that doesn't change anything.
  2. 2
    Identify the pieces
    • First function: Let's call it u(t) = e^t
    • Second function: v(t) = cos(t)
  3. 3
    Find their derivatives
    • u'(t) = e^t (The derivative of e^t is just e^t!)
    • v'(t) = -sin(t) (Be careful with the negative sign!)
  4. 4
    Apply the Product Rule formula
    The formula is f'(t) = u(t)v'(t) + v(t)u'(t). f'(t) = (e^t)(-sin(t)) + (cos(t))(e^t)
  5. 5
    Simplify
    This is a great opportunity to factor out the common term, e^t, which is a very common step in these types of problems. f'(t) = e^t(cos(t) - sin(t))

    This cleaned-up version is much easier to work with if you needed to, for example, find where the derivative equals zero.

Try it yourself

Alright, your turn to practice. Remember the four-step process: identify f and g, find f' and g', assemble, and simplify.

Problem 1: Find the derivative of h(x) = x^4 * tan(x).

  • Hint: What are your two functions, f(x) and g(x)? What is the derivative of tan(x)? (You should have this one memorized!)

Problem 2: A company in Dallas finds its profit P (in thousands of dollars) m months after launching is modeled by P(m) = (2m + 1)e^m. At what rate is the profit changing when m = 2?

  • Hint: First, find the derivative P'(m) using the Product Rule. Then, plug in m = 2 to find the specific rate of change at that moment.

Take your time, be organized, and you've got this.