Kim’s Math NotesCourse index

The Power Rule and the Sum Rules

How do I differentiate a sum of powers and constant multiples?

Differentiate powers, roots, and polynomials with the power, constant, sum, difference, and constant multiple rules, and use them for tangent lines, horizontal tangents, and constants at a joint.

xy-3-2-1123-2-112
Horizontal tangents are where f′(x)=0 · For f(x)=18x3−32x, f′(x)=38x2−32=0 at x=−2 and x=2. The tangent lines there are horizontal: y=2 and y=−2.

Why the power rule works

Rewrite before the power rule

Common mistake ddx(5x2)=52x

Correction 5x2=5x−2, so the derivative is −10x−3=−10x3.

A constant alone gives 0

Common mistake ddx(π2)=2π

Correction π2 is a number, so its derivative is 0.

Match the height and the slope

Common mistake At x=3 both pieces 2x and 2x+1 have slope 2, so f is differentiable at x=3.

Correction The heights are 6 and 7: f is not continuous at x=3, so it is not differentiable there.

Squares and cubes, by the definition

Start with x squared. The limit, as x goes to a, of x squared minus a squared, over x minus a. The top is a difference of squares: x minus a, times x plus a. Cancel x minus a, since x is not a. That leaves x plus a.

Let x go to a: a plus a. Two a.

Watch this part of the concept lesson

Read the rest of this scene

Now x cubed. The same limit: x cubed minus a cubed, over x minus a. A difference of cubes: x minus a, times x squared plus x a plus a squared. Cancel x minus a. Let x go to a.

Each of the three terms becomes a squared. Three a squared.

The pattern: guess, then check

Line them up. x squared gave two a, x cubed gave three a squared. So what should x to the fourth give? Make a guess. Four a cubed? The power comes down in front, and drops by one. Let's check, with a difference of squares, twice.

x to the fourth minus a to the fourth is x squared minus a squared, times x squared plus a squared.

Watch this part of the concept lesson

Read the rest of this scene

And x squared minus a squared splits again: x minus a, times x plus a. Cancel x minus a, and let x go to a: two a, times two a squared. Four a cubed. The guess holds. Now all three: two a, three a squared, four a cubed.

The guess for x to the n: n a to the n minus one. Does that work for every n? x to the n minus a to the n factors the same way: x minus a, times a long bracket. Multiply it back out, and the middle terms cancel in pairs. In the bracket, the power of x runs from n minus one down to zero.

That's n terms. Cancel x minus a, and let x go to a. Every term becomes a to the n minus one. And there are n of them. So the n in front is just the number of terms. The guess was right.

That's the power rule we were promised.

The power rule

The derivative of x to the n is n x to the n minus one. That's dee dee ex from two point two. We proved it for positive integers n. Say it like this: bring the exponent down, then subtract one. Back to our question. x to the tenth gives ten x to the ninth.

At one, the slope is ten.

Watch this part of the concept lesson

Read the rest of this scene

One line, no eleven terms. The same rule works for any real power r. We won't prove that part. But it holds only where both sides are defined, so watch the conditions. Root x is x to the one half.

One half, times x to the one half minus one: x to the negative one half. One over two root x, for x greater than zero. In two point two, the definition gave exactly this. Same answer, one line. One over x is x to the negative one.

Negative one, times x to the negative two: negative one over x squared, for x not zero. Also two point two's answer. One over x squared is x to the negative two. Negative two, times x to the negative two minus one. Careful. Your hand wants to write negative one.

Negative two, minus one, is negative three. So negative two over x cubed.

Rewrite first

The rule only sees x to a power. So roots and fractions get rewritten first. Cube root of x is x to the one third. One third, times x to the negative two thirds: one over three cube root of x squared. At x equals zero, the bottom is zero.

That's the vertical tangent from two point four: no finite limit, so no f prime of zero.

Watch this part of the concept lesson

Read the rest of this scene

