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) = 5x^2+\sin(x)\) was not complicated. We neglected computing the derivative of things like \(g(x) = 5x^2\sin(x)\) and \(h(x) = \frac{5x^2}{\sin(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.
Theorem 2.4.2. Product Rule.
Let \(f\) and \(g\) be differentiable functions on an open interval \(I\text{.}\) Then \(fg\) is a differentiable function on \(I\text{,}\) and
Warning 2.4.3.
\(\lzoo{x}{f(x)g(x)}\neq \fp(x)g'(x)\text{!}\) While this would be simpler than the Product Rule, it is wrong.
We practice using this new rule in an example, followed by an example that demonstrates why this theorem is true.
Example 2.4.4. Using the Product Rule.
Use the Product Rule to compute the derivative of \(y=5x^2\sin(x)\text{.}\) Evaluate the derivative at \(x=\pi/2\text{.}\)
To make our use of the Product Rule explicit, let's set \(f(x) = 5x^2\) and \(g(x) = \sin(x)\text{.}\) We easily compute/recall that \(\fp(x) = 10x\) and \(g'(x) = \cos(x)\text{.}\) Employing the rule, we have
At \(x=\pi/2\text{,}\) we have
We graph \(y\) and its tangent line at \(x=\pi/2\text{,}\) which has a slope of \(5\pi\text{,}\) in Figure 2.4.5. While this does not prove that the Product Rule is the correct way to handle derivatives of products, it helps validate its truth.
We now investigate why the Product Rule is true.
Proof of Product Rule.
We can use the definition of the derivative to prove Theorem 2.4.2.
By the limit definition, we have
We now do something a bit unexpected; add \(0\) to the numerator (so that nothing is changed) in the form of \({}f(x)g(x+h)+f(x)g(x+h)\text{,}\) then do some regrouping as shown.
We have proven the product rule as desired. (In the last step, we also relied on the fact that since \(g\) is differentiable, it is also continuous, which guarantees that \(\lim_{h\to0}g(x+h)=g(x)\text{.}\))
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.6. Exploring alternate derivative methods.
Let \(y = (x^2+3x+1)(2x^23x+1)\text{.}\) 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.
We first expand the expression for \(y\text{;}\) a little algebra shows that \(y = 2x^4+3x^36x^2+1\text{.}\) It is easy to compute \(y'\text{:}\)
Instead, let's apply the Product Rule to the original factored form:
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)(4x3) = 8x^2+6x9\text{.}\) Obviously this is not correct.
Example 2.4.7. Using the Product Rule with a product of three functions.
Let \(y = x^3\ln(x) \cos(x)\text{.}\) Find \(y'\text{.}\)
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 = x^3\cdot\left[\ln(x) \cos(x) \right]\text{.}\) Following the Product Rule, we have
To evaluate \(\lzoo{x}{\ln(x) \cos(x)}\text{,}\) we apply the Product Rule again:
\begin{align*} \yp \amp = 3x^2\left[\ln(x) \cos(x) \right] + (x^3)\left[\frac1x\cos(x) + \ln(x) (\sin(x) )\right]\\ \amp = 3x^2\ln(x) \cos(x) + x^3\frac{1}{x}\cos(x) + x^3\ln(x) (\sin(x) )\text{.} \end{align*}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 term 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:
If you check this answer with a CAS, it may factor and give the answer:
Now that we have the hang of the product rule pattern, it's not much more difficult to move on to products of four or more functions, as the following video demonstrates.
We consider one more example before discussing another derivative rule.
Example 2.4.9. Using the Product Rule.
Find the derivatives of the following functions.
 \(\displaystyle f(x) = x\ln(x)\)
 \(\displaystyle g(x) = x\ln(x)  x\)
Recalling that the derivative of \(\ln(x)\) is \(1/x\text{,}\) we use the Product Rule to find our answers.

Applying the Product Rule:
\begin{align*} \lzoo{x}{x\ln(x)}\amp= 1\cdot \ln(x) + x\cdot 1/x\\ \amp = \ln(x) + 1\text{.} \end{align*} 
Using the result from above, we compute
\begin{align*} \lzoo{x}{x\ln(x) x}\amp= \ln(x) + 1  1\\ \amp= \ln(x)\text{.} \end{align*}
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)\text{.}\) 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.
Theorem 2.4.10. Quotient Rule.
Let \(f\) and \(g\) be differentiable functions defined on an open interval \(I\text{,}\) where \(g(x) \neq 0\) on \(I\text{.}\) Then \(f/g\) is differentiable on \(I\text{,}\) and
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
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.12. Using the Quotient Rule.
Let \(f(x) = \frac{5x^2}{\sin(x) }\text{.}\) Find \(\fp(x)\text{.}\)
Directly applying the Quotient Rule gives:
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.13. Using the Quotient Rule to find \(\lzoo{x}{\tan(x)}\).
Find the derivative of \(y=\tan(x)\text{.}\)
At first, one might feel unequipped to answer this question. But recall that \(\tan(x) = \sin(x) /\cos(x)\text{,}\) so we can apply the Quotient Rule.
This is a beautiful result. To confirm its truth, we can find the equation of the tangent line to \(y=\tan(x)\) at \(x=\pi/4\text{.}\) The slope is \(\sec^2(\pi/4) = 2\text{;}\) \(y=\tan(x)\text{,}\) along with its tangent line, is graphed in Figure 2.4.14.
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.24 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.
Theorem 2.4.15. Derivatives of Trigonometric Functions.
 \(\displaystyle \lzoo{x}{\sin(x)} = \cos(x)\)
 \(\displaystyle \lzoo{x}{\cos(x)} = \sin(x)\)
 \(\displaystyle \lzoo{x}{\tan(x)} = \sec^2(x)\)
 \(\displaystyle \lzoo{x}{\cot(x)} = \csc^2(x)\)
 \(\displaystyle \lzoo{x}{\sec(x)} = \sec(x) \tan(x)\)
 \(\displaystyle \lzoo{x}{\csc(x)} = \csc(x) \cot(x)\)
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.16. Exploring alternate derivative methods.
In Example 2.4.12 the derivative of \(f(x) = \frac{5x^2}{\sin(x) }\) was found using the Quotient Rule. Rewriting \(f\) as \(f(x) = 5x^2\csc(x)\text{,}\) find \(\fp\) using Theorem 2.4.15 and verify the two answers are the same.
We found in Example 2.4.12 that \(\fp(x) = \frac{10x\sin(x)  5x^2\cos(x) }{\sin^2(x) }\text{.}\) We now find \(\fp\) using the Product Rule, considering \(f\) as \(f(x) = 5x^2\csc(x)\text{.}\)
Finding \(\fp\) 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.17. Using the Quotient Rule to expand the Power Rule.
Find the derivatives of the following functions.
\(\displaystyle f(x) = \dfrac{1}{x}\)
\(f(x)= \dfrac{1}{x^n}\text{,}\) where \(n \gt 0\) is an integer.
We employ the Quotient Rule.
 \begin{align*} \fp(x)\amp = \frac{x\cdot 0  1\cdot 1}{x^2}\\ \amp = \frac{1}{x^2} \end{align*}
 \begin{align*} \fp(x)\amp = \frac{x^n\cdot 0  1\cdot nx^{n1}}{(x^n)^2}\\ \amp = \frac{nx^{n1}}{x^{2n}}\\ \amp = \frac{n}{x^{n+1}}\text{.} \end{align*}
