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.
The power rule: for every real number . Bring the exponent down, then subtract .
Rewrite first: , , and divide each term by a single power of .
A constant has derivative . A constant multiple stays in front: .
Sums and differences go term by term: . So every polynomial can be differentiated.
A horizontal tangent line is at an where .
At a joint of a piecewise function made of polynomials, differentiable means the heights match (continuity) and the one-sided slopes match.
Horizontal tangents are where · For , at and . The tangent lines there are horizontal: and .
Why the power rule works
Rewrite before the power rule
Common mistake
Correction , so the derivative is .
A constant alone gives 0
Common mistake
Correction is a number, so its derivative is .
Match the height and the slope
Common mistake At both pieces and have slope , so is differentiable at .
Correction The heights are and : is not continuous at , 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.
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.
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.
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.
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.
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.
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.
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.
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.
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, 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.
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 . What is the value of ?
Hint
Split the fraction into two powers of x first.
Answer and solution
Answer D.
Type: rewrite, then the power rule. Method: divide each term by x; write the root as a power.
Answer D.
Example 2
Let . (a) Find . (b) Find the points with a horizontal tangent. (c) Write the tangent line at . (d) Find the other with a parallel tangent.
Hint
Horizontal means slope 0. Parallel means the same slope.
Answer and solution
and
(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).
(c) f(0) = -2 and f'(0) = -9, so y = -2 - 9x.
(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 , where and are constants. Find and so that is differentiable at . Justify your answer.
Hint
Two unknowns need two conditions.
Answer and solution
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.
Substitute b = 4a into (i): 4a + 1 = 8a - 3, so a = 1 and b = 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.
The volume of a spherical balloon is cubic centimeters, where is the radius in centimeters. What is the instantaneous rate of change of with respect to when centimeters?
cubic centimeters per centimeter
cubic centimeters per centimeter
cubic centimeters per centimeter
cubic centimeters per centimeter
Hint
Use the power rule on . Units: cubic centimeters per centimeter.
Answer and solution
Answer B. cubic centimeters per centimeter
Units: cubic centimeters (units of V) per centimeter (units of r). Answer B.
Common mistake Using the formula for V instead of V'.
The position of an object moving along a straight track is meters, where is the time in seconds, .
Find . Using correct units, explain the meaning of in the context of the problem.
Find the two times at which the rate of change of is .
Find the average rate of change of over the interval between the two times in part (b). Indicate units of measure.
The rate of change of is at both ends of that interval. Explain why the average rate of change over the interval is not .
Hint
Rate of change of is . Average rate uses the two endpoints only.
Answer and solution
: at second, the position is increasing at meters per second
and seconds
meters per second
the average rate of change is set by the change in position, ; is only at the two instants and , not in between (for example )
(a) At t = 1 second, the position is increasing at 15 meters per second. (b) s'(t) = 0 at t = 2 and t = 6.
(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.
Let where and are constants, and is differentiable at .
Explain why must equal .
Find the values of and . Show the work that leads to your answers.
Write an equation of the line tangent to the graph of at .
Hint
Two equations: the heights match and the slopes match at .
Answer and solution
is differentiable at , so is continuous at ; then , and so the left-hand limit equals
,
(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.
(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.
(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.
The depth of water in a tank is centimeters, where is the time in hours.
Find the average rate of change of over the interval . Indicate units of measure.
Find . Using correct units, explain its meaning in the context of the problem.
Is continuous at ? Is differentiable at ? Justify your answers.
Find . Indicate units of measure.
Hint
At the joint, check the heights first, then the slopes. Matching heights alone is not enough.
Answer and solution
centimeters per hour
: at hours, the depth is increasing at centimeter per hour
continuous (); not differentiable (slope from the left, from the right)
centimeters per hour
(b) At t = 2 hours, the depth of the water is increasing at 1 centimeter per hour.
(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.
(d) D'(6) = 3 centimeters per hour.
Common mistake Continuous at t = 4, so differentiable: the slopes 2 and 3 differ.