A fraction over a single x: split it, term by term. x cubed over x is x squared, three minus one. One over x is x to the negative one. Now every piece is a power of x, ready for the rule.

Constants and constant multiples

Now constants. Take x squared, and shift it up two. Every point moves straight up. So every tangent line moves up too: the same slopes. So the derivative of x squared plus two is two x, plus zero.

The plus two gives zero.

Watch this part of the concept lesson

Read the rest of this scene

Any constant alone: its derivative is zero. Even pi cubed, or e squared. They're just numbers, so zero. Not three pi squared, not two e. Now three x squared.

Every height is three times taller, so every slope is three times steeper. So the derivative of three x squared is three, times two x. Six x. In general, the derivative of c times f of x is c times f prime of x. A number in the denominator works the same way. x squared over five is one fifth x squared.

One fifth, times two x: two fifths x. So here's the rule for numbers. A number alone goes to zero. A number in front stays.

Sums and differences; a given slope

Sums and differences go term by term. Why? Take the slope fraction of f plus g. It splits into the fraction of f, plus the fraction of g. The limit of a sum is the sum of the limits, a limit law from Unit 1. So f plus or minus g, prime, is f prime plus or minus g prime.

For example, x to the fourth, minus six x squared, plus two.

Watch this part of the concept lesson

Read the rest of this scene

Term by term: four x cubed, minus six times two x, plus zero. Four x cubed, minus twelve x. Add first and then differentiate, or differentiate each piece and then add. Same answer. So with n pieces, a sigma and a derivative can trade places. Only plus and minus work this way.

Times and divide have their own rules, in two point eight and two point nine. Now that f prime comes fast, AP asks where the graph has a certain slope. A given slope k: solve f prime of x equals k. A horizontal tangent has slope zero: solve f prime of x equals zero. Parallel lines have the same slope.

So at the same x, two tangent lines are parallel where f prime of x equals g prime of x. For example, f of x equals x cubed, and g of x equals three x squared plus one. Set the slopes equal: three x squared equals six x. Don't divide by x, or you lose an answer. Move six x over: three x squared minus six x equals zero.

Factor: three x, times x minus two, equals zero. So the tangent lines are parallel at x equals zero, and at x equals two.

Where two pieces meet

Where two pieces meet, two things must match: the heights, and then the slopes. For example, x squared up to two, then four x minus four. First the heights at two. Two squared is four. Four times two minus four is four.

They match, so f is continuous at two.

Watch this part of the concept lesson

Read the rest of this scene

Can we stop there? No. The V in two point four had matching heights too, and it still had a corner. Then the slopes. x squared has slope two x, so four at two. The line has slope four.

They match too, so f is differentiable at two. Like two slides joined together: same height, same angle, and you don't feel a bump. And two point four's corner, three x minus one and x squared minus two x plus five? The rule gives both slopes in one line: three, and two x minus two, which is two at x equals two.

Example 1: rewrite first

Example one is the kind of multiple choice you'll see on the A.P. exam. It's a fraction, with a root up on top. What's f prime of four? You've got four choices. The plan. Rewrite every term as a power of x first.

Then the power rule, one term at a time.

Watch this part of the concept lesson

Read the rest of this scene

Split the fraction into two terms, and write the root as x to the one half. The x on the bottom is x to the first. So x cubed over x is x squared. In the second piece, the four stays, and one half minus one is negative one half. x greater than zero, for the root and the bottom.

No calculus yet! Now the power rule, term by term. Two x to the two minus one. Then the four stays in front, times negative one half, times x to the negative one half minus one. Negative four times negative one half is positive two.

Negative one half minus one is negative three halves. So f prime of x is two x, plus two x to the negative three halves. Plug in four. Two times four, plus two times four to the negative three halves. The negative flips it under one.

Take the root first: the square root of four is two. Two cubed is eight: one eighth. Two times one eighth is one fourth. So f prime of four is eight plus one fourth. That's thirty-three over four, choice D.

Rewrite as powers first, then use the rule. More roots and fractions to rewrite are in your workbook.

