Kim’s Math NotesCourse index

The Product Rule

Why are there two terms in the product rule?

Use the product rule with formulas, tables, and graphs, and show its structure before the numbers.

Why two terms

Not the product of the derivatives

Common mistake f(2)=3, f′(2)=−2, g(2)=1, g′(2)=5, so (fg)′(2)=f′(2)g′(2)=(−2)(5)=−10.

Correction Two terms: (fg)′(2)=f′(2)g(2)+f(2)g′(2)=(−2)(1)+(3)(5)=13.

A constant factor still counts

Common mistake h=fg−4g: “−4g is a constant term,” so h′=f′g+fg′.

Correction −4g(x) changes with x: its derivative is −4g′(x). h′=f′g+fg′−4g′.

The point uses the product too

Common mistake Tangent to p(x)=xg(x) at x=3 with g(3)=1, g′(3)=2: p′(3)=7, so y=1+7(x−3).

Correction The height is p(3)=3g(3)=3: y=3+7(x−3).

Today's question

Last time I left you with a question about products. The derivative of a sum is the sum of the derivatives. Here's the guess almost everyone makes. f times g, prime, equals f prime times g prime. Is that right? Test it on the simplest product there is.

x times x is x squared, and its derivative is two x.

Watch this part of the concept lesson

Read the rest of this scene

Now multiply the derivatives. The derivative of x is one, times one, gives one. Not two x. One more. Five x has slope five, but five prime times x prime is zero times one, zero. So it's not f prime g prime.

Then what is it? Let's go back to the definition.

From the definition

The derivative of f g is the limit as h goes to zero, of f of x plus h times g of x plus h, minus f of x times g of x, all over h. Here's the one trick. Subtract and add the same piece, f of x times g of x plus h. That adds zero, so nothing changes. So the top is f of x plus h, g of x plus h, minus f of x, g of x plus h,

plus f of x, g of x plus h, minus f of x, g of x.

Watch this part of the concept lesson

Read the rest of this scene

Group each pair. The bracket f of x plus h minus f of x, times g of x plus h, plus f of x times the bracket g of x plus h minus g of x. Divide by h, and both pieces end up over h. Plus f of x, times g of x plus h minus g of x, over h. As h goes to zero, the first fraction goes to f prime of x, and the second goes to g prime of x.

What happens to g of x plus h? And g of x plus h goes to g of x. So f g, prime, is f prime g plus f g prime. Two terms.

The product rule

Now it gets its name. The product rule says f g, prime, equals f prime g plus f g prime, when f and g are differentiable. Say it like this: the derivative of the first, times the second, plus the first, times the derivative of the second. In the first term, only f moves. In the second term, only g moves.

Each factor gets its turn.

Watch this part of the concept lesson

Read the rest of this scene

Try x sine x. The derivative of x, times sine x, plus x, times the derivative of sine x. That's one times sine x, plus x cosine x. Two terms. With tables and graphs, write the structure with letters first, then the numbers. f g, prime, at a, is f prime of a, g of a, plus f of a, g prime of a.

Problem 1

Example one. f and g are differentiable, and their values are in the table. h of x is f of x times g of x, minus four g of x. Find h prime of three, and the tangent line to h at x equals three. The plan: structure first, then the x equals three column. Part a. h prime of x is f prime g plus f g prime, minus four g prime.

The four g still needs its derivative.

Watch this part of the concept lesson

Read the rest of this scene

Read only the three column. h prime of three is negative one times five, plus two times four, minus four times four. Negative five plus eight minus sixteen, negative thirteen. In part b, find the point. h of three is two times five, minus four times five, negative ten.

Point and slope: y equals negative ten, minus thirteen times x minus three. Your workbook has one like this. Here's the slip: multiply the derivatives. f prime of three, times g prime of three, minus four g prime of three. Clean arithmetic, but the wrong rule.

f prime g plus f g prime, then minus four g prime, gives negative thirteen. The AP course guide names this exact slip: differentiating each factor, then multiplying.

Problem 2

Example two. The graphs of f and g are made of line segments. k of x is f of x times g of x. Find k prime of one, k prime of five, and explain why the product rule can't be used to find k prime of two. The plan: heights give values, and slopes give derivatives.

In part a, write the structure first.

Watch this part of the concept lesson

Read the rest of this scene

k prime of one is f prime of one, g of one, plus f of one, g prime of one. First, the heights at x equals one. f of one is one, and g of one is three. Now the slopes. f goes up two for every one across, and g goes down one for every one across. So f prime of one is two, and g prime of one is negative one.

Two times three, plus one times negative one, is five. Your turn: same type in the workbook. In part b, write the structure again. k prime of five is f prime of five, g of five, plus f of five, g prime of five. f of five is zero, g of five is three, f prime is negative one, and g prime is one.

