Active Calculus · 2: Computing Derivatives

2.3: The Product and Quotient Rules

Motivating Questions
  • How does the algebraic structure of a function guide us in computing its derivative using shortcut rules?
  • How do we compute the derivative of a product of two basic functions in terms of the derivatives of the basic functions?
  • How do we compute the derivative of a quotient of two basic functions in terms of the derivatives of the basic functions?
  • How do the product and quotient rules combine with the sum and constant multiple rules to expand the library of functions we can differentiate quickly?

So far, we can differentiate power functions (xnx^n), exponential functions (axa^x), and the two fundamental trigonometric functions (sin⁡(x)\sin(x) and cos⁡(x)\cos(x)). With the sum rule and constant multiple rules, we can also compute the derivative of combined functions.

Example 2.3.12.3.1

Differentiate

f(x)=7x11−4⋅9x+πsin⁡(x)−3cos⁡(x) f(x) = 7x^{11} - 4 \cdot 9^x + \pi \sin(x) - \sqrt{3}\cos(x)

Because ff is a sum of basic functions, we can now quickly say that f′(x)=77x10−4⋅9xln⁡(9)+πcos⁡(x)+3sin⁡(x).f'(x) = 77x^{10} - 4 \cdot 9^x \ln(9) + \pi \cos(x) + \sqrt{3} \sin(x)\text{.}

What about a product or quotient of two basic functions, such as

p(z)=z3cos⁡(z), p(z) = z^3 \cos(z)\text{,}

or

q(t)=sin⁡(t)2t? q(t) = \frac{\sin(t)}{2^t}\text{?}

While the derivative of a sum is the sum of the derivatives, it turns out that the rules for computing derivatives of products and quotients are more complicated.

Preview Activity 2.3.12.3.1