Common mistake: top prime over bottom prime

Back to example one. Look at choice A: forty-seven. Why is it sitting there? Here's the tempting move. Differentiate the top, differentiate the bottom, and divide.

The bottom gives one.

Watch this part of the concept lesson

Read the rest of this scene

At four: three times sixteen is forty-eight, and two times four to the negative one half is one. Forty-eight minus one: forty-seven. Choice A. But dividing derivatives isn't a rule. The real rule for a fraction comes in two point nine. So forty-seven is out.

Here, rewrite first. Then f prime of four is thirty-three over four.

Example 2: tangent lines

Example two is a cubic. Find f prime, the points with a horizontal tangent, the tangent line at zero, and the other x where the tangent line is parallel to it. The plan. The power rule, term by term. Then each tangent: the point first, from f, then the slope, from f prime. In part a, go term by term.

Three x squared.

Watch this part of the concept lesson

Read the rest of this scene

Three, times two x. Minus nine, times one. And the constant gives zero. Three x squared, plus six x, minus nine. Part b. Horizontal means slope zero, so f prime of x equals zero: three x squared plus six x minus nine equals zero.

Factor: three, times x plus three, times x minus one, equals zero. So x is negative three, or x is one. Now the heights, from f, not f prime. f prime would just give zero back. f of negative three: negative three cubed, plus three times negative three squared, minus nine times negative three, minus two.

Negative twenty-seven, plus twenty-seven, plus twenty-seven, minus two. Twenty-five. Then f of one: one, plus three, minus nine, minus two. Negative seven. So the points are negative three, twenty-five, and one, negative seven. That's two flat tangents.

Now the tangent line at zero is yours. Try parts c and d before I do them. Part c. The point first, from f. f of zero is negative two. Then the slope, from f prime.

Three times zero squared, plus six times zero, minus nine. Negative nine. The tangent line: y equals f of zero, plus f prime of zero, times x minus zero. Plug in negative two and negative nine. y equals negative two, minus nine x. Part d. Parallel means the same slope: negative nine.

So set f prime of x equal to negative nine. Three x squared plus six x minus nine equals negative nine. Add nine to both sides: three x squared plus six x equals zero. Don't divide by x. Factor out three x: three x, times x plus two, equals zero.

x equals zero is the point we were given. The other one is negative two: same slope, parallel tangent. Whether it's slope zero or the same slope, tangents like these are in your workbook.

Example 3: two constants where pieces meet

Here's the last one, example three: two pieces, two unknown constants. Find a and b so that f is differentiable at two, and justify. The plan. Two unknowns, so two conditions. The heights match, then the slopes match. Reason first.

f is differentiable at two, so f is continuous at two.

Watch this part of the concept lesson

Read the rest of this scene

We saw that in two point four. Why heights first? In two point four, each side used its own piece, and both used the same f of two. If the heights don't match, there's no slope to compare. Condition one, the heights.

a times two squared, plus one, equals b times two, minus three. Four a plus one equals two b minus three. Now the slopes, by today's rules. The left piece gives two a x. The right piece gives b.

Condition two. At two, two a times two equals b. So b equals four a. Put four a in for b. Four a plus one equals two times four a, minus three. That's eight a minus three.

Subtract four a, and add three, on both sides: four equals four a. So a is one. And b is four times a. So a is one, and b is four. Check. Heights: one times four plus one is five, and four times two minus three is five.

Slopes: two times one times two is four, and b is four. Same height, same slope. Match the heights, then the slopes. Two constants like these are in your workbook.

Worked examples

Example 1

Let f(x)=x3−4xx. What is the value of f′(4)?
  1. 47
  2. 7
  3. 12
  4. 334
Hint

Split the fraction into two powers of x first.

Answer and solution

Answer D. 334

  1. Type: rewrite, then the power rule. Method: divide each term by x; write the root as a power.
  2. f(x)=x3x−4x1/2x=x2−4x−1/2
  3. f′(x)=2x−4(−12)x−3/2=2x+2x−3/2
  4. f′(4)=8+243/2=8+28=334
  5. Answer D.