f of five is zero, but the first term is still alive. Negative one times three, plus zero, is negative three. Part c. Look at f at x equals two. It's a corner: slope two on the left, slope negative one on the right. So f prime of two does not exist.

The product rule needs f prime of two, so it can't be used here. There are more like this in your workbook.

Worked examples

Example 1

f and g are differentiable; values are in the table. Let h(x)=f(x)g(x)−4g(x).
(a) Find h′(3).
(b) Write an equation of the tangent line to the graph of h at x=3.
x13
f(x)42
f′(x)3-1
g(x)-25
g′(x)14
Hint

Write the structure first. Which column do you need?

Answer and solution
  1. −13
  2. y=−10−13(x−3)
  1. Type: a product from a table. Method: the structure first, then the numbers from the x = 3 column.
  2. h′(x)=f′(x)g(x)+f(x)g′(x)−4g′(x)
  3. h′(3)=(−1)(5)+(2)(4)−4(4)=−5+8−16=−13
  4. (b) The point: h(3) = (2)(5) - 4(5) = -10. The tangent line is y = -10 - 13(x - 3).
  5. Traps: f'(3)g'(3) - 4g'(3) = -20 multiplies the derivatives; dropping -4g'(3) gives 3; -10 is h(3), a value, not a rate.

Example 2

The graphs of f and g are made of line segments. Let k(x)=f(x)g(x).
(a) Find k′(1).
(b) Find k′(5).
(c) Explain why the product rule cannot be used to find k′(2).
xy12345-11234
Graph of f(x)
xy12345-11234
Graph of g(x)
Hint

Heights give the values. Slopes give the derivatives.

Answer and solution
  1. 5
  2. −3
  3. f has a corner at x=2 (slopes 2 and −1), so f′(2) does not exist and the rule needs f′(2)
  1. Type: a product from graphs. Method: k'(a) = f'(a)g(a) + f(a)g'(a); heights from the graphs, slopes from the segments.
  2. k′(1)=f′(1)g(1)+f(1)g′(1)=(2)(3)+(1)(−1)=5
  3. k′(5)=f′(5)g(5)+f(5)g′(5)=(−1)(3)+(0)(1)=−3
  4. (c) At x = 2 the graph of f has a corner: slope 2 on the left, -1 on the right. f'(2) does not exist, so the formula f'(2)g(2) + f(2)g'(2) cannot be used.
  5. Trap: f'(1)g'(1) = (2)(-1) = -2 multiplies the slopes.

Workbook

Problem 1

Let f(x)=x3ex. (a) Find f′(x). (b) Find f′(−1).
Hint

Write the structure f′g+fg′ before you simplify.

Answer and solution
  1. f′(x)=3x2ex+x3ex=x2ex(x+3)
  2. 2e
  1. Two factors: u = x^3 (u' = 3x^2) and v = e^x (v' = e^x).
  2. f′(x)=3x2ex+x3ex
  3. (b) f'(-1) = 3(1)e^{-1} + (-1)e^{-1} = 2e^{-1} = 2/e.

Common mistake Multiplying the derivatives: 3x^2 · e^x.

Watch the worked solution to Problem 1

Problem 2

Write an equation of the line tangent to the graph of y=xlnx at x=1.
Hint

At x=1, ln1=0. Then point first, slope second.

Answer and solution

Answer y=0+1(x−1), or y=x−1

  1. The point: y(1) = 1 * ln 1 = 0, so (1, 0). Rewrite sqrt(x) = x^(1/2) for the power rule.
  2. dydx=12x−1/2lnx+x1/2⋅1x,dydx|x=1=0+1=1
  3. y=0+1(x−1)

Common mistake Forgetting that ln 1 = 0 gives the point (1, 0).

Watch the worked solution to Problem 2

Problem 3

Selected values of a differentiable function f and its derivative are given in the table. If h(x)=x2f(x), what is the value of h′(3)?
x13
f(x)52
f′(x)2-1
  1. −6
  2. −9
  3. 3
  4. 18
Hint

(x2)′=2x. Write h′(3)=2(3)f(3)+32f′(3) before the numbers.

Answer and solution

Answer C. 3

  1. h′(x)=2xf(x)+x2f′(x)
  2. h′(3)=2(3)(2)+(9)(−1)=12−9=3
  3. Answer C.

Common mistake Multiplying derivatives, or keeping only one term of the product rule.

Watch the worked solution to Problem 3

Problem 4

If f(x)=x2cosx, then f′(π2)=
  1. −π24
  2. −π
  3. π24
  4. 0
Hint

Product rule: two terms. Then use cosπ2=0, sinπ2=1.

Answer and solution

