For a sum, the derivative of f+g is just f′+g′. You might guess that a product works the same way, and that the derivative of f⋅g is f′⋅g′. But let's test that on x2⋅x3.
(x2⋅x3)′(x2)′⋅(x3)′=(x5)′=5x4=2x⋅3x2=6x3
The two answers aren't even the same power of x, so (fg)′ can't be f′g′. To see what the derivative really is, think of f(x)⋅g(x) as the area of a rectangle with sides f(x) and g(x).
When x grows by a small step dx, both sides grow, and the area gains two thin rectangles and one small corner.
Find the derivative of f(x)⋅g(x) using the area of a rectangle
Text solution
Add up the new areaThe sides grow by df≈f′dx and dg≈g′dx. That gives two thin rectangles and a corner.
change in area≈gf′dx+fg′dx+f′g′dxdx
Divide by dx, then let dx→0The corner still has a dx after dividing, so it goes to 0. Only the two thin rectangles are left.
dxchange in area≈f′g+fg′+f′g′dx
→f′g+fg′(dx→0)
Check on x2⋅x3The rule gives 5x4, the same as (x5)′.
2x⋅x3+x2⋅3x2=2x4+3x4=5x4
The product rule
(fg)′=f′g+fg′
Each term is the derivative of one factor times the other factor left unchanged. Does the area increase when we increase the width and decrease the height?
Area with two changing sides
Now let's use the product rule on a function where one factor has a square root, y=x(x2+3). Rewrite x as x21, so its derivative is 21x−21, or 2x1.
(x)′=(x21)′=21x−21=2x1
yy′=x(x2+3)=2x1(x2+3)+x⋅2x
We can leave the answer in this form without multiplying it out. Expanding to x25+3x21 and using the power rule gives the same derivative. But when f or g is given only by a graph or a table, there's nothing to multiply out, and the product rule is the only way.
2
Finding (fg)′ from tables and graphs
To find the derivative of a product at a point, we don't need formulas for f and g. The product rule at 3 is (fg)′(3)=f′(3)g(3)+f(3)g′(3), so we only need four numbers, the value and the derivative of each function at 3.
x
f(x)
f′(x)
g(x)
g′(x)
3
2
−1
5
4
The four numbers can also come from graphs made of straight segments. The value at x=2 is the height of the graph there, and the derivative is the slope of the segment through x=2.
f(2)f′(2)g(2)g′(2)=3=3−04−1=1=4=4−02−6=−1
Find the derivative of a product at a point from a table and from a graph
Text solution
From the table, at x=3The first term is negative because f is decreasing at 3, so that side of the rectangle is shrinking.
(fg)′(3)=(−1)(5)+(2)(4)=−5+8=3
One factor is a formulaFor k(x)=x2⋅g(x), at x=3 the factor x2 is 9, and its derivative 2x is 6.
k′(3)=6⋅5+9⋅4=30+36=66
From the graphs, at x=2Use the heights and slopes read off the graphs, with h(x)=f(x)g(x).
h′(2)=(1)(4)+(3)(−1)=4−3=1
Which graph values and slopes do we need for the derivative of the product?
Using graph values in the product rule
3
The quotient rule
When the bottom is just one term, we can split the fraction and use the power rule.
xx=x21−1=x−21
xx3+2x=x2+2x−21→2x−x−23
When the bottom is a sum, splitting doesn't work because x2+3x+1 isn't equal to x2x+1+3x+1. To find its derivative, we need a rule for gf.
dxd[x2+3x+1]=?
We can get that rule from the rectangle again. This time the area is f and one side is g, so the other side is the quotient q=gf. Then f=q⋅g, a product we already know how to differentiate.
Find the derivative of gf using the product rule on f=q⋅g
Text solution
Differentiate f=q⋅gUse the product rule on the right, then solve for q′.
f′=q′g+qg′
q′=gf′−qg′
Put gf back in for qThat leaves a fraction inside a fraction, so multiply the top and bottom by g.
q′=g⋅g(f′−gfg′)⋅g=g2f′g−fg′
Use it at x=3With the table from before, the two products are the same as in the product rule, but now we subtract them and divide by g(3)2=25.
(gf)′(3)=52(−1)(5)−(2)(4)=25−5−8=−2513
The quotient rule
(gf)′=g2f′g−fg′
People often remember this as "lo d hi minus hi d lo, over lo squared." Here lo is the bottom g,hi is the top f, and d means the derivative. The minus sign comes from the rectangle. Hold its area f at 6 and widen the base g from 2 to 3, and the height q has to shrink from 3 to 2.
Be careful not to divide the derivative of the top by the derivative of the bottom. On xx3, the quotient rule gives 2x, the same as simplifying to x2 first, but 13x2 is 3x2. And when the fraction simplifies like this one, simplifying first is much faster.
(xx3)′=x23x2⋅x−x3⋅1=x22x3=2x
xx3=x2→2x,13x2=2x
4
Where the tangent is horizontal
A horizontal line has slope 0, so to find where y=x2+3x+1 has a horizontal tangent, we look for where y′=0. The bottom is a sum, so we use the quotient rule with these pieces.
fg=x+1,=x2+3,f′g′=1=2x
Find the points where y=x2+3x+1 has a horizontal tangent
Text solution
Keep brackets on the second productThe minus sign applies to the whole product (x+1)(2x), so it reaches both terms: −(2x2+2x)=−2x2−2x.
Set the numerator to 0The denominator is at least 9, so it's never 0. Only the numerator decides.
−(x+3)(x−1)=0→x=1,x=−3
Plugging those x-values back into y gives the local maximum (1,21) and the local minimum (−3,−61) on the graph.
y(1)y(−3)=42=21=12−2=−61
5
When to use the quotient rule
The quotient rule works on any fraction, but it takes a lot of algebra, and often you don't need it. Look at the bottom first. If it's a constant or a constant times a power of x, like x,x,4, or 3x2, divide each term on top by it and use the power rule. If it's a sum of terms, you can't split it, so you use the quotient rule. Let's sort three fractions this way.
Differentiate xx3+2x,x2+36, and 4x2+1
dxdxx3+2x=?
dxdx2+36=?
dxd4x2+1=?
Text solution
One term on the bottom: divideDividing each term of the top by x leaves powers of x.
xx3+2x=x2+2x−21→2x−x−23
A sum on the bottom: quotient ruleSplitting fails, as x=1 shows. The top 6 is a constant, so its derivative is 0 and the first term drops out.
1+36=1.5=126+36=8
(x2+36)′=(x2+3)2(x2+3)(0)−6(2x)=(x2+3)2−12x
A constant on the bottom: pull it outDividing by 4 is multiplying by 41, so the constant-multiple rule does it.
4x2+1=41(x2+1)→41⋅2x=2x
Summary
The product rule
(fg)′=f′g+fg′
To differentiate a product, keep one factor and differentiate the other, then switch, and add the two terms. The derivative is not f′g′. The term f′g′ comes from the little corner df⋅dg. In terms of dx, its area is f′g′(dx)2, so dividing by dx leaves f′g′dx, which vanishes as dx approaches 0.
The product rule at a point
(fg)′(a)=f′(a)g(a)+f(a)g′(a)
To find the derivative of a product at x=a, we only need four numbers, f(a),f′(a),g(a), and g′(a). On a graph of straight line segments, each value is the height at x=a, and each derivative is the slope of the segment through x=a. If a factor is x2, its value at a is a2 and its derivative is 2a.
The quotient rule
(gf)′=g2f′g−fg′
−(x+1)(2x)=−(2x2+2x)
Remember this as "lo d hi minus hi d lo, over lo squared." The minus sign belongs with g′ because in our rectangle, increasing the base while keeping the area fixed makes the height smaller. Keep brackets around the second product so the minus sign applies to every term when you expand it. Leave the denominator as g2 without multiplying it out.
When to use the quotient rule
xx3+2x=x2+2x−21
Look at the bottom before using the quotient rule. If the bottom is just one term, divide each term on top by it, rewrite the powers, and use the power rule. If the bottom is a sum of terms, you can't split the fraction, so use the quotient rule. If the top is a constant, its derivative is 0, so the first term in the numerator is 0.
Horizontal tangents of a quotient
A fraction equals 0 when its numerator equals 0 and its denominator is not 0. To find where the tangent line to a quotient is horizontal, find the derivative y′ using the quotient rule and simplify it, then set its numerator equal to 0 and check that the denominator is not 0.
6
Practice
Write answers as fractions, not decimals, like −47 instead of −1.75. Any correct form counts, whether simplified or not.
1
Differentiate f(x)=(x2+3)(2x−5).
The product rule has two terms. If the first term is (x2+3)′(2x−5), what is the second term?
If you got 4x Check that you used the product rule. Differentiating both factors and multiplying them gives (2x)(2)=4x, but (fg)′ is f′g+fg′.
Find the derivative of each factor first.
(x2+3)′=2x,(2x−5)′=2
Use the product rule, then expand and combine like terms.
A store's price p and weekly sales q both change with time. This week p=20 dollars, rising by 0.5 dollars per week, and q=300 items, falling by 10 items per week. At what rate is the revenue R=p⋅q changing?
Sales are falling by 10 items per week. What does that mean for the sign of q′?
If you got −5 Check that you used the product rule. Multiplying the two rates p′q′ leaves out the current price and sales.If you got 350 Check the sign of q′. Sales are falling, so q′ is negative.
Write down each rate with its sign. Sales are falling, so q′ is negative.
p=20,p′=0.5,q=300,q′=−10
Revenue is a product, so we use the product rule.
R′=p′q+pq′=(0.5)(300)+(20)(−10)=150−200=−50
Revenue is decreasing at 50 dollars per week, because the loss from falling sales outweighs the gain from the higher price.
3
f(2)=3 and f′(2)=5. Find the derivative of [f(x)]2 at x=2.
Write [f(x)]2 as f(x)⋅f(x). Which rule differentiates a product?
If you got 25 Don't just square the derivative f′(2). Write [f(x)]2 as f(x)⋅f(x) and use the product rule.If you got 10 The power rule for x2 doesn't apply directly to [f(x)]2. Write [f(x)]2 as f(x)⋅f(x) and use the product rule.
A function squared is the function multiplied by itself.
[f(x)]2=f(x)⋅f(x)
Applying the product rule gives two equal terms. Plug in f(2)=3 and f′(2)=5.
(f⋅f)′(2)=f′(2)f(2)+f(2)f′(2)=5⋅3+3⋅5=30
4
Differentiate y=x2+1x2−1.
The minus sign in the quotient rule applies to the whole second product, −(x2−1)(2x)=−(2x3−2x). What happens to each sign when you remove the parentheses?
If you got −(x2+1)24x Check the order in the numerator. The quotient rule starts with the derivative of the top times the bottom, then subtracts the top times the derivative of the bottom.
If you got 0 Check how you distributed the minus sign. Subtracting (2x3−2x) gives −2x3+2x, not −2x3−2x.
Use the quotient rule. That's the derivative of the top times the bottom, minus the top times the derivative of the bottom, divided by the bottom squared.
y′=(x2+1)22x(x2+1)−(x2−1)(2x)
The minus sign applies to the entire second product, so both signs change when we expand.
The graphs of f and g are made of straight segments. The graph of f goes from (0,1) to (2,5) to (6,1), and the graph of g goes from (0,3) to (4,−1) to (6,1). Find the derivative of g(x)f(x) at x=1.
At x=1, use the segment of f from (0,1) to (2,5). What is the slope of that segment?
If you got −47 Check the order in the numerator. The quotient rule starts with f′(1)g(1), not f(1)g′(1).If you got 2 Check which value is the height and which is the slope. At x=1, the height of f is 3 and its slope is 2.If you got 27 Check the denominator of the quotient rule. It divides by g(1)2=22=4, not g(1)=2.
Read the heights from the graph at x=1, and find the slopes of the segments the points lie on.
A fraction is 0 when its numerator is 0 and its denominator isn't 0.
x(x−2)=0→x=0,x=2
(x−1)2=0 at x=0,2
Plug x=0 and x=2 back into the original function to get the y-coordinates.
y(0)y(2)=0=14=4→(0,0),(2,4)
8
f(2)=4,f′(2)=1,g(2)=3 and g′(2)=−2. For h(x)=x⋅g(x)f(x), find h′(2).Challenge
The bottom is the product x⋅g(x). What rule do you need to differentiate the bottom?
If you got 1811 Check the derivative of the bottom. By the product rule, (x⋅g(x))′ is 1⋅g(x)+x⋅g′(x), not just x⋅g′(x).If you got 187 Don't drop the factor x when differentiating the bottom. Use the product rule on x⋅g(x).
Evaluate the bottom at x=2.
x=2:x⋅g(x)=2⋅3=6
The bottom is a product, so use the product rule to find its derivative at x=2.