3.2 Product and Quotient Rules

3.2.1 The Product Rule

Now that we have examined the basic rules, we can begin looking at some of the more advanced rules. The first one examines the derivative of the product of two functions. Although it might be tempting to assume that the derivative of the product is the product of the derivatives, similar to the sum and difference rules, the product rule does not follow this pattern. To see why we cannot use this pattern, consider the function f⁢(x)=x2, whose derivative is f′⁢(x)=2⁢x and not dd⁢x⁢(x)⋅dd⁢x⁢(x)=1⋅1=1.

Theorem 3.5 (Product Rule).

Let f⁢(x) and g⁢(x) be differentiable functions. Then

dd⁢x⁢(f⁢(x)⁢g⁢(x))=dd⁢x⁢(f⁢(x))⋅g⁢(x)+dd⁢x⁢(g⁢(x))⋅f⁢(x).

That is,

 if ⁢j⁢(x)=f⁢(x)⁢g⁢(x),then⁢j′⁢(x)=f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x).

This means that the derivative of a product of two functions is the derivative of the first function times the second function plus the derivative of the second function times the first function.

Proof.

We begin by assuming that f⁢(x) and g⁢(x) are differentiable functions. At a key point in this proof we need to use the fact that, since g⁢(x) is differentiable, it is also continuous. In particular, we use the fact that since g⁢(x) is continuous, limh→0g⁢(x+h)=g⁢(x).

By applying the limit definition of the derivative to j⁢(x)=f⁢(x)⁢g⁢(x), we obtain

j′⁢(x)=limh→0f⁢(x+h)⁢g⁢(x+h)−f⁢(x)⁢g⁢(x)h.

By adding and subtracting f⁢(x)⁢g⁢(x+h) in the numerator, we have

j′⁢(x)=limh→0f⁢(x+h)⁢g⁢(x+h)−f⁢(x)⁢g⁢(x+h)+f⁢(x)⁢g⁢(x+h)−f⁢(x)⁢g⁢(x)h.

After breaking apart this quotient and applying the sum law for limits, the derivative becomes

j′⁢(x)=limh→0(f⁢(x+h)⁢g⁢(x+h)−f⁢(x)⁢g⁢(x+h)h)+limh→0(f⁢(x)⁢g⁢(x+h)−f⁢(x)⁢g⁢(x)h).

Rearranging, we obtain

j′⁢(x)=limh→0(f⁢(x+h)−f⁢(x)h⋅g⁢(x+h))+limh→0(g⁢(x+h)−g⁢(x)h⋅f⁢(x)).

By using the continuity of g⁢(x), the definition of the derivatives of f⁢(x) and g⁢(x), and applying the limit laws, we arrive at the product rule,

j′⁢(x)=f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x).

∎

Example 3.2.1 (Applying the Product Rule to Functions at a Point).


For j⁢(x)=f⁢(x)⁢g⁢(x), use the product rule to find j′⁢(2) if f⁢(2)=3,f′⁢(2)=−4,g⁢(2)=1, and g′⁢(2)=6.

Solution: Since j⁢(x)=f⁢(x)⁢g⁢(x),j′⁢(x)=f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x), and hence

j′⁢(2)=f′⁢(2)⁢g⁢(2)+g′⁢(2)⁢f⁢(2)=(−4)⁢(1)+(6)⁢(3)=14.
Example 3.2.2 (Applying the Product Rule to Binomials).


For j⁢(x)=(x2+2)⁢(3⁢x3−5⁢x), find j′⁢(x) by applying the product rule. Check the result by first finding the product and then differentiating.

Solution: If we set f⁢(x)=x2+2 and g⁢(x)=3⁢x3−5⁢x, then f′⁢(x)=2⁢x and g′⁢(x)=9⁢x2−5. Thus,

j′⁢(x)=f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x)=(2⁢x)⁢(3⁢x3−5⁢x)+(9⁢x2−5)⁢(x2+2).

Simplifying, we have

j′⁢(x)=15⁢x4+3⁢x2−10.

To check, we see that j⁢(x)=3⁢x5+x3−10⁢x and, consequently, j′⁢(x)=15⁢x4+3⁢x2−10.

Checkpoint 3.2.1.

Use the product rule to obtain the derivative of j⁢(x)=2⁢x5⁢(4⁢x2+x).

Hint: Set f⁢(x)=2⁢x5 and g⁢(x)=4⁢x2+x and use the preceding example as a guide.

3.2.2 The Quotient Rule

Having developed and practiced the product rule, we now consider differentiating quotients of functions. As we see in the following theorem, the derivative of the quotient is not the quotient of the derivatives; rather, it is the derivative of the function in the numerator times the function in the denominator minus the derivative of the function in the denominator times the function in the numerator, all divided by the square of the function in the denominator. In order to better grasp why we cannot simply take the quotient of the derivatives, keep in mind that