The derivative of \(y=\frac{1}{x^n}\) turned out to be rather nice. It gets better. Consider:
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 \gt 0\text{.}\)
Theorem 2.4.18. Power Rule with Integer Exponents.
Let \(f(x) = x^n\text{,}\) where \(n\neq 0\) is an integer. Then
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.19. Exploring alternate derivative methods.
Let \(f(x) = \frac{x^23x+1}{x}\text{.}\) Find \(\fp(x)\) in each of the following ways:
By applying the Quotient Rule,
by viewing \(f\) as \(f(x) = \left(x^23x+1\right)\cdot x^{1}\) and applying the Product Rule and Power Rule with Integer Exponents, and
by “simplifying” first through division.
Verify that all three methods give the same result.

Applying the Quotient Rule gives:
\begin{align*} \fp(x) \amp =\frac{x\cdot\lzoo{x}{x^23x+1}\left(x^23x+1\right)\lzoo{x}{x}}{x^2}\\ \amp = \frac{x\cdot(2x3)\left(x^23x+1\right)\cdot 1}{x^2}\\ \amp = \frac{x^21}{x^2}\\ \amp = 1\frac{1}{x^2}\text{.} \end{align*} 
By rewriting \(f\text{,}\) we can apply the Product Rule and Power Rule with Integer Exponents as follows:
\begin{align*} \fp(x) \amp = \left(x^23x+1\right)\lzoo{x}{x^{1}} + \lzoo{x}{x^23x+1} x^{1}\\ \amp = \left(x^23x+1\right)\cdot (1)x^{2} + (2x3)\cdot x^{1}\\ \amp = \frac{x^23x+1}{x^2}+\frac{2x3}{x}\\ \amp = \frac{x^23x+1}{x^2}+\frac{2x^23x}{x^2}\\ \amp = \frac{x^21}{x^2} = 1\frac{1}{x^2}\text{,} \end{align*}the same result as above.

As \(x\neq 0\text{,}\) we can divide through by \(x\) first, giving \(f(x) = x3+x^{1}\text{.}\) Now apply the Power Rule with Integer Exponents.
\begin{equation*} \fp(x) = 1\frac{1}{x^2}\text{,} \end{equation*}the same result as before.
Example 2.4.19 demonstrates three methods of finding \(\fp\text{.}\) 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 \(\fp\text{,}\) including:
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)\text{.}\)” The Sum/Difference Rule, Constant Multiple Rule, Power Rule with Integer Exponents, 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
Terms and Concepts
1.
True
False
2.
True
False
3.
True
False
4.
What derivative rule is used to extend the Power Rule to include negative integer exponents?
5.
True
False
6.
In your own words, explain what it means to make your answers “clear.”
Problems
 Use the Product Rule to differentiate the function.
 Manipulate the function algebraically and differentiate without using the Product Rule.
 Show that the two derivatives are equivalent.
