The Product Rule
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];
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:
- 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 termf(x)g'(x). - 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 termg(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
Identify your
f(x)andg(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)
- 2Find 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)
- 3Assemble 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) - 4Simplify (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.
Two Polynomials
Problem: Find the derivative of y = (3x^2 - 1)(x^4 + 5x).
Solution:
- 1Recognize the structureThis 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).
- 2Identify the piecesLet's break the function down into our four essential components.
- First function:
f(x) = 3x^2 - 1 - Second function:
g(x) = x^4 + 5x
- First function:
- 3Find their derivatives
f'(x) = 6xg'(x) = 4x^3 + 5
- 4Apply the Product Rule formulaThe 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.
- 5Simplify (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) - 5y' = 18x^5 - 4x^3 + 45x^2 - 5 - First part:
A Mix of Function Types
Problem: Find the derivative of f(t) = e^t cos(t).
Solution:
- 1Recognize the structureWe see the exponential function
e^tmultiplied by the trig functioncos(t). This is a job for the Product Rule. The variable istinstead ofx, but that doesn't change anything. - 2Identify the pieces
- First function: Let's call it
u(t) = e^t - Second function:
v(t) = cos(t)
- First function: Let's call it
- 3Find their derivatives
u'(t) = e^t(The derivative ofe^tis juste^t!)v'(t) = -sin(t)(Be careful with the negative sign!)
- 4Apply the Product Rule formulaThe formula is
f'(t) = u(t)v'(t) + v(t)u'(t).f'(t) = (e^t)(-sin(t)) + (cos(t))(e^t) - 5SimplifyThis 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)andg(x)? What is the derivative oftan(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 inm = 2to find the specific rate of change at that moment.
Take your time, be organized, and you've got this.
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.
- FUN-3.B: Calculate derivatives of products and quotients of differentiable functions.
- FUN-3.B.1
- Derivatives of products of differentiable functions can be found using the product rule.
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];
Read what Saavi narrates
Hello there, I’m Saavi, and I’m so glad you’re here with Shrutam.
Let's talk about a common scenario. Imagine you and a friend start a small business in Seattle selling custom-designed hoodies. Your revenue is simple: the price of a hoodie times the number you sell. But... to boost sales, you run a promotion, so the price is decreasing. At the same time, your marketing is working, so the number of hoodies you sell is increasing. Both factors are changing at once. How do you figure out how fast your total revenue is changing?
That's exactly what the Product Rule in calculus helps us do. It's our method for finding the derivative of a function that's built by multiplying two other functions together.
Let's walk through an example. Suppose we need to find the derivative of the function y equals, in parentheses, three x squared minus one, times, in another set of parentheses, x to the fourth plus five x.
First, we recognize this is a product of two functions. This is a job for the Product Rule. We can't just take the derivative of each part and multiply them. That's the most common mistake, and it just doesn't work.
So, let's identify our pieces. The first function, let's call it f of x, is three x squared minus one. The second function, g of x, is x to the fourth plus five x.
Next, we find their derivatives separately. The derivative of f... is six x. The derivative of g... is four x cubed plus five.
Now we use the Product Rule formula, which I always remember as: the first times the derivative of the second, plus the second times the derivative of the first.
So we plug in our pieces. We get... parentheses three x squared minus one... times... parentheses four x cubed plus five... PLUS... parentheses x to the fourth plus five x... times... parentheses six x.
And that's it! That's the derivative. On an exam, you could often leave it like that. If we needed to simplify, we would multiply everything out and combine the terms, but the calculus part is done.
The biggest takeaway is to avoid the trap of multiplying the derivatives. Always remember the pattern: first times derivative of the second, plus the second times derivative of the first. You are more than capable of mastering this. Keep up the great work.
As we proved, this simply doesn't work mathematically. It ignores the interaction between the two functions.
Memorize the correct formula: `f'g + fg'`. Say it out loud: "First times derivative of the second, plus second times derivative of the first."
This is like calculating the area of only one of the "new strips" in our rectangle analogy. You're missing half the change.
After writing your answer, double-check that it has two distinct terms added together, matching the structure of the rule.
The formula is precise. Each piece has a specific job.
Before you assemble the final derivative, explicitly write out the four building blocks: `f(x)`, `g(x)`, `f'(x)`, and `g'(x)`. This creates a "bank" of parts you can pull from, reducing the chance of a mix-up.
You did the hard calculus part right, but a simple algebra slip (like a sign error when distributing) leads to the wrong final answer.
On a free-response question, stop once you have a correct "unsimplified" derivative. For multiple-choice, be slow and methodical with your algebra. Check your distribution and combining of like terms twice.
You might try to apply the power rule or another rule incorrectly to the whole thing.
When you see two different *types* of functions multiplied together (polynomial and trig, exponential and polynomial, etc.), your "Product Rule" alarm should go off.