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??]?=11?=12𝑥[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, 𝑓(𝑥) 𝑔(𝑥): [𝑓(𝑥)𝑔(𝑥)]=lim0𝑓(𝑥+)𝑔(𝑥+)𝑓(𝑥)𝑔(𝑥) 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𝑥318𝑥2+3𝑥3+9𝑥6]+[9𝑥5+9𝑥3+9𝑥3+9𝑥]=18𝑥5+48𝑥318𝑥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𝑥46𝑥3+3𝑥4+9𝑥26𝑥=3𝑥6+12𝑥46𝑥3+9𝑥26𝑥

Then, using the Power Rule

𝑓(𝑥)=18𝑥5+48𝑥318𝑥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) 𝑦=1822𝑥

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𝑥510𝑥4+16𝑥33𝑥26𝑥+6(B) 4𝑥5+8𝑥4+12𝑥3𝑥22𝑥+4(C) 5𝑥5+12𝑥42𝑥3+8𝑥2+4𝑥+1(D) 15𝑥55𝑥4+2𝑥33𝑥2+7𝑥+2(E) 𝑥58𝑥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!