7.
\(f(x) = {x\!\left(x^{2}+3x\right)}\)
8.
\(f(x) = {2x^{2}\cdot 5x^{3}}\)
9.
\(f(s) = {\left(2s1\right)\!\left(s+4\right)}\)
10.
\(f(x) = {\left(x^{2}+5\right)\!\left(3x^{3}\right)}\)
 Use the Quotient Rule to differentiate the function.
 Manipulate the function algebraically and differentiate without using the Quotient Rule.
 Show that the two derivatives are equivalent.
11.
\(f(x) = {\frac{x^{2}+3}{x}}\)
12.
\(f(x) = {\frac{x^{3}2x^{2}}{2x^{2}}}\)
13.
\(f(x) = {\frac{3}{4s^{3}}}\)
14.
\(f(x) = {\frac{t^{2}1}{t+1}}\)
Compute the derivative of the given function.
15.
\(f(x) = {x\sin\!\left(x\right)}\)
16.
\(f(x) = {x^{2}\cos\!\left(x\right)}\)
17.
\(f(x) = {e^{x}\ln\!\left(x\right)}\)
18.
\(f(t) = {\frac{1}{t^{2}}\!\left(\csc\!\left(t\right)4\right)}\)
19.
\(g(x) = {\frac{x+7}{x5}}\)
20.
\(g(t) = {\frac{t^{5}}{\cos\!\left(t\right)2t^{2}}}\)
21.
\(h(x) = {\cot\!\left(x\right)e^{x}}\)
22.
\(f(x) = {\tan\!\left(x\right)\ln\!\left(x\right)}\)
23.
\(h(t) = {7t^{2}+6t2}\)
24.
\(f(x) = {\frac{x^{4}+2x^{3}}{x+2}}\)
25.
\(f(x) = {\left(3x^{2}+8x+7\right)e^{x}}\)
26.
\(g(t) = {\frac{t^{5}t^{3}}{e^{t}}}\)
27.
\(f(x) = {\left(16x^{3}+24x^{2}+3x\right)\frac{7x1}{16x^{3}+24x^{2}+3x}}\)
28.
\(f(t) = {t^{5}\!\left(\sec\!\left(t\right)+e^{t}\right)}\)
29.
\(f(x) = {\frac{\sin\!\left(x\right)}{\cos\!\left(x\right)+3}}\)
30.
\(f({\theta}) = {\theta^{3}\sin\!\left(\theta\right)+\frac{\sin\!\left(\theta\right)}{\theta^{3}}}\)
31.
\(f(x) = {\frac{\cos\!\left(x\right)}{x}+\frac{x}{\tan\!\left(x\right)}}\)
32.
\(g(x) = e^2(sin(\pi/4)  1)\)
33.
\(g(t) = {4t^{3}e^{t}\sin\!\left(t\right)\cos\!\left(t\right)}\)
34.
\(h(t) = {\frac{t^{2}\sin\!\left(t\right)+3}{t^{2}\cos\!\left(t\right)+2}}\)
35.
\(f(x) = {x^{2}e^{x}\tan\!\left(x\right)}\)
36.
\(g(x) = {2x\sin\!\left(x\right)\sec\!\left(x\right)}\)
Find the equations of the tangent and normal lines to the graph of \(g\) at the indicated point.
37.
\(g(x) = {e^{x}\!\left(x^{2}+2\right)}\) at \(\left(0,{2}\right)\)
38.
\(g(x) = {x\sin\!\left(x\right)}\) at \(\left({\frac{3\pi }{2}},{\frac{3\pi }{2}}\right)\)
39.
\(g(x) = {\frac{x^{2}}{x1}}\) at \(\left(2,{4}\right)\)
40.
\(g(x) = {\frac{\cos\!\left(x\right)8x}{x+1}}\) at \(\left(0,{1}\right)\)
Find the \(x\)values where the graph of the function has a horizontal tangent line.
41.
\(f(x) = {6x^{2}18x24}\)
42.
\(f(x) = x\sin(x)\) on \([1,1]\)
43.
\(f(x) = {\frac{x}{x+1}}\)
44.
\(f(x) = {\frac{x^{2}}{x+1}}\)
Find the requested higher order derivative.
45.
\(\fpp(x)\text{,}\) where \(f(x) = x\sin(x)\)
46.
\(f^{(4)}(x)\text{,}\) where \(f(x) = x\sin(x)\)
47.
\(f''(x)\text{,}\) where \(f(x) = {\csc\!\left(x\right)}\)
48.
\(f^{(8)}(x)\text{,}\) where \(f(x) = {\left(x^{3}5x+2\right)\!\left(x^{2}+x7\right)}\)
Review
Use the graph of \(f(x)\) to sketch \(\fp(x)\text{.}\)