Skip to main content
Logo image

Calculus at Moravian University

Section 2.4 The Product and Quotient Rules

Section 2.3 showed that, in some ways, derivatives behave nicely. The Constant Multiple Rule and Sum/Difference Rule established that the derivative of f(x)=5x2+sin⁑(x) was not complicated. We neglected computing the derivative of things like g(x)=5x2sin⁑(x) and h(x)=5x2sin⁑(x) on purpose; their derivatives are not as straightforward. (If you had to guess what their respective derivatives are, you would probably guess wrong.) For these, we need the Product and Quotient Rules, respectively, which are defined in this section. We begin with the Product Rule.
We practice using this new rule in an example, followed by an example that demonstrates why this theorem is true.

Example 2.4.3. Using the Product Rule.

Use the Product Rule to compute the derivative of y=5x2sin⁑(x). Evaluate the derivative at x=Ο€/2.
Solution.
To make our use of the Product Rule explicit, let’s set f(x)=5x2 and g(x)=sin⁑(x). We easily compute/recall that fβ€²(x)=10x and gβ€²(x)=cos⁑(x). Employing the rule, we have
ddx(5x2sin⁑(x))=5x2ddx(sin⁑(x))+ddx(5x2)sin⁑(x)=5x2cos⁑(x)+10xsin⁑(x).
At x=Ο€/2, we have
yβ€²(Ο€/2)=5(Ο€2)2cos⁑(Ο€2)+10β‹…Ο€2sin⁑(Ο€2)=5Ο€.
We graph y and its tangent line at x=Ο€/2, which has a slope of 5Ο€, in Figure 2.4.4. While this does not prove that the Product Rule is the correct way to handle derivatives of products, it helps validate its truth.
Figure 2.4.4. A graph of y=5x2sin⁑(x) and its tangent line at x=Ο€/2.
We now investigate why the Product Rule is true.
We can use the definition of the derivative to prove Theorem 2.4.1.
By the limit definition, we have
ddx(f(x)g(x))=limhβ†’0f(x+h)g(x+h)βˆ’f(x)g(x)h.
We now do something a bit unexpected; add 0 to the numerator (so that nothing is changed) in the form of βˆ’f(x+h)g(x)+f(x+h)g(x), then do some regrouping as shown. 1 
ddx(f(x)g(x))=limhβ†’0f(x+h)g(x+h)βˆ’f(x)g(x)h (now add 0 to the numerator) =limhβ†’0f(x+h)g(x+h)βˆ’f(x+h)g(x)+f(x+h)g(x)βˆ’f(x)g(x)h (regroup) =limhβ†’0[f(x+h)g(x+h)βˆ’f(x+h)g(x)]+[f(x+h)g(x)βˆ’f(x)g(x)]h (split fraction)=limhβ†’0f(x+h)g(x+h)βˆ’f(x+h)g(x)h+limhβ†’0f(x+h)g(x)βˆ’f(x)g(x)h (factor) =limhβ†’0f(x+h)g(x+h)βˆ’g(x)h+limhβ†’0f(x+h)βˆ’f(x)hg(x) (apply limit properties) =limhβ†’0f(x+h)β‹…limhβ†’0g(x+h)βˆ’g(x)h+limhβ†’0f(x+h)βˆ’f(x)hβ‹…limhβ†’0g(x) (apply limits) =f(x)gβ€²(x)+fβ€²(x)g(x) (by definition of the derivative).
We have proven the product rule as desired.
It is often true that we can recognize that a theorem is true through its proof yet somehow doubt its applicability to real problems. In the following example, we compute the derivative of a product of functions in two ways to verify that the Product Rule is indeed β€œright.”

Example 2.4.5. Exploring alternate derivative methods.

Let y=(x2+3x+1)(2x2βˆ’3x+1). Find yβ€² two ways: first, by expanding the given product and then taking the derivative, and second, by applying the Product Rule. Verify that both methods give the same answer.
Solution.
We first expand the expression for y; a little algebra shows that y=2x4+3x3βˆ’6x2+1. It is easy to compute yβ€²;
yβ€²=8x3+9x2βˆ’12x.
Instead, let’s apply the Product Rule to the original factored form:
yβ€²=(x2+3x+1)ddx(2x2βˆ’3x+1)+ddx(x2+3x+1)(2x2βˆ’3x+1)=(x2+3x+1)(4xβˆ’3)+(2x+3)(2x2βˆ’3x+1)=(4x3+9x2βˆ’5xβˆ’3)+(4x3βˆ’7x+3)=8x3+9x2βˆ’12x.
The uninformed usually assume that β€œthe derivative of the product is the product of the derivatives.” Thus we are tempted to say that yβ€²=(2x+3)(4xβˆ’3)=8x2+6xβˆ’9. Obviously this is not correct.