dd⁢x⁢(x2)=2⁢x,notdd⁢x⁢(x3)dd⁢x⁢(x)=3⁢x21=3⁢x2.
Theorem 3.6 (The Quotient Rule).

Let f⁢(x) and g⁢(x) be differentiable functions. Then

dd⁢x⁢(f⁢(x)g⁢(x))=dd⁢x⁢(f⁢(x))⋅g⁢(x)−dd⁢x⁢(g⁢(x))⋅f⁢(x)(g⁢(x))2.

That is,

 if ⁢j⁢(x)=f⁢(x)g⁢(x),then⁢j′⁢(x)=f′⁢(x)⁢g⁢(x)−g′⁢(x)⁢f⁢(x)(g⁢(x))2.

The proof of the quotient rule is very similar to the proof of the product rule, so it is omitted here. Instead, we apply this new rule for finding derivatives in the next example.

Example 3.2.3 (Applying the Quotient Rule).


Use the quotient rule to find the derivative of k⁢(x)=5⁢x24⁢x+3.

Solution: Let f⁢(x)=5⁢x2 and g⁢(x)=4⁢x+3. Thus, f′⁢(x)=10⁢x and g′⁢(x)=4. Substituting into the quotient rule, we have

k′⁢(x)=f′⁢(x)⁢g⁢(x)−g′⁢(x)⁢f⁢(x)(g⁢(x))2=10⁢x⁢(4⁢x+3)−4⁢(5⁢x2)(4⁢x+3)2.

Simplifying, we obtain

k′⁢(x)=20⁢x2+30⁢x(4⁢x+3)2.
Checkpoint 3.2.2.

Find the derivative of h⁢(x)=3⁢x+14⁢x−3.

Hint: Apply the quotient rule with f⁢(x)=3⁢x+1 and g⁢(x)=4⁢x−3.

It is now possible to use the quotient rule to extend the power rule to find derivatives of functions of the form xk where k is a negative integer.

Theorem 3.7 (Extended Power Rule).

If k is a negative integer, then

dd⁢x⁢(xk)=k⁢xk−1.
Proof.

If k is a negative integer, we may set n=−k, so that n is a positive integer with k=−n. Since for each positive integer n,x−n=1xn, we may now apply the quotient rule by setting f⁢(x)=1 and g⁢(x)=xn. In this case, f′⁢(x)=0 and g′⁢(x)=n⁢xn−1. Thus,

dd⁢x⁢(x−n)=0⁢(xn)−1⁢(n⁢xn−1)(xn)2.

Simplifying, we see that

dd⁢x⁢(x−n)=−n⁢xn−1x2⁢n=−n⁢x(n−1)−2⁢n=−n⁢x−n−1.

Finally, observe that since k=−n, by substituting we have

dd⁢x⁢(xk)=k⁢xk−1.

∎

Example 3.2.4 (Using the Extended Power Rule).


Find dd⁢x⁢(x−4).

Solution: By applying the extended power rule with k=−4, we obtain

dd⁢x⁢(x−4)=−4⁢x−4−1=−4⁢x−5.
Example 3.2.5 (Using the Extended Power Rule and the Constant Multiple Rule).


Use the extended power rule and the constant multiple rule to find the derivative of f⁢(x)=6x2.

Solution: It may seem tempting to use the quotient rule to find this derivative, and it would certainly not be incorrect to do so. However, it is far easier to differentiate this function by first rewriting it as f⁢(x)=6⁢x−2.

f′⁢(x) =dd⁢x⁢(6x2)=dd⁢x⁢(6⁢x−2) Rewrite ⁢6x2⁢ as ⁢6⁢x−2.
=6⁢dd⁢x⁢(x−2) Apply the constant multiple rule.
=6⁢(−2⁢x−3) Use the extended power rule to differentiate⁢x−2.
=−12⁢x−3 Simplify.
Checkpoint 3.2.3.

Find the derivative of g⁢(x)=1x7 using the extended power rule.

Hint: Rewrite g⁢(x)=1x7=x−7. Use the extended power rule with k=−7.

3.2.3 Combining Differentiation Rules

As we have seen throughout the examples in this section, it seldom happens that we are called on to apply just one differentiation rule to find the derivative of a given function. At this point, by combining the differentiation rules, we may find the derivatives of any polynomial or rational function. Later on we will encounter more complex combinations of differentiation rules. A good rule of thumb to use when applying several rules is to apply the rules in reverse of the order in which we would evaluate the function.

Example 3.2.6 (Combining Differentiation Rules).


For k⁢(x)=3⁢h⁢(x)+x2⁢g⁢(x), find k′⁢(x).

Solution: Finding this derivative requires the sum rule, the constant multiple rule, and the product rule.

