B.1 The Product Rule

Let's now develop and practice using "The Product Rule," which we routinely need to find the derivative of the product of two differentiable functions, ๐‘“ โ‹…๐‘”. For instance, maybe we need find the derivative of ๐‘’๐‘ฅโˆš๐‘ฅ, which is the product of ๐‘’๐‘ฅ and โˆš๐‘ฅ. Or perhaps we'd like to find the derivative of ๐‘ฅsinโก๐‘ฅ, which is the product of ๐‘ฅ and sinโก๐‘ฅ.

The goal of this screen is to develop and provide lots of practice using a simple rule to compute the derivative of the product of two such differentiable functions, ๐‘“ โ‹…๐‘”. We'll also build a sense for why the rule has the form that it does. We assume from the outset that the two functions, f and g, are both differentiable, so ๐‘“โ€ฒ and ๐‘”โ€ฒ exist.

A naive approach that does not work

Let's think through a super-quick example you can do in your head to illustrate a crucial point: Consider the function ๐‘ฅ โ‹…๐‘ฅ, which is the product of ๐‘ฅ and ๐‘ฅ. Of course we can instead view this product as being the function ๐‘ฅ2, and so you immediately know from the Power Rule that the derivative is ๐‘‘(๐‘ฅ2)๐‘‘๐‘ฅ =2๐‘ฅ. But what if we view it as the product ๐‘ฅ โ‹…๐‘ฅ and choose to compute its derivative using whatever approach comes immediately to mind for "the product rule"? If you were going to naively calculate this derivative of the function ๐‘ฅ multiplied by the function ๐‘ฅ, without knowing anything else, what would you try?

If you're like most people who first encounter this question, you would find the derivative of each function individually and then simply multiply them together. We are going to spoil this naive thought immediately and say that this approach is incorrect:

[๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒโ‰ ๐‘“โ€ฒ(๐‘ฅ)๐‘”โ€ฒ(๐‘ฅ)

Let's apply the naive reasoning to ๐‘ฅ โ‹…๐‘ฅ to see how it leads to an incorrect result:

๐‘‘(๐‘ฅ2)๐‘‘๐‘ฅ=๐‘‘(๐‘ฅโ‹…๐‘ฅ)๐‘‘๐‘ฅ?โž=๐‘‘๐‘ฅ๐‘‘๐‘ฅโ‹…๐‘‘๐‘ฅ๐‘‘๐‘ฅ[Does naive approach work??]?โž=1โ‹…1?โž=1โ‰ 2๐‘ฅโœ—[No!๐‘‘(๐‘“โ‹…๐‘”)๐‘‘๐‘ฅโ‰ ๐‘‘๐‘“๐‘‘๐‘ฅโ‹…๐‘‘๐‘”๐‘‘๐‘ฅ]

Do not simply multiply the two derivatives together

That is, since the naive approach does not return what we know is the correct answer of ๐‘‘(๐‘ฅ2)๐‘‘๐‘ฅ =2๐‘ฅ, we see immediately that the derivative of the product of two functions is not simply the product of the derivatives of the two functions: [๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒ โ‰ ๐‘“โ€ฒ(๐‘ฅ) โ‹…๐‘”โ€ฒ(๐‘ฅ). That prime on the outside does not simply distribute to the components on the inside of the brackets.

Instead, the derivative of the product of two functions is a little (only a little!) more complicated.

Developing the Product Rule

Let's ground our work here in what the derivative of this product of functions tells us: We're finding the rate at which the product ๐‘“(๐‘ฅ) ๐‘”(๐‘ฅ) changes when we vary the input x by a little bit. (Remember, a derivative is always telling how much a function changes, or "reacts," when we change its input a little bit. The function we're currently considering happens to be a function which is the product of two other functions.) For instance, we can imagine increasing the input x by a small amount h, to ๐‘ฅ +โ„Ž. The animation below uses our usual area model of multiplication to illustrate the idea.

To develop the correct Product Rule, we return โ€” as always โ€” to the Definition of the Derivative, now applied to the product of two functions, ๐‘“(๐‘ฅ) ๐‘”(๐‘ฅ): [๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒ=limโ„Žโ†’0๐‘“(๐‘ฅ+โ„Ž)๐‘”(๐‘ฅ+โ„Ž)โˆ’๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)โ„Ž You can see how the numerator of this expression represents the difference in the areas between the newly-grown rectangle, ๐‘“(๐‘ฅ +โ„Ž) ๐‘”(๐‘ฅ +โ„Ž), and the original rectangle, ๐‘“(๐‘ฅ) ๐‘”(๐‘ฅ).

Looking at the expression, it's not immediately clear what to do with the limit and hence how to proceed. But the area model will help, since we can use it to write this initial expression in a way that includes the the terms

๐‘“(๐‘ฅ+โ„Ž)โˆ’๐‘“(๐‘ฅ)โ„Ž and ๐‘”(๐‘ฅ+โ„Ž)โˆ’๐‘”(๐‘ฅ)โ„Ž

Once those terms are in place, when we take the limit as โ„Ž โ†’0, those two expressions will be ๐‘“โ€ฒ(๐‘ฅ) and ๐‘”โ€ฒ(๐‘ฅ) respectively, as you'll see!

As the derivation in the animation shows (and as summarized in images you can view and download a bit further down on the screen), the Product Rule for Derivatives is

PRODUCT RULE

In prime notation:

[๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒ=๐‘“โ€ฒ(๐‘ฅ)๐‘”(๐‘ฅ)+๐‘“(๐‘ฅ)๐‘”โ€ฒ(๐‘ฅ)=[ (derivative of the first) ร— (the second) ]+[ (the first) ร— (derivative of the second)]

And in Leibnitz notation:

๐‘‘๐‘‘๐‘ฅ(๐‘“๐‘”)=(๐‘‘๐‘‘๐‘ฅ๐‘“)๐‘”+๐‘“(๐‘‘๐‘‘๐‘ฅ๐‘”)=[ (derivative of the first) ร— (the second) ]+[ (the first) ร— (derivative of the second)]

Crucially, using our area model we can make sense of this rule as shown in the following figure:

Product Rule Interpretation: The figure shows two copies of the original rectangle of width f(x) and height g(x). On the left, the rectangle has an additional vertical thin yellow strip with an arrow indicating it grows horizontally at the rate f'(x). Text states that the area of this thin strip of instantaneous height g(x) is growing at the rate f'(x) โ€ข g(x).  On the right, the rectangle has an additional horizontal thin strip with an arrow indicating that it grows vertically at the rate g'(). Text states that the area of this thin strip of width f(x) grows at the rate f(x) โ€ข g'(x). Text at the bottom states that the overall area is growing at the rate equal to the sum of those two terms, which is the Product Rule.

If you'd like to see a different approach to deriving the Product Rule, open this box. We'll rely on the "trick" used in this derivation on the next screen when we develop the Quotient Rule.

Practice using the Product Rule

Most students find that the Product Rule becomes automatic and routine after you use it a fair number of times โ€” and you will be using it often in the work to come. We'll of course let you practice below, and you should expect similar problems on both your midterm and final exams.

Let's first consider a few Examples to show how it works in practice.

Derivative of โ„Ž(๐‘ฅ) =๐‘’๐‘ฅ โˆš๐‘ฅ.

Find the derivative of โ„Ž(๐‘ฅ) =๐‘’๐‘ฅ โˆš๐‘ฅ.

Solution.

To apply the Product Rule, we first need to identify the two functions being multiplied, and then find the derivative of each:

โ„Ž(๐‘ฅ)=๐‘“(๐‘ฅ)โž๐‘’๐‘ฅโ‹…๐‘”(๐‘ฅ)โžโˆš๐‘ฅ ๐‘“(๐‘ฅ)=๐‘’๐‘ฅ๐‘”(๐‘ฅ)=โˆš๐‘ฅ=๐‘ฅ1/2๐‘“โ€ฒ(๐‘ฅ)=๐‘’๐‘ฅ๐‘”โ€ฒ(๐‘ฅ)=12โˆš๐‘ฅ

We can now apply the Product Rule:

โ„Ž(๐‘ฅ)=๐‘“(๐‘ฅ)โ‹…๐‘”(๐‘ฅ)โ„Žโ€ฒ(๐‘ฅ)=๐‘“โ€ฒ(๐‘ฅ)โ‹…๐‘”(๐‘ฅ)+๐‘“(๐‘ฅ)โ‹…๐‘”โ€ฒ(๐‘ฅ)โ„Žโ€ฒ(๐‘ฅ)=๐‘“โ€ฒ(๐‘ฅ)โž๐‘’๐‘ฅโ‹…๐‘”(๐‘ฅ)โžโˆš๐‘ฅ+๐‘“(๐‘ฅ)โž๐‘’๐‘ฅโ‹…๐‘”โ€ฒ(๐‘ฅ)โž12โˆš๐‘ฅ=๐‘’๐‘ฅโˆš๐‘ฅ+๐‘’๐‘ฅ2โˆš๐‘ฅโœ“

That's it. As long as you remember to find the derivative of each function separately (even if just in your head) and then make the correct substitutions in the Product Rule, this process is straightforward.

Consider ๐‘“(๐‘ฅ) =(๐‘ฅ3 +๐‘ฅ) โ‹…(3๐‘ฅ3 +9๐‘ฅ โˆ’6).

(a) Use the Product Rule to find ๐‘“โ€ฒ(๐‘ฅ).
(b) Instead, multiply out the two polynomials to make a single polynomial, and then find ๐‘“โ€ฒ(๐‘ฅ) using only the Power Rule. Compare the result to that of (a).

Solution.

(a) First, we identify the two functions being multiplied, and take their derivatives. (Since the overall function is called ๐‘“(๐‘ฅ), we're going to call the two functions being multiplied ๐‘ข(๐‘ฅ) and ๐‘ค(๐‘ฅ), but you could call them whatever you want. Soon, you won't call them anything special at all, and will just take these derivatives in your head as you go.)

๐‘“(๐‘ฅ)=๐‘ข(๐‘ฅ)โž(๐‘ฅ3+๐‘ฅ)โ‹…๐‘ค(๐‘ฅ)โžยฏยฏยฏโžยฏยฏยฏโž(3๐‘ฅ3+9๐‘ฅโˆ’6) ๐‘ข(๐‘ฅ)=๐‘ฅ3+๐‘ฅ๐‘ค(๐‘ฅ)=3๐‘ฅ3+9๐‘ฅโˆ’6๐‘ขโ€ฒ(๐‘ฅ)=3๐‘ฅ2+1๐‘คโ€ฒ(๐‘ฅ)=9๐‘ฅ2+9

Then applying the Product Rule, we get

๐‘“(๐‘ฅ)=๐‘ข(๐‘ฅ)โ‹…๐‘ค(๐‘ฅ)๐‘“โ€ฒ(๐‘ฅ)=๐‘ขโ€ฒ(๐‘ฅ)โ‹…๐‘ค(๐‘ฅ)+๐‘ข(๐‘ฅ)โ‹…๐‘คโ€ฒ(๐‘ฅ)=[(3๐‘ฅ2+1)โ‹…(3๐‘ฅ3+9๐‘ฅโˆ’6)]+[(๐‘ฅ3+๐‘ฅ)โ‹…(9๐‘ฅ2+9)]=[3๐‘ฅ2(3๐‘ฅ3+9๐‘ฅโˆ’6)+1(3๐‘ฅ3+9๐‘ฅโˆ’6)]+[๐‘ฅ3(9๐‘ฅ2+9)+๐‘ฅ(9๐‘ฅ2+9)]=[9๐‘ฅ5+27๐‘ฅ3โˆ’18๐‘ฅ2+3๐‘ฅ3+9๐‘ฅโˆ’6]+[9๐‘ฅ5+9๐‘ฅ3+9๐‘ฅ3+9๐‘ฅ]=18๐‘ฅ5+48๐‘ฅ3โˆ’18๐‘ฅ2+18๐‘ฅโˆ’6โœ“

(b) We first multiply out the polynomials:

๐‘“(๐‘ฅ)=(๐‘ฅ3+๐‘ฅ)(3๐‘ฅ3+9๐‘ฅโˆ’6)=๐‘ฅ3(3๐‘ฅ3+9๐‘ฅโˆ’6)+๐‘ฅ(3๐‘ฅ3+9๐‘ฅโˆ’6)=3๐‘ฅ6+9๐‘ฅ4โˆ’6๐‘ฅ3+3๐‘ฅ4+9๐‘ฅ2โˆ’6๐‘ฅ=3๐‘ฅ6+12๐‘ฅ4โˆ’6๐‘ฅ3+9๐‘ฅ2โˆ’6๐‘ฅ

Then, using the Power Rule

๐‘“โ€ฒ(๐‘ฅ)=18๐‘ฅ5+48๐‘ฅ3โˆ’18๐‘ฅ2+18๐‘ฅโˆ’6โœ“

This is happily the same result as we found in (a).

You can see that we can use using either method to find ๐‘“โ€ฒ(๐‘ฅ) here. With experience, you'll see how in some cases using the Product Rule is easier, while in other cases simplifying the multiplication and then taking the derivative term-by-term is easier.

Practice Problems

Time to practice! This new rule may take a little getting used to, so please practice until you feel more comfortable with it. We'll be using it a lot going forward, so the more you can make it part of your working toolkit now, the easier things will be later.
Practice Problem 1
If ๐‘ฆ =๐‘ฅ3๐‘’๐‘ฅ, then ๐‘‘๐‘ฆ๐‘‘๐‘ฅ = (A) ๐‘ฅ2๐‘’๐‘ฅ(3+1๐‘’)(B) ๐‘ฅ2๐‘’๐‘ฅ(2+๐‘ฅ)(C) 3๐‘’(๐‘ฅ2๐‘’๐‘ฅ) (D) ๐‘ฅ2๐‘’๐‘ฅ(3+๐‘ฅ)(E) None of the above
Practice Problem 2
Differentiate ๐‘“(๐‘ฅ) =๐‘ฅsinโก๐‘ฅ.
(A) cosโก๐‘ฅ(B) sinโก๐‘ฅโˆ’๐‘ฅcosโก๐‘ฅ(C) sinโก๐‘ฅ+๐‘ฅcosโก๐‘ฅ
(D) โˆ’cosโก๐‘ฅ(E) None of these
Practice Problem 3
If ๐‘“(๐‘ฅ) =sinโก๐‘ฅcosโก๐‘ฅ, then ๐‘“โ€ฒ(๐œ‹2) = (A) 0(B) โˆ’1(C) 1(D) โˆ’โˆš22(E) โˆš22
Practice Problem 4

Given that ๐‘“(2) =1, ๐‘“โ€ฒ(2) = โˆ’3, ๐‘”(2) =4, and ๐‘”โ€ฒ(2) =8, then (๐‘“๐‘”)โ€ฒ(2) =

Note: (๐‘“๐‘”)โ€ฒ(2) =[๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒ๐‘ฅ=2
(A) โˆ’24(B) 0(C) โˆ’20(D) โˆ’4(E) None of the above

Practice Problem 5
value of ๐‘ฅ ๐‘“(๐‘ฅ) ๐‘“โ€ฒ(๐‘ฅ) ๐‘”(๐‘ฅ) ๐‘”โ€ฒ(๐‘ฅ)
๐‘ฅ = โˆ’3 2 0 1 -5
๐‘ฅ =0 4 12 12 -3
๐‘ฅ =5 1 5 2 -9
If โ„Ž(๐‘ฅ) =๐‘“(๐‘ฅ) ๐‘”(๐‘ฅ), find the equation for the line tangent to the curve ๐‘ฆ =โ„Ž(๐‘ฅ) at ๐‘ฅ = โˆ’3. (A) ๐‘ฆ=โˆ’10๐‘ฅโˆ’28(B) ๐‘ฆ=4๐‘ฅ+18(C) ๐‘ฆ=40๐‘ฅโˆ’10 (D) ๐‘ฆ=2+12๐‘ฅ(E) ๐‘ฆ=โˆ’18โˆ’22๐‘ฅ

Let's consider some problems where we need to find the derivative of the product of 3 functions. The Product Rule extends as you might expect:

Product Rule for the Product of 3 Functions

๐‘‘๐‘‘๐‘ฅ(๐‘“๐‘”โ„Ž)=(๐‘‘๐‘‘๐‘ฅ๐‘“)๐‘”โ„Ž+๐‘“(๐‘‘๐‘‘๐‘ฅ๐‘”)โ„Ž++๐‘“๐‘”(๐‘‘๐‘‘๐‘ฅโ„Ž)=[ (derivative of the first) ร— (the second) ร— (the third) ]+[ (the first) ร— (derivative of the second)ร— (the third) ]+[ (the first) ร— (the second) ร— (derivative of the third)]
The Product Rule for 4 or more functions extends similarly.
Practice Problem 6
If โ„Ž(๐‘ก) =๐‘ก5/2๐‘’๐‘กsinโก๐‘ก, then โ„Žโ€ฒ(๐‘ก) = (A) 52๐‘’๐‘กcosโก๐‘ก(B) ๐‘ก3/2๐‘’๐‘ก(52sinโก๐‘ก+๐‘กsinโก๐‘ก+๐‘กcosโก๐‘ก) (C) 52๐‘ก3/2๐‘’๐‘กcosโก๐‘ก+๐‘ก5/2+๐‘’๐‘กcosโก๐‘ก(D) 52๐‘ก3/2+๐‘’๐‘ก+cos (E) ๐‘ก5/2๐‘’๐‘ก(52sinโก๐‘ก+sinโก๐‘ก+cosโก๐‘ก)
Practice Problem 7
If ๐‘(๐‘ฅ) =(๐‘ฅ2 +2)(2๐‘ฅ3 +3)(๐‘ฅ โˆ’1), then ๐‘โ€ฒ(๐‘ฅ) = (A) 12๐‘ฅ5โˆ’10๐‘ฅ4+16๐‘ฅ3โˆ’3๐‘ฅ2โˆ’6๐‘ฅ+6(B) 4๐‘ฅ5+8๐‘ฅ4+12๐‘ฅ3โˆ’๐‘ฅ2โˆ’2๐‘ฅ+4(C) 5๐‘ฅ5+12๐‘ฅ4โˆ’2๐‘ฅ3+8๐‘ฅ2+4๐‘ฅ+1(D) 15๐‘ฅ5โˆ’5๐‘ฅ4+2๐‘ฅ3โˆ’3๐‘ฅ2+7๐‘ฅ+2(E) ๐‘ฅ5โˆ’8๐‘ฅ4+12๐‘ฅ3+4๐‘ฅ2+7๐‘ฅ+2
Practice Problem 8
Graphs of f and g. Both are piecewise graphs comprised of line segments.  For f: The first line segment starts at (-4, 18) and continues to (2, 0). The next segment starts at (2, 0) and continues to (10, 4). The final segment starts at (10, 4) and continues to (18, -12.)  For g: The first line segment starts at (-8, -13) and continues to (15, 10). It is then horizontal with y-value equal to 10 to the end. If โ„Ž(๐‘ฅ) =๐‘“(๐‘ฅ)๐‘”(๐‘ฅ) where ๐‘“ and ๐‘” are shown in the figure, find โ„Žโ€ฒ(0). (A) 3(B) 21(C) 7(D) 9(E) 36
Practice Problem 9
Graphs of f and g. Both consist of segments of lines. For f: The first segment starts at (-5, 1) and ends at (0,0). The next segment starts at (0, 0) and continues to (5, 1). For g: The first segment starts at (-9, -7) and ends at (-4, -2.) The next segment is horizontal starting at (-4, -2) and ending at (4, -2). The next segment starts at (4, -2) and continues to (7, 10). If โ„Ž(๐‘ฅ) =๐‘“(๐‘ฅ) ๐‘”(๐‘ฅ), and ๐‘“ and ๐‘” are shown in the figure, find โ„Žโ€ฒ( โˆ’2). (A) 4(B) 9(C) 32(D) 7(E) 35
Practice Problem 10
If ๐‘“(๐‘ฅ) =sinโก๐‘ฅcosโก๐‘ฅ, find the equation of the tangent line to the curve ๐‘ฆ =๐‘“(๐‘ฅ) at ๐‘ฅ =๐œ‹2. (A) ๐‘ฆ=๐œ‹2๐‘ฅ(B) ๐‘ฆ=๐œ‹2+๐‘ฅ(C) ๐‘ฆ=๐œ‹2โˆ’๐‘ฅ (D) ๐‘ฆ=โˆ’๐‘ฅ(E) ๐‘ฆ=๐œ‹2โˆ’๐‘ฅ

The Upshot

  1. The Product Rule for finding the derivative of the product of two functions is In prime notation:

    [๐‘“(๐‘ฅ)๐‘”(๐‘ฅ)]โ€ฒ=๐‘“โ€ฒ(๐‘ฅ)๐‘”(๐‘ฅ)+๐‘“(๐‘ฅ)๐‘”โ€ฒ(๐‘ฅ)=[ (derivative of the first) ร— (the second) ]+[ (the first) ร— (derivative of the second)]

    And in Leibnitz notation:

    ๐‘‘๐‘‘๐‘ฅ(๐‘“๐‘”)=(๐‘‘๐‘‘๐‘ฅ๐‘“)๐‘”+๐‘“(๐‘‘๐‘‘๐‘ฅ๐‘”)=[ (derivative of the first) ร— (the second) ]+[ (the first) ร— (derivative of the second)]

On the next screen, we'll develop the Quotient Rule, so we can easily find the derivative of the quotient of two functions.

For now, what do you think about the Product Rule? Weird? Difficult to use? Easy? Please post on the Forum and let the Community know your thoughts . . . and also ask any questions that you have, or help answer someone else's!