Example 2.4.6. Using the Product Rule with a product of three functions.

Let y=x3ln⁑(x)cos⁑(x). Find yβ€².
Solution.
We have a product of three functions while the Product Rule only specifies how to handle a product of two functions. Our method of handling this problem is to simply group the latter two functions together, and consider y=x3β‹…[ln⁑(x)cos⁑(x)]. Following the Product Rule, we have
yβ€²=(x3)ddx(ln⁑(x)cos⁑(x))+ddx(x3)ln⁑(x)cos⁑(x)

To evaluate ddx(ln⁑(x)cos⁑(x)), we apply the Product Rule again:

yβ€²=(x3)[ln⁑(x)(βˆ’sin⁑(x))+1xcos⁑(x)]+3x2[ln⁑(x)cos⁑(x)]=x3ln⁑(x)(βˆ’sin⁑(x))+x31xcos⁑(x)+3x2ln⁑(x)cos⁑(x).
Recognize the pattern in our answer above: when applying the Product Rule to a product of three functions, there are three terms added together in the final derivative. Each terms contains only one derivative of one of the original functions, and each function’s derivative shows up in only one term. It is straightforward to extend this pattern to finding the derivative of a product of four or more functions.
Ultimately though, we would simplify our final computation to:
yβ€²=βˆ’x3ln⁑(x)sin⁑(x)+x2cos⁑(x)+3x2ln⁑(x)cos⁑(x)
If you check this answer with a CAS, it may factor and give the answer:
yβ€²=βˆ’x2[xln⁑(x)sin⁑(x)+cos⁑(x)+3ln⁑(x)cos⁑(x)]
We consider one more example before discussing another derivative rule.

Example 2.4.7. Using the Product Rule.

Find the derivatives of the following functions.
  1. f(x)=xln⁑(x)
  2. g(x)=xln⁑(x)βˆ’x.
Solution.
Recalling that the derivative of ln⁑(x) is 1/x, we use the Product Rule to find our answers.
  1. Applying the Product Rule:
    ddx(xln⁑(x))=xβ‹…1/x+1β‹…ln⁑(x)=1+ln⁑(x).
  2. Using the result from above, we compute
    ddx(xln⁑(x)βˆ’x)=1+ln⁑(x)βˆ’1=ln⁑(x).
This seems significant; if the natural log function ln⁑(x) is an important function (it is), it seems worthwhile to know a function whose derivative is ln⁑(x). We have found one. (We leave it to the reader to find another; a correct answer will be very similar to this one.)
We have learned how to compute the derivatives of sums, differences, and products of functions. We now learn how to find the derivative of a quotient of functions.
The Quotient Rule is not hard to use, although it might be a bit tricky to remember. A useful mnemonic works as follows. Consider a fraction’s numerator and denominator as β€œHI” and β€œLO”, respectively. Then
ddx( HI  LO )= LOβ‹…dHIβˆ’HIβ‹…dLO  LOLO ,
read β€œlow dee high minus high dee low, over low low.” Said fast, that phrase can roll off the tongue, making it easy to memorize. The β€œdee high” and β€œdee low” parts refer to the derivatives of the numerator and denominator, respectively.
Let’s practice using the Quotient Rule.

Example 2.4.9. Using the Quotient Rule.

Let f(x)=5x2sin⁑(x). Find fβ€²(x).
Solution.
Directly applying the Quotient Rule gives:
ddx(frac5x2sin⁑(x))=sin⁑(x)β‹…ddx(5x2)βˆ’5x2β‹…ddx(sin⁑(x))sin2⁑(x)=10xsin⁑(x)βˆ’5x2cos⁑(x)sin2⁑(x).
The Quotient Rule allows us to fill in holes in our understanding of derivatives of the common trigonometric functions. We start with finding the derivative of the tangent function.

Example 2.4.10. Using the Quotient Rule to find ddx(tan⁑(x)).