k′⁢(x) =dd⁢x⁢(3⁢h⁢(x)+x2⁢g⁢(x))=dd⁢x⁢(3⁢h⁢(x))+dd⁢x⁢(x2⁢g⁢(x)) Apply the sum rule.
=3⁢dd⁢x⁢(h⁢(x))+(dd⁢x⁢(x2)⁢g⁢(x)+dd⁢x⁢(g⁢(x))⁢x2) Apply the constant multiple rule todifferentiate⁢3⁢h⁢(x)⁢and the productrule to differentiate⁢x2⁢g⁢(x).
=3⁢h′⁢(x)+2⁢x⁢g⁢(x)+g′⁢(x)⁢x2
Example 3.2.7 (Extending the Product Rule).


For k⁢(x)=f⁢(x)⁢g⁢(x)⁢h⁢(x), express k′⁢(x) in terms of f⁢(x),g⁢(x),h⁢(x), and their derivatives.

Solution: We can think of the function k⁢(x) as the product of the function f⁢(x)⁢g⁢(x) and the function h⁢(x). That is, k⁢(x)=(f⁢(x)⁢g⁢(x))⋅h⁢(x). Thus,

k′⁢(x) =dd⁢x⁢(f⁢(x)⁢g⁢(x))⋅h⁢(x)+dd⁢x⁢(h⁢(x))⋅(f⁢(x)⁢g⁢(x)) Apply the product rule to the product of f⁢(x)⁢g⁢(x) and h⁢(x).
=(f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x))⁢h⁢(x)+h′⁢(x)⁢f⁢(x)⁢g⁢(x) Apply the product rule to ⁢f⁢(x)⁢g⁢(x).
=f′⁢(x)⁢g⁢(x)⁢h⁢(x)+f⁢(x)⁢g′⁢(x)⁢h⁢(x)+f⁢(x)⁢g⁢(x)⁢h′⁢(x). Simplify.
Example 3.2.8 (Combining the Quotient Rule and the Product Rule).


For h⁢(x)=2⁢x3⁢k⁢(x)3⁢x+2, find h′⁢(x).

Solution: This procedure is typical for finding the derivative of a rational function.

h′⁢(x) =dd⁢x⁢(2⁢x3⁢k⁢(x))⋅(3⁢x+2)−dd⁢x⁢(3⁢x+2)⋅(2⁢x3⁢k⁢(x))(3⁢x+2)2 Apply the quotient rule.
=(6⁢x2⁢k⁢(x)+k′⁢(x)⋅2⁢x3)⁢(3⁢x+2)−3⁢(2⁢x3⁢k⁢(x))(3⁢x+2)2
=−6⁢x3⁢k⁢(x)+18⁢x3⁢k⁢(x)+12⁢x2⁢k⁢(x)+6⁢x4⁢k′⁢(x)+4⁢x3⁢k′⁢(x)(3⁢x+2)2 Simplify.
Checkpoint 3.2.4.

Find dd⁢x⁢(3⁢f⁢(x)−2⁢g⁢(x)).

Hint: Apply the difference rule and the constant multiple rule.

Example 3.2.9 (Determining Where a Function Has a Horizontal Tangent).


Determine the values of x for which f⁢(x)=x3−7⁢x2+8⁢x+1 has a horizontal tangent line.

Solution: To find the values of x for which f⁢(x) has a horizontal tangent line, we must solve f′⁢(x)=0. Since

f′⁢(x)=3⁢x2−14⁢x+8=(3⁢x−2)⁢(x−4),

we must solve (3⁢x−2)⁢(x−4)=0. Thus we see that the function has horizontal tangent lines at x=23 and x=4 as shown in the following graph.

246−40−2020f⁢(x)=x3−7⁢x2+8⁢x+1
Figure 3.5: This function has horizontal tangent lines at x = 2/3 and x = 4.
Example 3.2.10 (Finding a Velocity).


The position of an object on a coordinate axis at time t is given by s⁢(t)=tt2+1. What is the initial velocity of the object?

Solution: Since the initial velocity is v⁢(0)=s′⁢(0), begin by finding s′⁢(t) by applying the quotient rule:

s′⁢(t)=1⁢(t2+1)−2⁢t⁢(t)(t2+1)2=1−t2(t2+1)2.

After evaluating, we see that v⁢(0)=1.

Checkpoint 3.2.5.

Find the values of x for which the graph of f⁢(x)=4⁢x2−3⁢x+2 has a tangent line parallel to the line y=2⁢x+3.

Hint: Solve f′⁢(x)=2.

Key Concepts

  • •

    The derivative of a product of two functions is the derivative of the first function times the second function plus the derivative of the second function times the first function.

  • •

    The derivative of the quotient of two functions is the derivative of the first function times the second function minus the derivative of the second function times the first function, all divided by the square of the second function.

  • •

    We used the limit definition of the derivative to develop formulas that allow us to find derivatives without resorting to the definition of the derivative. These formulas can be used singly or in combination with each other.