Answer A. −π24

  1. f′(x)=2xcosx+x2(−sinx)=2xcosx−x2sinx
  2. f′(π2)=2⋅π2⋅0−π24⋅1=−π24
  3. Answer A.

Common mistake Writing (2x)(-sin x): the product of the derivatives.

Watch the worked solution to Problem 4

Problem 5

Let p(x)=xg(x), where g is differentiable, g(2)=−1, and g′(2)=3. Which of the following is an equation of the line tangent to the graph of p at x=2?
  1. y=−2+3(x−2)
  2. y=−2+5(x−2)
  3. y=5(x−2)
  4. y=−1+5(x−2)
Hint

The point uses p(2), the slope p′(2)=g(2)+2g′(2).

Answer and solution

Answer B. y=−2+5(x−2)

  1. The point: p(2) = 2g(2) = -2. The slope: p'(x) = 1 * g(x) + x g'(x), so p'(2) = -1 + 2(3) = 5.
  2. y=−2+5(x−2)
  3. Answer B.

Common mistake Using g'(2) alone as the slope.

Watch the worked solution to Problem 5

Problem 6

At time t months, each lamp in a warehouse is worth p(t) dollars and there are q(t) lamps (table). The total value is V(t)=p(t)q(t) dollars.
t (months)025
p(t)464031
p′(t)-3-3-2
q(t)130150180
q′(t)10125
  1. Find V′(2). Show the work and units.
  2. Explain V′(2) in context.
  3. Is the total value increasing or decreasing at t=5? Why?
Hint

Write V′=p′q+pq′, then take each number from the right row.

Answer and solution
  1. V′(2)=p′(2)q(2)+p(2)q′(2)=(−3)(150)+(40)(12)=30 dollars per month
  2. at t=2 months, the total value of the lamps is increasing at a rate of 30 dollars per month
  3. decreasing, because V′(5)=(−2)(180)+(31)(5)=−205<0
  1. (a) V'(t) = p'(t)q(t) + p(t)q'(t), the structure first.
  2. V′(2)=(−3)(150)+(40)(12)=−450+480=30
  3. 30 dollars per month. (b) At t = 2 months, the total value of the lamps is increasing at a rate of 30 dollars per month.
  4. V′(5)=(−2)(180)+(31)(5)=−360+155=−205
  5. (c) V'(5) = -205 < 0, so the total value is decreasing at t = 5. (p'(5)q'(5) = -10 would be the product of the derivatives.)

Common mistake Taking p' and q' from the wrong rows or times.

Watch the worked solution to Problem 6

Problem 7

The graph of f′, the derivative of f, is shown; it is made of two line segments. Also, f(2)=3. Let g(x)=x2f(x). Write an equation of the line tangent to the graph of g at x=2.
xy1234123
Graph of f'(x)
Hint

The graph shows f′: its height at x=2 is f′(2). Then write the product rule structure before the numbers.

Answer and solution

Answer g(2)=12, g′(2)=2(2)(3)+(2)2(3)=24: y=12+24(x−2)

  1. From the graph, f'(2) = 3. Given f(2) = 3.
  2. g′(x)=2xf(x)+x2f′(x)
  3. g(2)=4⋅3=12,g′(2)=2(2)(3)+(2)2(3)=24
  4. y=12+24(x−2)

Common mistake Reading f(2) from the graph of f', or writing g' = 2x f'(x).

Watch the worked solution to Problem 7

Problem 8

The graphs of f and g are made of line segments. Let p(x)=f(x)g(x).
xy1234512345
Graph of f(x)
xy1234512345
Graph of g(x)
  1. Find p′(1).
  2. Is p′(5) positive, negative, or zero? Show the work that leads to your answer.
  3. Explain why the product rule cannot be used to find p′(3).
Hint

Read each height and each segment slope separately. The product rule needs both functions differentiable at the point.

Answer and solution
  1. f′(1)g(1)+f(1)g′(1)=(2)(3)+(3)(1)=9
  2. f′(5)g(5)+f(5)g′(5)=(−1)(3)+(2)(−1)=−5: negative
  3. g has a corner at x=3, so g′(3) does not exist
  1. Heights: f(1) = 3, g(1) = 3, f(5) = 2, g(5) = 3. Slopes: f' = 2 on (0, 2), -1 on (2, 6); g' = 1 on (0, 3), -1 on (3, 6).
  2. p′(1)=f′(1)g(1)+f(1)g′(1)=(2)(3)+(3)(1)=9
  3. p′(5)=f′(5)g(5)+f(5)g′(5)=(−1)(3)+(2)(−1)=−5<0
  4. (c) g has a corner at x = 3, so g'(3) does not exist and the product rule cannot be used there.

Common mistake Using the product rule at a corner.

Watch the worked solution to Problem 8