Example 2

Let f(x)=x3+3x2−9x−2.
(a) Find f′(x).
(b) Find the points with a horizontal tangent.
(c) Write the tangent line at x=0.
(d) Find the other x with a parallel tangent.
Hint

Horizontal means slope 0. Parallel means the same slope.

Answer and solution
  1. f′(x)=3x2+6x−9
  2. (−3,25) and (1,−7)
  3. y=−2−9x
  4. −2
  1. f′(x)=3x2+6x−9=3(x+3)(x−1)
  2. (b) f'(x) = 0 at x = -3 and x = 1. Heights: f(-3) = -27 + 27 + 27 - 2 = 25 and f(1) = 1 + 3 - 9 - 2 = -7. Points (-3, 25) and (1, -7).
  3. (c) f(0) = -2 and f'(0) = -9, so y = -2 - 9x.
  4. (d) Same slope -9: 3x^2 + 6x - 9 = -9 gives 3x(x + 2) = 0, so x = -2 (x = 0 is the given point).

Example 3

Let f(x)={ax2+1,x≤2bx−3,x>2, where a and b are constants.
Find a and b so that f is differentiable at x=2. Justify your answer.
Hint

Two unknowns need two conditions.

Answer and solution
  1. a=1
  2. b=4
  1. Type: two constants at a joint. Method: differentiable at x = 2 means continuous at x = 2 (heights match), and the slopes from both sides match.
  2. (i) heights: 4a+1=2b−3,(ii) slopes: 2a(2)=b
  3. Substitute b = 4a into (i): 4a + 1 = 8a - 3, so a = 1 and b = 4.
  4. Check: f(2) = 5 from both pieces, and both one-sided slopes are 4. With only (ii) the graph could jump at x = 2, and a jump is not differentiable.

Workbook

Problem 1

Let g(x)=5x23−8x+π2. (a) Find g′(x). (b) Find g′(8).
Hint

Rewrite as powers: x2/3 and x−1. π2 is a constant.

Answer and solution
  1. g′(x)=103x−1/3+8x−2
  2. 4324
  1. g(x)=5x2/3−8x−1+π2
  2. g′(x)=5⋅23x−1/3−8(−1)x−2+0=103x−1/3+8x−2
  3. (b) 8^(-1/3) = 1/2 and 8^(-2) = 1/64, so g'(8) = 10/6 + 8/64 = 5/3 + 1/8 = 43/24. The constant pi^2 has derivative 0.

Common mistake Differentiating π² as 2π, or -8/x as -8/x^2.

Watch the worked solution to Problem 1

Problem 2

Let f(x)=x4−4x3+10. (a) Find f′(x) and write it in factored form. (b) Find every point on the graph of f where the tangent line is horizontal.
Hint

Factor f′(x). Do not divide by x2.

Answer and solution
  1. f′(x)=4x3−12x2=4x2(x−3)
  2. (0,10) and (3,−17)
  1. f′(x)=4x3−12x2=4x2(x−3)
  2. (b) 4x^2(x - 3) = 0 at x = 0 and x = 3. Factor, do not divide by x^2: dividing loses x = 0.
  3. Heights: f(0) = 10 and f(3) = 81 - 108 + 10 = -17. Points (0, 10) and (3, -17).

Common mistake Dividing by x^2 and losing x = 0.

Watch the worked solution to Problem 2

Problem 3

The line y=8x−7 is tangent to the graph of f(x)=x2+bx+c at x=2. Find the constants b and c.
Hint

Match the slope and the height at x=2.

Answer and solution
  1. b=4
  2. c=−3
  1. A tangent line at x = 2 gives two facts: the slope f'(2) = 8 and the point f(2) = 8(2) - 7 = 9.
  2. f′(x)=2x+b,f′(2)=4+b=8⇒b=4
  3. f(2)=4+2b+c=9⇒12+c=9⇒c=−3

Common mistake Matching the slope but not the height.

Watch the worked solution to Problem 3

Problem 4

Let f(x)=ax3+4x, where a is a constant. The line tangent to the graph of f at x=1 is parallel to the line y=10x+3. What is the value of a?
  1. 9
  2. 6
  3. 2
  4. 103
Hint

Parallel lines have the same slope: f′(1)=10.

Answer and solution

Answer C. 2

  1. Parallel lines have the same slope, so f'(1) = 10.
  2. f′(x)=3ax2+4,f′(1)=3a+4=10⇒a=2
  3. Answer C.

Common mistake Forgetting the 4 from 4x in f'(1).

Watch the worked solution to Problem 4

Problem 5

Let f(x)={x3−x2+2x,x≤02x,0<x≤32x+1,x>3 At which values of x is f not differentiable?
  1. x=3 only
  2. x=0 only
  3. x=0 and x=3
  4. None; f is differentiable everywhere.
Hint

At each joint: heights first, then slopes.

Answer and solution

Answer A. x=3 only

  1. At x = 0: heights 0 and 0, one-sided slopes (3x^2 - 2x + 2 at 0) = 2 and 2. Both match, so f is differentiable at x = 0.
  2. At x = 3: heights 2(3) = 6 and 2(3) + 1 = 7. f is not continuous at x = 3, so it is not differentiable there, even though both slopes are 2.
  3. (B) thinks the curve-to-line change at 0 must be a corner. (C) thinks every joint breaks. (D) checks only the slopes at x = 3.

Common mistake Calling x = 0 not differentiable because the formula changes.

Watch the worked solution to Problem 5

Problem 6

The volume of a spherical balloon is V(r)=43πr3 cubic centimeters, where r is the radius in centimeters. What is the instantaneous rate of change of V with respect to r when r=6 centimeters?
  1. 288π cubic centimeters per centimeter
  2. 144π cubic centimeters per centimeter
  3. 48π cubic centimeters per centimeter
  4. 144 cubic centimeters per centimeter
Hint

Use the power rule on r3. Units: cubic centimeters per centimeter.

Answer and solution

Answer B. 144π cubic centimeters per centimeter

  1. V′(r)=43π⋅3r2=4πr2
  2. V′(6)=4π(36)=144π
  3. Units: cubic centimeters (units of V) per centimeter (units of r). Answer B.

Common mistake Using the formula for V instead of V'.

Watch the worked solution to Problem 6

Problem 7

The position of an object moving along a straight track is s(t)=t3−12t2+36t+1 meters, where t is the time in seconds, 0≤t≤8.
  1. Find s′(1). Using correct units, explain the meaning of s′(1) in the context of the problem.
  2. Find the two times t at which the rate of change of s is 0.
  3. Find the average rate of change of s over the interval between the two times in part (b). Indicate units of measure.
  4. The rate of change of s is 0 at both ends of that interval. Explain why the average rate of change over the interval is not 0.
Hint

Rate of change of s is s′(t). Average rate uses the two endpoints only.

Answer and solution
  1. s′(1)=15: at t=1 second, the position is increasing at 15 meters per second
  2. t=2 and t=6 seconds
  3. −8 meters per second
  4. the average rate of change is set by the change in position, s(6)−s(2)=1−33=−32; s′ is 0 only at the two instants t=2 and t=6, not in between (for example s′(4)=−12)
  1. s′(t)=3t2−24t+36=3(t−2)(t−6),s′(1)=3−24+36=15
  2. (a) At t = 1 second, the position is increasing at 15 meters per second. (b) s'(t) = 0 at t = 2 and t = 6.
  3. s(6)−s(2)6−2=1−334=−8
  4. (c) -8 meters per second. (d) The average rate of change is set by s(6) - s(2) = -32, the change over the whole interval. s' is 0 only at the two instants t = 2 and t = 6, not in between (for example s'(4) = 48 - 96 + 36 = -12).

Common mistake Thinking an average rate of change must be 0 because the end rates are 0.

Watch the worked solution to Problem 7

Problem 8

Let f(x)={x2+ax,x<1bx3+2,x≥1 where a and b are constants, and f is differentiable at x=1.
  1. Explain why limx→1−f(x) must equal f(1).
  2. Find the values of a and b. Show the work that leads to your answers.
  3. Write an equation of the line tangent to the graph of f at x=1.
Hint

Two equations: the heights match and the slopes match at x=1.

Answer and solution
  1. f is differentiable at x=1, so f is continuous at x=1; then limx→1f(x)=f(1), and so the left-hand limit equals f(1)
  2. a=52, b=32
  3. y=72+92(x−1)
  1. (a) Differentiable at x = 1 means continuous at x = 1, so the limit from the left equals f(1). With the formulas: 1 + a = b + 2.
  2. (b) The one-sided slopes match: the left piece has slope 2x + a, which is 2 + a at x = 1; the right piece has slope 3bx^2, which is 3b at x = 1. So 2 + a = 3b.
  3. 1+a=b+2and2+a=3b⇒3b−2+1=b+2⇒b=32,a=52
  4. (c) f(1) = 3/2 + 2 = 7/2 and f'(1) = 3b = 9/2, so y = 7/2 + (9/2)(x - 1).

Common mistake Writing only the slope equation; the heights must match too.

Watch the worked solution to Problem 8

Problem 9

Let f(x)=x2−4xx for x>0.
  1. Rewrite f(x) using powers of x, and find f′(x).
  2. Write an equation of the line tangent to the graph of f at x=4.
  3. Find the points where this tangent line crosses the x-axis and the y-axis.
Hint

Divide each term on top by x first. The derivative of a quotient is not (top)' over (bottom)'.

Answer and solution
  1. f(x)=x−4x−1/2, f′(x)=1+2x−3/2
  2. f(4)=2, f′(4)=54: y=2+54(x−4)
  3. x-axis at (125,0); y-axis at (0,−3)
  1. f(x)=x2x−4x1/2x=x−4x−1/2,f′(x)=1+2x−3/2
  2. f(4)=4−42=2,f′(4)=1+28=54,y=2+54(x−4)
  3. x-axis: 0 = 2 + (5/4)(x - 4) gives x - 4 = -8/5, so x = 12/5. y-axis: y = 2 + (5/4)(-4) = -3.

Common mistake Differentiating the top and the bottom separately (gives 7 at x = 4).

Watch the worked solution to Problem 9

Problem 10

The depth of water in a tank is D(t)={t24+2,0≤t≤43t−6,4<t≤8 centimeters, where t is the time in hours.
  1. Find the average rate of change of D over the interval 0≤t≤8. Indicate units of measure.
  2. Find D′(2). Using correct units, explain its meaning in the context of the problem.
  3. Is D continuous at t=4? Is D differentiable at t=4? Justify your answers.
  4. Find D′(6). Indicate units of measure.
Hint

At the joint, check the heights first, then the slopes. Matching heights alone is not enough.

Answer and solution
  1. D(8)−D(0)8−0=18−28=2 centimeters per hour
  2. D′(2)=1: at t=2 hours, the depth is increasing at 1 centimeter per hour
  3. continuous (6=6); not differentiable (slope 2 from the left, 3 from the right)
  4. D′(6)=3 centimeters per hour
  1. D(8)−D(0)8−0=18−28=2cm/h,D′(2)=22=1cm/h
  2. (b) At t = 2 hours, the depth of the water is increasing at 1 centimeter per hour.
  3. (c) Heights at t = 4: 16/4 + 2 = 6 and 3(4) - 6 = 6, so D is continuous at 4. Slopes: t/2 gives 2 from the left, the line gives 3 from the right. They differ, so D is not differentiable at 4.
  4. (d) D'(6) = 3 centimeters per hour.

Common mistake Continuous at t = 4, so differentiable: the slopes 2 and 3 differ.

Watch the worked solution to Problem 10