Find the derivative of y=tan⁑(x).
Solution.
At first, one might feel unequipped to answer this question. But recall that tan⁑(x)=sin⁑(x)/cos⁑(x), so we can apply the Quotient Rule.
ddx(tan⁑(x))=ddx(sin⁑(x)cos⁑(x))=cos⁑(x)ddx(sin⁑(x))βˆ’sin⁑(x)ddx(cos⁑(x))cos2⁑(x)=cos⁑(x)cos⁑(x)βˆ’sin⁑(x)(βˆ’sin⁑(x))cos2⁑(x)=cos2⁑(x)+sin2⁑(x)cos2⁑(x)=1cos2⁑(x)=sec2⁑(x).
This is a beautiful result. To confirm its truth, we can find the equation of the tangent line to y=tan⁑(x) at x=Ο€/4. The slope is sec2⁑(Ο€/4)=2; y=tan⁑(x), along with its tangent line, is graphed in Figure 2.4.11.
Figure 2.4.11. A graph of y=tan⁑(x) along with its tangent line at x=Ο€/4.
We include this result in the following theorem about the derivatives of the trigonometric functions. Recall we found the derivative of y=sin⁑(x) in Example 2.1.16 and stated the derivative of the cosine function in Theorem 2.3.1. The derivatives of the cotangent, cosecant and secant functions can all be computed directly using Theorem 2.3.1 and the Quotient Rule.
To remember the above, it may be helpful to keep in mind that the derivatives of the trigonometric functions that start with β€œc” have a minus sign in them.

Example 2.4.13. Exploring alternate derivative methods.

In Example 2.4.9 the derivative of f(x)=5x2sin⁑(x) was found using the Quotient Rule. Rewriting f as f(x)=5x2csc⁑(x), find fβ€² using Theorem 2.4.12 and verify the two answers are the same.
Solution.
We found in Example 2.4.9 that fβ€²(x)=10xsin⁑(x)βˆ’5x2cos⁑(x)sin2⁑(x). We now find fβ€² using the Product Rule, considering f as f(x)=5x2csc⁑(x).
fβ€²(x)=ddx(5x2csc⁑(x))=5x2ddx(csc⁑(x))+ddx(5x2)csc⁑(x)=5x2(βˆ’csc⁑(x)cot⁑(x))+10xcsc⁑(x) (now rewrite trig functions) =5x2β‹…βˆ’1sin⁑(x)β‹…cos⁑(x)sin⁑(x)+10xsin⁑(x)=βˆ’5x2cos⁑(x)sin2⁑(x)+10xsin⁑(x) (get common denominator) =10xsin⁑(x)βˆ’5x2cos⁑(x)sin2⁑(x).
Finding fβ€² using either method returned the same result. At first, the answers looked different, but some algebra verified they are the same. In general, there is not one final form that we seek; the immediate result from the Product Rule is fine. Work to β€œsimplify” your results into a form that is most readable and useful to you.
The Quotient Rule gives other useful results, as shown in the next example.

Example 2.4.14. Using the Quotient Rule to expand the Power Rule.

Find the derivatives of the following functions.
  1. f(x)=1x
  2. f(x)=1xn, where n>0 is an integer.
Solution.
We employ the Quotient Rule.
  1. fβ€²(x)=xβ‹…0βˆ’1β‹…1x2=βˆ’1x2
  2. fβ€²(x)=xnβ‹…0βˆ’1β‹…nxnβˆ’1(xn)2=βˆ’nxnβˆ’1x2n=βˆ’nxn+1.
The derivative of y=1xn turned out to be rather nice. It gets better. Consider:
ddx(1xn)=ddx(xβˆ’n) (apply result from Example 2.4.14)=βˆ’nxn+1 (rewrite algebraically) =βˆ’nxβˆ’(n+1)=βˆ’nxβˆ’nβˆ’1.
This is reminiscent of the Power Rule: multiply by the power, then subtract 1 from the power. We now add to our previous Power Rule, which had the restriction of n>0.
Taking the derivative of many functions is relatively straightforward. It is clear (with practice) what rules apply and in what order they should be applied. Other functions present multiple paths; different rules may be applied depending on how the function is treated. One of the beautiful things about calculus is that there is not β€œthe” right way; each path, when applied correctly, leads to the same result, the derivative. We demonstrate this concept in an example.

Example 2.4.16. Exploring alternate derivative methods.

Let f(x)=x2βˆ’3x+1x. Find fβ€²(x) in each of the following ways:
  1. By applying the Quotient Rule,
  2. by viewing f as f(x)=(x2βˆ’3x+1)β‹…xβˆ’1 and applying the Product Rule and Power Rule with Integer Exponents, and
  3. by β€œsimplifying” first through division.
