If we used the limit definition of the derivative to find the derivative of x5, we'd have to expand (x+h)5. That takes a lot of algebra. Instead, let's look for a pattern in the derivatives we already know: x2 gives 2x,x1 gives −x21,x gives 2x1, and from the definition, x3 gives 3x2. Written as powers of x, they line up like this.
Look at what happens to the exponent in each row. If it follows a rule, we can use that rule on x5.
Find the derivative of x5 from the pattern in powers of x
dxdx5=?
Text solution
x3 from the definitionWhen we expand (x+h)3, the x3 terms cancel. After dividing by h, every term with an h goes to 0.
dxdx3=h→0lim(3x2+3xh+h2)=3x2
The patternIn every row, the old exponent comes down in front, and the new exponent is 1 less.
x−1→−1x−1−1=−x−2
x21→21x21−1=21x−21
x5, and x itselfThe 5 comes down, and the new exponent is 4. For x=x1, we get x0=1, which is the slope of the line y=x.
dxdx5=5x5−1=5x4
dxdx1=1⋅x0=1
So for any constant exponent n, the derivative of xn is nxn−1. That one formula gives all four derivatives we found using limits, whether n is a whole number like 3, a negative number like −1, or a fraction like 21.
dxdxn=nxn−1
2
Multiplying by a constant and adding a constant
By the power rule, the derivative of x2 is 2x. But what happens if we multiply by 3, or add 4?
Find the derivatives of 3x2 and x2+4
Text solution
Multiply by 3Every height of y=x2 is multiplied by 3, so every rise along a tangent line is too, while the run stays the same. At x=1, the slope goes from 2 to 3⋅2=6.
Add 4The graph and its tangent lines shift up by 4, but no rise or run changes, so the slopes stay the same.
A constant on its owny=4 is a horizontal line, with slope 0. So is y=π2, because π2 has no x in it. But in πx and ax2, the fixed numbers multiply x and x2, so they stay in front.
dxd4=0
dxdπ2=0
dxd(πx)=π
dxd(ax2)=2ax
Here are the two graphs at x=1. Multiplying by 3 makes the rise 3 times as tall.
dxd(3x2)=3⋅2x=6x
Adding 4 lifts the tangent line without tilting it.
dxd(x2+4)=2x
In general, multiplying any function by a fixed number c multiplies its derivative by c, and the derivative of a constant by itself is 0.
dxd(cf(x))dxdc=cf′(x)=0
3
Adding and subtracting terms
We know how to differentiate each power of x on its own, and we know that a constant factor stays in front. But what happens when several terms are added and subtracted, like in 3x4−5x2+7x−2? Can we differentiate each term and add the results?
Differentiate 3x4−5x2+7x−2, and find h′(1) for h(x)=2f(x)+g(x)−4
dxd(3x4−5x2+7x−2)=?
h(x)f′(1)h′(1)=2f(x)+g(x)−4=3,g′(1)=5=?
Text solution
The rises addFrom x=1 to x=2, the rise of x2+4x is the rise of x2 plus the rise of 4x. That happens over any run, so the secant slopes add, and so do the tangent slopes.
x24xx2+4x:4−1=3:8−4=4:12−5=7=3+4
Split the difference quotientGroup the f terms and the g terms. By the sum law for limits, the two fractions approach f′(x) and g′(x). For f−g, we write it as f+(−1)g.
Term by termFor 7x, the exponent is 1, so its derivative is 7x0=7. The constant −2 has derivative 0.
dxd(3x4−5x2+7x−2)=3⋅4x3−5⋅2x+7x0−0=12x3−10x+7
Only the slopes matterWith f′(1)=3 and g′(1)=5, the heights f(1) and g(1) never come in.
h′(1)=2f′(1)+g′(1)−0=2⋅3+5=11
So the derivative of a sum is the sum of the derivatives, and the same goes for a difference. The proof never used formulas for f and g, so these rules work for any functions, even when we only know their slopes at a point.
We know how to differentiate xn by bringing n down in front and subtracting 1 from the power. But what if x is in the denominator, or inside a root? If we rewrite each term as a number times a power of x first, we can use the power rule. These two facts from algebra do the rewriting.
x−n=xn1
nxm=xnm
Differentiate x31,2x23,x6, and 3x2
dxdx31dxdx6=?=?dxd2x23dxd3x2=?=?
Text solution
x31It's x−3. Subtracting 1 from −3 gives −4, not −2.
dxdx−3=−3x−3−1=−3x−4=−x43
2x23The exponent 2 is only on the x, so the 2 stays in the coefficient 23. If the whole 2x were squared, (2x)2 would be 4x2.
2x23=23x−2
→−3x−3=−x33
x6We write x as x21, and moving it to the numerator changes the sign of its exponent.
x6=6x−21
→−3x−23=−x233
3x2The root goes on the bottom of the exponent, so it's x32, not x23. At x=8, the cube root of 8 is 2.
dxdx32=32x−31=33x2
x=8:3382=32⋅21=31
Writing the derivative of x31 as −x43 or −3x−4 gives the same function. The fraction form without negative exponents makes it easier to plug in a number.
How can we write these fractions and roots as powers before differentiating?
Rewriting for the power rule
5
Rewriting as a sum of powers
Now let's find the derivative of a fraction like xx2+3x−1. You might wonder if we can just take the derivative of the top and divide by the derivative of the bottom. Let's test that idea where we already know the answer, and test multiplying derivatives too.
xx2=x
dxdx=1
(x)′(x2)′=12x=2x
x⋅x=x2
dxdx2=2x
(x)′⋅(x)′=1⋅1=1
So we can't differentiate the pieces when terms are divided or multiplied. Instead, we rewrite the expression as a sum of powers of x first, and then use the power rule term by term.
Differentiate xx2+3x−1,(2x+1)2, and x(x−3)
dxdxx2+3x−1dxd(2x+1)2dxdx(x−3)=?=?=?
Text solution
Divide every term by xThe bottom is a single x, so we divide each term of the top by it, not just the x2.
xx2+3x−1=x+3−x−1
→1+x21
Multiply out (2x+1)2Bringing down the exponent to get 2(2x+1) treats 2x+1 like x, and gives 4x+2 instead of 8x+4.
(2x+1)2=4x2+4x+1
→8x+4
Multiply x throughWhen we multiply powers of x, we add the exponents, so x21⋅x1 is x23.
x(x−3)=x23−3x21
→23x21−23x−21
If the bottom has more than one term, like x+1, we can't split the fraction into a sum of powers this way, because x+11 is not x1+1. Fractions like that need the quotient rule, which comes in the next lesson.
6
Tangent lines and points with a given slope
Now let's use the derivative to find the tangent line to f(x)=x3−3x at x=2, and then find the points where the tangent line has a chosen slope. To write down the equation of any line, we need a point and a slope. The tangent line at x=a passes through (a,f(a)) and has slope f′(a), so point-slope form gives its equation.
y−f(a)=f′(a)(x−a)
Find the tangent line and normal line to f(x)=x3−3x at x=2, and find where the tangent has slope 0 or is parallel to y=9x
Text solution
The tangent at x=2The point's y-coordinate is f(2), and the slope is the value f′(2), not the formula 3x2−3.
f(2)=8−6=2
f′(2)=12−3=9
y−2=9(x−2)→y=9x−16
The normal lineIt's perpendicular to the tangent at (2,2), and perpendicular slopes are negative reciprocals, so its slope is −91.
Horizontal tangentsSet f′(x)=0 to get the x-values, then plug them into f(x), not f′(x), for the y-coordinates.
3x2−3=0→x=±1
(1,−2),(−1,2)
Parallel to y=9xParallel lines have the same slope, so set f′(x)=9. Besides the point (2,2) we started with, there's a second one.
3x2−3=9→x=±2
f(−2)=−8+6=−2
Here are the tangent line and the normal line at (2,2).
y−2=−91(x−2)
The tangent line is horizontal at (1,−2) and (−1,2), and it has slope 9 at (2,2) and (−2,−2).
Setting f′(x)=m gives the x-values where the tangent line has slope m. Here f′(x)=3x2−3, so setting it equal to m gives a quadratic with two, one, or no solutions depending on m.
At how many points does the tangent line have the slope you choose?
Choosing a tangent slope
Summary
The power rule
dxdxn=nxn−1
x5→5x4,x→1
For any constant power n, bring the exponent down in front and subtract 1 from the power. The rule works whether n is positive, negative, or a fraction. For x=x1, bringing down 1 leaves x0, which is 1.
Constants, sums, and differences
(cf(x))′(c)′=cf′(x)=0,(π2)′=0
(3x4−5x2+7x−2)′=12x3−10x+7
(2f(x)+g(x)−4)′=2f′(x)+g′(x)
A constant multiplier stays in front of the derivative, while a constant on its own has slope 0, so its derivative is 0. A fixed number written with symbols, like π2, has no x in it, so its derivative is 0, not 2π.
Differentiate polynomials and sums term by term, keeping the signs. To find the derivative of a combination like 2f(x)+g(x)−4, use the slopes f′ and g′, not the values of f and g.
Rewriting roots and fractions
x31=x−3→−3x−4
x=x21→2x1
3x2=x32
2x23=23x−2
Before differentiating, rewrite each term as a number times a power of x. Moving a power out of the denominator changes the sign of its exponent, and subtracting 1 makes a negative exponent more negative, like −3−1=−4.
For a root nxm, the root n goes in the denominator of the exponent, and the power m goes in the numerator. In 2x23, the exponent 2 is only on x, so the coefficient is 23.
Rewriting products and quotients
xx2+3x−1=x+3−x−1
(2x+1)2=4x2+4x+1
Don't differentiate the parts of a product or fraction separately. Dividing the derivatives of the top and bottom of xx2 gives 12x=2x, but the function is x, whose derivative is 1.
When the bottom is a single term, divide every term on the top by it to get a sum of powers of x. If the bottom has more than one term, like x+1, you can't split the fraction into a sum of powers this way. For products like (2x+1)2 or x(x−3), multiply them out first, then differentiate term by term.
Tangent lines and points with a given slope
y−f(a)=f′(a)(x−a),f′(x)=m
The tangent line at x=a passes through (a,f(a)) with slope f′(a). The slope is the number f′(a), not the formula f′(x).
To find where the tangent line has slope m, solve f′(x)=m for x. For a horizontal tangent, set the slope to 0. Once you have each x, plug it back into the original function f(x) to get the point on the curve, not into f′(x).
7
Practice
Enter exact values as fractions, not decimals. Answers with negative exponents, like x−2, or as fractions, like x21, are both accepted.
1
Differentiate f(x)=4x5−3x3+2x−π2.
π2 is a constant number, with no x in it. What is the derivative of any constant?
If you got 20x4−9x2+2−2π Check the derivative of π2.π is a constant number, not a variable like x, so we use the constant rule for π2.
Differentiate term by term using the power rule, and notice that π2 is a constant, so its derivative is 0.
f′(x)=4⋅5x4−3⋅3x2+2−0=20x4−9x2+2
2
Let f(x)=3x2+x4. Find f′(8).
Write each term as a power of x first. What are the exponents for 3x2 and x4?
To evaluate 8−31, rewrite it as 381. What is 38?
If you got −311 Check the exponent on the second term after differentiating. Subtracting 1 from −1 gives −2, not 0.If you got 32−161 Check the fractional exponent for 3x2. In nxm=xnm, the root 3 goes in the denominator of the exponent.
Rewrite each termRewrite the root and the fraction as powers of x so we can use the power rule.
f(x)=x32+4x−1
DifferentiateUse the power rule on each term, subtracting 1 from each exponent.
f′(x)=32x−31−4x−2
Plug in 8Plug in x=8, rewrite the negative powers as roots and fractions, and subtract.
f′(8)=32⋅381−824=32⋅21−644=31−161=4813
3
Let y=x22x3−4x+1. Find y′.
The denominator has only one term, x2. Divide each term of the numerator by x2 before differentiating.
If you got 3x−x2 Don't differentiate the top and bottom separately. Split the fraction into separate terms first.
Split the fractionDivide each term in the numerator by x2 and rewrite the terms with negative exponents.
y=x22x3−x24x+x21=2x−4x−1+x−2
DifferentiateDifferentiate term by term using the power rule.
y′=2+4x−2−2x−3=2+x24−x32
4
Let f(x)=x(x−3). Find f′(4).
Rewrite x as x21 and distribute it across (x−3). What power do you get when you multiply x21⋅x?
If you got 41 Don't multiply the derivative of x by the derivative of x−3. Distribute x into the parentheses first.
DistributeRewrite x as x21 and distribute it into the parentheses, adding exponents.
f(x)=x21⋅x−3x21=x23−3x21
DifferentiateUse the power rule on each term.
f′(x)=23x21−23x−21
Plug in 4Plug in x=4 and evaluate each power.
f′(4)=23⋅2−23⋅21=3−43=49
5
Let f(x)=x+x8. At x=4, find (a) the equation of the tangent line and (b) the equation of the normal line.
Find the point on the curve by evaluating f(4), and find the slope of the tangent line by evaluating f′(4).
The normal line is perpendicular to the tangent line. What is the negative reciprocal of −41?
If you got y=43x+1 Check the sign when differentiating 8x−1. Bringing down the negative exponent gives −8x−2.
If you got y−4=(2x1−x28)(x−4) The slope of a tangent line must be a constant number, not a function of x. Plug in x=4 to get the slope f′(4).
Find the pointPlug x=4 into f(x) to get the y-coordinate of the point.
f(4)=4+48=2+2=4
Find the derivativeRewrite the terms as powers of x and differentiate.
f(x)=x21+8x−1,f′(x)=2x1−x28
Find the tangent slopePlug x=4 into f′(x) to find the slope of the tangent line.
f′(4)=41−168=41−21=−41
Write the tangent equationUse point-slope form with the point (4,4) and slope −41.
(a)y−4=−41(x−4)→y=−4x+5
Write the normal equationThe normal line is perpendicular to the tangent line, so its slope is the negative reciprocal of −41, which is 4.
(b)y−4=4(x−4)→y=4x−12
6
A particle moves along a line with position s(t)=t3−6t2+9t. At what times is the particle at rest?
At rest means the particle isn't moving. Does that mean the position s(t) is 0, or the velocity s′(t) is 0?
If you got t=0 and t=3 That gives the times when position is 0. At rest means velocity is 0, so set s′(t)=0.
Find the velocityThe particle is at rest when its velocity is 0, so find v(t)=s′(t).
v(t)=s′(t)=3t2−12t+9
Set velocity to zeroSet v(t)=0, factor out 3, and factor the quadratic to find the times.
3t2−12t+9=3(t2−4t+3)=3(t−1)(t−3)=0→t=1,t=3
7
At which points on the curve y=x3+3x2 is the tangent line parallel to the line y=9x−2?
The line y=9x−2 has slope 9. Parallel lines have equal slopes, so what must y′ equal?
After finding x=1 and x=−3, do you plug these into x3+3x2 or into 3x2+6x to find the y-coordinates of the points?
If you got x=1 and x=−3 The problem asks for points, so find each y-coordinate by plugging the x-values back into the original curve.
If you got (1,9) and (−3,9) Plug each x-value into the original curve y=x3+3x2 to find the y-coordinates, not into y′.
Find the derivativeParallel lines have the same slope, so find y′ and set it equal to the slope of y=9x−2, which is 9.
y′=3x2+6x
Solve for xSet y′=9, move all terms to one side, and factor to find the x-values.
3x2+6x=9→x2+2x−3=0→(x+3)(x−1)=0→x=1,x=−3
Find the pointsPlug each x-value back into the original curve y=x3+3x2 to get the y-coordinates.
x=1:x=−3:y=1+3=4y=−27+27=0
8
f(2)=5,f′(2)=−1,g(2)=3 and g′(2)=4. Let h(x)=3f(x)−g(x)+7. Find the equation of the tangent line to h at x=2.
To find the slope of the tangent line to h, do you use f′(2) and g′(2), or f(2) and g(2)?
Plug x=2 into h(x) using f(2) and g(2) to find the y-coordinate of the point.
If you got y−19=12(x−2) Check the slope. The slope comes from h′(2), which uses f′(2) and g′(2), not the function values f(2) and g(2).
If you got y=19 Check the derivative of the constant 7. The derivative of 7 is 0, not 7.
Find the slopeDifferentiate h(x) term by term. The derivative of the constant 7 is 0. Then plug in the given derivative values at x=2.
h′(x)h′(2)=3f′(x)−g′(x)=3(−1)−4=−7
Find the pointPlug x=2 into h(x) using the given function values to get the y-coordinate.
h(2)=3⋅5−3+7=19
Write the tangent equationUse point-slope form with the point (2,19) and slope −7.