Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 2.8

The Product Rule

How do we find the rate of change at one instant, and how do we compute it quickly for any function?

What you will learn

  • Understand the product rule as one factor changing at a time
  • Know that the product of the derivatives is wrong, with a counterexample
  • Understand where the rule comes from
  • Know when expanding is simpler

You must be able to

  1. Differentiate a product of two functions
  2. Use the rule on tables and on two drawn straight-line graphs
  3. Find horizontal tangents by factoring and saying why a factor is never zero
  4. Interpret a revenue rate in context
  5. Choose the constant multiple rule when one factor is a constant

In the exam. Section I multiple choice, no calculator: a product of a power with sin⁡x\sin x, cos⁡x\cos x, exe^x or ln⁡x\ln x, a value of (fg)′(fg)' from a table or from two graphs, or the xx-values where a product has a horizontal tangent. Section II free response: a product of two modeled quantities (price times quantity, concentration times volume) and a table of ff, f′f', gg, g′g' are the usual set-ups.

1Why the product of derivatives fails

Test it on f(x)=xf(x) = x and g(x)=xg(x) = x. The product is x2x^2, with derivative 2x2x. The product of the derivatives is 1⋅1=11 \cdot 1 = 1. They disagree, so "multiply the derivatives" is wrong.

The product rule gives 1⋅x+x⋅1=2x1 \cdot x + x \cdot 1 = 2x. It agrees with the power rule.

Where the rule comes from. Add and subtract a middle term in the difference quotient:

f(x+h)g(x+h)−f(x)g(x)h=f(x+h) g(x+h)−g(x)h+g(x) f(x+h)−f(x)h \frac{f(x + h)g(x + h) - f(x)g(x)}{h} = f(x + h)\,\frac{g(x + h) - g(x)}{h} + g(x)\,\frac{f(x + h) - f(x)}{h}

As h→0h \to 0, f(x+h)→f(x)f(x + h) \to f(x) because a differentiable function is continuous (2.4). The first fraction goes to g′(x)g'(x) and the second to f′(x)f'(x). That gives f(x)g′(x)+g(x)f′(x)f(x)g'(x) + g(x)f'(x).

2Using the rule: four steps

  1. Name the two factors: ff and gg.
  2. Write ff, f′f', gg, g′g' in a row.
  3. Put them into f′g+fg′f'g + fg'.
  4. Simplify, and factor if the answer is to be used.

Example (invented): y=x2sin⁡xy = x^2 \sin x.

f=x2f = x^2, f′=2xf' = 2x, g=sin⁡xg = \sin x, g′=cos⁡xg' = \cos x. So

y′=2xsin⁡x+x2cos⁡x y' = 2x\sin x + x^2\cos x

At x=πx = \pi: 2π(0)+π2(−1)=−π22\pi(0) + \pi^2(-1) = -\pi^2.

Example (invented): y=xexy = x e^x.

y′=1⋅ex+x⋅ex=(1+x)exy' = 1 \cdot e^x + x \cdot e^x = (1 + x)e^x. At x=0x = 0, y′=1y' = 1.

Example (invented): y=exln⁡xy = e^x \ln x, for x>0x > 0.

y′=exln⁡x+ex⋅1xy' = e^x \ln x + e^x \cdot \frac{1}{x}. At x=1x = 1: e⋅0+e⋅1=ee \cdot 0 + e \cdot 1 = e.

Three factors. Apply the rule in two stages, or use (fgh)′=f′gh+fg′h+fgh′(fgh)' = f'gh + fg'h + fgh'. Each factor gets one turn.

3Expand when it is easier

If both factors are polynomials, you can multiply them out and use the rules of 2.6. Both ways give the same answer.

Example (invented): (x2+1)(x3−x)(x^2 + 1)(x^3 - x).

  • Product rule: 2x(x3−x)+(x2+1)(3x2−1)=2x4−2x2+3x4+2x2−1=5x4−12x(x^3 - x) + (x^2 + 1)(3x^2 - 1) = 2x^4 - 2x^2 + 3x^4 + 2x^2 - 1 = 5x^4 - 1.
  • Expand first: x5−x3+x3−x=x5−xx^5 - x^3 + x^3 - x = x^5 - x, so the derivative is 5x4−15x^4 - 1.