Verify that all three methods give the same result.
Solution.
  1. Applying the Quotient Rule gives:
    fβ€²(x)=xβ‹…ddx(x2βˆ’3x+1)βˆ’(x2βˆ’3x+1)ddx(x)x2=xβ‹…(2xβˆ’3)βˆ’(x2βˆ’3x+1)β‹…1x2=x2βˆ’1x2=1βˆ’1x2.
  2. By rewriting f, we can apply the Product Rule and Power Rule with Integer Exponents as follows:
    fβ€²(x)=(x2βˆ’3x+1)ddx(xβˆ’1)+ddx(x2βˆ’3x+1)xβˆ’1=(x2βˆ’3x+1)β‹…(βˆ’1)xβˆ’2+(2xβˆ’3)β‹…xβˆ’1=βˆ’x2βˆ’3x+1x2+2xβˆ’3x=βˆ’x2βˆ’3x+1x2+2x2βˆ’3xx2=x2βˆ’1x2=1βˆ’1x2,
    the same result as above.
  3. As xβ‰ 0, we can divide through by x first, giving f(x)=xβˆ’3+xβˆ’1. Now apply the Power Rule with Integer Exponents.
    fβ€²(x)=1βˆ’1x2,
    the same result as before.
Example 2.4.16 demonstrates three methods of finding fβ€². One is hard pressed to argue for a β€œbest method” as all three gave the same result without too much difficulty, although it is clear that using the Product Rule required more steps. Ultimately, the important principle to take away from this is: reduce the answer to a form that seems β€œsimple” and easy to interpret. In that example, we saw different expressions for fβ€², including:
1βˆ’1x2xβ‹…(2xβˆ’3)βˆ’(x2βˆ’3x+1)β‹…1x2(x2βˆ’3x+1)β‹…(βˆ’1)xβˆ’2+(2xβˆ’3)β‹…xβˆ’1.
They are equal; they are all correct; only the first is β€œsimple.” Work to make answers simple.
In the next section we continue to learn rules that allow us to more easily compute derivatives than using the limit definition directly. We have to memorize the derivatives of a certain set of functions, such as β€œthe derivative of sin⁑(x) is cos⁑(x).” The Sum/Difference Rule, Constant Multiple Rule, Power Rule 2.4.15, Product Rule and Quotient Rule show us how to find the derivatives of certain combinations of these functions. The next section shows how to find the derivatives when we compose these functions together.

Exercises Exercises

3.

T/F: The derivatives of the trigonometric functions that start with β€œc” have minus signs in them.

4.

What derivative rule is used to extend the Power Rule to include negative integer exponents?
Answer.
Quotient Rule

5.

T/F: Regardless of the function, there is always exactly one right way of computing its derivative.

6.

In your own words, explain what it means to make your answers β€œclear.”
Answer.
Answers will vary.

7.

Give an example of a function where fβ€²(x)β‰ 0 and fβ€²β€²(x)=0.
Answer.
One possible answer is f(x)=17xβˆ’205.

8.

Explain in your own words what the second derivative β€œmeans.”
Answer.
Answers will vary.

9.

If f(x) describes a position function, then fβ€²(x) describes what kind of function? What kind of function is fβ€²β€²(x)?
Answer.
fβ€²(x) is a velocity function, and fβ€²β€²(x) is acceleration.

10.

Let f(x) be a function measured in pounds, where x is measured in feet. What are the units of fβ€²β€²(x)?
Answer.
lbs/ft2.

Exercise Group.

In Exercises 11–14:
  1. Use the Product Rule to differentiate the function.
  2. Manipulate the function algebraically and differentiate without the Product Rule.
  3. Show that the answers from (a) and (b) are equivalent.
13.
h(s)=(2sβˆ’1)(s+4)
Answer.
  1. hβ€²(s)=2(s+4)+(2sβˆ’1)(1)
  2. hβ€²(s)=4s+7
  3. They are equal.
14.
f(x)=(x2+5)(3βˆ’x3)
Answer.
  1. fβ€²(x)=2x(3βˆ’x3)+(x2+5)(βˆ’3x2)
  2. fβ€²(x)=βˆ’5x4βˆ’15x2+6x
  3. They are equal.

Exercise Group.

In Exercises 15–18:
  1. Use the Quotient Rule to differentiate the function.
  2. Manipulate the function algebraically and differentiate without the Quotient Rule.
  3. Show that the answers from (a) and (b) are equivalent.
16.
g(x)=x3βˆ’2x22x2
Answer.
  1. gβ€²(x)=2x2(3x2βˆ’4x)βˆ’(x3βˆ’2x2)(4x)4x4
  2. gβ€²(x)=1/2
  3. They are equal.
