← Return to lesson

Class materials · 2.5–2.6

The Power Rule and the Sum Rules

Lecture transcript

0:00

Last time ended on a promise: two point five, the power rule. Today we keep it. In two point four, we hunted for places where f prime breaks. Today f prime exists, and we want it fast. So here's a question. What's the slope of x to the tenth, at x equals one? By the definition, you'd multiply out one plus h, to the tenth. That's eleven terms. Be honest: how badly do you not want to do that?

0:33

The same definition has a second form: the limit, as x goes to a, of f of x minus f of a, over x minus a. We used it in two point four, too. With this form, we don't expand anything. We factor the top. By the end, x to the tenth takes one line, and you'll see why that line works. Start with x squared. The limit, as x goes to a, of x squared minus a squared, over x minus a.

1:05

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. 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.

1:35

Cancel x minus a. Let x go to a. Each of the three terms becomes a squared. Three a squared. 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.

2:06

x to the fourth minus a to the fourth is x squared minus a squared, times x squared plus a squared. 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.

2:39

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.

3:13

The guess was right. That's the power rule we were promised. 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. One line, no eleven terms.

3:45

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.

4:16

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. The rule only sees x to a power.

4:49

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. A fraction over a single x: split it, term by term. x cubed over x is x squared, three minus one.

5:21

One over x is x to the negative one. Now every piece is a power of x, ready for the rule. 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. Any constant alone: its derivative is zero.

5:52

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.

6:25

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 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.

6:59

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. 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.

7:31

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.

8:05

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.

8:37

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. Can we stop there? No. The V in two point four had matching heights too, and it still had a corner.

9:08

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.

9:41

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. 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.

10:14

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.

10:47

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.

11:19

Rewrite as powers first, then use the rule. More roots and fractions to rewrite are in your workbook. 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. At four: three times sixteen is forty-eight, and two times four to the negative one half is one.

11:50

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 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.

12:23

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. 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.

12:59

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.

13:34

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.

14:04

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.

14:37

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.

15:10

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. 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.

15:45

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.

16:18

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.

16:52

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. So let's go back to the question from the start. x to the tenth, at one: ten, in one line. No eleven terms. Why does it work? Every term became a to the n minus one, and the n in front counts them.

17:23

Any real power, but only where it's defined: x greater than zero for root x, x not zero for one over x. The derivative of a constant by itself is zero. But a constant multiplied in front stays: the derivative of the whole thing, c times f, is c times f prime. Sums and differences go term by term, sigma and all. Parallel tangents: f prime equals g prime. Where two pieces meet, match the heights, then the slopes.

17:57

Roots, fractions, tangents, and two-constant joints are in your workbook, with the solutions on video. If an exponent goes wrong, show me in the comments. Next up: two point seven, the derivatives of sine x, cosine x, e to the x, and natural log of x. See you there.