Use whichever has fewer chances to slip. If a factor is not a polynomial, such as sin⁡x\sin x, you need the product rule.

If one factor is a constant, the product rule collapses to the constant multiple rule. Do not use the product rule for 5x35x^3.

4Horizontal tangents of a product

A tangent is horizontal where the derivative is zero. Factor the derivative first.

Example (invented): h(x)=x2exh(x) = x^2 e^x.

h′(x)=2xex+x2ex=xex(2+x) h'(x) = 2xe^x + x^2e^x = xe^x(2 + x)

Since exe^x is never zero, h′(x)=0h'(x) = 0 only when x=0x = 0 or x=−2x = -2. The tangent is horizontal at x=−2x = -2 and x=0x = 0.

Say why a factor does not contribute: "ex>0e^x > 0 for all xx". Do not just drop it.

5From a table

Example (invented):

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
32−1-154
  • For h(x)=f(x)g(x)h(x) = f(x)g(x): h′(3)=f′(3)g(3)+f(3)g′(3)=(−1)(5)+(2)(4)=3h'(3) = f'(3)g(3) + f(3)g'(3) = (-1)(5) + (2)(4) = 3.
  • For p(x)=x2g(x)p(x) = x^2 g(x): the first factor is x2x^2 with derivative 2x2x, so p′(3)=2(3)(5)+32(4)=30+36=66p'(3) = 2(3)(5) + 3^2(4) = 30 + 36 = 66.

Remember that x2x^2 is also a factor. It has a derivative of its own.

6From two graphs

Sometimes the values and slopes come from graphs. Read the height for a value and the slope for a derivative.

Figure 1. The graphs of f and g on 0 <= x <= 4. At x = 2, f(2) = 3 with slope 1.5, and g(2) = 4 with slope -1, so the product rule gives (fg)'(2) = 1.5(4) + 3(-1) = 3 y = f(x), a straight line 1 2 3 4 2 4 6 0 y x (2, 3) Figure 1. The graphs of f and g on 0 <= x <= 4. At x = 2, f(2) = 3 with slope 1.5, and g(2) = 4 with slope -1, so the product rule gives (fg)'(2) = 1.5(4) + 3(-1) = 3 y = g(x), a straight line 1 2 3 4 2 4 6 0 y x (2, 4)
Figure 1 · Graphs of f and g. At x = 2, f(2) = 3 and the slope of f is 1.5; g(2) = 4 and the slope of g is -1.

In Figure 1, both graphs are straight on the interval shown, so each slope is the same everywhere.

  • Left graph: the line goes from (0,0)(0, 0) to (4,6)(4, 6), so f(2)=3f(2) = 3 and f′(2)=64=1.5f'(2) = \frac{6}{4} = 1.5.
  • Right graph: the line goes from (0,6)(0, 6) to (4,2)(4, 2), so g(2)=4g(2) = 4 and g′(2)=2−64=−1g'(2) = \frac{2 - 6}{4} = -1.

If h(x)=f(x)g(x)h(x) = f(x)g(x), then h′(2)=1.5(4)+3(−1)=6−3=3h'(2) = 1.5(4) + 3(-1) = 6 - 3 = 3.

When a graph is made of straight segments, the slope at a point inside a segment is the slope of that segment. At a corner it does not exist (see 2.4).

7A rate in context

Example (invented): a shop's monthly revenue, in dollars, is R(t)=P(t)Q(t)R(t) = P(t)Q(t). P(t)P(t) is the price per unit in dollars, and Q(t)Q(t) is the number of units sold per month, tt months after opening. At t=5t = 5: P=12P = 12, P′=0.5P' = 0.5, Q=200Q = 200, Q′=−10Q' = -10.

R′(5)=P′(5)Q(5)+P(5)Q′(5)=0.5(200)+12(−10)=100−120=−20 R'(5) = P'(5)Q(5) + P(5)Q'(5) = 0.5(200) + 12(-10) = 100 - 120 = -20

At t=5t = 5 months, the revenue is decreasing at a rate of 20 dollars per month. The price rise adds 100 dollars per month and the drop in sales takes away 120 dollars per month.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.