17.
h(s)=34s3
Answer.
  1. hβ€²(s)=4s3(0)βˆ’3(12s2)16s6
  2. hβ€²(s)=βˆ’9/4sβˆ’4
  3. They are equal.
18.
f(t)=t2βˆ’1t+1
Answer.
  1. fβ€²(t)=(t+1)(2t)βˆ’(t2βˆ’1)(1)(t+1)2
  2. f(t)=tβˆ’1 when tβ‰ βˆ’1, so fβ€²(t)=1.
  3. They are equal.

Exercise Group.

In Exercises 19–40, compute the derivative of the given function.
22.
f(t)=1t2(csc⁑tβˆ’4)
Answer.
fβ€²(t)=βˆ’2t3(csc⁑tβˆ’4)+1t2(βˆ’csc⁑tcot⁑t)
24.
g(t)=t5cos⁑tβˆ’2t2
Answer.
gβ€²(t)=(cos⁑tβˆ’2t2)(5t4)βˆ’(t5)(βˆ’sin⁑tβˆ’4t)(cos⁑tβˆ’2t2)2
33.
f(x)=sin⁑xcos⁑x+3
Answer.
fβ€²(x)=sin2⁑(x)+cos2⁑(x)+3cos⁑(x)(cos⁑(x)+3)2
34.
f(θ)=θ3sin⁑θ+sin⁑θθ3
Answer.
fβ€²(ΞΈ)=3ΞΈ2sin⁑θ+ΞΈ3cos⁑θ+ΞΈ3cosβ‘ΞΈβˆ’(sin⁑θ)(3ΞΈ2)ΞΈ6
35.
f(x)=cos⁑xx+xtan⁑x
Answer.
fβ€²(x)=βˆ’xsin⁑xβˆ’cos⁑xx2+tan⁑xβˆ’xsec2⁑xtan2⁑x
37.
g(t)=4t3etβˆ’sin⁑tcos⁑t
Answer.
gβ€²(t)=12t2et+4t3etβˆ’cos2⁑t+sin2⁑t
38.
h(t)=t2sin⁑t+3t2cos⁑t+2
Answer.
hβ€²(t)=(t2cos⁑t+2)(2tsin⁑t+t2cos⁑t)βˆ’(t2sin⁑t+3)(2tcos⁑tβˆ’t2sin⁑t)(t2cos⁑t+2)2
40.
g(x)=2xsin⁑xsec⁑x
Answer.
gβ€²(x)=2sin⁑xsec⁑x+2xcos⁑xsec⁑x+2xsin⁑xsec⁑xtan⁑x=2tan⁑x+2x+2xtan2⁑x=2tan⁑x+2xsec2⁑x

Exercise Group.

In Exercises 41–44, find the equations of the tangent and normal lines to the graph of g at the indicated point.
42.
g(t)=tsin⁑t at (3Ο€2,βˆ’3Ο€2)
Answer.
Tangent line: y=βˆ’(xβˆ’3Ο€2)βˆ’3Ο€2=βˆ’x
Normal line: y=(xβˆ’3Ο€2)βˆ’3Ο€2=xβˆ’3Ο€
44.
g(ΞΈ)=cosβ‘ΞΈβˆ’8ΞΈΞΈ+1 at (0,1)
Answer.
Tangent line: y=βˆ’9x+1
Normal line: y=1/9x+1

Exercise Group.

In Exercises 45–48, find the x–values where the graph of the function has a horizontal tangent line.

Exercise Group.

In Exercises 49–52, find the requested derivative.
49.
f(x)=xsin⁑x; find fβ€²β€²(x).
Answer.
fβ€²β€²(x)=2cos⁑xβˆ’xsin⁑x
51.
f(x)=csc⁑x; find fβ€²β€²(x).
Answer.
fβ€²β€²(x)=cot2⁑xcsc⁑x+csc3⁑x

Exercise Group.

In Exercises 53–56, use the graph of f(x) to sketch fβ€²(x).

57.

Given that e0=1, approximate the value of e0.1 using the tangent line to f(x)=ex at x=0.
Answer.
The tangent line to f(x)=ex at x=0 is y=x+1; thus e0.1β‰ˆy(0.1)=1.1.

58.

Approximate the value of (3.01)4 using the tangent line to f(x)=x4 at x=3.
Answer.
The tangent line to f(x)=x4 at x=3 is y=108(xβˆ’3)+81; thus (3.01)4β‰ˆy(3.01)=108(.01)+81=82.08.
Adding 0 in some clever form is a common mathematical proof technique.