Let ff and gg be the functions defined by f(t)=2t2f(t) = 2t^2 and g(t)=t3+4t.g(t) = t^3 + 4t\text{.}

  1. Determine f′(t)f'(t) and g′(t).g'(t)\text{.}
  2. Let p(t)=2t2(t3+4t)p(t) = 2t^2 (t^3 + 4t) and observe that p(t)=f(t)⋅g(t).p(t) = f(t) \cdot g(t)\text{.} Rewrite the formula for pp by distributing the 2t22t^2 term. Then, compute p′(t)p'(t) using the sum and constant multiple rules.
  3. True or false: p′(t)=f′(t)⋅g′(t).p'(t) = f'(t) \cdot g'(t)\text{.}
  4. Let q(t)=t3+4t2t2q(t) = \frac{t^3 + 4t}{2t^2} and observe that q(t)=g(t)f(t).q(t) = \frac{g(t)}{f(t)}\text{.} Rewrite the formula for qq by dividing each term in the numerator by the denominator and simplify to write qq as a sum of constant multiples of powers of t.t\text{.} Then, compute q′(t)q'(t) using the sum and constant multiple rules.
  5. True or false: q′(t)=g′(t)f′(t).q'(t) = \frac{g'(t)}{f'(t)}\text{.}

The product rule

As part (b) of Preview Activity 2.3.12.3.1 shows, it is not true in general that the derivative of a product of two functions is the product of the derivatives of those functions. To see why this is the case, we consider an example involving meaningful functions.

Say that an investor is regularly purchasing stock in a particular company. Let N(t)N(t) represent the number of shares owned on day t,t\text{,} where t=0t = 0 represents the first day on which shares were purchased. Let S(t)S(t) give the value of one share of the stock on day t;t\text{;} note that the units on S(t)S(t) are dollars per share. To compute the total value of the stock on day t,t\text{,} we take the product

V(t)=N(t) shares⋅S(t) dollars per share. V(t) = N(t) \, \text{shares} \cdot S(t) \, \text{dollars per share}\text{.}

Observe that over time, both the number of shares and the value of a given share will vary. The derivative N′(t)N'(t) measures the rate at which the number of shares is changing, while S′(t)S'(t) measures the rate at which the value per share is changing. How do these respective rates of change affect the rate of change of the total value function?

To help us understand the relationship among changes in N,N\text{,} S,S\text{,} and V,V\text{,} let's consider some specific data.

  • Suppose that on day 100, the investor owns 520 shares of stock and the stock's current value is $27.50 per share. This tells us that N(100)=520N(100) = 520 and S(100)=27.50.S(100) = 27.50\text{.}
  • On day 100, the investor purchases an additional 12 shares (so the number of shares held is rising at a rate of 12 shares per day).
  • On that same day the price of the stock is rising at a rate of 0.75 dollars per share per day.

In calculus notation, the latter two facts tell us that N′(100)=12N'(100) = 12 (shares per day) and S′(100)=0.75S'(100) = 0.75 (dollars per share per day). At what rate is the value of the investor's total holdings changing on day 100?

Observe that the increase in total value comes from two sources: the growing number of shares, and the rising value of each share. If only the number of shares is increasing (and the value of each share is constant), the rate at which which total value would rise is the product of the current value of the shares and the rate at which the number of shares is changing. That is, the rate at which total value would change is given by

S(100)⋅N′(100)=27.50 dollarsshare⋅12 sharesday=330 dollarsday. S(100) \cdot N'(100) = 27.50 \, \frac{\text{dollars} }{\text{share} } \cdot 12 \, \frac{\text{shares} }{\text{day} } = 330 \, \frac{\text{dollars} }{\text{day} }\text{.}

Note particularly how the units make sense and show the rate at which the total value VV is changing, measured in dollars per day.

If instead the number of shares is constant, but the value of each share is rising, the rate at which the total value would rise is the product of the number of shares and the rate of change of share value. The total value is rising at a rate of

N(100)⋅S′(100)=520 shares⋅0.75 dollars per shareday=390 dollarsday. N(100) \cdot S'(100) = 520 \, \text{shares} \cdot 0.75 \, \frac{\text{dollars per share} }{\text{day} } = 390 \, \frac{\text{dollars} }{\text{day} }\text{.}

Of course, when both the number of shares and the value of each share are changing, we have to include both of these sources. In that case the rate at which the total value is rising is

V′(100)=S(100)⋅N′(100)+N(100)⋅S′(100)=330+390=720 dollarsday. V'(100) = S(100) \cdot N'(100) + N(100) \cdot S'(100) = 330 + 390 = 720 \, \frac{\text{dollars} }{\text{day} }\text{.}

We expect the total value of the investor's holdings to rise by about $720 on the 100th day. 1 

While this example highlights why the product rule is true, there are some subtle issues to recognize. For one, if the stock's value really does rise exactly $0.75 on day 100, and the number of shares really rises by 12 on day 100, then we'd expect that V(101)=N(101)⋅S(101)=532⋅28.25=15029.V(101) = N(101) \cdot S(101) = 532 \cdot 28.25 = 15029\text{.} If, as noted above, we expect the total value to rise by $720, then with V(100)=N(100)⋅S(100)=520⋅27.50=14300,V(100) = N(100) \cdot S(100) = 520 \cdot 27.50 = 14300\text{,} then it seems we should find that V(101)=V(100)+720=15020.V(101) = V(100) + 720 = 15020\text{.} Why do the two results differ by 9? One way to understand why this difference occurs is to recognize that N′(100)=12N'(100) = 12 represents an instantaneous rate of change, while our (informal) discussion has also thought of this number as the total change in the number of shares over the course of a single day. The formal proof of the product rule reconciles this issue by taking the limit as the change in the input tends to zero.

Next, we expand our perspective from the specific example above to the more general and abstract setting of a product pp of two differentiable functions, ff and g.g\text{.} If P(x)=f(x)⋅g(x),P(x) = f(x) \cdot g(x)\text{,} our work above suggests that P′(x)=f(x)g′(x)+g(x)f′(x).P'(x) = f(x) g'(x) + g(x) f'(x)\text{.} Indeed, a formal proof using the limit definition of the derivative can be given to show that the following rule, called the product rule, holds in general.

Product Rule

If ff and gg are differentiable functions, then their product P(x)=f(x)⋅g(x)P(x) = f(x) \cdot g(x) is also a differentiable function, and

P′(x)=f(x)g′(x)+g(x)f′(x). P'(x) = f(x) g'(x) + g(x) f'(x)\text{.}

In light of the earlier example involving shares of stock, the product rule also makes sense intuitively: the rate of change of PP should take into account both how fast ff and gg are changing, as well as how large ff and gg are at the point of interest. In words the product rule says: if PP is the product of two functions ff (the first function) and gg (the second), then “the derivative of PP is the first times the derivative of the second, plus the second times the derivative of the first.” It is often a helpful mental exercise to say this phrasing aloud when executing the product rule.

Example 2.3.22.3.2

If P(z)=z3⋅cos⁡(z),P(z) = z^3 \cdot \cos(z)\text{,} we can use the product rule to differentiate P.P\text{.} The first function is z3z^3 and the second function is cos⁡(z).\cos(z)\text{.} By the product rule, P′P' will be given by the first, z3,z^3\text{,} times the derivative of the second, −sin⁡(z),-\sin(z)\text{,} plus the second, cos⁡(z),\cos(z)\text{,} times the derivative of the first, 3z2.3z^2\text{.} That is,

P′(z)=z3(−sin⁡(z))+cos⁡(z)3z2=−z3sin⁡(z)+3z2cos⁡(z). P'(z) = z^3(-\sin(z)) + \cos(z) 3z^2 = -z^3 \sin(z) + 3z^2 \cos(z)\text{.}
Activity 2.3.22.3.2

Use the product rule to answer each of the questions below. Throughout, be sure to carefully label any derivative you find by name. It is not necessary to algebraically simplify any of the derivatives you compute.

  1. Let m(w)=3w174w.m(w)=3w^{17} 4^w\text{.} Find m′(w).m'(w)\text{.}
  2. Let h(t)=(sin⁡(t)+cos⁡(t))t4.h(t) = (\sin(t) + \cos(t))t^4\text{.} Find h′(t).h'(t)\text{.}
  3. Determine the slope of the tangent line to the curve y=f(x)y = f(x) at the point where a=1a = 1 if ff is given by the rule f(x)=exsin⁡(x).f(x) = e^x \sin(x)\text{.}
  4. Find the tangent line approximation L(x)L(x) to the function y=g(x)y = g(x) at the point where a=−1a = -1 if gg is given by the rule g(x)=(x2+x)2x.g(x) = (x^2 + x) 2^x\text{.}

The quotient rule

Because quotients and products are closely linked, we can use the product rule to understand how to take the derivative of a quotient. Let Q(x)Q(x) be defined by Q(x)=f(x)/g(x),Q(x) = f(x)/g(x)\text{,} where ff and gg are both differentiable functions. It turns out that QQ is differentiable everywhere that g(x)≠0.g(x) \ne 0\text{.} We would like a formula for Q′Q' in terms of f,f\text{,} g,g\text{,} f′,f'\text{,} and g′.g'\text{.} Multiplying both sides of the formula Q=f/gQ = f/g by g,g\text{,} we observe that

f(x)=Q(x)⋅g(x). f(x) = Q(x) \cdot g(x)\text{.}

Now we can use the product rule to differentiate f.f\text{.}

f′(x)=Q(x)g′(x)+g(x)Q′(x). f'(x) = Q(x) g'(x) + g(x) Q'(x)\text{.}

We want to know a formula for Q′,Q'\text{,} so we solve this equation for Q′(x).Q'(x)\text{.}

Q′(x)g(x)=f′(x)−Q(x)g′(x) Q'(x) g(x) = f'(x) - Q(x) g'(x)

and dividing both sides by g(x),g(x)\text{,} we have

Q′(x)=f′(x)−Q(x)g′(x)g(x). Q'(x) = \frac{f'(x) - Q(x) g'(x)}{g(x)}\text{.}

Finally, we recall that Q(x)=f(x)g(x).Q(x) = \frac{f(x)}{g(x)}\text{.} Substituting this expression in the preceding equation, we have

Q′(x)=(f′(x)−f(x)g(x)g′(x)g(x)=(f′(x)−f(x)g(x)g′(x)g(x)⋅g(x)g(x)=(g(x)f′(x)−f(x)g′(x)g(x)2.\begin{align*} Q'(x) =\mathstrut & \frac{f'(x) - \frac{f(x)}{g(x)} g'(x)}{g(x)}\\[4pt] =\mathstrut & \frac{f'(x) - \frac{f(x)}{g(x)} g'(x)}{g(x)} \cdot \frac{g(x)}{g(x)}\\[4pt] =\mathstrut & \frac{g(x) f'(x) - f(x) g'(x)}{g(x)^2}\text{.} \end{align*}

This calculation gives us the quotient rule.

Quotient Rule

If ff and gg are differentiable functions, then their quotient Q(x)=f(x)g(x)Q(x) = \frac{f(x)}{g(x)} is also a differentiable function for all xx where g(x)≠0g(x) \ne 0 and

Q′(x)=g(x)f′(x)−f(x)g′(x)g(x)2. Q'(x) = \dfrac{g(x) f'(x) - f(x) g'(x)}{g(x)^2}\text{.}

As with the product rule, it can be helpful to think of the quotient rule verbally. If a function QQ is the quotient of a top function ff and a bottom function g,g\text{,} then Q′Q' is given by “the bottom times the derivative of the top, minus the top times the derivative of the bottom, all over the bottom squared.”

Example 2.3.32.3.3

If Q(t)=sin⁡(t)/2t,Q(t) = \sin(t)/2^t\text{,} we call sin⁡(t)\sin(t) the top function and 2t2^t the bottom function. By the quotient rule, Q′Q' is given by the bottom, 2t,2^t\text{,} times the derivative of the top, cos⁡(t),\cos(t)\text{,} minus the top, sin⁡(t),\sin(t)\text{,} times the derivative of the bottom, 2tln⁡(2),2^t \ln(2)\text{,} all over the bottom squared, (2t)2.(2^t)^2\text{.} That is,

Q′(t)=2tcos⁡(t)−sin⁡(t)2tln⁡(2)(2t)2. Q'(t) = \frac{2^t \cos(t) - \sin(t) 2^t \ln(2)}{(2^t)^2}\text{.}

In this particular example, it is possible to simplify Q′(t)Q'(t) by removing a factor of 2t2^t from both the numerator and denominator, so that

Q′(t)=cos⁡(t)−sin⁡(t)ln⁡(2)2t. Q'(t) = \frac{\cos(t) - \sin(t) \ln(2)}{2^t}\text{.}

In general, we must be careful in doing any such simplification, as we don't want to execute the quotient rule correctly but then make an algebra error.

Activity 2.3.32.3.3

Use the quotient rule to answer each of the questions below. Throughout, be sure to carefully label any derivative you find by name. That is, if you're given a formula for f(x),f(x)\text{,} clearly label the formula you find for f′(x).f'(x)\text{.} It is not necessary to algebraically simplify any of the derivatives you compute.

  1. Let r(z)=3zz4+1.r(z)=\frac{3^z}{z^4 + 1}\text{.} Find r′(z).r'(z)\text{.}
  2. Let v(t)=sin⁡(t)cos⁡(t)+t2.v(t) = \frac{\sin(t)}{\cos(t) + t^2}\text{.} Find v′(t).v'(t)\text{.}
  3. Determine the slope of the tangent line to the curve R(x)=x2−2x−8x2−9\displaystyle R(x) = \frac{x^2 - 2x - 8}{x^2 - 9} at the point where x=0.x = 0\text{.}
  4. When a camera flashes, the intensity II of light seen by the eye is given by the function
    I(t)=100tet, I(t) = \frac{100t}{e^t}\text{,}

    where II is measured in candles and tt is measured in milliseconds. Compute I′(0.5),I'(0.5)\text{,} I′(2),I'(2)\text{,} and I′(5);I'(5)\text{;} include appropriate units on each value; and discuss the meaning of each.

Combining rules

In order to apply the derivative shortcut rules correctly we must recognize the fundamental structure of a function.

Example 2.3.42.3.4

Determine the derivative of the function

f(x)=xsin⁡(x)+x2cos⁡(x)+2. f(x) = x\sin(x) + \frac{x^2}{\cos(x) + 2}\text{.}

How do we decide which rules to apply? Our first task is to recognize the structure of the function. This function ff is a sum of two slightly less complicated functions, so we can apply the sum rule 2  to get

f′(x)=(ddx[xsin⁡(x)+x2cos⁡(x)+2]=(ddx[xsin⁡(x)]+ddx[x2cos⁡(x)+2]\begin{align*} f'(x) =\mathstrut & \frac{d}{dx} \left[ x\sin(x) + \frac{x^2}{\cos(x) + 2} \right]\\[4pt] =\mathstrut & \frac{d}{dx} \left[ x\sin(x) \right] + \frac{d}{dx}\left[ \frac{x^2}{\cos(x) + 2} \right] \end{align*}
When taking a derivative that involves the use of multiple derivative rules, it is often helpful to use the notation ddx[  ]\frac{d}{dx} \left[ ~~\right] to wait to apply subsequent rules. This is demonstrated in each of the two examples presented here.

Now, the left-hand term above is a product, so the product rule is needed there, while the right-hand term is a quotient, so the quotient rule is required. Applying these rules respectively, we find that

f′(x)=((xcos⁡(x)+sin⁡(x))+(cos⁡(x)+2)2x−x2(−sin⁡(x))(cos⁡(x)+2)2=(xcos⁡(x)+sin⁡(x)+2xcos⁡(x)+4x+x2sin⁡(x)(cos⁡(x)+2)2.\begin{align*} f'(x) =\mathstrut & \left( x \cos(x) + \sin(x) \right) + \frac{(\cos(x) + 2) 2x - x^2(-\sin(x))}{(\cos(x) + 2)^2}\\[4pt] =\mathstrut & x \cos(x) + \sin(x) + \frac{2x\cos(x) + 4x + x^2\sin(x)}{(\cos(x) + 2)^2}\text{.} \end{align*}

Example 2.3.52.3.5

Differentiate

s(y)=y⋅7yy2+1. s(y) = \frac{y \cdot 7^y}{y^2 + 1}\text{.}

The function ss is a quotient of two simpler functions, so the quotient rule will be needed. To begin, we set up the quotient rule and use the notation ddy\frac{d}{dy} to indicate the derivatives of the numerator and denominator. Thus,

s′(y)=(y2+1)⋅ddy[y⋅7y]−y⋅7y⋅ddy[y2+1](y2+1)2. s'(y) = \frac{(y^2 + 1) \cdot \frac{d}{dy}\left[ y \cdot 7^y \right] - y \cdot 7^y \cdot \frac{d}{dy}\left[y^2 + 1 \right]}{(y^2 + 1)^2}\text{.}

Now, there remain two derivatives to calculate. The first one, ddy[y⋅7y]\frac{d}{dy}\left[ y \cdot 7^y \right] calls for use of the product rule, while the second, ddy[y2+1]\frac{d}{dy}\left[y^2 + 1 \right] needs only the sum rule. Applying these rules, we now have

s′(y)=(y2+1)[y⋅7yln⁡(7)+7y⋅1]−y⋅7y[2y](y2+1)2. s'(y) = \frac{(y^2 + 1) [y \cdot 7^y \ln(7) + 7^y \cdot 1] - y \cdot 7^y [2y]}{(y^2 + 1)^2}\text{.}

While some simplification is possible, we are content to leave s′(y)s'(y) in its current form.

Success in applying derivative rules begins with recognizing the structure of the function, followed by the careful and diligent application of the relevant derivative rules. The best way to become proficient at this process is to do a large number of examples.

Activity 2.3.42.3.4

Use relevant derivative rules to answer each of the questions below. Throughout, be sure to use proper notation and carefully label any derivative you find by name.

  1. Let f(r)=(5r3+sin⁡(r))(4r−2cos⁡(r)).f(r) = (5r^3 + \sin(r))(4^r - 2\cos(r))\text{.} Find f′(r).f'(r)\text{.}
  2. Let p(t)=cos⁡(t)t6⋅6t.\displaystyle p(t) = \frac{\cos(t)}{t^6 \cdot 6^t}\text{.} Find p′(t).p'(t)\text{.}
  3. Let g(z)=3z7ez−2z2sin⁡(z)+zz2+1.g(z) = 3z^7 e^z - 2z^2 \sin(z) + \frac{z}{z^2 + 1}\text{.} Find g′(z).g'(z)\text{.}
  4. A moving particle has its position in feet at time tt in seconds given by the function s(t)=3cos⁡(t)−sin⁡(t)et.s(t) = \frac{3\cos(t) - \sin(t)}{e^t}\text{.} Find the particle's instantaneous velocity at the moment t=1.t = 1\text{.}
  5. Suppose that f(x)f(x) and g(x)g(x) are differentiable functions and it is known that f(3)=−2,f(3) = -2\text{,} f′(3)=7,f'(3) = 7\text{,} g(3)=4,g(3) = 4\text{,} and g′(3)=−1.g'(3) = -1\text{.} If p(x)=f(x)⋅g(x)p(x) = f(x) \cdot g(x) and q(x)=f(x)g(x),\displaystyle q(x) = \frac{f(x)}{g(x)}\text{,} calculate p′(3)p'(3) and q′(3).q'(3)\text{.}

As the algebraic complexity of the functions we are able to differentiate continues to increase, it is important to remember that all of the derivative's meaning continues to hold. Regardless of the structure of the function f,f\text{,} the value of f′(a)f'(a) tells us the instantaneous rate of change of ff with respect to xx at the moment x=a,x = a\text{,} as well as the slope of the tangent line to y=f(x)y = f(x) at the point (a,f(a)).(a,f(a))\text{.}

Summary

  • If a function is a sum, product, or quotient of simpler functions, then we can use the sum, product, or quotient rules to differentiate it in terms of the simpler functions and their derivatives.
  • The product rule tells us that if PP is a product of differentiable functions ff and gg according to the rule P(x)=f(x)g(x),P(x) = f(x) g(x)\text{,} then
    P′(x)=f(x)g′(x)+g(x)f′(x). P'(x) = f(x)g'(x) + g(x)f'(x)\text{.}
  • The quotient rule tells us that if QQ is a quotient of differentiable functions ff and gg according to the rule Q(x)=f(x)g(x),Q(x) = \frac{f(x)}{g(x)}\text{,} then
    Q′(x)=g(x)f′(x)−f(x)g′(x)g(x)2. Q'(x) = \frac{g(x)f'(x) - f(x)g'(x)}{g(x)^2}\text{.}
  • Along with the constant multiple and sum rules, the product and quotient rules enable us to compute the derivative of any function that consists of sums, constant multiples, products, and quotients of basic functions. For instance, if FF has the form
    F(x)=2a(x)−5b(x)c(x)⋅d(x), F(x) = \frac{2a(x) - 5b(x)}{c(x) \cdot d(x)}\text{,}

    then FF is a quotient, in which the numerator is a sum of constant multiples and the denominator is a product. This, the derivative of FF can be found by applying the quotient rule and then using the sum and constant multiple rules to differentiate the numerator and the product rule to differentiate the denominator.

Credit and licence

This page titled 2.3: The Product and Quotient Rules was last modified on Wed, 09 Nov 2022 05:42:01 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin, and Steven Schlicker ( ScholarWorks @Grand Valley State University ) via source content that was edited to the style and standards of the LibreTexts platform.

Source: https://math.libretexts.org/Bookshelves/Calculus/Active_Calculus_(Boelkins_et_al.)/02%3A_Computing_Derivatives/2.03%3A_The_Product_and_Quotient_Rules

Licence: CC BY-SA 4.0 (creativecommons.org/licenses/by-sa/4.0/). You may share and adapt it under the same licence, with this credit. WorldClass adapted the formatting only: the text is the authors', with interactive parts and links to other sites left out.

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.