To write the equation of a line, we need a point and a slope. For the tangent line to y=x2 at x=3, the point is easy. When x is 3,y is 32=9, so the point is (3,9). For the slope, we take a second point on the curve, h away in x, and find the slope of the secant line through both points.
hf(3+h)−f(3)=h(3+h)2−9
As h approaches 0, the second point slides along the curve toward (3,9), and the secant slope approaches the tangent slope. We call that limit the derivative of f at a, written f′(a) and read "f prime of a". It's also the instantaneous rate of change of f at a.
The derivative at a
f′(a)=h→0limhf(a+h)−f(a)
Find the tangent line to y=x2 at x=3
Text solution
Expand the topPlugging in h=0 gives 00, so we expand first. Remember that (3+h)2 is 9+6h+h2, not 9+h2.
h(3+h)2−9=h6h+h2=6+h
Let h go to 0The secant slope 6+h approaches 6, the same 6 m/s we found for the cart with s(t)=t2 at t=3.
f′(3)=h→0lim(6+h)=6
Point-slope formThe point is (3,9) and the slope is f′(3)=6.
y=9+6(x−3)
The height f(a) comes straight from the function, and the slope f′(a) comes from the limit. So for any curve y=f(x), the tangent line at (a,f(a)) is
Tangent line at a
y=f(a)+f′(a)(x−a)
2
The derivative as a function
The slope of y=x2 at x=3 is 6. For the slope at x=1, or at x=−2, we'd have to do the whole calculation again. So instead of picking a number right away, let's leave it as x.
Find the derivative of y=x2 at any x
Text solution
The same algebra with xReplace 3 with x. When we expand the top, the x2 terms cancel.
h(x+h)2−x2=h2xh+h2=2x+h
Let h go to 0x stays fixed while h goes to 0, so we get one formula for the slope at every x.
h→0lim(2x+h)=2x
Check a few slopesAt x=3 it gives the 6 we found. At the origin the tangent line is horizontal, and at x=−1 the curve is going down.
f′(3)=6
f′(0)=0
f′(−1)=−2
This slope formula is a new function of x, called the derivative, and we write it as f′(x). In general, f′(x) gives the slope of the tangent line to y=f(x) at x.
f′(x)=h→0limhf(x+h)−f(x)
We also write the derivative as y′, as dxdy, read "dee y dee x", or as dxd(x2), which means the derivative of x2 with respect to x.dxdy looks like a fraction because it comes from a small change in y over a small change in x, like rise over run.
y=x2:f′(x)=y′=dxdy=dxd(x2)=2x
y=x2:f′(x)=y′=dxdy=dxd(x2)=2x
The same definition works for a function with more than one term, like f(x)=x2−4x. What needs care is writing f(x+h) and subtracting all of f(x).
Find the derivative of f(x)=x2−4x from the definition
f(x)=x2−4x
f′(x)=?
Text solution
Replace every x with x+hWriting x2−4x+h would only add h to the output, without changing the input.
f(x+h)=(x+h)2−4(x+h)
Subtract all of f(x)With parentheses around x2−4x, the x2 and −4x cancel. Every term without an h has to cancel, because at h=0 the top is f(x)−f(x)=0.
f(x+h)−f(x)=2xh+h2−4h
Divide by h and let h go to 0At x=2, the slope is 0, right at the vertex (2,−4).
h→0lim(2x+h−4)=2x−4
f′(2)=0
3
Sketching the derivative from a graph
For y=x2, we found f′(x)=2x, so the graph of f′ is the line y=2x. But what if we only have the graph of f, and no formula at all? The height of the graph of f′ at any x is the slope of the tangent line to f at that x, so we read the slopes off the graph.
Sketch the graph of f′ from the graph of f
Text solution
Horizontal tangents give the zerosAt the local maximum x=−1 and the local minimum x=1, the tangent line is horizontal.
f′(−1)=0
f′(1)=0
Increasing or decreasing gives the signTo the left of x=−1 and to the right of x=1,f is increasing. Between them, f is decreasing.
x<−1 or x>1:f′(x)>0
−1<x<1:f′(x)<0
The steepest point gives the lowest pointf is decreasing fastest at x=0, so f′ is lowest there. Notice that f(0)=0, but f′(0) is negative. The zeros of f′ are where the slope of f is 0, not where f crosses the x-axis.
How can we use the tangent slopes to draw the graph of the derivative?
Drawing the graph of the derivative from slopes
4
Derivatives of x1 and x
For every function, setting h=0 in the definition of the derivative gives 0f(x)−f(x), which is 00, because the two points on the curve become the same point. So we rewrite the fraction until the h in the denominator cancels. For a polynomial, expanding does it. For x1 and x, there's nothing to expand, so we need different algebra.
A common denominator for x1
For f(x)=x1, replacing x with x+h gives f(x+h)=x+h1, not x1+h. So the top of the fraction is a difference of two fractions.
Find the derivative of f(x)=x1 from the definition of the derivative
f(x)=x1
f′(x)=?
Text solution
Combine over x(x+h)Subtracting the numerators gives x−(x+h)=−h. Leave x(x+h) factored so the h can cancel.
hx+h1−x1=x(x+h)−h⋅h1=x(x+h)−1
Let h go to 0At x=2, this gives −41, the slope we found earlier for x1 at 2.
h→0limx(x+h)−1=−x21
f′(2)=−221=−41
Multiplying by the conjugate for x
For x, the top is x+h−x. There are no fractions to combine, and expanding does nothing. Remember from limits that (a−b)(a+b)=a2−b2. Multiplying a difference of square roots by its conjugate squares each root, and that gets rid of the square roots.
(x+h−x)(x+h+x)=(x+h)−x
(x+h−x)(x+h+x)=(x+h)−x
Find the derivative of f(x)=x from the definition of the derivative
f(x)=x
f′(x)=?
Text solution
Multiply by the conjugateMultiply the top and bottom by x+h+x. The top becomes (x+h)−x=h. Leave the bottom factored so the h cancels.
hx+h−x=h(x+h+x)h
=x+h+x1
Let h go to 0At x=4, this gives 41, the same slope we found earlier for x.
h→0limx+h+x1=2x1
f′(4)=241=41
5
Another way to write the derivative
When we found the slope of y=x2 at (3,9), we called the second x-coordinate 3+h. Let's just call it x instead. Then the rise is f(x)−f(3) and the run is x−3, which is our old h. So letting h go to 0 is the exact same thing as letting x approach 3, and that gives us another form for the derivative at a number a.
The h form
f′(a)=h→0limhf(a+h)−f(a)
The x form
f′(a)=x→alimx−af(x)−f(a)
Both forms are the same limit. So why would we want the x form? Let's test it on y=x2 at 3, then use both forms to find f′(2) for f(x)=x3.
Compare the two forms of the derivative for y=x2 at 3 and y=x3 at 2
Text solution
The x form for x2 at 3Plugging in 3 gives 00, so we factor x2−9 and cancel x−3. We get the same slope, 6.
x−3x2−9=x−3(x−3)(x+3)=x+3→6
The x form for x3 at 2Here f(2)=8, and the difference of cubes factors the top.
x−2x3−8=x−2(x−2)(x2+2x+4)=x2+2x+4
x→2lim(x2+2x+4)=4+4+4=12
The h form for x3 at 2Here we have to expand (2+h)3 before anything cancels.
h(2+h)3−8=h12h+6h2+h3=12+6h+h2→12
Summary
The derivative at a point
The h form
f′(a)=h→0limhf(a+h)−f(a)
The x form
f′(a)=x→alimx−af(x)−f(a)
The derivative f′(a) is the slope of the tangent line to y=f(x) at x=a. We find it by taking the limit of secant slopes as the second point approaches (a,f(a)). In the h form, the second point has x=a+h, and the run is h. Writing the second point as (x,f(x)) makes the run x−a, which is the same as h, so letting x approach a is the exact same limit.
Setting up f(x+h)−f(x)
f(x)=x2−4x:f(x+h)=(x+h)2−4(x+h)
f(x+h)−f(x)=(x2+2xh+h2−4x−4h)−(x2−4x)=2xh+h2−4h
f(x+h)−f(x)=(x2+2xh+h2−4x−4h)−(x2−4x)=2xh+h2−4h
To find f(x+h), replace every x in the formula with x+h. When subtracting f(x), put parentheses around the entire formula for f(x) so the minus sign applies to every term. Setting h=0 gives f(x)−f(x)=0, so every term without an h cancels.
Canceling h from the denominator
Polynomial
h(x+h)2−x2=h2xh+h2
Fraction
x+h1−x1=x(x+h)x−(x+h)=x(x+h)−h
Square roots
hx+h−x⋅x+h+xx+h+x=h(x+h+x)(x+h)−x
Square roots
hx+h−x⋅x+h+xx+h+x=h(x+h+x)(x+h)−x
Setting h=0 gives 00. For a polynomial, expand the numerator and factor out h. For a fraction, combine terms over a common denominator. For a difference of square roots, multiply the numerator and denominator by the conjugate, and leave the denominator factored so the h can cancel. Once h cancels, let h→0.
The derivative as a function
f′(x)=y′=dxdy
dxd(x2)=2x
f′(3)=6
The derivative f′(x) gives the slope of the tangent line to y=f(x) at any input x. We write y′,dxdy, or dxdf(x) for the same derivative function. dxd(x2)=2x says the derivative function is 2x, so at x=3 the tangent slope is 2(3)=6.
The equation of the tangent line
y=f(a)+f′(a)(x−a)
To write the equation of the tangent line at x=a, use the function to get the point (a,f(a)) and the derivative to get the slope f′(a).
Sketching f′ from the graph of f
The height of f′ at any x is the slope of the tangent line to f at that x. Horizontal tangents on f have slope 0, so they give the zeros of f′. Where the tangent slope is negative, f′ is below the x-axis, and where the tangent slope is positive, f′ is above the x-axis. A zero of f, like f(0)=0, does not mean f′(0)=0. At x=0, the tangent line slopes down most steeply, so f′(0) is the lowest value of f′.
6
Practice
Enter exact values and simplified expressions.
1
Let f(x)=3x2−5x. Use the definition of the derivative to find f′(x).
Once you expand f(x+h)−f(x), does every term without an h cancel?
If you got −5 When expanding 3(x+h)2, don't forget the middle term 6xh.
Replace every x with x+h and expand.
f(x+h)=3(x+h)2−5(x+h)=3x2+6xh+3h2−5x−5h
Subtract f(x), keeping it in brackets so the minus sign applies to both terms.
The h cancels out, so take the limit as h goes to 0.
f′(x)=h→0lim2x+2h−1+2x−12=22x−12=2x−11
5
The graph of f is shown. Which graph is the graph of f′?
Where does f have horizontal tangents? Between those points, is the slope of f positive or negative?
If you got (B) Check the zeros of f′.f′ is 0 where the tangent line to f is horizontal, not where f(x)=0.
If you got (C) Check the sign of the slope between x=0 and x=2. The graph of f is increasing there, so f′ must be positive.
The tangent line to f is horizontal at the local minimum (0,0) and the local maximum (2,4), so f′ has zeros at x=0 and x=2.
tangent slope 0 at x=0,x=2→f′(0)=0,f′(2)=0
Between 0 and 2,f is increasing, so f′ is positive. Outside that interval, f is decreasing, so f′ is negative.
0<x<2:f′(x)>0,x<0 or x>2:f′(x)<0→(A)
6
Let f(x)=x1. Use the definition of the derivative to find f′(x).Challenge
Write x+h1−x1 over the common denominator xx+h. What is the numerator?
If you got 2xx1 Check the order in the numerator. Subtracting x1 from x+h1 leaves x−x+h on top, which gives −h after multiplying by the conjugate.
Combine the fractionsSubtract the two fractions using the common denominator xx+h.
x+h1−x1=xx+hx−x+h
Multiply by the conjugateMultiply the top and bottom by x+x+h so the numerator becomes a difference of squares.